|
@@ -56,6 +56,22 @@ let permission_list_str = computed(() => {
|
|
|
|
|
|
//我的中点击去申请权限
|
|
//我的中点击去申请权限
|
|
const handleGoApplyPermission = async () => {
|
|
const handleGoApplyPermission = async () => {
|
|
|
|
+ if(store.state.userInfo.is_bind===0){
|
|
|
|
+ ElMessageBox({
|
|
|
|
+ title:`温馨提示`,
|
|
|
|
+ message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
|
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
|
+ center: true,
|
|
|
|
+ confirmButtonText:'去登录',
|
|
|
|
+ confirmButtonClass:'self-elmessage-confirm-btn',
|
|
|
|
+ showCancelButton:true,
|
|
|
|
+ cancelButtonText:'取消',
|
|
|
|
+ cancelButtonClass:'self-elmessage-cancel-btn'
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ wx.miniProgram.reLaunch({url:'/pages/login'})
|
|
|
|
+ }).catch(()=>{})
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const res = await apiLastApplyRecord();
|
|
const res = await apiLastApplyRecord();
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
@@ -138,6 +154,29 @@ const handleClickBreadCrumb=(item,index)=>{
|
|
const _index=index-(store.state.breadCrumbList.length-1)
|
|
const _index=index-(store.state.breadCrumbList.length-1)
|
|
router.go(_index)
|
|
router.go(_index)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 跳转设置个人信息
|
|
|
|
+const handleSetUserInfo=()=>{
|
|
|
|
+ if(store.state.userInfo.is_bind===0){
|
|
|
|
+ ElMessageBox({
|
|
|
|
+ title:`温馨提示`,
|
|
|
|
+ message:'为了优化您的用户体验,<br>请登录后查看更多信息!',
|
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
|
+ center: true,
|
|
|
|
+ confirmButtonText:'去登录',
|
|
|
|
+ confirmButtonClass:'self-elmessage-confirm-btn',
|
|
|
|
+ showCancelButton:true,
|
|
|
|
+ cancelButtonText:'取消',
|
|
|
|
+ cancelButtonClass:'self-elmessage-cancel-btn'
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ wx.miniProgram.reLaunch({url:'/pages/login'})
|
|
|
|
+ }).catch(()=>{})
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ router.push('/user/setinfo')
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -183,7 +222,7 @@ const handleClickBreadCrumb=(item,index)=>{
|
|
</template>
|
|
</template>
|
|
<template #default>
|
|
<template #default>
|
|
<div class="userinfo-box" v-if="userInfo">
|
|
<div class="userinfo-box" v-if="userInfo">
|
|
- <div class="top" @click="$router.push('/user/setinfo')">
|
|
|
|
|
|
+ <div class="top" @click="handleSetUserInfo">
|
|
<el-avatar shape="square" :size="50" :src="$store.state.userInfo.head_img_url||$store.state.globalImgUrls.defaultAvatar"></el-avatar>
|
|
<el-avatar shape="square" :size="50" :src="$store.state.userInfo.head_img_url||$store.state.globalImgUrls.defaultAvatar"></el-avatar>
|
|
<p style="font-size: 20px">{{ userInfo.real_name || "--" }}</p>
|
|
<p style="font-size: 20px">{{ userInfo.real_name || "--" }}</p>
|
|
<p style="margin:12px 0">
|
|
<p style="margin:12px 0">
|