付延余
2023-03-21 d36eb757af8867278125c6999fcaa5bdb902151c
pages/driver-page/driver-index/driver-index.vue
@@ -162,12 +162,12 @@
      },
      // 抢单请求
      qiangDan(id) {
         // this.$reqPost('qiangDan', { orderPlanId: id, wxUserId: customerId }, 'params').then(res => {
         this.$reqPost('qiangDan', { orderPlanId: id }, 'params').then(res => {
            if (res.code == 0) {
               this.$u.toast('抢单成功');
            } else {
               this.$u.toast(res.data ? res.data : '抢单失败');
            }
            console.log('抢单', res);
            this.qiangDanList();
         });
      },