Commit 4ee1d3c0 by zhangxw

修改

1 parent e20426f4
...@@ -60,6 +60,7 @@ Component({ ...@@ -60,6 +60,7 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
this.triggerEvent('cancel')
}, },
toSelect(e) { toSelect(e) {
const { item } = e.currentTarget.dataset const { item } = e.currentTarget.dataset
......
...@@ -158,6 +158,23 @@ Page({ ...@@ -158,6 +158,23 @@ Page({
this.setData({ this.setData({
showAddress: true showAddress: true
}) })
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
},
closeAddress() {
this.setData({
showAddress: false
})
if (!this.data.showSku) {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}
}, },
// 地址选择确定 // 地址选择确定
getAddress(e) { getAddress(e) {
......
...@@ -141,4 +141,4 @@ ...@@ -141,4 +141,4 @@
<goods-action platformShop="{{true}}" id="goods-action" bindready="goodsActionReady" pay-disabled="{{false}}" upgradeSet="{{!detailInfo.retailPrice&&detailInfo.exchangeIntegral}}" stock="{{detailInfo.goodsStock==0}}" buyFlag="{{false}}" bindclick="goodsActionClick" hideShop="{{false}}"></goods-action> <goods-action platformShop="{{true}}" id="goods-action" bindready="goodsActionReady" pay-disabled="{{false}}" upgradeSet="{{!detailInfo.retailPrice&&detailInfo.exchangeIntegral}}" stock="{{detailInfo.goodsStock==0}}" buyFlag="{{false}}" bindclick="goodsActionClick" hideShop="{{false}}"></goods-action>
</block> </block>
<sku bind:cancelSku="closeSku" bind:getCount="getCount" bind:sameAddress="resetAddress" bind:joinSuccess="joinSuccess" show="{{showSku}}" defaultAds="{{contactAddress}}" goods="{{detailInfo}}" clickType="{{clickType}}" address="{{addressList}}" defaultAddress="{{defaultAddress}}"></sku> <sku bind:cancelSku="closeSku" bind:getCount="getCount" bind:sameAddress="resetAddress" bind:joinSuccess="joinSuccess" show="{{showSku}}" defaultAds="{{contactAddress}}" goods="{{detailInfo}}" clickType="{{clickType}}" address="{{addressList}}" defaultAddress="{{defaultAddress}}"></sku>
<address address="{{addressList}}" defaultAddress="{{defaultAddress}}" bind:getAddress="getAddress" show="{{showAddress}}"></address>
\ No newline at end of file \ No newline at end of file
<address address="{{addressList}}" defaultAddress="{{defaultAddress}}" bindcancel="closeAddress" bind:getAddress="getAddress" show="{{showAddress}}"></address>
\ 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!