重新登陆传参

This commit is contained in:
shijingjing
2023-03-20 17:21:22 +08:00
parent 7647f30a4c
commit 49d43d14e6
4 changed files with 21 additions and 13 deletions

View File

@@ -100,12 +100,18 @@ export const user = {
return dispatch('autoLogin').then(() => dispatch('authCheck', { checkType, modulePath })); return dispatch('autoLogin').then(() => dispatch('authCheck', { checkType, modulePath }));
} }
if (!userInfo.areaId) { if (!userInfo.areaId) {
this.$dialog.confirm({ return uni.showModal({
title: '温馨提示',
content: '您只有完成信息认证后,才可进行相关操作。', content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证' confirmText: '去认证',
}).then(() => { success: (res)=> {
uni.switchTab({ url: '/pages/AppMine/userInfo' }) if (res.confirm) {
}).catch(() => { // console.log('用户点击确定');
uni.switchTab({ url: '/pages/AppMine/userInfo' })
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
}) })
} }
} }

View File

@@ -24,10 +24,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="approve"> <div class="approve" @click="$linkTo('./userInfo')">
<img class="icon" src="https://cdn.cunwuyun.cn/wxmp/mine/approve.png" alt=""> <img class="icon" src="https://cdn.cunwuyun.cn/wxmp/mine/approve.png" alt="">
<div class="flex"> <div class="flex">
<span class="cert" v-if="isApprove" v-text="approveLabel" @click="$linkTo('./userInfo')"/> <span class="cert" v-if="isApprove" v-text="approveLabel"></span>
<u-icon v-else name="arrow-right" color="#E7F2FF" size="28" <u-icon v-else name="arrow-right" color="#E7F2FF" size="28"
:label="approveLabel" label-color="#E7F2FF" label-pos="left" @click="approve"/> :label="approveLabel" label-color="#E7F2FF" label-pos="left" @click="approve"/>
</div> </div>
@@ -65,9 +65,7 @@ export default {
return this.user?.status == 2; return this.user?.status == 2;
}, },
approveLabel() { approveLabel() {
return this.user?.status == 2 ? "已认证" : return this.user?.status == 2 ? "已认证" : "前往认证"
this.user?.status == 1 ? "审核中" :
this.user?.status == -1 ? "审核驳回" : "前往认证"
}, },
listGroup() { listGroup() {
return [ return [
@@ -180,8 +178,11 @@ export default {
}) })
}, },
}, },
onShow() { onLoad() {
this.getAuth(); this.getAuth();
uni.$on('auth',()=> {
this.getAuth();
})
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {

View File

@@ -152,7 +152,8 @@ export default {
}).then(res=> { }).then(res=> {
if(res?.code==0) { if(res?.code==0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')
this.autoLogin() this.autoLogin({ loginWay:'qujing'})
uni.$emit('auth')
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 600); }, 600);

View File

@@ -10,7 +10,7 @@
<img :src="picUrl" class="qrcode-img" v-if="picUrl"/> <img :src="picUrl" class="qrcode-img" v-if="picUrl"/>
<div v-else class="tips"> <div v-else class="tips">
<u-icon name="error-circle" color="#909399" size="34" style="display: inline"></u-icon> <u-icon name="error-circle" color="#909399" size="34" style="display: inline"></u-icon>
<div class="col-666">请选择居民群</div> <div class="col-666">请选择社群加入群聊</div>
</div> </div>
</div> </div>
<div class="jionGroup"> <div class="jionGroup">