我的 优化

This commit is contained in:
donqi 2022-12-12 01:22:47 +08:00
parent 02c8760497
commit 6cc1c3c754
2 changed files with 389 additions and 380 deletions

View File

@ -1,10 +1,11 @@
<template> <template>
<view> <view>
<!-- 顶部头像栏 --> <!-- 顶部头像栏 -->
<view class="padding bg-gradual-color" :style="'padding-top: ' + pageContentTop + 'px; padding-bottom: 100rpx;'"> <view class="padding bg-gradual-color"
:style="'padding-top: ' + pageContentTop + 'px; padding-bottom: 100rpx;'">
<view class="flex justify-start padding-bottom-xl"> <view class="flex justify-start padding-bottom-xl">
<view class="cu-avatar round" <view class="cu-avatar round"
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.customerLogoUrl + ');'" :style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.customerLogoUrl + ');'"
@click="getWxUserBasicInfo"></view> @click="getWxUserBasicInfo"></view>
<view class="margin-lr-sm"> <view class="margin-lr-sm">
<view class="text-xl margin-bottom-xs" @click="getWxUserBasicInfo">{{curUserInfo.name}}</view> <view class="text-xl margin-bottom-xs" @click="getWxUserBasicInfo">{{curUserInfo.name}}</view>
@ -63,400 +64,408 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="bg-white padding-lr padding-bottom"> <view class="bg-white padding-lr padding-bottom">
<!-- 服务订单 --> <!-- 服务订单 -->
<view class="cu-bar solid-bottom margin-top-sm"> <view class="cu-bar solid-bottom margin-top-sm">
<view class="action bar-first-action"> <view class="action bar-first-action">
<text class="cuIcon-titles text-main-color"></text> 服务订单 <text class="cuIcon-titles text-main-color"></text> 服务订单
</view> </view>
<view @click="showMyOrders(servOrderTabList, 0, servOrderType)"> <view @click="showMyOrders(servOrderTabList, 0, servOrderType)">
<text>全部</text> <text>全部</text>
<text class="cuIcon-right"></text> <text class="cuIcon-right"></text>
</view> </view>
</view> </view>
<view class="cu-list grid no-border col-5"> <view class="cu-list grid no-border col-5">
<view class="cu-item" @click="showMyOrders(servOrderTabList, 0, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 0, servOrderType)">
<view class="cuIcon-news"> <view class="cuIcon-news">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Pay > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Pay > 0">
<block>{{myInfo.serOrderNum.wait2Pay}}</block> <block>{{myInfo.serOrderNum.wait2Pay}}</block>
</view> </view>
</view> </view>
<text>待付款</text> <text>待付款</text>
</view> </view>
<!-- <view class="cu-item" @click="showMyOrders(servOrderTabList, 1, servOrderType)"> <!-- <view class="cu-item" @click="showMyOrders(servOrderTabList, 1, servOrderType)">
<view class="cuIcon-list"> <view class="cuIcon-list">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Serv > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Serv > 0">
<block>{{myInfo.serOrderNum.wait2Serv}}</block> <block>{{myInfo.serOrderNum.wait2Serv}}</block>
</view> </view>
</view> </view>
<text>待接单</text> <text>待接单</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(servOrderTabList, 2, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 2, servOrderType)">
<view class="cuIcon-calendar"> <view class="cuIcon-calendar">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Serv > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Serv > 0">
<block>{{myInfo.serOrderNum.wait2Serv}}</block> <block>{{myInfo.serOrderNum.wait2Serv}}</block>
</view> </view>
</view> </view>
<text>待排期</text> <text>待排期</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)">
<view class="cuIcon-repair"> <view class="cuIcon-repair">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.processing > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.processing > 0">
<block>{{myInfo.serOrderNum.processing}}</block> <block>{{myInfo.serOrderNum.processing}}</block>
</view> </view>
</view> </view>
<text>待上门</text> <text>待上门</text>
</view> --> </view> -->
<view class="cu-item" @click="showMyOrders(servOrderTabList, 1, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 1, servOrderType)">
<view class="cuIcon-repair"> <view class="cuIcon-repair">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.processing > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.processing > 0">
<block>{{myInfo.serOrderNum.processing}}</block> <block>{{myInfo.serOrderNum.processing}}</block>
</view> </view>
</view> </view>
<text>待服务</text> <text>待服务</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(servOrderTabList, 2, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 2, servOrderType)">
<view class="cuIcon-comment"> <view class="cuIcon-comment">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0">
<block>{{myInfo.serOrderNum.afterServ}}</block> <block>{{myInfo.serOrderNum.afterServ}}</block>
</view> </view>
</view> </view>
<text>进行中</text> <text>进行中</text>
</view> </view>
<!-- <view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)"> <!-- <view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)">
<view class="cuIcon-notice"> <view class="cuIcon-notice">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0">
<block>{{myInfo.serOrderNum.afterServ}}</block> <block>{{myInfo.serOrderNum.afterServ}}</block>
</view> </view>
</view> </view>
<text>确认中</text> <text>确认中</text>
</view> --> </view> -->
<view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 3, servOrderType)">
<view class="cuIcon-service"> <view class="cuIcon-service">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0">
<block>{{myInfo.serOrderNum.afterServ}}</block> <block>{{myInfo.serOrderNum.afterServ}}</block>
</view> </view>
</view> </view>
<text>售后中</text> <text>售后中</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(servOrderTabList, 4, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 4, servOrderType)">
<view class="cuIcon-forward"> <view class="cuIcon-forward">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Forward > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Forward > 0">
<block>{{myInfo.serOrderNum.wait2Forward}}</block> <block>{{myInfo.serOrderNum.wait2Forward}}</block>
</view> </view>
</view> </view>
<text>已完成</text> <text>已完成</text>
</view> </view>
</view> </view>
<!-- 商品订单 --> <!-- 商品订单 -->
<!-- <view class="cu-bar solid-bottom"> <!-- <view class="cu-bar solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<text class="cuIcon-titles text-main-color"></text> 商品订单 <text class="cuIcon-titles text-main-color"></text> 商品订单
</view> </view>
<view @click="showMyOrders(productOrderTabList, 0, productOrderType)"> <view @click="showMyOrders(productOrderTabList, 0, productOrderType)">
<text>全部</text> <text>全部</text>
<text class="cuIcon-right"></text> <text class="cuIcon-right"></text>
</view> </view>
</view> </view>
<view class="cu-list grid no-border col-5"> <view class="cu-list grid no-border col-5">
<view class="cu-item" @click="showMyOrders(productOrderTabList, 0, productOrderType)"> <view class="cu-item" @click="showMyOrders(productOrderTabList, 0, productOrderType)">
<view class="cuIcon-news"> <view class="cuIcon-news">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Pay > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Pay > 0">
<block>{{myInfo.serOrderNum.wait2Pay}}</block> <block>{{myInfo.serOrderNum.wait2Pay}}</block>
</view> </view>
</view> </view>
<text>待付款</text> <text>待付款</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(productOrderTabList, 1, productOrderType)"> <view class="cu-item" @click="showMyOrders(productOrderTabList, 1, productOrderType)">
<view class="cuIcon-goodsfavor"> <view class="cuIcon-goodsfavor">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.buy> 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.buy> 0">
<block>{{myInfo.serOrderNum.buy}}</block> <block>{{myInfo.serOrderNum.buy}}</block>
</view> </view>
</view> </view>
<text>买到的</text> <text>买到的</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(productOrderTabList, 2, productOrderType)"> <view class="cu-item" @click="showMyOrders(productOrderTabList, 2, productOrderType)">
<view class="cuIcon-goodsnew"> <view class="cuIcon-goodsnew">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.sale > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.sale > 0">
<block>{{myInfo.serOrderNum.sale}}</block> <block>{{myInfo.serOrderNum.sale}}</block>
</view> </view>
</view> </view>
<text>卖出的</text> <text>卖出的</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(productOrderTabList, 3, productOrderType)"> <view class="cu-item" @click="showMyOrders(productOrderTabList, 3, productOrderType)">
<view class="cuIcon-comment"> <view class="cuIcon-comment">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.afterServ > 0">
<block>{{myInfo.serOrderNum.afterServ}}</block> <block>{{myInfo.serOrderNum.afterServ}}</block>
</view> </view>
</view> </view>
<text>售后中</text> <text>售后中</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(productOrderTabList, 4, productOrderType)"> <view class="cu-item" @click="showMyOrders(productOrderTabList, 4, productOrderType)">
<view class="cuIcon-forward"> <view class="cuIcon-forward">
<view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Forward > 0"> <view class="cu-tag badge" v-if="myInfo.serOrderNum.wait2Forward > 0">
<block>{{myInfo.serOrderNum.wait2Forward}}</block> <block>{{myInfo.serOrderNum.wait2Forward}}</block>
</view> </view>
</view> </view>
<text>待转发</text> <text>待转发</text>
</view> </view>
</view> --> </view> -->
</view> </view>
<!-- 所有功能 --> <!-- 所有功能 -->
<view class="bg-white padding-lr padding-bottom"> <view class="bg-white padding-lr padding-bottom">
<view class="cu-bar margin-top-sm solid-bottom"> <view class="cu-bar margin-top-sm solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<view class="cuIcon-titles text-main-color"></view> <view class="cuIcon-titles text-main-color"></view>
<text>所有功能</text> <text>所有功能</text>
</view> </view>
</view> </view>
<view class="cu-list grid no-border col-4"> <view class="cu-list grid no-border col-4">
<!-- <view class="cu-item" @click="showPage(null)"> <!-- <view class="cu-item" @click="showPage(null)">
<view class="cuIcon-wefill text-red"></view> <view class="cuIcon-wefill text-red"></view>
<text>我的发布</text> <text>我的发布</text>
</view> --> </view> -->
<view class="cu-item" @click="showMyAddress"> <view class="cu-item" @click="showMyAddress">
<view class="cuIcon-locationfill text-orange"></view> <view class="cuIcon-locationfill text-orange"></view>
<text>地址管理</text> <text>地址管理</text>
</view> </view>
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-questionfill text-yellow"></view> <view class="cuIcon-questionfill text-yellow"></view>
<text>常见问题</text> <text>常见问题</text>
</view> --> </view> -->
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-servicefill text-olive"></view> <view class="cuIcon-servicefill text-olive"></view>
<text>联系客服</text> <text>联系客服</text>
</view> --> </view> -->
<view class="cu-item" @click="showAppInviteQrcode"> <view class="cu-item" @click="showAppInviteQrcode">
<view class="cuIcon-qr_code text-green"></view> <view class="cuIcon-qr_code text-green"></view>
<text>二维码分享</text> <text>二维码分享</text>
</view> </view>
<view class="cu-item" v-if="curUserInfo.placeStatus == 2" @click="showPage('/pages/my/withdraw')"> <view class="cu-item" v-if="curUserInfo.placeStatus == 2" @click="showPage('/pages/my/withdraw')">
<view class="cuIcon-moneybagfill text-cyan"></view> <view class="cuIcon-moneybagfill text-cyan"></view>
<text>钱包</text> <text>钱包</text>
</view> </view>
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-friendaddfill text-blue"></view> <view class="cuIcon-friendaddfill text-blue"></view>
<text>加盟项目</text> <text>加盟项目</text>
</view> --> </view> -->
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-group_fill text-purple"></view> <view class="cuIcon-group_fill text-purple"></view>
<text>社区代理</text> <text>社区代理</text>
</view> --> </view> -->
</view> </view>
</view> </view>
<!-- 后台入口 --> <!-- 后台入口 -->
<view class="bg-white padding-lr padding-bottom"> <view class="bg-white padding-lr padding-bottom">
<view class="cu-bar margin-top-sm solid-bottom"> <view class="cu-bar margin-top-sm solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<view class="cuIcon-titles text-main-color"></view> <view class="cuIcon-titles text-main-color"></view>
<text>后台入口</text> <text>后台入口</text>
</view> </view>
</view> </view>
<view class="cu-list grid no-border col-4"> <view class="cu-list grid no-border col-4">
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-brandfill text-mauve"></view> <view class="cuIcon-brandfill text-mauve"></view>
<text>商家注册</text> <text>商家注册</text>
</view> --> </view> -->
<view class="cu-item" @click="showApplyOperator"> <view class="cu-item" @click="showApplyOperator">
<view class="cuIcon-wenzi text-pink"></view> <view class="cuIcon-wenzi text-pink"></view>
<text>运营商申请</text> <text>{{curUserInfo.placeStatus == 0 ? '运营商申请' : '运营商登录'}}</text>
</view> </view>
<!-- <view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-searchlist text-brown"></view> <view class="cuIcon-searchlist text-brown"></view>
<text>后台数据</text> <text>后台数据</text>
</view> --> </view> -->
</view> </view>
</view> </view>
</view> </view>
<!-- app二维码分享 --> <!-- app二维码分享 -->
<view class="cu-modal" :class="appShareQrcodeModal?'show':''"> <view class="cu-modal" :class="appShareQrcodeModal?'show':''">
<view class="cu-dialog bg-white"> <view class="cu-dialog bg-white">
<view class="cu-bar bg-white justify-end"> <view class="cu-bar bg-white justify-end">
<view class="content">小程序邀请二维码</view> <view class="content">小程序邀请二维码</view>
<view class="action" @click="hideModal" data-modal="appShareQrcodeModal"> <view class="action" @click="hideModal" data-modal="appShareQrcodeModal">
<text class="cuIcon-close text-red"></text> <text class="cuIcon-close text-red"></text>
</view> </view>
</view> </view>
<view class="padding-tb-sm"> <view class="padding-tb-sm">
<image :src="'data:image/png;base64,' + appQrcode" mode="aspectFit"></image> <image :src="'data:image/png;base64,' + appQrcode" mode="aspectFit" @click="viewImage('data:image/png;base64,' + appQrcode)">
</view> </image>
<view class="text-center padding"> </view>
<view class="padding-bottom-sm text-lg">请通过扫码或分享链接给好友进行邀请</view> <view class="text-center padding">
<button class="cu-btn bg-main-color shadow-blur" open-type="share"> <view class="padding-bottom-sm text-lg">请通过扫码或分享链接给好友进行邀请</view>
<text class="cuIcon-share"></text> <button class="cu-btn bg-main-color shadow-blur" open-type="share">
<text>分享链接给好友</text> <text class="cuIcon-share"></text>
</button> <text>分享链接给好友</text>
</view> </button>
</view> </view>
</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
// import appInviteQrcode from '@/pages/my/app-invite-qrcode.vue'; // import appInviteQrcode from '@/pages/my/app-invite-qrcode.vue';
export default { export default {
name: 'personal-center', name: 'personal-center',
// components: { // components: {
// appInviteQrcode // appInviteQrcode
// }, // },
data() { data() {
return { return {
pageContentTop: this.CustomBar, pageContentTop: this.CustomBar,
curUserInfo: {}, curUserInfo: {},
myInfo: {}, myInfo: {},
servOrderTabList: [{ servOrderTabList: [{
// type: -1, // type: -1,
name: '待付款' name: '待付款'
}, },
// { // {
// type: 0, // type: 0,
// name: '' // name: ''
// }, { // }, {
// type: 1, // type: 1,
// name: '' // name: ''
// }, { // }, {
// type: 2, // type: 2,
// name: '' // name: ''
// }, // },
{ {
type: '0,1,2', type: '0,1,2',
name: '待服务' name: '待服务'
}, { }, {
type: '3,4', type: '3,4',
name: '服务中' name: '服务中'
}, },
// { // {
// type: 4, // type: 4,
// name: '' // name: ''
// }, // },
{ {
// type: 4, // type: 4,
name: '售后中' name: '售后中'
}, { }, {
type: 5, type: 5,
name: '已完成' name: '已完成'
}], }
servOrderType: 0, ],
productOrderTabList: [{ servOrderType: 0,
// type: -1, productOrderTabList: [{
name: '待付款' // type: -1,
}, { name: '待付款'
type: -1, }, {
name: '买到的' type: -1,
}, { name: '买到的'
type: -1, }, {
name: '卖出的' type: -1,
}, { name: '卖出的'
type: -1, }, {
name: '售后中' type: -1,
}, { name: '售后中'
type: -1, }, {
name: '已完成' type: -1,
}], name: '已完成'
productOrderType: 1, }],
productOrderType: 1,
appQrcode: '',
appQrcode: '',
appShareQrcodeModal: false appShareQrcodeModal: false
} }
}, },
onShow() { onShow() {
this.loadData(); this.loadData();
}, },
onReady() { onReady() {
this.loadData(); this.loadData();
}, },
methods: { methods: {
async loadData() { async loadData() {
await this.$request.refreshCurUserCache(); await this.$request.refreshCurUserCache();
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
this.myInfo = await this.$api.data('myInfo'); this.myInfo = await this.$api.data('myInfo');
}, },
getWxUserBasicInfo() { getWxUserBasicInfo() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/edit-user-basic-info' url: '/pages/my/edit-user-basic-info'
}) })
}, },
showMyOrders(tabHeaderList, tabCur, orderType) { viewImage(url) {
let tabInfo = { uni.previewImage({
orderType: orderType, urls: [url],
tabHeaderList: tabHeaderList, current: url
tabCur: tabCur });
} },
uni.navigateTo({ showMyOrders(tabHeaderList, tabCur, orderType) {
url: '/pages/my/my-order?tabInfo=' + encodeURIComponent(JSON.stringify(tabInfo)) let tabInfo = {
}) orderType: orderType,
tabHeaderList: tabHeaderList,
tabCur: tabCur
}
uni.navigateTo({
url: '/pages/my/my-order?tabInfo=' + encodeURIComponent(JSON.stringify(tabInfo))
})
}, },
encryptString(str) { encryptString(str) {
str = str[0] + "**" + str[str.length - 1]; str = str[0] + "**" + str[str.length - 1];
return str; return str;
}, },
showCart() { showCart() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-cart' url: '/pages/my/my-cart'
}); });
}, },
showMyAddress() { showMyAddress() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-address' url: '/pages/my/my-address'
}); });
}, },
async showApplyOperator() { async showApplyOperator() {
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
// //
if (this.curUserInfo.placeStatus == 0) { if (this.curUserInfo.placeStatus == 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/apply-operator' url: '/pages/my/apply-operator'
}) })
} else if (this.curUserInfo.placeStatus == 1) { } else if (this.curUserInfo.placeStatus == 1) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '申请审核中' title: '申请审核中'
}) })
} else if (this.curUserInfo.placeStatus == 2) { } else if (this.curUserInfo.placeStatus == 2) {
// //
let res = await this.$request.getBindBankCardByCustomerId({ let res = await this.$request.getBindBankCardByCustomerId({
customerId: this.curUserInfo.customerId customerId: this.curUserInfo.customerId
}) })
let bindBankCardInfo = res.data; let bindBankCardInfo = res.data;
if (bindBankCardInfo && bindBankCardInfo.bankNum) { if (bindBankCardInfo && bindBankCardInfo.bankNum) {
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-operator' url: '/pages/my/my-operator'
}) })
} else { } else {
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/withdraw' url: '/pages/my/withdraw'
}) })
} }
} }
}, },
async showAppInviteQrcode() { async showAppInviteQrcode() {
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
let res = await this.$request.getUnlimitedWxacode({ let res = await this.$request.getUnlimitedWxacode({
scene: "distributor=" + this.curUserInfo.customerId, scene: "distributor=" + this.curUserInfo.customerId,
//FIXME: //FIXME:
env_version: 'trial' env_version: 'trial'
}); });
this.appQrcode = res.data; this.appQrcode = res.data;
this.appShareQrcodeModal = true; this.appShareQrcodeModal = true;
}, },
showPage(pageUrl) { showPage(pageUrl) {
if (pageUrl) { if (pageUrl) {
uni.navigateTo({ uni.navigateTo({
url: pageUrl url: pageUrl
}) })
} else { } else {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '功能开发中' title: '功能开发中'
}) })
} }
}, },
hideModal(e) { hideModal(e) {
this[e.currentTarget.dataset.modal] = false; this[e.currentTarget.dataset.modal] = false;
} }
} }
} }
@ -483,11 +492,11 @@
.paper-drawer-bar { .paper-drawer-bar {
position: relative; position: relative;
top: -100rpx; top: -100rpx;
} }
.bar-first-action { .bar-first-action {
margin-left: unset !important; margin-left: unset !important;
font-size: 30rpx !important; font-size: 30rpx !important;
} }
.serv-news .cu-avatar { .serv-news .cu-avatar {

View File

@ -3,7 +3,7 @@
<!-- 顶部操作条 --> <!-- 顶部操作条 -->
<cu-custom :bgColor="'bg-main-color'" :isBack="true"> <cu-custom :bgColor="'bg-main-color'" :isBack="true">
<block slot="backText">返回</block> <block slot="backText">返回</block>
<block slot="content">查看团队{{totalMembers}}</block> <block slot="content">查看{{placeStatus == '2' ? '团队' : '客户'}}{{totalMembers}}</block>
</cu-custom> </cu-custom>
<!-- 团队成员信息 --> <!-- 团队成员信息 -->
<view class="margin-top-sm margin-lr-sm padding bg-white name-card shadow-warp" <view class="margin-top-sm margin-lr-sm padding bg-white name-card shadow-warp"
@ -16,7 +16,7 @@
<view class="margin-left-sm flex-column-around"> <view class="margin-left-sm flex-column-around">
<view class="text-black text-xl">{{member.name}}</view> <view class="text-black text-xl">{{member.name}}</view>
<view class=""> <view class="">
<text class="margin-right-xs">角色合伙人</text> <text class="margin-right-xs">角色{{placeStatus == '2' ? '合伙人' : '消费者'}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -79,7 +79,7 @@
methods: { methods: {
async loadData(option) { async loadData(option) {
if (option && option.placeStatus != undefined) { if (option && option.placeStatus != undefined) {
this.placeStatus = this.option.placeStatus this.placeStatus = option.placeStatus
} }
this.curUserInfo = this.$request.getCurUserInfo(); this.curUserInfo = this.$request.getCurUserInfo();
this.resetData(); this.resetData();