index.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <template>
  2. <view style="background-color: #FEFFFE;">
  3. <view class="swiper_cent">
  4. <swiper style="height: 900rpx;" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="1000" @change="swiperChange" :circular="true">
  5. <swiper-item v-for="(item,index) in banners" :key="index" @click="goPage(item.url)">
  6. <image :src="item.picUrl" style="width: 100%;height: 900rpx;" mode="aspectFill"></image>
  7. </swiper-item>
  8. </swiper>
  9. <view class="swiper_zhishi">
  10. <view :class="swiperKey===i?'view_active':''" v-for="(item1,i) in 3" :key="i"></view>
  11. </view>
  12. </view>
  13. <!-- <view class="main-center cross-center" style="height: 132rpx;">
  14. <image style="width: 32rpx;height: 17rpx;margin-right: 22rpx;" src="/static/</image>
  15. <image class="hxjImg" src="https://t17.9026.com/web/statics/image/index/HUIXIANGJIA.png" mode=""></image>
  16. </view>
  17. <view class="more-an">
  18. <view class="text" style="position: relative;" @click="goMore">了解更多
  19. <image style="width: 105rpx;height: 9rpx;position: absolute;left: 0;bottom: 0;" src="/static/image/viewmore.png" mode=""></image>
  20. </view>image/bz1.png" mode=""></image>
  21. <view style="font-size: 40rpx;">热卖套装</view>
  22. <image style="width: 32rpx;height: 17rpx;margin-left: 22rpx;" src="/static/image/bz.png" mode=""></image>
  23. </view> -->
  24. <view class="list">
  25. <view class="item" v-for="(item,index) in allList" :key="index">
  26. <view class="index">
  27. <text>0{{index+1}}</text>
  28. </view>
  29. <view class="main-between cross-center link">
  30. <view class="title">
  31. {{item[0].cat_name}}
  32. </view>
  33. </view>
  34. <app-scroll-list :list="item" :itemWidth="'200rpx'" :itemHeight="'278rpx'"></app-scroll-list>
  35. </view>
  36. </view>
  37. <!-- <view class="link">
  38. <view class="title1">本期家点灵感</view>
  39. <image class="tyx" src="https://t17.9026.com/web/statics/image/index/tyx.png" mode=""></image>
  40. <image class="d6" src="https://t17.9026.com/web/statics/image/index/6d.png" mode=""></image>
  41. <view class="subtitle">臻选整装 · 安全无甲醛 · 7天入住</view>
  42. </view>
  43. <view class="lg_list">
  44. <view class="item" v-for="(item,index) in homePages[5].data.list" :key="index"
  45. @click="goPage(item.type=='goods'?`/pages/goods/goods?id=${item.id}`:`/pages/case/projectInfo?id=${item.id}`)">
  46. <image class="imgBox" :src="item.cover_pic">
  47. </image>
  48. <view class="b_card main-between">
  49. <view class="left">
  50. <view class="title t-omit" style="width: 420rpx;">{{item.name}}</view>
  51. <view class="desc t-omit" style="width: 420rpx;">{{item.subtitle}}</view>
  52. </view>
  53. <view class="right">
  54. <view class="price"><text class="rmb">¥</text><text>{{item.price}}</text><text
  55. class="dw">元</text></view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="more">
  60. <view>VIEW MORE</view>
  61. <view>
  62. <image src="https://t17.9026.com/web/statics/image/index/viewmore.png" mode=""></image>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="link ">
  67. <view class="title1 main-left cross-center">优惠券<image class="coupon_1"
  68. src="https://t17.9026.com/web/statics/image/index/coupon_1.png" mode=""></image><text
  69. class="coupon_sub">RECOMMEND</text></view>
  70. </view>
  71. <view class="coupon main-left">
  72. <view class="item main-left" v-for="(item,index) in homePages[6].data.coupon_list" :key="index"
  73. @click="goPage(`/pages/coupon/list/list`)">
  74. <view class="Wb">
  75. <view>
  76. <view class="title_2">定制优享礼券 <text class="hjx-tc-B19D60 hjx-ts-21 hxj-ml-10">立即领取</text></view>
  77. <view class="desc_2">新用户礼遇</view>
  78. </view>
  79. <view>
  80. <view class="price"><text>¥</text>{{item.sub_price}}</view>
  81. <view class="yxq">有效期至{{item.end_time.split(' ')[0]}}</view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="link mt_20">
  87. <view class="title1">荟享定制<image class="coupon_1"
  88. src="https://t17.9026.com/web/statics/image/index/coupon_1.png" mode="">
  89. </image><text class="coupon_sub">HUIXIANG</text></view>
  90. </view>
  91. <view class="hxdz">
  92. <view class="main-left q">
  93. <view class="l">
  94. <view class="title_2">明星套装</view>
  95. <view class="desc_2">自然高端好家居</view>
  96. <image src="https://t17.9026.com/web/statics/image/index/4.png" mode=""></image>
  97. </view>
  98. <view class="main-between-y">
  99. <view class="r1" @click="goPage('/pages/case/selectedCases')">
  100. <view class="title_2">优选</view>
  101. <view class="desc_2">优选家居</view>
  102. <image src="https://t17.9026.com/web/statics/image/index/5.png" mode=""></image>
  103. </view>
  104. <view class="r2">
  105. <view class="title_2">专属</view>
  106. <view class="desc_2">定制精品</view>
  107. <image src="https://t17.9026.com/web/statics/image/index/6.png" mode=""></image>
  108. </view>
  109. </view>
  110. </view>
  111. <scroll-view scroll-x="true">
  112. <view class="main-left w">
  113. <view class="item" v-for="(item,index) in qwe" :key="index">
  114. <image class="borradu_20"
  115. :src="`https://t17.9026.com/web/statics/image/index/temporary/${item.cover_image}.png`"
  116. mode=""></image>
  117. <view class="title_2">{{item.title}}</view>
  118. <view class="desc_2">独到品味的代表备份</view>
  119. </view>
  120. </view>
  121. </scroll-view>
  122. <view class="more">
  123. <view class="viewmore1_color">查看更多</view>
  124. <view class="viewmore1_color">VIEW MORE</view>
  125. <view>
  126. <image class="viewmore1" src="https://t17.9026.com/web/statics/image/index/viewmore1.png" mode=""></image>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="main-between link mt_20">
  131. <view class="title1">
  132. 限时团购
  133. <image class="coupon_1" src="https://t17.9026.com/web/statics/image/index/coupon_1.png" mode="">
  134. </image>
  135. <text class="coupon_sub">TUANGOU</text>
  136. </view>
  137. <view class="link-more" @click="goPage('/plugins/pt/index/index')">
  138. 查看更多<image src="https://t17.9026.com/web/statics/image/index/arrow-right-gray.png" mode=""></image>
  139. </view>
  140. </view>
  141. <view class="group_list">
  142. <swiper style="height: 606rpx;" :indicator-dots="false" :autoplay="false" :interval="3000" :duration="1000"
  143. previous-margin="75rpx" next-margin="75rpx">
  144. <swiper-item class="" v-for="(item,index) in 3" :key="index"
  145. @click="goPage('/plugins/pt/goods/goods?goods_id=29')">
  146. <view class="item">
  147. <view class="imgBox">
  148. <image class="img" src="https://t17.9026.com/web/statics/image/index/3.png"></image>
  149. </view>
  150. <view class="b_card main-between">
  151. <view class="main-left cross-center left">
  152. <view class="i">02</view>
  153. <view class="q">:</view>
  154. <view class="i">24</view>
  155. <view class="q">:</view>
  156. <view class="i">45</view>
  157. </view>
  158. <view class="right">
  159. <view class="price"><text class="rmb">¥</text><text>56800</text><text
  160. class="dw">元</text></view>
  161. </view>
  162. </view>
  163. </view>
  164. </swiper-item>
  165. </swiper>
  166. </view>
  167. <view class="link main-left">
  168. <view class="title1" style="margin-right: 61rpx;" :style="{'color':bottom_goods_index===index?'':'#A7A7A7'}"
  169. v-for="(item,index) in homePages[11].data.catList" :key="index" @click="selectCat(index)">
  170. {{item.menuName}}</view>
  171. <image class="tyx" src="https://t17.9026.com/web/statics/image/index/tyx.png" mode=""></image>
  172. </view>
  173. <view class="hxzy">
  174. <view class="top">
  175. <image
  176. style="width: 560rpx;height: 270rpx;border-radius: 20rpx 0 0 0;position: absolute;top: 0;right: 0;"
  177. src="https://t17.9026.com/web/statics/image/index/9.png" mode=""></image>
  178. <view class="dbo main-between-y">
  179. <view>
  180. <view class="text">decoration荟享自营</view>
  181. <view class="text">心至所向·渐入家境</view>
  182. </view>
  183. <view class="category">2930人已收藏</view>
  184. </view>
  185. </view>
  186. <view class="dir-left-wrap bottom">
  187. <view class="item" v-for="(item,index) in homePages[11].data.catList[bottom_goods_index].goodsList"
  188. :key="index" @click="goPage(`/pages/goods/goods?id=${item.id}`)">
  189. <view>
  190. <image class="cover" :src="item.cover_pic" mode=""></image>
  191. </view>
  192. <view class="title_2 t-omit" style="width: 320rpx;">{{item.name}}</view>
  193. <view class="desc_2">{{item.sales}}</view>
  194. <view class="price" style="margin-top: 27rpx;"><text
  195. class="rmb">¥</text><text>{{item.price}}</text><text class="dw">元</text></view>
  196. </view>
  197. </view>
  198. <view class="more1" @click="goPage('/pages/cats/cats')">
  199. <view class="viewmore1_color main-center cross-center">更多荟享<image class=""
  200. src="https://t17.9026.com/web/statics/image/index/viewmore1.png" mode=""></image>
  201. </view>
  202. </view>
  203. </view>
  204. <view class="bottom_logo">
  205. <image src="https://t17.9026.com/web/statics/image/index/bottom_logo.png" mode=""></image>
  206. <view class="text">home shopping mall</view>
  207. </view> -->
  208. </view>
  209. </template>
  210. <script>
  211. let _this
  212. import appScrollList from './components/scroll-list.vue'
  213. export default {
  214. components: {
  215. appScrollList
  216. },
  217. data() {
  218. return {
  219. allList:[],
  220. pageData: '',
  221. swiperKey: 0, //轮播位置
  222. bottom_goods_index: 0, //底部商品分类索引
  223. banners: [{
  224. "link": null,
  225. "openType": "",
  226. "open_type": "",
  227. "page_url": "",
  228. "picUrl": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/ea8f12c9fac0ef1353ef10025bce982e.jpg",
  229. "pic_url": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/ea8f12c9fac0ef1353ef10025bce982e.jpg",
  230. "url": ""
  231. },
  232. {
  233. "link": null,
  234. "openType": "",
  235. "open_type": "",
  236. "page_url": "",
  237. "picUrl": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/3c14220516b0d47808484f72442edbbf.jpg",
  238. "pic_url": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/3c14220516b0d47808484f72442edbbf.jpg",
  239. "url": ""
  240. },
  241. {
  242. "link": null,
  243. "openType": "",
  244. "open_type": "",
  245. "page_url": "",
  246. "picUrl": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/7e56eaf80af09b51d18ec93259cd5b4b.jpg",
  247. "pic_url": "https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20210811/7e56eaf80af09b51d18ec93259cd5b4b.jpg",
  248. "url": ""
  249. }
  250. ],
  251. list: [
  252. {
  253. image: 'https://t17.9026.com/web/statics/image/index/temporary/jhk-1634283687206.png',
  254. // title: '热销方案',
  255. // tag: '热销',
  256. link: '/pages/case/hot_sale_project'
  257. },
  258. {
  259. image: 'https://t17.9026.com/web/statics/image/index/temporary/jhk-1634284372084.png',
  260. // title: '主题专区',
  261. // tag: '主题',
  262. link: '/pages/case/themeArea'
  263. },
  264. {
  265. image: 'https://t17.9026.com/web/statics/image/index/temporary/jhk-1634283667210.png',
  266. // title: '定制产品',
  267. // tag: '定制',
  268. link: ''
  269. },
  270. {
  271. image: 'https://t17.9026.com/web/statics/image/index/2.png',
  272. // title: '明星套装',
  273. // tag: '套装'
  274. }
  275. ],
  276. jdlg: [{
  277. title: '兴城人居ins风套装',
  278. sub_title: '细节控·轻奢风',
  279. price: '65622',
  280. cover_image: '3',
  281. },
  282. {
  283. title: '风创造「最大坪效」85m²MUJI',
  284. sub_title: '细节控·轻奢风',
  285. price: '7486',
  286. cover_image: 'temporary/jhk-1634283447190'
  287. },
  288. {
  289. title: '85m²MUJI风创造「最大坪效」',
  290. sub_title: '细节控·轻奢风',
  291. price: '27853',
  292. cover_image: 'temporary/jhk-1634284367308'
  293. }
  294. ],
  295. qwe: [{
  296. 'title': '兴城人居',
  297. 'cover_image': 'jhk-1634283667210'
  298. }, {
  299. 'title': '世龙广场',
  300. 'cover_image': 'jhk-1634284372084'
  301. }, {
  302. 'title': '新中式',
  303. 'cover_image': 'jhk-1634283687206'
  304. },
  305. ]
  306. }
  307. },
  308. onLoad(){
  309. _this=this
  310. this.getList()
  311. },
  312. methods: {
  313. goMore(){
  314. uni.navigateTo({
  315. url:'/pages/more/more'
  316. })
  317. },
  318. getList(){
  319. // console.log(8888)
  320. _this.$post('api/big-screen/compositions',{
  321. data:{
  322. estate_id:3,
  323. },
  324. success(res){
  325. _this.allList=res.data.list
  326. },
  327. error(res) {
  328. t.$toast(res)
  329. }
  330. },'GET')
  331. },
  332. selectCat(index) {
  333. this.bottom_goods_index = index
  334. },
  335. swiperChange(e) {
  336. // console.log(e.detail.current)
  337. this.swiperKey = e.detail.current
  338. },
  339. goPage(url) {
  340. uni.navigateTo({
  341. url: url
  342. })
  343. }
  344. }
  345. }
  346. </script>
  347. <style lang="scss" scoped>
  348. @import './index.scss';
  349. .list{
  350. .item{
  351. width: 100%;
  352. height: 596rpx;
  353. background: #F9F6F4;
  354. opacity: 0.76;
  355. border-radius: 0px 40rpx 0px 0px;
  356. .index{
  357. padding: 43rpx 42rpx;
  358. font-size: 40rpx;
  359. font-family: DIN Medium;
  360. font-weight: 400;
  361. color: #8D6D5D;
  362. opacity: 0.23;
  363. }
  364. .more-an{
  365. width: 105rpx;
  366. height: 43rpx;
  367. padding-top: 6rpx;
  368. .text{
  369. height: 43rpx;
  370. width: 105rpx;
  371. font-size: 22rpx;
  372. font-family: PingFang SC;
  373. font-weight: 300;
  374. color: #999999;
  375. line-height: 30rpx;
  376. }
  377. }
  378. }
  379. }
  380. .swiper_cent {
  381. position: relative;
  382. .swiper_zhishi {
  383. display: flex;
  384. align-items: center;
  385. width: 100%;
  386. justify-content: center;
  387. position: absolute;
  388. bottom: 39rpx;
  389. view {
  390. width: 81rpx;
  391. height: 4rpx;
  392. background: #c8c8c8;
  393. }
  394. .view_active {
  395. background: #f4f4f4;
  396. }
  397. }
  398. }
  399. </style>