From 33988b65f7818207e4cf2686cb9be46e3976958c Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 29 七月 2024 18:16:04 +0800
Subject: [PATCH] update 售后、合伙人绑定二维码
---
pages/user/supplier-user.vue | 35 ++++++++++++++++++++++++-----------
1 files changed, 24 insertions(+), 11 deletions(-)
diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue
index 99e3571..ed93c6b 100644
--- a/pages/user/supplier-user.vue
+++ b/pages/user/supplier-user.vue
@@ -30,9 +30,12 @@
<view class="name" v-if="currentInfo.id">
<view class="t1">
{{
- (!!currentInfo.supplierDTO ? (currentInfo.supplierDTO.name) : "") || (!!currentInfo.customerDTO ? (currentInfo.customerDTO.name) : "") || currentInfo.nickName || currentInfo.loginName || '-'
- }}<span v-if="currentInfo.supplierDTO&¤tInfo.supplierDTO.status!=='P'">
+ (!!currentInfo.partnerDTO ? (currentInfo.partnerDTO.name) : "") || (!!currentInfo.supplierDTO ? (currentInfo.supplierDTO.name) : "") || (!!currentInfo.customerDTO ? (currentInfo.customerDTO.name) : "") || currentInfo.nickName || currentInfo.loginName || '-'
+ }}
+ <span v-if="currentInfo.supplierDTO&¤tInfo.supplierDTO.status!=='P'">
({{ currentInfo.supplierDTO ? currentInfo.supplierDTO.statusStr : '' }})</span>
+ <span v-if="currentInfo.partnerDTO&¤tInfo.partnerDTO.status!=='P'">
+ ({{ currentInfo.partnerDTO ? currentInfo.partnerDTO.statusStr : '' }})</span>
</view>
<view class="t2">{{ currentInfo.tel || '暂无电话' }}</view>
</view>
@@ -90,7 +93,7 @@
<image src="../../static/images/customer/order/order-type-4.png" class="order-icon dpj"></image>
<view>待评价</view>
</view>
- <view class="order-icons" @click="goto('/pages/order/order?status=COMPLETED',true)">
+ <view class="order-icons" @click="goto('/pages/order/order-sale/order-sale',true)">
<image src="../../static/images/customer/order/order-type-5.png" class="order-icon sh"></image>
<view>售后</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>
@@ -158,6 +162,15 @@
<uni-icons type="right"></uni-icons>
</view>
</view>
+ <!-- #ifdef PUB_PARTNER -->
+ <view class="user-util m-t-12 flex" v-if="selftype==='partner'"
+ @click="goto('/sub_pages/partner/partner-info/partner-code',true)">
+ <view class="title">推广的注册二维码</view>
+ <view class="right-icon">
+ <uni-icons type="right"></uni-icons>
+ </view>
+ </view>
+ <!-- #endif -->
<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>
@@ -275,9 +288,9 @@
// }
// }
- // },
- onShow(){
- this.getTj()
+ // },
+ onShow() {
+ this.getTj()
},
onLoad(options) {
// const url = options.q ? decodeURIComponent(options.q) : '';
@@ -296,21 +309,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() {
--
Gitblit v1.9.3