1.更换数据位置

master
杨杰 3 years ago
parent 052d264d6e
commit 1c5052b458
  1. 21
      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: [{
@ -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