flat: 国庆节暂存
This commit is contained in:
@@ -57,26 +57,26 @@
|
||||
认证信息
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')">
|
||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')">
|
||||
<image src="../../static/img/evaluate.png" mode=""></image>
|
||||
咨询信箱
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
|
||||
<image src="../../static/img/phone.svg" mode=""></image>
|
||||
问卷调查
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList" @click="navTo('/pageMy/setUserBase/survey')">
|
||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/survey')">
|
||||
<image src="../../static/img/phone.svg" mode=""></image>
|
||||
用工调研
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
<view class="btnList" @click="navTo('/pageMy/setUserBase/complain')">
|
||||
</view> -->
|
||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/complain')">
|
||||
<image src="../../static/img/vip.svg" mode=""></image>
|
||||
投诉建议
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
</view> -->
|
||||
<template v-if="user.userIsCms">
|
||||
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
||||
<image src="../../static/img/check1.png" mode=""></image>
|
||||
@@ -122,6 +122,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
GoLogin
|
||||
} from '@/untils/AxiosUtils.js';
|
||||
import {
|
||||
mapState,
|
||||
mapGetters
|
||||
@@ -140,19 +143,28 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$store.dispatch('getMobileIsCms')
|
||||
// if (this.$store.state.user.token && this.authPass) {
|
||||
// this.$store.dispatch('getMobileIsCms')
|
||||
// if (this.$api.haslogin() && this.authPass) {
|
||||
// this.$store.dispatch('getVipCode')
|
||||
// }
|
||||
},
|
||||
onShow() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
if (/token/g.test(location.href)) {
|
||||
this.$api.sleep(2000).then(() => {
|
||||
if (!this.$api.haslogin()) {
|
||||
GoLogin()
|
||||
} else {
|
||||
uni.$emit('newsReadChange')
|
||||
this.$store.dispatch('refreshAuthState')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.$emit('newsReadChange')
|
||||
this.$store.dispatch('refreshAuthState')
|
||||
if (!this.$api.haslogin()) {
|
||||
GoLogin()
|
||||
} else {
|
||||
uni.$emit('newsReadChange')
|
||||
this.$store.dispatch('refreshAuthState')
|
||||
}
|
||||
}
|
||||
// this.labourUnionInfoInit()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user