|
@@ -60,7 +60,6 @@ export default {
|
|
result = result1[result1.length - 1];
|
|
result = result1[result1.length - 1];
|
|
}
|
|
}
|
|
this.iconCheck(result)
|
|
this.iconCheck(result)
|
|
- this.callback(result)
|
|
|
|
},
|
|
},
|
|
error: function (res) {
|
|
error: function (res) {
|
|
console.log(res, 'error++++++++++');
|
|
console.log(res, 'error++++++++++');
|
|
@@ -69,7 +68,7 @@ export default {
|
|
},
|
|
},
|
|
async iconCheck(result) {
|
|
async iconCheck(result) {
|
|
const res = await appPermissionChecks({ expressNo: result, deliveryPeopleId: localStorage.getItem('courierUserId') })
|
|
const res = await appPermissionChecks({ expressNo: result, deliveryPeopleId: localStorage.getItem('courierUserId') })
|
|
- if (Object.keys(res.data).length > 0) {
|
|
|
|
|
|
+ if (!!res.data) {
|
|
this.callback(res.data.expressNo)
|
|
this.callback(res.data.expressNo)
|
|
} else {
|
|
} else {
|
|
Toast('不在派送范围')
|
|
Toast('不在派送范围')
|