Commit 83c49405 authored by Mac's avatar Mac

修改认证的问题

parent cf4a7951
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</view> </view>
</view> </view>
<!-- 头像上传的情况 4-26新加 --> <!-- 头像上传的情况 4-26新加 -->
<view class="subItemBox" v-if="item1.subType==4" style="height: 140rpx;"> <view class="subItemBox" v-if="item1.subType==4" style="height: 140rpx;justify-content: flex-start">
<view class="subName"> <view class="subName">
{{item1.name}} {{item1.name}}
<text v-if="item1.must!=undefined && item1.must" style="font-size: 12px;color: #F70027;margin-left: 3px;font-weight: normal;">*</text> <text v-if="item1.must!=undefined && item1.must" style="font-size: 12px;color: #F70027;margin-left: 3px;font-weight: normal;">*</text>
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<tabbar></tabbar> <tabbar></tabbar>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth>
<u-modal v-model="show" content="还未认证/上传身份证信息,是否去认证?" :show-cancel-button='true' @confirm='queren'></u-modal> <u-modal v-model="show" :content="showtext" :show-cancel-button='true' @confirm='queren'></u-modal>
</view> </view>
</template> </template>
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
}, },
forumList: [], forumList: [],
isAttestation:0, isAttestation:0,
isFaTie:0 isFaTie:0,
showtext:'去认证',
}; };
}, },
created() { created() {
...@@ -238,20 +239,15 @@ ...@@ -238,20 +239,15 @@
this.showAuth = true; this.showAuth = true;
} else { } else {
if(this.isAttestation == 1){//判断是否认证了 if(this.isAttestation == 1){//判断是否认证了
if(this.isFaTie == 1){ uni.navigateTo({
uni.navigateTo({ url: '/pages/blindDate/postPublishing?ForumId=' + this.msg.ForumId
url: '/pages/blindDate/postPublishing?ForumId=' + this.msg.ForumId })
}) }else if(this.isAttestation == 0){
}else{ this.show = true
uni.showToast({ this.showtext = '还未认证,是否去认证?'
title: '暂无发帖权限,联系管理员开通权利', }else if(this.isAttestation == 2){
duration: 2000,
icon:"none"
});
}
}else{
this.show = true this.show = true
this.showtext = '还未上传身份证信息,是否去认证?'
} }
} }
......
...@@ -384,7 +384,7 @@ ...@@ -384,7 +384,7 @@
</u-popup> </u-popup>
</view> </view>
<tabbar v-if='barshow==0'></tabbar> <tabbar v-if='barshow==0'></tabbar>
<u-modal v-model="rzshow" content="还未认证,是否去认证?" :show-cancel-button='true' @confirm='queren'></u-modal> <u-modal v-model="rzshow" :content="showtext" :show-cancel-button='true' @confirm='queren'></u-modal>
</div> </div>
</template> </template>
...@@ -445,7 +445,8 @@ ...@@ -445,7 +445,8 @@
is_bang:0, is_bang:0,
barshow:0, barshow:0,
IsOpenMiAi:0,//1开启 0 没开启 IsOpenMiAi:0,//1开启 0 没开启
isAttestation:0, isAttestation:0,
showtext:'去认证',
} }
}, },
created() { created() {
...@@ -875,8 +876,12 @@ ...@@ -875,8 +876,12 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/friendcircle/release' url: '/pages/friendcircle/release'
}) })
}else{ }else if(this.isAttestation == 0){
this.rzshow = true this.rzshow = true
this.showtext = '还未认证,是否去认证?'
}else if(this.isAttestation == 2){
this.rzshow = true
this.showtext = '还未上传身份证信息,是否去上传?'
} }
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<view class="renzhen" v-if="user_info.isAttestation==0 " > <view class="renzhen" v-if="user_info.isAttestation==0 " >
未认证 未认证
</view> </view>
<view class="renzhen" v-if="user_info.isAttestation==1" :style="{'border':'1px solid '+mainColor,'color':mainColor}"> <view class="renzhen" v-if="user_info.isAttestation>0" :style="{'border':'1px solid '+mainColor,'color':mainColor}">
已认证 已认证
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment