|
@@ -221,7 +221,7 @@
|
|
onlyFromCamera: true,
|
|
onlyFromCamera: true,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
// uni.getStorageSync('homestayId'))
|
|
// uni.getStorageSync('homestayId'))
|
|
- console.log('扫描二维码成功,结果:' + JSON.parse(res.result));
|
|
|
|
|
|
+ console.log('扫描二维码成功,结果:' + JSON.parse(res.result).orderStatus);
|
|
let obj = {
|
|
let obj = {
|
|
orderId: JSON.parse(res.result).orderCode,
|
|
orderId: JSON.parse(res.result).orderCode,
|
|
isDel: 1
|
|
isDel: 1
|
|
@@ -233,6 +233,12 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 1500
|
|
duration: 1500
|
|
})
|
|
})
|
|
|
|
+ } else if (JSON.parse(res.result).orderStatus == 2) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '该核销码已核销',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 1500
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/house/orderDetails?obj=' + JSON.stringify(obj)
|
|
url: '/pages/house/orderDetails?obj=' + JSON.stringify(obj)
|