Commit 02b56c5e authored by liwei's avatar liwei

修改了bug

parent ad2cb64c
...@@ -214,15 +214,6 @@ ...@@ -214,15 +214,6 @@
}); });
}, 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') {
...@@ -232,11 +223,14 @@ ...@@ -232,11 +223,14 @@
url: "/pageslogin/index" url: "/pageslogin/index"
}) })
}else { }else {
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
}
} }
uni.navigateTo({ uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item.businessId url: '/pagesUser/userInfo?memberId='+item.businessId
......
...@@ -68,6 +68,7 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit ...@@ -68,6 +68,7 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
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 "./css/detail.css" import "./css/detail.css"
import {getDict} from "../api/system/dict/data";
export default { export default {
components: { components: {
ELM ELM
...@@ -94,6 +95,7 @@ export default { ...@@ -94,6 +95,7 @@ export default {
onShow() { onShow() {
this.getActivityDetail() this.getActivityDetail()
this.getUserInfo() this.getUserInfo()
this.getRealAuthDict()
}, },
methods: { methods: {
//获取实名字典配置 //获取实名字典配置
...@@ -131,6 +133,7 @@ export default { ...@@ -131,6 +133,7 @@ export default {
//校验token 如果没有token,跳到登录页进行登录 //校验token 如果没有token,跳到登录页进行登录
if (token && token !== '' && token != null){ if (token && token !== '' && token != null){
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验 // 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验
console.log('this.realAuthFlag',this.realAuthFlag)
if (this.realAuthFlag === '1'){ if (this.realAuthFlag === '1'){
if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){ if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.tipMsg = message.authenticationMsg; this.tipMsg = message.authenticationMsg;
......
...@@ -277,14 +277,6 @@ export default{ ...@@ -277,14 +277,6 @@ export default{
if (token && token !== '' && token != null){ if (token && token !== '' && token != null){
//已登录 //已登录
// 判断是否已实名 this.realAuthFlag=1需要判断是否已实名 否则不校验 // 判断是否已实名 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') {
...@@ -294,11 +286,13 @@ export default{ ...@@ -294,11 +286,13 @@ export default{
url: "/pageslogin/index" url: "/pageslogin/index"
}) })
} else { } else {
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){ if (this.realAuthFlag === '1'){
this.tipMsg = message.authenticationMsg; if (uni.getStorageSync('userInfo').memRealAuthen !== '1'){
this.isConfirm = true; this.tipMsg = message.authenticationMsg;
this.$refs.elm.showDialog(); this.isConfirm = true;
return this.$refs.elm.showDialog();
return
}
} }
this.commentValue = '' this.commentValue = ''
const params = { const params = {
......
...@@ -66,6 +66,7 @@ import {getBalance, payGoldCoins} from "../../api/user"; ...@@ -66,6 +66,7 @@ import {getBalance, payGoldCoins} from "../../api/user";
import {addApplication, pay} from "../../api/activity"; import {addApplication, pay} from "../../api/activity";
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";
let iapChannel = null // 苹果内部支付渠道 let iapChannel = null // 苹果内部支付渠道
export default { export default {
......
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