Commit ec779add authored by liwei's avatar liwei

修改了实名认证校验,根据数据字典判断

parent d067abd3
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
</view> </view>
<empty v-if="firstLoaded && !dataList.length"/> <empty v-if="firstLoaded && !dataList.length"/>
</z-paging> </z-paging>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" confirmName="认证" @confirm="confirm"></ELM>
</view> </view>
</template> </template>
...@@ -30,11 +31,14 @@ ...@@ -30,11 +31,14 @@
import {getCity, getValue} from "../../../common/options"; import {getCity, getValue} from "../../../common/options";
import {calculateAge, parseDate} from "../../../common"; import {calculateAge, parseDate} from "../../../common";
import {isStopAccount, userDetail} from "../../../api/user"; import {isStopAccount, userDetail} from "../../../api/user";
import {message} from "../../../common/message";
import ELM from '@/components/elm-toast/index.vue';
export default { export default {
name:'ArticleList', name:'ArticleList',
components: { components: {
ItemVue, ItemVue,
empty empty,
ELM
}, },
data() { data() {
return { return {
...@@ -54,6 +58,8 @@ ...@@ -54,6 +58,8 @@
isCurrentPage: false, isCurrentPage: false,
//动态类型 0:关注 //动态类型 0:关注
articleType: '', articleType: '',
// 弹窗信息
tipMsg:'',
} }
}, },
props: { props: {
...@@ -71,6 +77,13 @@ ...@@ -71,6 +77,13 @@
return 0 return 0
} }
}, },
// 是否需要实名 1:需要 0:不需要
realAuthFlag:{
type: String,
default: function() {
return '1'
}
}
}, },
watch: { watch: {
currentIndex: { currentIndex: {
...@@ -235,76 +248,18 @@ ...@@ -235,76 +248,18 @@
}) })
this.$refs.paging.completeByTotal(list,res.data.total); this.$refs.paging.completeByTotal(list,res.data.total);
}) })
// 组件加载时会自动触发此方法,因此默认页面加载时会自动触发,无需手动调用
// 这里的pageNo和pageSize会自动计算好,直接传给服务器即可
// 模拟请求服务器获取分页数据,请替换成自己的网络请求
// const params = {
// pageIndex: pageNo,
// pageSize: pageSize,
// type: this.tabIndex
// }
// if (this.tabIndex == 0) {
// params.tabType = "FOLLOW"
// } else if (this.tabIndex == 1) {
// params.tabType = "RECOMMEND"
// } else {
// params.tabType = "CITY"
// }
// this.$myRequest({
// url: `/nostalgia/article/page`,
// data: params,
// withToken: true,
// method: 'GET',
// }).then(res => {
// if (res.data.code == 200) {
// let arr = res.data.data.rows.map(item => {
// return {
// ...item,
// isDel: item.userId == this.userInfo != null ? this.userInfo.id : 0
// }
// })
// this.$refs.paging.complete(arr);
// setTimeout(() => {
// this.firstLoaded = true;
// }, 100)
// } else if (res.data.code == 10006) {
// let rows = [];
// let arr = rows.map(item => {
// return {
// ...item,
// isDel: item.userId == this.userInfo != null ? this.userInfo.id : 0
// }
// })
// this.$refs.paging.complete(arr);
// setTimeout(() => {
// this.firstLoaded = true;
// }, 100)
//
// } else {
// let rows = [];
// let arr = rows.map(item => {
// return {
// ...item,
// isDel: item.userId == this.userInfo != null ? this.userInfo.id : 0
// }
// })
// this.$refs.paging.complete(arr);
// setTimeout(() => {
// this.firstLoaded = true;
// }, 100)
// console.log("请求失败")
// }
// }).catch(res => {
// // 如果请求失败写this.$refs.paging.complete(false);
// // 注意,每次都需要在catch中写这句话很麻烦,z-paging提供了方案可以全局统一处理
// // 在底层的网络请求抛出异常时,写uni.$emit('z-paging-error-emit');即可
// console.log("请求接口失败了")
// this.$refs.paging.complete(false);
// })
}, },
// 点赞 // 点赞
praise(item) { praise(item) {
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
var type = '' var type = ''
if (item.isLike == '0') { if (item.isLike == '0') {
//取消点赞 //取消点赞
...@@ -323,6 +278,12 @@ ...@@ -323,6 +278,12 @@
let idx = this.dataList.findIndex(obj => obj.businessId == item.businessId) let idx = this.dataList.findIndex(obj => obj.businessId == item.businessId)
this.dataList.splice(idx, 1, item) this.dataList.splice(idx, 1, item)
}) })
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
} }
} }
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<!-- swiper必须设置height:100%,因为swiper有默认的高度,只有设置高度100%才可以铺满页面 --> <!-- swiper必须设置height:100%,因为swiper有默认的高度,只有设置高度100%才可以铺满页面 -->
<swiper class="swiper" :current="current" @animationfinish="swiperAnimationfinish"> <swiper class="swiper" :current="current" @animationfinish="swiperAnimationfinish">
<swiper-item class="swiper-item" v-for="(i,index) in list" :key="index"> <swiper-item class="swiper-item" v-for="(i,index) in list" :key="index">
<ListVue ref="listItem" :tabIndex="index" :currentIndex="current" @topicId="handleTopicId"/> <ListVue ref="listItem" :tabIndex="index" :currentIndex="current" :realAuthFlag="realAuthFlag" @topicId="handleTopicId"/>
</swiper-item> </swiper-item>
</swiper> </swiper>
<!-- 完善个人信息弹窗--> <!-- 完善个人信息弹窗-->
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
import {isStopAccount, userDetail} from "../../api/user"; import {isStopAccount, userDetail} from "../../api/user";
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {message} from "../../common/message"; import {message} from "../../common/message";
import {getDict} from "../../api/system/dict/data";
export default { export default {
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
...@@ -98,6 +99,8 @@ ...@@ -98,6 +99,8 @@
topicId: null, topicId: null,
tipMsg: '', tipMsg: '',
isConfirm: false, isConfirm: false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
}; };
}, },
onShow() { onShow() {
...@@ -106,8 +109,15 @@ ...@@ -106,8 +109,15 @@
this.$refs.listItem[this.current].reload() this.$refs.listItem[this.current].reload()
uni.setStorageSync("isRefresh", false) uni.setStorageSync("isRefresh", false)
} }
this.getRealAuthDict()
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
//接收子组件传过来的话题id 为了进行发表动态使用 //接收子组件传过来的话题id 为了进行发表动态使用
handleTopicId(value){ handleTopicId(value){
this.topicId = value this.topicId = value
...@@ -144,17 +154,20 @@ ...@@ -144,17 +154,20 @@
//已登录 判断授权 //已登录 判断授权
if (userInfo && userInfo.wxNickName !== '' && userInfo.wxNickName != null) { if (userInfo && userInfo.wxNickName !== '' && userInfo.wxNickName != null) {
//已授权过 //已授权过
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
//判断是否完善个人资料 完善之后才可发布动态 //判断是否完善个人资料 完善之后才可发布动态
userDetail(userInfo.memberId).then(res=>{ userDetail(userInfo.memberId).then(res=>{
const memInfo = res.data.data const memInfo = res.data.data
if (memInfo.memNickName != null && memInfo.memNickName != '' && memInfo.memBirthday != null && memInfo.memMaxEducation != null if (memInfo.memNickName != null && memInfo.memNickName != '' && memInfo.memMaxEducation != null
&& memInfo.memCareer != '' && memInfo.memCareer != null && memInfo.memResidenceProvince != null && memInfo.memResidenceCity != null){ && memInfo.memCareer != '' && memInfo.memCareer != null && memInfo.memResidenceProvince != null && memInfo.memResidenceCity != null){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
//已完善个人资料 可以发布动态 //已完善个人资料 可以发布动态
uni.navigateTo({ uni.navigateTo({
url: '/pagesArticle/publishArticle?topicId='+this.topicId url: '/pagesArticle/publishArticle?topicId='+this.topicId
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
import {getOssUrl} from "../../api/article"; import {getOssUrl} from "../../api/article";
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {message} from "../../common/message"; import {message} from "../../common/message";
import {getDict} from "../../api/system/dict/data";
export default { export default {
components: { components: {
LsSwiper, LsSwiper,
...@@ -99,6 +100,8 @@ ...@@ -99,6 +100,8 @@
userList: [], userList: [],
tipMsg: '', tipMsg: '',
isConfirm: false, isConfirm: false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
}; };
}, },
onHide() { onHide() {
...@@ -108,9 +111,16 @@ ...@@ -108,9 +111,16 @@
this.getNoticeList() this.getNoticeList()
this.getBannerList() this.getBannerList()
this.getUserList() this.getUserList()
this.getRealAuthDict()
this.userInfo = uni.getStorageSync('userInfo') this.userInfo = uni.getStorageSync('userInfo')
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
//获取用户列表 //获取用户列表
getUserList() { getUserList() {
const query = { const query = {
...@@ -132,7 +142,6 @@ ...@@ -132,7 +142,6 @@
//处理城市 //处理城市
if (item.memResidenceProvince != null && item.memResidenceProvince != '' && item.memResidenceCity != null && item.memResidenceCity != ''){ if (item.memResidenceProvince != null && item.memResidenceProvince != '' && item.memResidenceCity != null && item.memResidenceCity != ''){
item.city = getCity(item.memResidenceProvince,item.memResidenceCity) item.city = getCity(item.memResidenceProvince,item.memResidenceCity)
console.log(item.city)
} }
}); });
this.userList = res.data.data this.userList = res.data.data
...@@ -205,6 +214,15 @@ ...@@ -205,6 +214,15 @@
}); });
}, 500) }, 500)
} else { } else {
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
isStopAccount().then(res => { isStopAccount().then(res => {
//如果flag=0 被禁用了 踢出该用户 //如果flag=0 被禁用了 踢出该用户
if (res.data.data == '0') { if (res.data.data == '0') {
......
...@@ -84,6 +84,8 @@ export default { ...@@ -84,6 +84,8 @@ export default {
isApplication: false, isApplication: false,
tipMsg: '', tipMsg: '',
isConfirm: false, isConfirm: false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -94,6 +96,12 @@ export default { ...@@ -94,6 +96,12 @@ export default {
this.getUserInfo() this.getUserInfo()
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
// 获取活动详情 // 获取活动详情
getActivityDetail(){ getActivityDetail(){
activityDetail(this.activityId).then(res=>{ activityDetail(this.activityId).then(res=>{
...@@ -122,11 +130,14 @@ export default { ...@@ -122,11 +130,14 @@ export default {
const token = uni.getStorageSync('token') const token = uni.getStorageSync('token')
//校验token 如果没有token,跳到登录页进行登录 //校验token 如果没有token,跳到登录页进行登录
if (token && token !== '' && token != null){ if (token && token !== '' && token != null){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){ // 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
this.tipMsg = message.authenticationMsg; if (this.realAuthFlag === '1'){
this.isConfirm = true; if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.$refs.elm.showDialog(); this.tipMsg = message.authenticationMsg;
return this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
} }
this.show = true this.show = true
this.countprice() this.countprice()
......
...@@ -129,6 +129,7 @@ import {calculateAge, parseDate} from "../common"; ...@@ -129,6 +129,7 @@ import {calculateAge, parseDate} from "../common";
import {isStopAccount, userDetail} from "../api/user"; import {isStopAccount, userDetail} from "../api/user";
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {message} from "../common/message"; import {message} from "../common/message";
import {getDict} from "../api/system/dict/data";
export default{ export default{
components: { components: {
ArticleItem, ArticleItem,
...@@ -160,6 +161,8 @@ export default{ ...@@ -160,6 +161,8 @@ export default{
longPressedItem: null, longPressedItem: null,
longPressTimeout: null, longPressTimeout: null,
isTopicName:false, isTopicName:false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
} }
}, },
onLoad(params){ onLoad(params){
...@@ -168,8 +171,15 @@ export default{ ...@@ -168,8 +171,15 @@ export default{
this.isTopicName = true this.isTopicName = true
} }
this.getArticleDetail() this.getArticleDetail()
this.getRealAuthDict()
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
reply(value){ reply(value){
this.commentPlaceholder = '回复 ' + value.memNickName + ':' this.commentPlaceholder = '回复 ' + value.memNickName + ':'
//设置被评论人id //设置被评论人id
...@@ -188,7 +198,6 @@ export default{ ...@@ -188,7 +198,6 @@ export default{
// 点赞 // 点赞
praise(item) { praise(item) {
const token = uni.getStorageSync('token') const token = uni.getStorageSync('token')
const userInfo = uni.getStorageSync('userInfo')
//校验token 如果没有token,跳到登录页进行登录 //校验token 如果没有token,跳到登录页进行登录
if (token && token !== '' && token != null){ if (token && token !== '' && token != null){
//已登录 //已登录
...@@ -201,6 +210,15 @@ export default{ ...@@ -201,6 +210,15 @@ export default{
url: "/pageslogin/index" url: "/pageslogin/index"
}) })
} else { } else {
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
var type = '' var type = ''
if (item.isLike == '1') { if (item.isLike == '1') {
//取消点赞 //取消点赞
...@@ -258,6 +276,15 @@ export default{ ...@@ -258,6 +276,15 @@ export default{
//校验token 如果没有token,跳到登录页进行登录 //校验token 如果没有token,跳到登录页进行登录
if (token && token !== '' && token != null){ if (token && token !== '' && token != null){
//已登录 //已登录
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
isStopAccount().then(res => { isStopAccount().then(res => {
//如果flag=0 被禁用了 踢出该用户 //如果flag=0 被禁用了 踢出该用户
if (res.data.data == '0') { if (res.data.data == '0') {
......
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
<ELM ref="elm" :msg="tipMsg" :isCancel="false" :isConfirm="isConfirm" @confirm="confirm"></ELM> <ELM ref="elm" :msg="tipMsg" :isCancel="false" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elmCoin" :msg="tipMsg" :isConfirm="isCoinConfirm" confirmName="充值" @confirm="coinConfirm"></ELM> <ELM ref="elmCoin" :msg="tipMsg" :isConfirm="isCoinConfirm" confirmName="充值" @confirm="coinConfirm"></ELM>
<ELM ref="elmLike" :msg="tipMsg" :isConfirm="isLikeConfirm" @confirm="likeConfirm"></ELM> <ELM ref="elmLike" :msg="tipMsg" :isConfirm="isLikeConfirm" @confirm="likeConfirm"></ELM>
<ELM ref="elmAuth" :msg="tipMsg" :isConfirm="isAuthConfirm" confirmName="认证" @confirm="authConfirm"></ELM>
</view> </view>
</template> </template>
...@@ -211,6 +212,7 @@ ...@@ -211,6 +212,7 @@
import {getOssUrl, userArticleList} from "../api/article"; import {getOssUrl, userArticleList} from "../api/article";
import {getDict} from "../api/system/dict/data"; import {getDict} from "../api/system/dict/data";
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {message} from "../common/message";
export default { export default {
components: { components: {
LsSwiper, LsSwiper,
...@@ -257,6 +259,8 @@ ...@@ -257,6 +259,8 @@
isLikeConfirm: false, isLikeConfirm: false,
scrollTop: 0, scrollTop: 0,
data: [], data: [],
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -289,6 +293,12 @@ ...@@ -289,6 +293,12 @@
this.showAnima = false; this.showAnima = false;
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
//获取点赞花费金币数 //获取点赞花费金币数
getUserLikeDict(){ getUserLikeDict(){
getDict('user_like_config').then(res=> { getDict('user_like_config').then(res=> {
...@@ -394,6 +404,15 @@ ...@@ -394,6 +404,15 @@
}, },
//关注 //关注
follow(id, type, url) { follow(id, type, url) {
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isAuthConfirm = true;
this.$refs.elmAuth.showDialog();
return
}
}
if(type === true){ if(type === true){
const form = { const form = {
userId: uni.getStorageSync('userInfo').businessId, userId: uni.getStorageSync('userInfo').businessId,
...@@ -418,6 +437,15 @@ ...@@ -418,6 +437,15 @@
}, },
//点赞 //点赞
like(id,url){ like(id,url){
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isAuthConfirm = true;
this.$refs.elmAuth.showDialog();
return
}
}
const form = { const form = {
targetId: this.userData.userId, targetId: this.userData.userId,
isPay:'0' isPay:'0'
...@@ -445,6 +473,15 @@ ...@@ -445,6 +473,15 @@
}, },
//留言 //留言
addMessage(id){ addMessage(id){
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isAuthConfirm = true;
this.$refs.elmAuth.showDialog();
return
}
}
uni.navigateTo({ uni.navigateTo({
url: "/pagesUser/addMessage?userId=" + id url: "/pagesUser/addMessage?userId=" + id
}) })
......
...@@ -99,6 +99,8 @@ export default { ...@@ -99,6 +99,8 @@ export default {
show:false, show:false,
tipMsg: '', tipMsg: '',
isConfirm: false, isConfirm: false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
} }
}, },
components: { components: {
...@@ -117,8 +119,15 @@ export default { ...@@ -117,8 +119,15 @@ export default {
}, },
onShow(){ onShow(){
this.getCoinBalance() this.getCoinBalance()
this.getRealAuthDict()
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
//查询金币余额 //查询金币余额
getCoinBalance(){ getCoinBalance(){
getBalance().then(res =>{ getBalance().then(res =>{
...@@ -135,6 +144,15 @@ export default { ...@@ -135,6 +144,15 @@ export default {
}, },
// 提交订单 // 提交订单
submitorder() { submitorder() {
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
}
const params = { const params = {
price: 0, price: 0,
num: this.coinCount num: this.coinCount
......
<template> <template>
<view class="content"> <view class="content">
<view class="auth-item"> <view class="auth-item" v-if="realAuthFlag === '1'">
<image class="auth-img" :src="baseUrl+'/user/sfauth.png'"></image> <image class="auth-img" :src="baseUrl+'/user/sfauth.png'"></image>
<view class="auth-con"> <view class="auth-con">
<view class="auth-con-1">实名认证</view> <view class="auth-con-1">实名认证</view>
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<script> <script>
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {userDetail} from "../../api/user"; import {userDetail} from "../../api/user";
import {getDict} from "../../api/system/dict/data";
export default { export default {
data() { data() {
return { return {
...@@ -43,16 +44,25 @@ ...@@ -43,16 +44,25 @@
baseUrl: this.$IMG_URL, baseUrl: this.$IMG_URL,
userInfo: {}, userInfo: {},
tipMsg: '', tipMsg: '',
isConfirm: false isConfirm: false,
// 是否需要实名 1:需要 0:不需要
realAuthFlag: '1'
} }
}, },
components: { components: {
ELM ELM
}, },
onShow() { onShow() {
this.loadPage(); this.loadPage()
this.getRealAuthDict()
}, },
methods: { methods: {
//获取实名字典配置
getRealAuthDict(){
getDict('sys_config').then(res=> {
this.realAuthFlag = res.data.data.find(item => item.dictLabel === 'is_need_realAuth').dictValue;
})
},
//查询认证数据 //查询认证数据
loadPage() { loadPage() {
userDetail(uni.getStorageSync('userInfo').memberId).then(res => { userDetail(uni.getStorageSync('userInfo').memberId).then(res => {
......
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