Commit 91362e84 by 杨北旺

修复bug

1 parent d0de159c
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<view class="sprite-icon icon-mine-arrow"></view> <view class="sprite-icon icon-mine-arrow"></view>
</view> </view>
</block> </block>
<view class="item address" bindtap="jump" data-url="/packageShopmall/packageMine/pages/address/index/index" data-is-choose-address wx:if="{{goodsInfo.deliveryType != 1}}"> <view class="item address" bindtap="jump" data-url="/packageMine/pages/address/index/index" data-is-choose-address wx:if="{{goodsInfo.deliveryType != 1}}">
<view class="label">配送</view> <view class="label">配送</view>
<view class="value text-hide"> <view class="value text-hide">
<block wx:if="{{addressFlag}}"> <block wx:if="{{addressFlag}}">
......
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
padding: 0 64rpx 20rpx; padding: 0 64rpx 20rpx;
box-sizing: border-box; box-sizing: border-box;
.get-coupon-btn{ .get-coupon-btn{
width: 100%;
position: relative; position: relative;
z-index: 5; z-index: 5;
height: 80rpx; height: 80rpx;
......
...@@ -271,13 +271,14 @@ Component({ ...@@ -271,13 +271,14 @@ Component({
}) })
}, },
onShow() { onShow() {
this.getBuyCarList() // this.getBuyCarList()
this.init()
}, },
init() { init() {
this.getCategoryList() this.getCategoryList()
const B_userInfo = wx.p.storage.get('userInfo') // const B_userInfo = wx.p.storage.get('userInfo')
if (B_userInfo && B_userInfo.userType) return // if (B_userInfo && B_userInfo.userType) return
this.getBuyCarList() // this.getBuyCarList()
this.getCarOwnerCouponList() this.getCarOwnerCouponList()
} }
}, },
......
...@@ -19,7 +19,7 @@ Page({ ...@@ -19,7 +19,7 @@ Page({
}) })
this.getDiscoverInfo(newMerchantId, 6) this.getDiscoverInfo(newMerchantId, 6)
} }
this.getComponentPage().onShow && this.getComponentPage().onShow()
}, },
getDiscoverInfo(merchantId, channel) { getDiscoverInfo(merchantId, channel) {
...@@ -98,5 +98,8 @@ Page({ ...@@ -98,5 +98,8 @@ Page({
user_box_style: `padding-top:${height}px`, user_box_style: `padding-top:${height}px`,
}); });
}, },
getComponentPage() {
return this.selectComponent(`#currentChannel_6`)
},
}) })
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!