Commit e101a1ce by chenwq

加loading

1 parent 5c44cfa0
......@@ -67,7 +67,7 @@ Component({
commonApi.createOrderCode(params).then(res => {
wx.$util.hideLoading()
if (res.code == 0) {
wx.$util.showToast('开票成功')
// wx.$util.showToast('开票成功')
wx.$router.go("tabWorkOrder.invoiceCode", {
obj: {
orderCode: orderInfo.orderCode,
......
......@@ -1182,6 +1182,7 @@ Component({
const params = {
orderCode: btnOrderInfo.payId
}
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
......@@ -1206,6 +1207,8 @@ Component({
obj: invoiceIssueQrcode
})
}
}).finally(() => {
wx.$util.hideLoading()
})
},
/**获取门店主营品牌 */
......
......@@ -807,6 +807,7 @@ Page({
const params = {
orderCode: orderInfo.orderCode
}
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
......@@ -831,7 +832,9 @@ Page({
obj: invoiceIssueQrcode
})
}
})
}).finally(() => {
wx.$util.hideLoading()
})
},
previewImage(e) {
......
......@@ -30,8 +30,7 @@ Page({
const params = {
orderCode: codeInfo.orderCode
}
console.log(codeInfo)
console.log(params)
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => {
console.log(res, 'res---')
let { invoiceInfo, invoiceIssueQrcode } = res.data
......@@ -49,7 +48,9 @@ Page({
}
})
}
})
}).finally(() => {
wx.$util.hideLoading()
})
},
handleBack() {
wx.$router.back()
......
......@@ -685,6 +685,7 @@ Page({
const params = {
orderCode: orderInfo.orderCode
}
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
......@@ -709,7 +710,9 @@ Page({
obj: invoiceIssueQrcode
})
}
})
}).finally(() => {
wx.$util.hideLoading()
})
},
previewImage(e) {
......
......@@ -447,6 +447,7 @@ Page({
const params = {
orderCode: orderInfo.orderCode
}
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
......@@ -471,7 +472,9 @@ Page({
obj: invoiceIssueQrcode
})
}
})
}).finally(() => {
wx.$util.hideLoading()
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!