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 8b4f9042
authored
Aug 28, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
确认订单地址选择修改
1 parent
dc6fa1e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
packageIndex/pages/confirmOrder/index.js
pages/tab/cart/index.wxml
packageIndex/pages/confirmOrder/index.js
View file @
8b4f904
...
...
@@ -126,8 +126,9 @@ Page({
})
},
checkOut
()
{
let
{
money
,
walletObj
}
=
this
.
data
let
{
money
,
walletObj
,
contactInfo
}
=
this
.
data
if
(
money
>
walletObj
?.
currentScore
)
return
// 积分不足
if
(
!
Object
.
keys
(
contactInfo
)?.
length
)
return
wx
.
p
.
wxApi
.
showToast
(
'请选择收货地址'
)
this
.
setData
({
showModal
:
true
})
...
...
@@ -180,7 +181,7 @@ Page({
let
{
goodsInfo
}
=
this
.
data
mineApi
.
getCustomerAddressList
().
then
(
res
=>
{
let
obj
=
{}
res
?.
forEach
(
val
=>
{
res
?.
forEach
(
(
val
,
index
)
=>
{
if
((
!
goodsInfo
?.
defaultAddress
&&
val
.
isDefault
==
1
)
||
(
goodsInfo
?.
defaultAddress
?.
id
==
val
.
id
))
{
obj
=
{
...
...
@@ -189,6 +190,14 @@ Page({
contactPhone
:
val
.
receiveMobile
,
contactAddress
:
`
${
val
.
provinceName
}${
val
.
cityName
}${
val
.
countyName
}${
val
.
address
}
`
}
}
else
{
let
data
=
res
[
0
]
obj
=
{
...
data
,
contactName
:
data
.
receiveName
,
contactPhone
:
data
.
receiveMobile
,
contactAddress
:
`
${
data
.
provinceName
}${
data
.
cityName
}${
data
.
countyName
}${
data
.
address
}
`
}
}
})
this
.
setData
({
...
...
pages/tab/cart/index.wxml
View file @
8b4f904
...
...
@@ -29,7 +29,7 @@
</view>
<view class="text">
<view class="text-hide">{{item.goodsSkuName}}</view>
<view class="specification" wx:if="{{item.specificationData}}">{{item.specificationData}}</view>
<view class="specification
text-hide
" wx:if="{{item.specificationData}}">{{item.specificationData}}</view>
<view class="price-box" wx:if="{{!item.flag}}">
<view class="price">
{{item.redeemPoints || 0}}
...
...
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