Commit ad761b73 by 李伟康

提交

1 parent 89999e80
......@@ -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
......
......@@ -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>
......
......@@ -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,
......
{
"navigationBarTitleText": "确认订单"
"navigationBarTitleText": "确认订单",
"usingComponents": {
"stepper": "../shoppingCart/components/Stepper/Stepper"
}
}
\ No newline at end of file
......@@ -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 = '万'
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!