|
|
@ -5,7 +5,10 @@ |
|
|
|
<lottie :options="defaultOptions" :height="200" :width="200" |
|
|
|
<lottie :options="defaultOptions" :height="200" :width="200" |
|
|
|
@animCreated="handleAnimation" /> |
|
|
|
@animCreated="handleAnimation" /> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<!-- <view class="status"></view> --> |
|
|
|
<!-- <view class="status"></view> --> |
|
|
|
|
|
|
|
<view v-if="isdisplay"> |
|
|
|
|
|
|
|
<image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
<view v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
<view class="height90 backcorltop" v-if="item.type == 1"> |
|
|
|
<view class="height90 backcorltop" v-if="item.type == 1"> |
|
|
|
<view class="category-list"> |
|
|
|
<view class="category-list"> |
|
|
@ -22,7 +25,7 @@ |
|
|
|
<image class="width100" mode="widthFix" :src="imagewxUrl+imgadres" v-if="item.type == 8"></image> |
|
|
|
<image class="width100" mode="widthFix" :src="imagewxUrl+imgadres" v-if="item.type == 8"></image> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 顶部菜单 --> |
|
|
|
<!-- 顶部菜单 --> |
|
|
|
<view class="category-list backcorfff" style="margin-top: -5px;" v-if="item.type == 7"> |
|
|
|
<view class="category-list backcorfff" style="margin-top: -7px;" v-if="item.type == 7"> |
|
|
|
<view class="category" style="width: 20%;" v-for="(row, indexc) in item.childCategory" :key="indexc" |
|
|
|
<view class="category" style="width: 20%;" v-for="(row, indexc) in item.childCategory" :key="indexc" |
|
|
|
@click="toCategory(row)"> |
|
|
|
@click="toCategory(row)"> |
|
|
|
<view class="img"> |
|
|
|
<view class="img"> |
|
|
@ -42,7 +45,7 @@ |
|
|
|
<view class="paddleft10 font14 fcor666 text1 width70"> |
|
|
|
<view class="paddleft10 font14 fcor666 text1 width70"> |
|
|
|
{{item.childDate[0].title}} |
|
|
|
{{item.childDate[0].title}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width25 font13 fcor999">{{swipers.timeData}}</view> |
|
|
|
<view class="width25 font13 fcor999">{{item.childDate[0].timeData}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width20 alijus"> |
|
|
|
<view class="width20 alijus"> |
|
|
|
<image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image> |
|
|
|
<image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image> |
|
|
@ -84,22 +87,26 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijus mart20" v-if="item.type == 6 "> |
|
|
|
<view class="width94 alijusnostart mart20" v-if="item.type == 6 "> |
|
|
|
<view class="backcorfff spcarea" v-for="(goods,index) in item.childDate" :key="index"> |
|
|
|
<view class="backcorfff spcarea border-r" v-for="(goods,index1) in item.childDate" :key="index1" |
|
|
|
<image mode="widthFix" class="width100" :src="imageUrl+goods.couponImg"></image> |
|
|
|
@click="toGoods(item.detailJumpUrl,goods.id)"> |
|
|
|
|
|
|
|
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0" |
|
|
|
|
|
|
|
:src="imageUrl+goods.couponImg"></image> |
|
|
|
<view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view> |
|
|
|
<view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view> |
|
|
|
<view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
<!-- <view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.salesPrice}}</view> |
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.salesPrice}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 alijus mart20" v-if="item.type == 9 "> |
|
|
|
<view class="width94 alijusnostart mart20" v-if="item.type == 9 "> |
|
|
|
<view class="backcorfff spcarea" v-for="(goods,index) in item.childDate" :key="index"> |
|
|
|
<view class="backcorfff spcarea border-r" v-for="(goods,index2) in item.childDate" :key="index2" |
|
|
|
<image mode="widthFix" class="width100" :src="imageUrl+goods.listImg"></image> |
|
|
|
@click="toGoods(item.detailJumpUrl,goods.id)"> |
|
|
|
|
|
|
|
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0" |
|
|
|
|
|
|
|
:src="imageUrl+goods.listImg"></image> |
|
|
|
<view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view> |
|
|
|
<view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view> |
|
|
|
<view class="width96 fcor999 font11" v-if="goods.effectiveTiem"> |
|
|
|
<!-- <view class="width96 fcor999 font11" v-if="goods.effectiveTiem"> |
|
|
|
{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.price}}</view> |
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.price}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -156,7 +163,8 @@ |
|
|
|
imgadres: '/home/home1.png', |
|
|
|
imgadres: '/home/home1.png', |
|
|
|
imgadres1: '/home/home2.png', |
|
|
|
imgadres1: '/home/home2.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
imgadres5: 'unionarea.png', |
|
|
|
// imgadres5: 'unionarea.png', |
|
|
|
|
|
|
|
imgadres5: 'loading.gif', |
|
|
|
imgadres3: '', |
|
|
|
imgadres3: '', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
webUrl: '', |
|
|
|
webUrl: '', |
|
|
@ -170,7 +178,6 @@ |
|
|
|
pageSize: 6, |
|
|
|
pageSize: 6, |
|
|
|
homeCateList: [], |
|
|
|
homeCateList: [], |
|
|
|
//切换状态 |
|
|
|
//切换状态 |
|
|
|
cpStuats: 1, |
|
|
|
|
|
|
|
jumpType: '', |
|
|
|
jumpType: '', |
|
|
|
isdisplay: true //是否展示 |
|
|
|
isdisplay: true //是否展示 |
|
|
|
}; |
|
|
|
}; |
|
|
@ -285,8 +292,8 @@ |
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
|
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -295,7 +302,7 @@ |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
platform: 3, |
|
|
|
platform: 3, |
|
|
|
categoryCode: 'CMS_HOME' |
|
|
|
categoryCode: 'CMS_HOME_POPOVER' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
this.isdisplay = false; |
|
|
|
this.isdisplay = false; |
|
|
@ -312,7 +319,7 @@ |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
platform: 3, |
|
|
|
platform: 3, |
|
|
|
categoryCode: 'CMS_UNIONPAY_ALERT' |
|
|
|
categoryCode: 'CMS_HOME_POPOVER' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
@ -368,10 +375,10 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//商品跳转 |
|
|
|
//商品跳转 |
|
|
|
toGoods(e) { |
|
|
|
toGoods(e, id) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../../goods/goods?id=' + e |
|
|
|
url: e + id |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//积分卡券列表 |
|
|
|
//积分卡券列表 |
|
|
|
getCouponListgold() { |
|
|
|
getCouponListgold() { |
|
|
@ -700,4 +707,4 @@ |
|
|
|
border-radius: 50%; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|