Commit 9785a46a by chenwq

详情页展示总额bug修复

1 parent 44fd1b1b
......@@ -15,7 +15,7 @@
</view>
<!-- <view>{{item.subTitle}}</view> -->
<view class="total-price" wx:if="{{scenePriceList.length}}">
¥ {{filter.money_three_for_two_thousands(scenePriceList[index].total || 0.00)}}
¥ {{filter.money_three_for_two_thousands(item.isOpen ? (scenePriceList[index].total || 0.00) : 0.00)}}
</view>
</view>
</view>
\ No newline at end of file
......@@ -334,7 +334,7 @@ Page({
var idx = actCodeList.findIndex(i => i == item.productCode)
if (idx != -1) {
var orderTotal = item.orderTotal
if (this.data.sceneCodeActive == 'SC002' && obj.flag) {
if (obj.flag) {
let upgradeObj = this.data.mockObj.upgradeObj[obj.idx]
item.orderTotal = upgradeObj.orderTotal
} else if (item.orderTotal) {
......@@ -652,7 +652,6 @@ Page({
})
commonApi.getMock().then(res => {
// console.log(res, '---')
this.setData({
mockObj: res
})
......@@ -668,13 +667,11 @@ Page({
onLoad(options) {
this.initTime()
wx.$router.getData(obj => {
console.log(obj, 'summary---onload')
this.setData({
merchantInfo: obj,
})
commonApi.getMock().then(res => {
console.log(res, '---')
this.setData({
mockObj: res
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!