@@ -224,9 +224,23 @@
})
},
receiving(res) {
- uni.navigateTo({
- url: '../operation/index?res=' + res + '&id=' + this.id
- });
+ if (res !== 1) {
+ if (!this.form.acceptDate) {
+ uni.showToast({
+ icon: 'none',
+ title: '未接单,请先接单',
+ position: "bottom"
+ })
+ } else {
+ uni.navigateTo({
+ url: '../operation/index?res=' + res + '&id=' + this.id
+ });
+ }
}
};