|
|
|
@ -35,7 +35,7 @@ |
|
|
|
|
<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"></image> |
|
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumplottery(swiper)"></image> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
<view class="indicator"> |
|
|
|
@ -74,9 +74,9 @@ |
|
|
|
|
</view> |
|
|
|
|
</swiper-item> |
|
|
|
|
</swiper> |
|
|
|
|
|
|
|
|
|
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" v-for="(row, index) in homeCateList" :key="index" @click="jumphuafei(row)" |
|
|
|
|
:src="imageUrl+row.imgData"></image> |
|
|
|
|
|
|
|
|
|
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" v-for="(row, index) in homeCateList" |
|
|
|
|
:key="index" @click="jumphuafei(row)" :src="imageUrl+row.imgData"></image> |
|
|
|
|
<!-- 赠券 --> |
|
|
|
|
<view style="width: 91%;margin-left: 5%;" v-if='productList.length != 0' @click="goGoodsList(1)"> |
|
|
|
|
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> |
|
|
|
@ -156,9 +156,8 @@ |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 6, |
|
|
|
|
// 分类菜单 |
|
|
|
|
categoryList: [ |
|
|
|
|
], |
|
|
|
|
homeCateList:[], |
|
|
|
|
categoryList: [], |
|
|
|
|
homeCateList: [], |
|
|
|
|
//切换状态 |
|
|
|
|
cpStuats: 1 |
|
|
|
|
}; |
|
|
|
@ -187,7 +186,7 @@ |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
|
let that = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 1.wx获取登录用户code |
|
|
|
|
// #ifdef MP |
|
|
|
|
uni.login({ |
|
|
|
@ -231,13 +230,13 @@ |
|
|
|
|
}) |
|
|
|
|
// #endif |
|
|
|
|
var arr1mp = decodeURIComponent(options.q); |
|
|
|
|
if(arr1mp){ |
|
|
|
|
if (arr1mp) { |
|
|
|
|
var arr2mp = arr1mp.split('='); |
|
|
|
|
if(arr2mp){ |
|
|
|
|
if (arr2mp) { |
|
|
|
|
app.globalData.identificationCode = arr2mp[2]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//获取首页功能 |
|
|
|
@ -264,7 +263,7 @@ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取弹出或者弹窗 |
|
|
|
|
getCmsContent() { |
|
|
|
|
let params = { |
|
|
|
@ -433,7 +432,7 @@ |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//搜索跳转 |
|
|
|
|
toSearch() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -590,7 +589,7 @@ |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//跳转菜单 |
|
|
|
|
toCategory(item) { |
|
|
|
|
if (item.title == '在线加油') { |
|
|
|
@ -654,6 +653,15 @@ |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//轮播跳转活动 |
|
|
|
|
jumplottery(item) { |
|
|
|
|
if (item.ext1) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: item.ext1 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//单独跳转话费充值 |
|
|
|
|
jumphuafei(item) { |
|
|
|
|
if (!app.globalData.userInfo) { |
|
|
|
@ -668,37 +676,37 @@ |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(item.title == '汇联通'){ |
|
|
|
|
if (item.title == '汇联通') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/goods/goods-list/goods-list?id=2' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(item.title == '在线加油'){ |
|
|
|
|
if (item.title == '在线加油') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/goods/refuel/refuel' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(item.title == '话费充值'){ |
|
|
|
|
if (item.title == '话费充值') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/tabBar/order/order?id=3' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(item.title == '电影票'){ |
|
|
|
|
if (item.title == '电影票') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/tabBar/order/order?id=2' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(item.title == '肯德基'){ |
|
|
|
|
if (item.title == '肯德基') { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/tabBar/order/order?id=1' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//调整商品列表 |
|
|
|
|