1.更换数据位置

master
杨杰 3 years ago
parent 052d264d6e
commit 1c5052b458
  1. 27
      high-unionPay/pages/tabBar/home/home.vue

@ -27,9 +27,6 @@
</view> </view>
</view> </view>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" v-for="(row, index) in homeCateList"
:key="index" @click="jumphuafei(row)" :src="imagewxUrl+row.imgData"></image>
<!-- 银联赠券 -->
<view style="width: 91%;margin-left: 5%;" v-if='productList.length != 0' @click="goGoodsList(3)"> <view style="width: 91%;margin-left: 5%;" v-if='productList.length != 0' @click="goGoodsList(3)">
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres"></image> <image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres"></image>
</view> </view>
@ -44,6 +41,11 @@
</view> </view>
</swiper-item> </swiper-item>
</swiper> </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="imagewxUrl+row.imgData"></image>
<!-- 银联赠券 -->
<wybPopup ref="popup" type="center" height="850" width="600" radius="6" bgColor="" :showCloseIcon="true"> <wybPopup ref="popup" type="center" height="850" width="600" radius="6" bgColor="" :showCloseIcon="true">
<image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image> <image class="popImg" :src="imageUrl+imgadres3" @click="jumpWeb"></image>
</wybPopup> </wybPopup>
@ -115,6 +117,9 @@
{ {
'title': '话费充值', 'title': '话费充值',
'imgData': 'phonePay1.png' 'imgData': 'phonePay1.png'
}, {
'title': '石化码商',
'imgData': 'petCoder.png'
}, },
], ],
homeCateList: [{ homeCateList: [{
@ -132,7 +137,7 @@
}; };
}, },
onShow() { onShow() {
let that = this; let that = this;
uni.getStorage({ uni.getStorage({
key: "user", key: "user",
success(e) { success(e) {
@ -185,7 +190,7 @@
if (res.return_code == '000000' && res.return_data) { if (res.return_code == '000000' && res.return_data) {
let datas = res.return_data; let datas = res.return_data;
uni.showModal({ uni.showModal({
title: '优惠券领取', title: '优惠券领取',
content: '前往领取优惠券', content: '前往领取优惠券',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
@ -218,7 +223,7 @@
upsdk.pluginReady(function() { upsdk.pluginReady(function() {
upsdk.getLocationCity({ upsdk.getLocationCity({
success: function(cityCd) { success: function(cityCd) {
app.globalData.cityId = cityCd; app.globalData.cityId = cityCd;
that.getCouponListArea(); that.getCouponListArea();
}, },
fail: function(err) {} fail: function(err) {}
@ -418,7 +423,13 @@
} }
if (item.title == '话费充值') { if (item.title == '话费充值') {
uni.navigateTo({ uni.navigateTo({
url:'../../unionPay/recharge/recharge' url: '../../unionPay/recharge/recharge'
})
return;
}
if (item.title == '石化码商') {
uni.navigateTo({
url: '/pages/goods/goods-list/goods-list?id=3'
}) })
return; return;
} }
@ -751,7 +762,7 @@
flex-wrap: wrap; flex-wrap: wrap;
.category { .category {
width: 25%; width: 33.3%;
margin-top: 50upx; margin-top: 50upx;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

Loading…
Cancel
Save