From b07d5f16634fc4a695fa8e6f6b18c33806f2b05a Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期五, 28 六月 2024 16:28:32 +0800 Subject: [PATCH] update 合伙人的功能 --- pages/user/supplier-user.vue | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/pages/user/farmer-user.vue b/pages/user/supplier-user.vue similarity index 65% rename from pages/user/farmer-user.vue rename to pages/user/supplier-user.vue index e11343e..41ea330 100644 --- a/pages/user/farmer-user.vue +++ b/pages/user/supplier-user.vue @@ -5,7 +5,9 @@ </view> --> <!-- 背景图 --> <view class="top-bg img100 relative" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }"> - <image class="component-bg" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/21/21c95c14e9504be69edff7785e3b44a9bg.png" mode="scaleToFill" /> + <image class="component-bg" + src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/21/21c95c14e9504be69edff7785e3b44a9bg.png" + mode="scaleToFill" /> <view class="title" style="position: relative;"> 我的 @@ -18,20 +20,25 @@ <image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image> <view class="name"> - <view class="t1">{{currentInfo.nickName || '-'}}</view> + <view class="t1">{{currentInfo.nickName || currentInfo.loginName || '-'}}<span + v-if="currentInfo.supplierDTO&¤tInfo.supplierDTO.status!=='P'"> + ({{currentInfo.supplierDTO?currentInfo.supplierDTO.statusStr:''}})</span> + </view> <view class="t2">{{currentInfo.tel || '暂无电话'}}</view> </view> + <image class="icon-setting" src="../../static/common/icon-setting.png" mode="aspectFit"></image> </view> </view> <view class="user-utils m-20"> - <view class="user-util m-b-5 flex" @click="goto('/pages/user/user-info/user-info',true)"> + <view class="user-util m-t-12 flex" @click="goto('/pages/user/user-info/user-info',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" @click="goto('/sub_pages/farmer/farmer-info/farmer-info',true)"> + <view class="user-util m-t-12 flex" v-if="selftype==='supplier'" + @click="goto('/sub_pages/supplier/supplier-info/supplier-info',true)"> <view class="title">店铺信息</view> <view class="right-icon"> <uni-icons type="right"></uni-icons> @@ -43,15 +50,23 @@ <uni-icons type="right"></uni-icons> </view> </view> - <view class="user-util m-t-12 " @click="callTel"> + <view class="user-util m-t-12 " @click="callTel" v-if="selftype==='supplier'"> <view class="title">我的客服</view> <view class="flex"> <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> <view class="name"> - 客服电话: <span class="topic-gray">{{tel}}</span> + 客服电话 : <span class="topic-gray">{{tel}}</span> </view> </view> </view> +<!-- <view class="user-util m-t-12 " @click="callTel" v-if="selftype==='partner'"> + <view class="name"> + 账号: <span class="topic-gray">{{tel}}</span> + </view> + <view class="name"> + 密码: <span class="topic-gray">{{tel}}</span> + </view> + </view> --> </view> @@ -61,7 +76,7 @@ <view style="padding-bottom:200rpx"> </view> - <farmer-footer flg="1"></farmer-footer> + <supplier-footer flg="1"></supplier-footer> </view> @@ -87,6 +102,10 @@ created() { }, + async onPullDownRefresh() { + await this.$store.dispatch('getCurrentInfo') + uni.stopPullDownRefresh() + }, methods: { async clearlogout() { @@ -94,7 +113,7 @@ this.$store.commit('updateLogin', false) uni.reLaunch({ - url: '/pages/login/farmer-login' + url: '/pages/login/supplier-login' }) }, async callTel() { -- Gitblit v1.9.3