Commit 70c67cd7 by 张立顺

fix bug

1 parent 26468291
...@@ -232,7 +232,7 @@ Page({ ...@@ -232,7 +232,7 @@ Page({
this.getOrderDetail(options.orderCode) this.getOrderDetail(options.orderCode)
this.showFlag(options.orderCode) this.showFlag(options.orderCode)
this.setData({ this.setData({
orderCode: options.orderCode orderCode: options.orderCode,
}) })
} }
}, },
...@@ -249,7 +249,7 @@ Page({ ...@@ -249,7 +249,7 @@ Page({
this.getOrderDetail(options.orderCode) this.getOrderDetail(options.orderCode)
this.showFlag(options.orderCode) this.showFlag(options.orderCode)
this.setData({ this.setData({
orderCode: options.orderCode orderCode: options.orderCode,
}) })
} }
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
...@@ -319,7 +319,8 @@ Page({ ...@@ -319,7 +319,8 @@ Page({
async getOrderDetail(orderCode) { async getOrderDetail(orderCode) {
let _this = this let _this = this
let { signatureSwitch, baseConfigData, allNoConstruction } = _this.data let { signatureSwitch, baseConfigData } = _this.data
let allNoConstruction = true
const positionTypeList = (await getPositionList()) || [] const positionTypeList = (await getPositionList()) || []
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
...@@ -371,13 +372,11 @@ Page({ ...@@ -371,13 +372,11 @@ Page({
let total_price = 0 let total_price = 0
let warrantyCardList = [] let warrantyCardList = []
for (var i = 0; i < data?.subOrderList?.length; i++) { for (var i = 0; i < data?.subOrderList?.length; i++) {
if (true) {
}
let e = data?.subOrderList[i] let e = data?.subOrderList[i]
// 判断是否全为无需施工 // 判断是否全为无需施工
if (e.constructionStatus != 3) { if (e.constructionStatus != 3) {
allNoConstruction = false allNoConstruction = false
console.log(e.constructionStatus, 'e.constructionStatus');
} }
total_price += e.totalPrice total_price += e.totalPrice
e.price = Number( e.price = Number(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!