付延余
2023-03-16 1ab29b3567574a721bd37d5ff9d7e9db386272d6
pages/customer-page/addTo-freightForwarder-driver/addTo-freightForwarder-driver.vue
@@ -65,14 +65,16 @@
      // 邀请货代
      bindHuoDai() {   
         // this.$reqPost('bindHuoDai', { customerId: this.customerId, name: this.name, phone: this.phone }, 'params').then(res => {
         this.$reqPost('bindHuoDai', { name: this.name, phone: this.phone }).then(res => {
         this.$reqPost('bindHuoDai', { name: this.name, phone: this.phone }, 'params').then(res => {
            if (res.code == 0) {
               this.$u.toast(res.msg ? res.msg : res.data);
               this.$u.toast('添加成功');
               setTimeout(() => {
                  uni.navigateBack({
                     delta: 1
                  });
               }, 1000);
            } else {
               this.$u.toast(res.msg ? res.msg : '未成功添加');
            }
            console.log('邀请货代', res);
         });