|
@@ -3,15 +3,13 @@
|
|
<view class="swiper_cent">
|
|
<view class="swiper_cent">
|
|
<swiper style="height: 900rpx;" :indicator-dots="false" :autoplay="false" :interval="3000" :duration="1000"
|
|
<swiper style="height: 900rpx;" :indicator-dots="false" :autoplay="false" :interval="3000" :duration="1000"
|
|
@change="swiperChange">
|
|
@change="swiperChange">
|
|
- <swiper-item v-for="(item,index) in 3" :key="index">
|
|
|
|
- <image src="https://t17.9026.com/web/statics/image/index/1.png" style="width: 100%;height: 900rpx;"
|
|
|
|
- mode=""></image>
|
|
|
|
|
|
+ <swiper-item v-for="(item,index) in homePages[0].data.banners" :key="index" @click="goPage(item.url)">
|
|
|
|
+ <image :src="item.picUrl" style="width: 100%;height: 900rpx;" mode=""></image>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
<view class="swiper_zhishi">
|
|
<view class="swiper_zhishi">
|
|
- <view :class="swiperKey===i?'view_active':''" v-for="(item1,i) in 3" :key="i"></view>
|
|
|
|
|
|
+ <view :class="swiperKey===i?'view_active':''" v-for="(item1,i) in homePages[0].data.banners.length" :key="i"></view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
<view class="link">
|
|
<view class="link">
|
|
<view>
|
|
<view>
|
|
@@ -28,14 +26,14 @@
|
|
<view class="subtitle">臻选整装 · 安全无甲醛 · 7天入住</view>
|
|
<view class="subtitle">臻选整装 · 安全无甲醛 · 7天入住</view>
|
|
</view>
|
|
</view>
|
|
<view class="lg_list">
|
|
<view class="lg_list">
|
|
- <view class="item" v-for="(item,index) in jdlg" :key="index"
|
|
|
|
- @click="goPage('/pages/case/projectInfo?id=9')">
|
|
|
|
- <image class="imgBox" :src="`https://t17.9026.com/web/statics/image/index/${item.cover_image}.png`">
|
|
|
|
|
|
+ <view class="item" v-for="(item,index) in homePages[5].data.list" :key="index"
|
|
|
|
+ @click="goPage(item.type=='goods'?`/pages/goods/goods?id=${item.id}`:`/pages/case/projectInfo?id=${item.id}`)">
|
|
|
|
+ <image class="imgBox" :src="item.cover_pic">
|
|
</image>
|
|
</image>
|
|
<view class="b_card main-between">
|
|
<view class="b_card main-between">
|
|
<view class="left">
|
|
<view class="left">
|
|
- <view class="title">{{item.title}}</view>
|
|
|
|
- <view class="desc">{{item.sub_title}}</view>
|
|
|
|
|
|
+ <view class="title t-omit" style="width: 420rpx;">{{item.name}}</view>
|
|
|
|
+ <view class="desc t-omit" style="width: 420rpx;">{{item.subtitle}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
<view class="price"><text class="rmb">¥</text><text>{{item.price}}</text><text
|
|
<view class="price"><text class="rmb">¥</text><text>{{item.price}}</text><text
|
|
@@ -57,15 +55,15 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="coupon main-left">
|
|
<view class="coupon main-left">
|
|
- <view class="item main-left" v-for="(item,index) in 2" :key="index">
|
|
|
|
|
|
+ <view class="item main-left" v-for="(item,index) in homePages[6].data.coupon_list" :key="index" @click="goPage(`/pages/coupon/list/list`)">
|
|
<view class="Wb">
|
|
<view class="Wb">
|
|
<view>
|
|
<view>
|
|
<view class="title_2">定制优享礼券 <text class="hjx-tc-B19D60 hjx-ts-21 hxj-ml-10">立即领取</text></view>
|
|
<view class="title_2">定制优享礼券 <text class="hjx-tc-B19D60 hjx-ts-21 hxj-ml-10">立即领取</text></view>
|
|
<view class="desc_2">新用户礼遇</view>
|
|
<view class="desc_2">新用户礼遇</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
- <view class="price"><text>¥</text>100</view>
|
|
|
|
- <view class="yxq">有效期至2021-12-31</view>
|
|
|
|
|
|
+ <view class="price"><text>¥</text>{{item.sub_price}}</view>
|
|
|
|
+ <view class="yxq">有效期至{{item.end_time.split(' ')[0]}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -118,8 +116,7 @@
|
|
<view class="main-between link mt_20">
|
|
<view class="main-between link mt_20">
|
|
<view class="title1">
|
|
<view class="title1">
|
|
限时团购
|
|
限时团购
|
|
- <image class="coupon_1"
|
|
|
|
- src="https://t17.9026.com/web/statics/image/index/coupon_1.png" mode="">
|
|
|
|
|
|
+ <image class="coupon_1" src="https://t17.9026.com/web/statics/image/index/coupon_1.png" mode="">
|
|
</image>
|
|
</image>
|
|
<text class="coupon_sub">TUANGOU</text>
|
|
<text class="coupon_sub">TUANGOU</text>
|
|
</view>
|
|
</view>
|
|
@@ -155,10 +152,11 @@
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
<view class="link main-left">
|
|
<view class="link main-left">
|
|
- <view class="title1" style="margin-right: 61rpx;">荟享自营</view>
|
|
|
|
- <view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view>
|
|
|
|
|
|
+ <!-- <view class="title1" style="margin-right: 61rpx;">荟享自营</view>
|
|
<view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view>
|
|
<view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view>
|
|
<view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view>
|
|
<view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view>
|
|
|
|
+ <view class="title1" style="margin-right: 61rpx;color: #A7A7A7;">精选类别</view> -->
|
|
|
|
+ <view class="title1" style="margin-right: 61rpx;" :style="{'color':bottom_goods_index===index?'':'#A7A7A7'}" v-for="(item,index) in homePages[11].data.catList" @click="selectCat(index)">{{item.menuName}}</view>
|
|
<image class="tyx" src="https://t17.9026.com/web/statics/image/index/tyx.png" mode=""></image>
|
|
<image class="tyx" src="https://t17.9026.com/web/statics/image/index/tyx.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="hxzy">
|
|
<view class="hxzy">
|
|
@@ -175,15 +173,15 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="dir-left-wrap bottom">
|
|
<view class="dir-left-wrap bottom">
|
|
- <view class="item" v-for="(item,index) in 4" :key="index"
|
|
|
|
- @click="goPage(`/pages/goods/goods?id=${18+index}`)">
|
|
|
|
|
|
+ <view class="item" v-for="(item,index) in homePages[11].data.catList[bottom_goods_index].goodsList" :key="index"
|
|
|
|
+ @click="goPage(`/pages/goods/goods?id=${item.id}`)">
|
|
<view>
|
|
<view>
|
|
- <image class="cover" :src="`https://t17.9026.com/web/statics/image/index/${index+10}.png`"
|
|
|
|
|
|
+ <image class="cover" :src="item.cover_pic"
|
|
mode=""></image>
|
|
mode=""></image>
|
|
</view>
|
|
</view>
|
|
- <view class="title_2">马蒂斯系列 烟灰缸/首饰盘</view>
|
|
|
|
- <view class="desc_2">细节控 · 创意</view>
|
|
|
|
- <view class="price" style="margin-top: 27rpx;"><text class="rmb">¥</text><text>258</text><text
|
|
|
|
|
|
+ <view class="title_2 t-omit" style="width: 320rpx;">{{item.name}}</view>
|
|
|
|
+ <view class="desc_2">{{item.sales}}</view>
|
|
|
|
+ <view class="price" style="margin-top: 27rpx;"><text class="rmb">¥</text><text>{{item.price}}</text><text
|
|
class="dw">元</text></view>
|
|
class="dw">元</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -207,19 +205,21 @@
|
|
components: {
|
|
components: {
|
|
appScrollList
|
|
appScrollList
|
|
},
|
|
},
|
|
- props:{
|
|
|
|
|
|
+ props: {
|
|
homePages: {
|
|
homePages: {
|
|
- type: Object,
|
|
|
|
- default() {
|
|
|
|
- return {
|
|
|
|
- navs: [],
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
|
|
+ type: Object,
|
|
|
|
+ default () {
|
|
|
|
+ return {
|
|
|
|
+ navs: [],
|
|
|
|
+ };
|
|
|
|
+ },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ pageData: '',
|
|
swiperKey: 0, //轮播位置
|
|
swiperKey: 0, //轮播位置
|
|
|
|
+ bottom_goods_index:0, //底部商品分类索引
|
|
list: [
|
|
list: [
|
|
|
|
|
|
{
|
|
{
|
|
@@ -265,23 +265,25 @@
|
|
cover_image: 'temporary/jhk-1634284367308'
|
|
cover_image: 'temporary/jhk-1634284367308'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- qwe: [{
|
|
|
|
- 'title': '兴城人居',
|
|
|
|
- 'cover_image': 'jhk-1634283667210'
|
|
|
|
- }, {
|
|
|
|
- 'title': '世龙广场',
|
|
|
|
- 'cover_image': 'jhk-1634284372084'
|
|
|
|
- }, {
|
|
|
|
- 'title': '新中式',
|
|
|
|
- 'cover_image': 'jhk-1634283687206'
|
|
|
|
- }]
|
|
|
|
|
|
+ qwe: [
|
|
|
|
+ {
|
|
|
|
+ 'title': '兴城人居',
|
|
|
|
+ 'cover_image': 'jhk-1634283667210'
|
|
|
|
+ }, {
|
|
|
|
+ 'title': '世龙广场',
|
|
|
|
+ 'cover_image': 'jhk-1634284372084'
|
|
|
|
+ }, {
|
|
|
|
+ 'title': '新中式',
|
|
|
|
+ 'cover_image': 'jhk-1634283687206'
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.$store.dispatch('user/isEnterSales', false);
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ selectCat(index){
|
|
|
|
+ this.bottom_goods_index=index
|
|
|
|
+ },
|
|
swiperChange(e) {
|
|
swiperChange(e) {
|
|
console.log(e.detail.current)
|
|
console.log(e.detail.current)
|
|
this.swiperKey = e.detail.current
|
|
this.swiperKey = e.detail.current
|