From 480a7eb5fa89aa602167a7b5f42df5c6d79053b2 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 26 七月 2024 16:20:55 +0800 Subject: [PATCH] fix bug 接口对接和样式调整 --- pages/user/supplier-user.vue | 46 +++++++++++++++++++++++++--------------------- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue index 24e8762..da328c0 100644 --- a/pages/user/supplier-user.vue +++ b/pages/user/supplier-user.vue @@ -32,8 +32,9 @@ </view> <view class="t2">{{ currentInfo.tel || '暂无电话' }}</view> </view> - <view class="name" v-if="!currentInfo.id" open-type="getUserInfo" @click.stop="getUserProfile" + <view class="name" v-if="!currentInfo.id" open-type="getUserInfo" @click.stop="toCustomerLogin" style="font-size: 48rpx;margin-top: 16rpx;"> + <!-- getUserProfile --> {{ '点击登陆' }} </view> <image class="icon-setting" src="../../static/common/icon-setting.png" mode="aspectFit"></image> @@ -64,29 +65,29 @@ <view class="user-util m-t-12"> <view class="title flex"> <view class="flex1">我的订单</view> - <view class="m-r-a m-r-0 more">全部订单 + <view class="m-r-a m-r-0 more" @click="goto('/pages/order/order',true)">全部订单 <uni-icons class="" type="right" size="12"></uni-icons> </view> </view> <view class="flex order-icons-container"> - <view class="order-icons"> + <view class="order-icons" @click="goto('/pages/order/order?status=PENDING',true)"> <image src="../../static/images/customer/order/order-type-1.png" class="order-icon dfk"></image> <view>待付款</view> </view> - <view class="order-icons"> + <view class="order-icons" @click="goto('/pages/order/order?status=SEND',true)"> <image src="../../static/images/customer/order/order-type-2.png" class="order-icon dfh"></image> <view>待发货</view> </view> - <view class="order-icons"> + <view class="order-icons" @click="goto('/pages/order/order?status=RECEIVE',true)"> <image src="../../static/images/customer/order/order-type-3.png" class="order-icon dsh"></image> <view>待收货</view> </view> - <view class="order-icons"> + <view class="order-icons" @click="goto('/pages/order/order?status=EVALUATE',true)"> <image src="../../static/images/customer/order/order-type-4.png" class="order-icon dpj"></image> <view>待评价</view> </view> - <view class="order-icons"> + <view class="order-icons" @click="goto('/pages/order/order?status=COMPLETED',true)"> <image src="../../static/images/customer/order/order-type-5.png" class="order-icon sh"></image> <view>售后</view> </view> @@ -99,12 +100,12 @@ <view>我的服务</view> </view> <view class="flex service-icons-container"> - <view class="service-icons" @click="goto('/sub_pages/customer/follow/follow',true)"> + <view class="service-icons" @click="goto('/sub_pages/customer/self/follow',true)"> <image src="../../static/images/customer/service/service-icon-1.png" class="service-icon "> </image> <view>关注店铺</view> </view> - <view class="service-icons" @click="goto('/sub_pages/customer/collect/collect',true)"> + <view class="service-icons" @click="goto('/sub_pages/customer/self/collect',true)"> <image src="../../static/images/customer/service/service-icon-2.png" class="service-icon "> </image> <view>我的收藏</view> @@ -114,20 +115,20 @@ </image> <view>地址管理</view> </view> - <view class="service-icons"> + <view class="service-icons" @click.stop="$meesage.showToast('敬请期待')" > <image src="../../static/images/customer/service/service-icon-4.png" class="service-icon "> </image> <view>售后规则</view> </view> </view> - <view class="flex service-icons-container"> - <view class="service-icons"> + <view class="flex service-icons-container" > + <view class="service-icons" @click.stop="$meesage.showToast('敬请期待')" > <image src="../../static/images/customer/service/service-icon-5.png" class="t2 service-icon "> </image> <view>新手帮助</view> </view> - <view class="service-icons"> - <image src="../../static/images/customer/service/service-icon-6.png" class="t2 service-icon "> + <view class="service-icons" @click.stop="$meesage.showToast('敬请期待')" > + <image src="../../static/images/customer/service/service-icon-6.png" class="t2 service-icon "> </image> <view>运费详查</view> </view> @@ -138,7 +139,7 @@ </view> <!-- #endif --> <view class="user-utils m-20"> - <view class="user-util m-t-12 flex" @click="goto('/pages/user/user-info/user-info',true)"> + <view class="user-util m-t-12 flex" @click="goto('/sub_pages/customer/customer-info/customer-info',true)"> <view class="title">个人信息</view> <view class="right-icon"> <uni-icons type="right"></uni-icons> @@ -164,15 +165,15 @@ <uni-icons type="right"></uni-icons> </view> </view> - <view class="user-util m-t-12 " @click="callTel" + <view class="user-util m-t-12 " v-if="selftype==='supplier'||selftype==='customer' || !selftype"> <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"> + <view class="name" @click="callTel"> 客服电话 : <span class="topic-gray">{{ tel }}</span> </view> - <view class="right-icon" @click="goto('/pages/help/help',false)"> + <view class="right-icon" open-type="contact"> <uni-icons type="right"></uni-icons> </view> </view> @@ -302,9 +303,12 @@ uni.makePhoneCall({ phoneNumber: this.tel //仅为示例 }); - } - - + }, + toCustomerLogin() { + uni.navigateTo({ + url: '/pages/login/supplier-login' + }) + }, } } </script> -- Gitblit v1.9.3