|
|
|
@ -26,130 +26,133 @@ |
|
|
|
|
</button> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
<!-- #ifdef H5--> |
|
|
|
|
<image :src="imagewxUrl+imgadres4" mode="widthFix" class="h5xfimg" @click="playPhone"></image> |
|
|
|
|
<image :src="imagewxUrl+imgadres4" mode="widthFix" style="background-color: transparent;padding: 0px;" |
|
|
|
|
class="h5xfimg" @click="playPhone"></image> |
|
|
|
|
<!-- #endif --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 顶部菜单 --> |
|
|
|
|
<view class="height80 backcorltop mart50"> |
|
|
|
|
<view class="category-list"> |
|
|
|
|
<view class="category" style="width: 25%;" v-for="(row, index) in categoryList" :key="index" |
|
|
|
|
<view v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
|
<view class="height80 backcorltop mart50" v-if="item.type == 1"> |
|
|
|
|
<view class="category-list"> |
|
|
|
|
<view class="category" style="width: 25%;" v-for="(row, index) in categoryList" :key="index" |
|
|
|
|
@tap="toCategory(row)"> |
|
|
|
|
<view class="img"> |
|
|
|
|
<image :src="imageUrl+row.imgData"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text fcorfff">{{ row.title }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 顶部活动图片 --> |
|
|
|
|
<!-- <image class="width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> --> |
|
|
|
|
|
|
|
|
|
<!-- 顶部菜单 --> |
|
|
|
|
<view class="category-list backcorfff" style="margin-top: -5px;" v-if="item.type == 7"> |
|
|
|
|
<view class="category" style="width: 20%;" v-for="(row, index) in categoryList" :key="index" |
|
|
|
|
@tap="toCategory(row)"> |
|
|
|
|
<view class="img"> |
|
|
|
|
<image :src="imageUrl+row.imgData"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="text fcorfff">{{ row.title }}</view> |
|
|
|
|
<view class="text fcor333">{{ row.title }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 顶部活动图片 --> |
|
|
|
|
<image class="width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> |
|
|
|
|
|
|
|
|
|
<!-- 顶部菜单 --> |
|
|
|
|
<view class="category-list backcorfff" style="margin-top: -5px;"> |
|
|
|
|
<view class="category" style="width: 20%;" v-for="(row, index) in categoryList" :key="index" |
|
|
|
|
@tap="toCategory(row)"> |
|
|
|
|
<view class="img"> |
|
|
|
|
<image :src="imageUrl+row.imgData"></image> |
|
|
|
|
<!-- 消息 --> |
|
|
|
|
<view class="height120 backcorfff" v-if="item.type == 3"> |
|
|
|
|
<view class="height20 width100"></view> |
|
|
|
|
<view class="width92 message alijus"> |
|
|
|
|
<swiper circular="true" autoplay="true" display-multiple-items="2" :vertical="true"> |
|
|
|
|
<swiper-item class="alijus" v-for="(swiper,index) in swiperList" :key="swiper.id" |
|
|
|
|
@click="test(index)"> |
|
|
|
|
<view class="width80p paddleft10 alijusstart"> |
|
|
|
|
<view class="stus"></view> |
|
|
|
|
<view class="paddleft10 font14 fcor666 text1 width70"> |
|
|
|
|
放松放松方放松放松方放松放松方</view> |
|
|
|
|
<view class="width25 font13 fcor999">40分钟前</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width20 alijus"> |
|
|
|
|
<image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image> |
|
|
|
|
</view> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
<view class="text fcor333">{{ row.title }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 消息 --> |
|
|
|
|
<view class="height120 backcorfff"> |
|
|
|
|
<view class="height20 width100"></view> |
|
|
|
|
<view class="width92 message alijus"> |
|
|
|
|
<swiper circular="true" autoplay="true" display-multiple-items="2" :vertical="true"> |
|
|
|
|
<swiper-item class="alijus" v-for="(swiper,index) in swiperList" :key="swiper.id" |
|
|
|
|
@click="test(index)"> |
|
|
|
|
<view class="width80p paddleft10 alijusstart"> |
|
|
|
|
<view class="stus"></view> |
|
|
|
|
<view class="paddleft10 font14 fcor666 text1 width70"> |
|
|
|
|
放松放松方放松放松方放松放松方</view> |
|
|
|
|
<view class="width25 font13 fcor999">40分钟前</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width20 alijus"> |
|
|
|
|
<image class="icon15" mode="widthFix" src="../../../static/img/jt.png"></image> |
|
|
|
|
</view> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
|
<view class="swiper mart20"> |
|
|
|
|
<view class="swiper-box"> |
|
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumplottery(swiper)"></image> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 加油专区 --> |
|
|
|
|
<view class="width90 mart20 alijusstart" @click="goGoodsList(2)"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
加油专区 |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width94 alijus mart20"> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
<!-- 轮播图 --> |
|
|
|
|
<view class="swiper mart20" v-if="item.type == 2"> |
|
|
|
|
<view class="swiper-box"> |
|
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumplottery(swiper)"></image> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
<!-- 加油专区 --> |
|
|
|
|
<view class="width90 mart20 alijusstart" v-if="item.type == 6" @click="goGoodsList(2)"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
加油专区 |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 惠享生活 --> |
|
|
|
|
<view class="width90 mart20 alijusstart"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
惠享生活 |
|
|
|
|
<view class="width94 alijus mart20" v-if="item.type == 6"> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home3.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">ETC加油券</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<image class="width90 mart10" mode="widthFix" :src="imagewxUrl+imgadres1"></image> |
|
|
|
|
<view class="width90 alijusstart mart10"> |
|
|
|
|
<image src="../../../static/img/home/home6.png" mode="widthFix" class="width31"></image> |
|
|
|
|
<image src="../../../static/img/home/home7.png" mode="widthFix" class="width31"></image> |
|
|
|
|
<image src="../../../static/img/home/home5.png" mode="widthFix" class="width31"></image> |
|
|
|
|
</view> |
|
|
|
|
<!-- 天天好券 --> |
|
|
|
|
<view class="width90 mart20 alijusstart"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
天天好券 |
|
|
|
|
<!-- 惠享生活 --> |
|
|
|
|
<view class="width90 mart20 alijusstart" v-if="item.type == 5"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
惠享生活 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width94 alijus mart20"> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
<image class="width90 mart10" mode="widthFix" v-if="item.type == 5" :src="imagewxUrl+imgadres1"></image> |
|
|
|
|
<view class="width90 alijusstart mart10" v-if="item.type == 5"> |
|
|
|
|
<image src="../../../static/img/home/home6.png" mode="widthFix" class="width31"></image> |
|
|
|
|
<image src="../../../static/img/home/home7.png" mode="widthFix" class="width31"></image> |
|
|
|
|
<image src="../../../static/img/home/home5.png" mode="widthFix" class="width31"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
<!-- 天天好券 --> |
|
|
|
|
<view class="width90 mart20 alijusstart" v-if="item.type == 6"> |
|
|
|
|
<view class="width70 font18 fcor333"> |
|
|
|
|
天天好券 |
|
|
|
|
</view> |
|
|
|
|
<view class="width30 font14 fotrt fcor666">更多</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
<view class="width94 alijus mart20" v-if="item.type == 6"> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="backcorfff spcarea"> |
|
|
|
|
<image mode="widthFix" class="width100" src="../../../static/img/home/home4.png"></image> |
|
|
|
|
<view class="width96 fcor333 font15 fontwig6">加油优惠券包</view> |
|
|
|
|
<view class="width96 fcor999 font11">2020.09.21-2202.10.12</view> |
|
|
|
|
<view class="width94 fcoreb5 font15 fontwig6">¥240</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 弹窗 --> |
|
|
|
@ -234,15 +237,15 @@ |
|
|
|
|
onShow() { |
|
|
|
|
if (app.globalData.cityName != '') { |
|
|
|
|
this.city = app.globalData.qianzhuCityName; |
|
|
|
|
this.getCouponListArea(); |
|
|
|
|
this.getCouponListgold(); |
|
|
|
|
this.getunioncardCouponListgold(); |
|
|
|
|
this.getCmsContent(); |
|
|
|
|
this.getCmsContentcmshome(); |
|
|
|
|
// this.getCouponListArea(); |
|
|
|
|
// this.getCouponListgold(); |
|
|
|
|
// this.getunioncardCouponListgold(); |
|
|
|
|
// this.getCmsContent(); |
|
|
|
|
// this.getCmsContentcmshome(); |
|
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
|
if (app.globalData.userInfo.phone) { |
|
|
|
|
this.getMembershipLevel(); |
|
|
|
|
} |
|
|
|
|
// if (app.globalData.userInfo.phone) { |
|
|
|
|
// this.getMembershipLevel(); |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
// #ifdef H5 |
|
|
|
|
uni.getStorage({ |
|
|
|
@ -334,12 +337,12 @@ |
|
|
|
|
that.city = '重庆市'; |
|
|
|
|
app.globalData.cityName = '重庆市'; |
|
|
|
|
app.globalData.cityId = '500000'; |
|
|
|
|
that.getCouponListArea(); |
|
|
|
|
that.getCouponListgold(); |
|
|
|
|
that.getunioncardCouponListgold(); |
|
|
|
|
that.getCmsContent(); |
|
|
|
|
that.getCmsAactibity(); |
|
|
|
|
that.getCmsContentcmshome(); |
|
|
|
|
// that.getCouponListArea(); |
|
|
|
|
// that.getCouponListgold(); |
|
|
|
|
// that.getunioncardCouponListgold(); |
|
|
|
|
// that.getCmsContent(); |
|
|
|
|
// that.getCmsAactibity(); |
|
|
|
|
// that.getCmsContentcmshome(); |
|
|
|
|
that.getCmsContentcmsContent(); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -379,14 +382,15 @@ |
|
|
|
|
getCmsContentcmsContent() { |
|
|
|
|
let code; |
|
|
|
|
// #ifdef H5 |
|
|
|
|
code = 'CMS_H5_IMG' |
|
|
|
|
code = '2' |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef MP |
|
|
|
|
code = 'CMS_HOME_CONTENT' |
|
|
|
|
code = '1' |
|
|
|
|
// #endif |
|
|
|
|
let params = { |
|
|
|
|
regionId: app.globalData.cityId, |
|
|
|
|
categoryCode: code |
|
|
|
|
companyId: app.globalData.companyId, |
|
|
|
|
platform: code, |
|
|
|
|
categoryCode: 'CMS_HOME' |
|
|
|
|
} |
|
|
|
|
getCmsContent(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
@ -560,12 +564,12 @@ |
|
|
|
|
}) |
|
|
|
|
// app.globalData.cityId = '500103'; |
|
|
|
|
if (res.return_data.regionId) { |
|
|
|
|
that.getCouponListArea(); |
|
|
|
|
that.getCouponListgold(); |
|
|
|
|
that.getunioncardCouponListgold(); |
|
|
|
|
that.getCmsContent(); |
|
|
|
|
that.getCmsAactibity(); |
|
|
|
|
that.getCmsContentcmshome(); |
|
|
|
|
// that.getCouponListArea(); |
|
|
|
|
// that.getCouponListgold(); |
|
|
|
|
// that.getunioncardCouponListgold(); |
|
|
|
|
// that.getCmsContent(); |
|
|
|
|
// that.getCmsAactibity(); |
|
|
|
|
// that.getCmsContentcmshome(); |
|
|
|
|
that.getCmsContentcmsContent(); |
|
|
|
|
} |
|
|
|
|
uni.getStorage({ |
|
|
|
@ -761,7 +765,7 @@ |
|
|
|
|
}, |
|
|
|
|
test(item) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:'../../user/news/news' |
|
|
|
|
url: '../../user/news/news' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|