大区运营中心功能增加

This commit is contained in:
2023-02-23 16:03:00 +08:00
parent c1ff22c01c
commit adca841407
5 changed files with 122 additions and 51 deletions

View File

@@ -10,10 +10,10 @@
<u-icon @click='yunyingShow = true,yunying_name = team_name' name="edit-pen-fill" class='pen'
color="#eee" size="34rpx" bold />
</view>
<view class="total-text nowrap">法务运营中心</view>
<view class="total-text nowrap">{{defaultTitle}}</view>
</view>
</view>
<view class="total-item-2">
<view class="total-item-2" v-if="teamtype == 'team'">
<view> 团队人数 :<span>{{users_count}}</span></view>
<view> 总业绩 :<span>{{all_perf}}</span></view>
</view>
@@ -69,13 +69,13 @@
<u-popup :show="yunyingShow" mode="center" @close="yunyingShow = false" :round="22">
<view class="yunying">
<view class="yunying_title">
<view class="title"> 修改法务运营中心 </view>
<view class="title"> 修改{{defaultTitle}} </view>
<image class="yunying_bg" src="/static/icons/yunying_bg.png" mode="widthFix" />
</view>
<view class="rz-item">
<input type="text" maxlength="4" v-model='yunying_name' placeholder-class="inputP"
placeholder="请输入名称" />
<view class="btn">法务运营中心</view>
<view class="btn">{{defaultTitle}}</view>
</view>
<view class="button" @click="sureYunYing">确认修改名称</view>
</view>
@@ -97,18 +97,7 @@
data() {
return {
type: 'edit',
tabs: [{
name: '名称修改',
value: 'edit'
}, {
name: '团队人数',
value: 'balance'
},
{
name: '总业绩',
value: 'withdraws'
},
],
tabs:[],
total: '0.00',
sended: '0.00',
frozen: '0.00',
@@ -124,21 +113,54 @@
team_name: '',
team_status: '', // 状态 1可以申请但是没有完善2申请完审核中3已通过已修改
users_count: '-',
all_perf: '-',
all_perf: '-',
teamtype:'', // team
id:'',
defaultTitle:'', // 全局名称法务运营中心,大区运营中心
};
},
onLoad(e) {
this.teamtype = e.teamtype
this.id = e.id
let title =''
if(e.teamtype == 'team'){
title='法务运营中心'
this.tabs = [{
name: '名称修改',
value: 'edit'
}, {
name: '团队人数',
value: 'balance'
},
{
name: '总业绩',
value: 'withdraws'
}
]
} else {
title='大区运营中心'
this.tabs = [{
name: '名称修改',
value: 'edit'
}]
}
this.defaultTitle =title
uni.setNavigationBarTitle({
title:title
})
},
onShow() {
this.page = {
current: 1,
has_more: false,
}
this.getList()
this.getTeam();
this.getList()
this.getTeam()
},
methods: {
// 获取运营中心基本信息
getTeam() {
getTeam().then(res => {
getTeam({identity_id:this.id}).then(res => {
this.team_name = res.name
this.users_count = res.users_count
this.all_perf = res.all_perf
@@ -150,7 +172,7 @@
sureYunYing() {
if (this.yunying_name == '' || this.yunying_name.length == 0) {
uni.showToast({
title: '请输入运营中心名称',
title: '请输入'+this.defaultTitle+'名称',
icon: 'none',
mask: true,
duration: 2000
@@ -159,12 +181,12 @@
}
submitTeamName({
name: this.yunying_name
name: this.yunying_name,identity_id:this.id
}).then(res => {
this.showBind = false
uni.showModal({
title: '微信提示',
content: '运营中心姓名修改完成,请耐心等待审核!',
content: this.defaultTitle+'姓名修改完成,请耐心等待审核!',
showCancel: false,
success: res => {
this.yunyingShow = false
@@ -197,7 +219,6 @@
},
// 获取账户余额
getList() {
// if (this.type === 'balance') this.getBalance()
// if (this.type === 'withdraws') this.getWithdraws()
if (this.type == 'edit'){
@@ -233,7 +254,7 @@
},
// 获取提现记录
getTeams() {
getTeamLogs({}).then(res => {
getTeamLogs({identity_id:this.id}).then(res => {
console.log(res)
this.list = res
this.pagesShow = false