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