Commit e101a1ce by chenwq

加loading

1 parent 5c44cfa0
...@@ -67,7 +67,7 @@ Component({ ...@@ -67,7 +67,7 @@ Component({
commonApi.createOrderCode(params).then(res => { commonApi.createOrderCode(params).then(res => {
wx.$util.hideLoading() wx.$util.hideLoading()
if (res.code == 0) { if (res.code == 0) {
wx.$util.showToast('开票成功') // wx.$util.showToast('开票成功')
wx.$router.go("tabWorkOrder.invoiceCode", { wx.$router.go("tabWorkOrder.invoiceCode", {
obj: { obj: {
orderCode: orderInfo.orderCode, orderCode: orderInfo.orderCode,
......
...@@ -1182,6 +1182,7 @@ Component({ ...@@ -1182,6 +1182,7 @@ Component({
const params = { const params = {
orderCode: btnOrderInfo.payId orderCode: btnOrderInfo.payId
} }
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => { commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) { if (invoiceInfo) {
...@@ -1206,6 +1207,8 @@ Component({ ...@@ -1206,6 +1207,8 @@ Component({
obj: invoiceIssueQrcode obj: invoiceIssueQrcode
}) })
} }
}).finally(() => {
wx.$util.hideLoading()
}) })
}, },
/**获取门店主营品牌 */ /**获取门店主营品牌 */
......
...@@ -807,6 +807,7 @@ Page({ ...@@ -807,6 +807,7 @@ Page({
const params = { const params = {
orderCode: orderInfo.orderCode orderCode: orderInfo.orderCode
} }
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => { commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) { if (invoiceInfo) {
...@@ -831,7 +832,9 @@ Page({ ...@@ -831,7 +832,9 @@ Page({
obj: invoiceIssueQrcode obj: invoiceIssueQrcode
}) })
} }
}) }).finally(() => {
wx.$util.hideLoading()
})
}, },
previewImage(e) { previewImage(e) {
......
...@@ -30,8 +30,7 @@ Page({ ...@@ -30,8 +30,7 @@ Page({
const params = { const params = {
orderCode: codeInfo.orderCode orderCode: codeInfo.orderCode
} }
console.log(codeInfo) wx.$util.showLoading()
console.log(params)
commonApi.getOrderCode(params).then(res => { commonApi.getOrderCode(params).then(res => {
console.log(res, 'res---') console.log(res, 'res---')
let { invoiceInfo, invoiceIssueQrcode } = res.data let { invoiceInfo, invoiceIssueQrcode } = res.data
...@@ -49,7 +48,9 @@ Page({ ...@@ -49,7 +48,9 @@ Page({
} }
}) })
} }
}) }).finally(() => {
wx.$util.hideLoading()
})
}, },
handleBack() { handleBack() {
wx.$router.back() wx.$router.back()
......
...@@ -685,6 +685,7 @@ Page({ ...@@ -685,6 +685,7 @@ Page({
const params = { const params = {
orderCode: orderInfo.orderCode orderCode: orderInfo.orderCode
} }
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => { commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) { if (invoiceInfo) {
...@@ -709,7 +710,9 @@ Page({ ...@@ -709,7 +710,9 @@ Page({
obj: invoiceIssueQrcode obj: invoiceIssueQrcode
}) })
} }
}) }).finally(() => {
wx.$util.hideLoading()
})
}, },
previewImage(e) { previewImage(e) {
......
...@@ -447,6 +447,7 @@ Page({ ...@@ -447,6 +447,7 @@ Page({
const params = { const params = {
orderCode: orderInfo.orderCode orderCode: orderInfo.orderCode
} }
wx.$util.showLoading()
commonApi.getOrderCode(params).then(res => { commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) { if (invoiceInfo) {
...@@ -471,7 +472,9 @@ Page({ ...@@ -471,7 +472,9 @@ Page({
obj: invoiceIssueQrcode 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!