From c1f6996b25ddec9f576d380471b842b44a7f1545 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 02 八月 2024 11:55:22 +0800 Subject: [PATCH] 1 --- pages/user/supplier-user.vue | 48 ++++++++++++++++++++++++++++-------------------- 1 files changed, 28 insertions(+), 20 deletions(-) diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue index e490fb8..7d2002c 100644 --- a/pages/user/supplier-user.vue +++ b/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&¤tInfo.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&¤tInfo.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,15 +222,18 @@ <view class="user-util m-t-12 " v-if="selftype==='supplier'||selftype==='customer' || !selftype"> <view class="title">我的客服</view> - <view class="flex" open-type="contact"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> - <!-- @click="callTel" --> - <view class="name"> - 客服电话 : <span class="topic-gray">{{ tel }}</span> - </view> - <view class="right-icon" > - <uni-icons type="right"></uni-icons> - </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"> + 客服电话 : <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'"> @@ -365,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() { -- Gitblit v1.9.3