xuxueyang
2024-07-29 d89c495a7da517d653e9ea42b8e6405eef823ef6
pages/user/supplier-user.vue
@@ -31,8 +31,11 @@
               <view class="t1">
                  {{
              (!!currentInfo.supplierDTO ? (currentInfo.supplierDTO.name) : "") || (!!currentInfo.customerDTO ? (currentInfo.customerDTO.name) : "") || currentInfo.nickName || currentInfo.loginName || '-'
            }}<span v-if="currentInfo.supplierDTO&&currentInfo.supplierDTO.status!=='P'">
            }}
                  <span v-if="currentInfo.supplierDTO&&currentInfo.supplierDTO.status!=='P'">
                     ({{ currentInfo.supplierDTO ? currentInfo.supplierDTO.statusStr : '' }})</span>
                  <span v-if="currentInfo.partnerDTO&&currentInfo.partnerDTO.status!=='P'">
                     ({{ currentInfo.partnerDTO ? currentInfo.partnerDTO.statusStr : '' }})</span>
               </view>
               <view class="t2">{{ currentInfo.tel || '暂无电话' }}</view>
            </view>
@@ -145,7 +148,8 @@
      </view>
      <!-- #endif -->
      <view class="user-utils m-20">
         <view class="user-util m-t-12 flex" @click="goto('/sub_pages/customer/customer-info/customer-info',true)">
         <view class="user-util m-t-12 flex" v-if="selftype==='customer'||!selftype"
            @click="goto('/sub_pages/customer/customer-info/customer-info',true)">
            <view class="title">个人信息</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
@@ -275,9 +279,9 @@
      //       }
      //    }
      // },
      onShow(){
         this.getTj()
      // },
      onShow() {
         this.getTj()
      },
      onLoad(options) {
         // const url = options.q ? decodeURIComponent(options.q) : '';
@@ -296,21 +300,21 @@
      methods: {
         getTj() {
            // /api/supplier/delivery   
            if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) {
               this.cacheUserId = this.currentInfo.id
               let that = this
               setTimeout(() => {
               setTimeout(() => {
                  // #ifdef PUB_CUSTOMER
                  this.$http.request('get', '/api/customer/center/tj', {}).then(res => {
                     if (res.code === 0) {
                        that.tj = res.data || {}
                     }
                  })
                  })
                  // #endif
               }, 200)
            }
         },
         async clearlogout() {