|
@@ -103,24 +103,16 @@ Page({
|
|
|
writeOffOrder(data).then(res => {
|
|
|
wx.hideLoading()
|
|
|
const response = res.data
|
|
|
- if (response.useNum == 0) {
|
|
|
- wx.showModal({
|
|
|
- content: '该用户检测次数为0,提示充值',
|
|
|
- confirmColor: '#333',
|
|
|
- showCancel: false
|
|
|
- })
|
|
|
- } else {
|
|
|
- that.setData({
|
|
|
- orderNo: response.orderNo,
|
|
|
- orderId: response.orderId,
|
|
|
- personName: response.personName,
|
|
|
- personSex: response.personSex,
|
|
|
- birthday: response.birthday,
|
|
|
- age: response.age,
|
|
|
- useNum: response.useNum,
|
|
|
- overlayShow: true
|
|
|
- })
|
|
|
- }
|
|
|
+ that.setData({
|
|
|
+ orderNo: response.orderNo,
|
|
|
+ orderId: response.orderId,
|
|
|
+ personName: response.personName,
|
|
|
+ personSex: response.personSex,
|
|
|
+ birthday: response.birthday,
|
|
|
+ age: response.age,
|
|
|
+ useNum: response.useNum,
|
|
|
+ overlayShow: true
|
|
|
+ })
|
|
|
}).catch(e => {
|
|
|
wx.hideLoading()
|
|
|
wx.showModal({
|