Commit af9aa758 by chenwq

bug修复

1 parent 6874dc64
...@@ -121,15 +121,14 @@ Page({ ...@@ -121,15 +121,14 @@ Page({
['sceneActivityObj.scene3']: res[2].productList, ['sceneActivityObj.scene3']: res[2].productList,
['sceneActivityObj.scene4']: res[3].productList ['sceneActivityObj.scene4']: res[3].productList
}) })
if (isFirst) {
this.getCustomerDetail(isFirst)
}
if ([2, 3].includes(+this.data.sceneActive)) { if ([2, 3].includes(+this.data.sceneActive)) {
this.getCustomerDetail() this.getCustomerDetail()
} else if (this.data.sceneActive == 4) { } else if (this.data.sceneActive == 4) {
this.getActivityRevenue() this.getActivityRevenue()
} else { } else {
if (isFirst) {
this.getCustomerDetail(isFirst)
this.getActivityRevenue(isFirst)
}
this.setCurActivity() this.setCurActivity()
} }
}) })
...@@ -194,7 +193,7 @@ Page({ ...@@ -194,7 +193,7 @@ Page({
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2) ['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2)
}) })
if(isChangeOtherTotal) { if (isChangeOtherTotal) {
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2) ['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2)
}) })
...@@ -207,7 +206,7 @@ Page({ ...@@ -207,7 +206,7 @@ Page({
var params = {} var params = {}
switch (this.data.searchForm['scene' + this.data.sceneActive + 'Idx']) { switch (this.data.searchForm['scene' + this.data.sceneActive + 'Idx']) {
case 0: case 0:
params.activityStatuList = [1, 2] params.activityStatuList = [1, 2, 3]
break break
// 申请中 // 申请中
case 1: case 1:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!