Commit 9785a46a by chenwq

详情页展示总额bug修复

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