连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

106 lines
2.5 KiB

<template>
<view class="renzheng">
<view class="titlle">小贴士</view>
<view class="tips">平台提倡真实交友完成认证用户才能享受到平台各项权益</view>
<view class="item" @click="openPage(1)">手机认证<view class="btn" :class="userInfo.phoneFlag == 1?'btn-on':''">{{userInfo.phoneFlag == 1?'已认证':'未认证'}}</view></view>
<view class="item" @click="openPage(2)">实名认证<view class="btn" :class="userInfo.realnameFlag == 1?'btn-on':''">{{userInfo.realnameFlag == 1?'已认证':'未认证'}}</view></view>
<view class="item" v-if="userInfo.realnameFlag==1" @click="openPage(3)">真人认证<view class="btn" :class="userInfo.faceFlag == 1?'btn-on':''">{{userInfo.faceFlag == 1?'已认证':'未认证'}}</view></view>
</view>
</template>
<script>
export default {
data() {
return {
userInfo: {},
};
},
onShow() {
this.baseUrl = this.$baseUrl;
this.getUserInfo();
},
methods: {
async getUserInfo() {
const { code, data , msg } = await this.$api.findUserInfo({userId: uni.getStorageSync("userInfo").id});
if(code == 200){
this.userInfo = data;
}else{
uni.showToast({
title: mgs,
position: "bottom",
icon: "none",
})
}
},
openPage(index){
if(index == 1){
if(this.userInfo.phoneFlag == 1){
return ;
}
uni.navigateTo({
url: "/pages/users/renzheng/phone"
})
}else if(index == 2){
if(this.userInfo.realnameFlag == 1){
return ;
}
uni.navigateTo({
url: "/pages/users/renzheng/shiming"
})
}else if(index == 3){
if(this.userInfo.faceFlag == 1){
return ;
}
uni.navigateTo({
url: "/pages/users/renzheng/zhenren"
})
}
}
}
}
</script>
<style scoped lang="scss">
.renzheng{
padding: 25rpx;
overflow: hidden;
.title{
color: #222222;
font-weight: 500;
font-size: 30rpx;
}
.tips{
font-weight: 500;
font-size: 24rpx;
color: #999999;
margin-top: 20rpx;
}
.item{
height: 120rpx;
background: #FFFFFF;
border-radius: 20rpx;
box-sizing: border-box;
padding: 0 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 500;
font-size: 30rpx;
color: #222222;
margin-top: 20rpx;
.btn{
width: 150rpx;
line-height: 60rpx;
background: #EDEDED;
border-radius: 60rpx;
text-align: center;
font-weight: 500;
font-size: 28rpx;
color: #222222;
&-on{
background: #FAEFEF;color: #E70C0C;
}
}
}
}
</style>