Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ee1d3c0
authored
Sep 06, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
e20426f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
components/Adress/index.js
packageIndex/pages/goodsDetail/index.js
packageIndex/pages/goodsDetail/index.wxml
components/Adress/index.js
View file @
4ee1d3c
...
@@ -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
...
...
packageIndex/pages/goodsDetail/index.js
View file @
4ee1d3c
...
@@ -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
)
{
...
...
packageIndex/pages/goodsDetail/index.wxml
View file @
4ee1d3c
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment