Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
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 ad761b73
authored
Aug 31, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
89999e80
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
packageMall/pages/detail/detail.js
packageMall/pages/detail/detail.wxml
packageMall/pages/pay/pay.js
packageMall/pages/pay/pay.json
pages/tab/index/components/goods/goods.js
packageMall/pages/detail/detail.js
View file @
ad761b7
...
...
@@ -184,7 +184,8 @@ Page({
goodsName
:
goodsInfo
.
goodsName
,
retailPrice
:
goodsInfo
.
retailPrice
,
stock
:
goodsInfo
.
goodsStock
,
id
:
goodsInfo
.
id
id
:
goodsInfo
.
id
,
unit
:
goodsInfo
.
unit
}
if
(
activeSku
)
{
let
list
=
isActivity
?
goodsInfo
.
specificationExtraList
:
goodsInfo
.
specificationDetailList
...
...
packageMall/pages/detail/detail.wxml
View file @
ad761b7
...
...
@@ -91,7 +91,12 @@
{{goodsInfo.skuPrice}}
<text class="unit up">起</text>
</block>
<block wx:else>{{goodsInfo.retailPrice}}</block>
<block wx:else>
{{goodsInfo.retailPrice}}
<block wx:if="{{goodsInfo.unit}}">
<text class="unit">{{goodsInfo.unit}}</text>
</block>
</block>
</view>
<view class="old">¥{{goodsInfo.originalPrice}}</view>
</view>
...
...
packageMall/pages/pay/pay.js
View file @
ad761b7
...
...
@@ -27,6 +27,7 @@ Page({
goodsList
,
goodsInfo
}
=
options
if
(
goodsList
.
unit
&&
goodsList
.
unit
==
'万'
)
goodsList
.
retailPrice
=
goodsList
.
retailPrice
*
10000
this
.
setData
({
merchantName
:
goodsList
.
merchantName
,
goodsInfo
:
goodsInfo
,
...
...
packageMall/pages/pay/pay.json
View file @
ad761b7
{
"navigationBarTitleText"
:
"确认订单"
"navigationBarTitleText"
:
"确认订单"
,
"usingComponents"
:
{
"stepper"
:
"../shoppingCart/components/Stepper/Stepper"
}
}
\ No newline at end of file
pages/tab/index/components/goods/goods.js
View file @
ad761b7
...
...
@@ -22,19 +22,19 @@ Component({
n
.
goodsStatistics
.
saleAmount
=
n
.
activityInfo
.
saleAmount
if
(
n
.
activityInfo
.
specificationExtraList
&&
n
.
activityInfo
.
specificationExtraList
.
length
)
{
n
.
retailPrice
=
n
.
activityInfo
.
specificationExtraList
[
0
].
retailPrice
n
.
up
=
true
v
.
up
=
true
}
}
else
{
if
(
n
.
originalPrice
)
n
.
originalPrice
=
centsToyuan
(
n
.
originalPrice
)
if
(
n
.
specificationDetailList
&&
n
.
specificationDetailList
.
length
)
{
n
.
retailPrice
=
n
.
specificationDetailList
[
0
].
retailPrice
n
.
up
=
true
v
.
up
=
true
}
}
n
.
retailPrice
=
Number
(
centsToyuan
(
n
.
retailPrice
)).
toFixed
(
2
)
if
(
n
.
retailPrice
>
9999
)
{
n
.
retailPrice
=
Number
(
n
.
retailPrice
/
10000
).
toFixed
(
2
)
n
.
unit
=
'万'
v
.
unit
=
'万'
}
}
})
...
...
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