自由服务包调整,团队调整,新增业务联系人

This commit is contained in:
唐明明
2024-03-29 15:03:54 +08:00
parent 17cc2aaeab
commit 994ba4eb72
6 changed files with 89 additions and 31 deletions

View File

@@ -58,7 +58,7 @@
<view class="border-solid-empty"></view>
<view class="nav-flex" @click="onNav('UserTeam')">
<view class="nav-icon">
<image class="nav-icon-src" src="@/static/icons/user_nav_02.png"></image>我的客户
<image class="nav-icon-src" src="@/static/icons/user_nav_02.png"></image>我的团队
</view>
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
</view>
@@ -87,12 +87,18 @@
</view>
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
</view>
<view class="nav-flex" @click="onParent">
<view class="nav-flex" @click="onParent('parent')">
<view class="nav-icon">
<image class="nav-icon-src" src="@/static/icons/user_nav_07.png"></image>推荐人
</view>
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
</view>
</view>
<view class="nav-flex" @click="onParent('salesman')">
<view class="nav-icon">
<image class="nav-icon-src" src="@/static/icons/user_nav_10.png"></image>业务联系人
</view>
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
</view>
<view class="nav-flex" @click="onNav('WeChat')">
<view class="nav-icon">
<image class="nav-icon-src" src="@/static/icons/user_nav_06.png"></image>关注公众号
@@ -234,7 +240,8 @@
reckonerURL : '',
reckonerQrcode : '',
reckonerInvite : '',
reckonerPoster : {}
reckonerPoster : {},
salesman : '', // 业务联系人
};
},
onShow() {
@@ -402,13 +409,15 @@
uni.showLoading({
title: '加载中...'
})
info().then(res => {
info().then(res => {
console.log(res)
let {
nickname,
identity,
avatar,
certification,
parent,team_name,teams
parent,team_name,teams,
salesman
} = res
this.nickname = nickname
this.identity = identity
@@ -416,6 +425,7 @@
this.certification = certification
this.parent = parent
this.team_name = team_name
this.salesman = salesman
uni.hideLoading()
// team_status:'', // 状态 0 不展示运营中心 1可以申请但是没有完善2申请完审核中3已通过已修改
this.team_status = teams.center.status // 运营中心状态
@@ -477,26 +487,28 @@
this.$Router.push({name})
},
// 推荐关系
onParent() {
onParent(type) {
if(!this.isAuth){
this.$Router.push({
name: 'Auth'
})
return
}
if (this.parent == '') {
}
let phone = type == 'parent' ? this.parent.username : this.salesman.username
let name = type == 'parent' ? this.parent.nickname : this.salesman.nickname
if (type == 'parent' && this.parent == '') {
this.showBind = true
return
}
uni.showModal({
title: '我的推荐人',
content: this.parent.nickname,
confirmText: '关闭',
cancelText: '联系TA',
title : type == 'parent' ? '我的推荐人': '我的业务联系人',
content : name + '['+ phone +']',
confirmText : '关闭',
cancelText : '联系TA',
success: modalRes => {
if (modalRes.cancel) {
uni.makePhoneCall({
phoneNumber: this.parent.username
phoneNumber: phone
})
}
}