This commit is contained in:
唐明明
2021-11-01 17:25:15 +08:00
5 changed files with 68 additions and 28 deletions

View File

@@ -211,7 +211,7 @@
"name": "userPartner", "name": "userPartner",
"auth": true, "auth": true,
"style": { "style": {
"navigationBarTitleText": "我的伙伴" "navigationBarTitleText": "我的粉丝"
} }
}, { }, {
"path": "pages/user/clause", "path": "pages/user/clause",

View File

@@ -154,19 +154,19 @@
<!-- 我的伙伴 --> <!-- 我的伙伴 -->
<view class="userPartner"> <view class="userPartner">
<view class="partner-title"> <view class="partner-title">
我的伙伴 我的粉丝
</view> </view>
<view class="partner-list" v-if="userData.relation_count"> <view class="partner-list" v-if="userData.relation_count">
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:''}})"> <view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:''}})">
<view class="partner-label-name">伙伴总数</view> <view class="partner-label-name">粉丝总数</view>
<view class="partner-label-number">{{userData.relation_count.all || 0}}</view> <view class="partner-label-number">{{userData.relation_count.all || 0}}</view>
</view> </view>
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:1}})"> <view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:1}})">
<view class="partner-label-name">直接伙伴</view> <view class="partner-label-name">直接粉丝</view>
<view class="partner-label-number">{{userData.relation_count.one || 0}}</view> <view class="partner-label-number">{{userData.relation_count.one || 0}}</view>
</view> </view>
<view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:2}})"> <view class="partner-label" @click="$Router.push({name: 'userPartner', params:{larer:2}})">
<view class="partner-label-name">间接伙伴</view> <view class="partner-label-name">间接粉丝</view>
<view class="partner-label-number">{{userData.relation_count.two || 0}}</view> <view class="partner-label-number">{{userData.relation_count.two || 0}}</view>
</view> </view>
</view> </view>
@@ -362,24 +362,24 @@
methods: { methods: {
// 开通VIP // 开通VIP
openVip(identityId) { openVip(identityId) {
if (!this.userData.certification) { // if (!this.userData.certification) {
uni.showModal({ // uni.showModal({
title: '提示', // title: '提示',
content: '为了保障您的用户权益,未个人认证无法开通节点', // content: '为了保障您的用户权益,未个人认证无法开通节点',
cancelColor: '#555', // cancelColor: '#555',
cancelText: '稍后开通', // cancelText: '稍后开通',
confirmColor: '#8b64fd', // confirmColor: '#8b64fd',
confirmText: '去认证', // confirmText: '去认证',
success: res => { // success: res => {
if (res.confirm) { // if (res.confirm) {
this.$Router.push({ // this.$Router.push({
name: 'Personal' // name: 'Personal'
}) // })
} // }
} // }
}) // })
return // return
} // }
this.$Router.push({ this.$Router.push({
name: 'vipIndex', name: 'vipIndex',
params: { params: {

View File

@@ -106,6 +106,9 @@
.tabs{ .tabs{
position: fixed; position: fixed;
top: 0; top: 0;
//#ifdef H5
top:100rpx;
//#endif
left: 0; left: 0;
right: 0; right: 0;
z-index: 99; z-index: 99;

View File

@@ -45,7 +45,8 @@
card: '', // 银行卡号 card: '', // 银行卡号
withdraw_input: '', // 提现通证数量 withdraw_input: '', // 提现通证数量
bank_accounts: 0, bank_accounts: 0,
bankInfo: {} bankInfo: {},
certification:false,//默认没有认证
}; };
}, },
onLoad() { onLoad() {
@@ -65,6 +66,7 @@
this.balance = res.balance this.balance = res.balance
this.cost = res.cost this.cost = res.cost
this.total = Number(res.balance) * Number(res.cost) this.total = Number(res.balance) * Number(res.cost)
this.certification = res.certification
uni.setStorageSync('refresh', false) uni.setStorageSync('refresh', false)
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({
@@ -125,6 +127,24 @@
}) })
return; return;
} }
if (!this.certification) {
uni.showModal({
title: '提示',
content: '为了保障您的用户权益,未个人认证无法提现通证',
cancelColor: '#555',
cancelText: '稍后认证',
confirmColor: '#8b64fd',
confirmText: '立即认证',
success: res => {
if (res.confirm) {
this.$Router.push({
name: 'Personal'
})
}
}
})
return
}
uni.showModal({ uni.showModal({
title: '温馨提示', title: '温馨提示',
content:'您是否确认提现到现金红包账户,交易将免手续费', content:'您是否确认提现到现金红包账户,交易将免手续费',

View File

@@ -51,7 +51,8 @@
card: '', // 银行卡号 card: '', // 银行卡号
withdraw_input: '', // 提现通证金额 withdraw_input: '', // 提现通证金额
bank_accounts: 0, bank_accounts: 0,
bankInfo: {} bankInfo: {},
certification:false,// 认证状态
}; };
}, },
onLoad() { onLoad() {
@@ -73,6 +74,7 @@
this.bank_accounts = res.bank_accounts.length this.bank_accounts = res.bank_accounts.length
this.withdraw_input = Number(res.balance) this.withdraw_input = Number(res.balance)
this.total = Number(res.balance) * Number(res.cost) this.total = Number(res.balance) * Number(res.cost)
this.certification = res.certification
uni.setStorageSync('refresh', false) uni.setStorageSync('refresh', false)
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({
@@ -105,10 +107,7 @@
this.withdraw_input = this.balance this.withdraw_input = this.balance
this.total = this.balance * this.cost this.total = this.balance * this.cost
} }
} }
}, },
// 点击全部 // 点击全部
all() { all() {
@@ -144,6 +143,24 @@
}) })
return; return;
} }
if (!this.certification) {
uni.showModal({
title: '提示',
content: '为了保障您的用户权益未个人认证无法提现红包',
cancelColor: '#555',
cancelText: '稍后认证',
confirmColor: '#8b64fd',
confirmText: '立即认证',
success: res => {
if (res.confirm) {
this.$Router.push({
name: 'Personal'
})
}
}
})
return
}
uni.showModal({ uni.showModal({
title: '温馨提示', title: '温馨提示',
content:this.tax === '0'?'您是否确认提现交易将免手续费':'您是否确认提现将会扣除' + this.tax + '%手续费', content:this.tax === '0'?'您是否确认提现交易将免手续费':'您是否确认提现将会扣除' + this.tax + '%手续费',