1.提交代码

yj-dev
杨杰 3 years ago
parent 39981c15ac
commit e7498ca72f
  1. 26
      pages/tabBar/home/home.vue

@ -54,8 +54,11 @@
<view class="text">{{ row.name }}</view>
</view>
</view>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;"
@click="jumpTyou" :src="imagewxUrl+imgadres4"></image>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" @click="jumpTyou"
:src="imagewxUrl+imgadres4"></image>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" @click="jumphuafei(3)"
:src="imagewxUrl+imgadres5"></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>
@ -72,8 +75,7 @@
</swiper-item>
</swiper>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;"
@click="jumphuafei" :src="imagewxUrl+imgadres5"></image>
<!-- 金币 -->
<view style="width: 90%;margin-left: 5%;" v-if='goldproductList.length != 0' @click="goGoodsList(2)">
<image class="mart30 width100" mode="widthFix" :src="imagewxUrl+imgadres1"></image>
@ -90,7 +92,10 @@
</view>
</swiper-item>
</swiper>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" @click="jumphuafei(2)"
:src="imagewxUrl+imgadres6"></image>
<image mode="widthFix" style="margin-top: 30px;width: 90%;margin-left: 5%;" @click="jumphuafei(1)"
:src="imagewxUrl+imgadres7"></image>
<!-- 分期 -->
<!-- <view style="width: 90%;margin-left: 5%;">
<image class="mart30 width100" mode="widthFix" src="../../../static/img/fqhed.png"></image>
@ -233,6 +238,8 @@
imgadres3: '',
imgadres4: 'homet.png',
imgadres5: 'homeh.png',
imgadres6:'homed.jpg',
imgadres7:'homek.jpg',
webUrl: '',
//
swiperList: [{
@ -301,7 +308,7 @@
this.getCouponListArea();
this.getCouponListgold();
this.getCmsContent();
this.getCmsAactibity();
// this.getCmsAactibity();
}
},
onLoad() {
@ -446,7 +453,8 @@
// that.city = res.data.result.address_component.city.replace(//g,
// '');
that.city = res.data.result.address_component.province;
app.globalData.cityName = res.data.result.address_component.province;
app.globalData.cityName = res.data.result.address_component
.province;
app.globalData.cityId = res.data.result.ad_info.adcode;
// app.globalData.cityId = '500100';
that.getCouponListArea();
@ -763,7 +771,7 @@
}
},
//
jumphuafei() {
jumphuafei(item) {
if (!app.globalData.userInfo) {
this.getuserinfos();
return false;
@ -773,7 +781,7 @@
return false;
}
uni.navigateTo({
url: '/pages/tabBar/order/order?id=3'
url: '/pages/tabBar/order/order?id='+item
})
}

Loading…
Cancel
Save