1
xuxueyang
2024-08-02 c1f6996b25ddec9f576d380471b842b44a7f1545
pages/user/supplier-user.vue
@@ -199,19 +199,19 @@
               <uni-icons type="right"></uni-icons>
            </view>
         </view>
         <view class="user-util m-t-12 flex" @click="goto('/pages/user/user-pwd/user-pwd',true)">
            <view class="title">修改密码</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
            </view>
         </view>
         <view class="user-util m-t-12 flex" v-if="currentInfo&&currentInfo.id"
            @click="goto('/pages/user/user-bind-wx/user-bind-wx',true)">
            <view class="title">绑定当前微信</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
            </view>
         </view>
         <view class="user-util m-t-12 flex" v-if="currentInfo&&currentInfo.id"
            @click="goto('/pages/user/user-bind-wx/user-bind-wx',true)">
            <view class="title">绑定当前微信</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
            </view>
         </view>
         <view class="user-util m-t-12 flex" v-if="selftype==='customer'" @click="clearlogout">
            <view class="title">退出登录</view>
@@ -222,20 +222,18 @@
         <view class="user-util m-t-12 " v-if="selftype==='supplier'||selftype==='customer' || !selftype">
            <view class="title">我的客服</view>
            <view class="flex flex-wrap-normal" >
               <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
                <!-- @click="callTel" -->
                <button open-type="contact"
                class="component-button-contact"
                 @handleContact="handleContact">
                   <view class="name">
                      客服电话 : &nbsp;&nbsp; <span class="topic-gray">{{ tel }}</span>
                   </view>
                   <view class="right-icon" >
                      <uni-icons type="right"></uni-icons>
                   </view>
                </button>
            <view class="flex flex-wrap-normal">
               <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
               <!-- @click="callTel" -->
               <button open-type="contact" class="component-button-contact" @handleContact="handleContact">
                  <view class="name">
                     客服电话 : &nbsp;&nbsp; <span class="topic-gray">{{ tel }}</span>
                  </view>
                  <view class="right-icon">
                     <uni-icons type="right"></uni-icons>
                  </view>
               </button>
            </view>
         </view>
         <!--          <view class="user-util m-t-12 " @click="callTel" v-if="selftype==='partner'">
@@ -370,20 +368,25 @@
                           data
                        } = await that.$http.request('post', '/api/customer/bind/partner', {
                           data: {
                              partnerId: partnerId
                              partnerUserId: partnerId
                           }
                        })
                        that.$message.hideLoading()
                        if (code == 0) {
                           that.$message.showToast(`绑定合伙人${partnerName}成功`)
                           await this.$store.dispatch('getCurrentInfo')
                           await that.$store.dispatch('getCurrentInfo')
                           // setTimeout(async () => {
                           //    that.$message.showLoading()
                           //    that.$message.hideLoading()
                           // }, 1000)
                        }
                     } else {
                        that.$message.showToast('二维码格式不正确扫码失败')
                     }
                  } catch (e) {
                     that.$message.showToast('二维码格式不正确扫码失败')
                     that.$message.showToast('二维码扫码错误')
                  }
               },
               fail() {