yangan
2024-04-18 87f225c95699dab8913f75710ed71fd2c3fa8236
pages/customer-page/addTo-freightForwarder-driver/addTo-freightForwarder-driver.vue
@@ -21,6 +21,10 @@
            </u-form-item>
         </u--form>
      </view>
      <view class="else-invite"
         @click="elseInvite">
         +从其他车队选择
      </view>
      <view class="addBtn"><u-button text="邀请"
            type="primary"
            @click="addToHuoDaiOrDriver"
@@ -84,11 +88,12 @@
               this.loading = false
               if (res.code == 0) {
                  this.$u.toast('添加成功');
                  uni.$emit('needRefresh')
                  setTimeout(() => {
                     uni.switchTab({
                        url: '/pages/tabbar-page/myPage-tabbar/myPage-tabbar'
                     });
                     uni.navigateBack()
                     uni.$emit('needRefresh')
                     // uni.switchTab({
                     //    url: '/pages/tabbar-page/myPage-tabbar/myPage-tabbar'
                     // });
                  }, 1000);
               } else {
                  this.$u.toast(res.msg ? res.msg : '未成功添加');
@@ -111,11 +116,12 @@
               this.loading = false
               if (res.code == 0) {
                  this.$u.toast(res.msg ? res.msg : '操作成功');
                  uni.$emit('needRefresh')
                  setTimeout(() => {
                     uni.switchTab({
                        url: '/pages/tabbar-page/myPage-tabbar/myPage-tabbar'
                     });
                     uni.navigateBack()
                     uni.$emit('needRefresh')
                     // uni.switchTab({
                     //    url: '/pages/tabbar-page/myPage-tabbar/myPage-tabbar'
                     // });
                  }, 1000)
               } else {
                  uni.showToast({
@@ -125,6 +131,11 @@
               }
            }).catch(e => {
               this.loading = false
            })
         },
         elseInvite() {
            uni.navigateTo({
               url: `/pages/public-page/selectFleet/selectFleet?fleetId=${this.fleetId}`
            })
         }
      }
@@ -141,6 +152,13 @@
         margin: 0 auto;
      }
      .else-invite {
         width: vww(150);
         margin: 0 auto;
         color: #3c9cff;
         margin-top: vww(40);
      }
      .addBtn {
         width: 90%;
         position: fixed;