|
@@ -101,6 +101,7 @@ import QRCode from '@/components/QRCode/index.vue'
|
|
import { getNavBarHeight } from '@/utils/index.js'
|
|
import { getNavBarHeight } from '@/utils/index.js'
|
|
import { getToken } from '@/utils/auth'
|
|
import { getToken } from '@/utils/auth'
|
|
import { showConfirm } from '@/utils/common'
|
|
import { showConfirm } from '@/utils/common'
|
|
|
|
+import { getInfo } from '@/api/login'
|
|
import {
|
|
import {
|
|
userOrWorker
|
|
userOrWorker
|
|
} from '@/api/login';
|
|
} from '@/api/login';
|
|
@@ -190,15 +191,6 @@ const priceList = computed(() => {
|
|
const userType = uni.getStorageSync('userType') //读取本地存储
|
|
const userType = uni.getStorageSync('userType') //读取本地存储
|
|
|
|
|
|
const adminList = [
|
|
const adminList = [
|
|
-{
|
|
|
|
- name: '实名认证',
|
|
|
|
- img: '/static/serverImg/mine/adress.png',
|
|
|
|
- key: 'map',
|
|
|
|
- text: '前往实名认证',
|
|
|
|
- operate: () => {
|
|
|
|
- hanldeAuthentication()
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
name: '我的地址',
|
|
name: '我的地址',
|
|
img: '/static/serverImg/mine/adress.png',
|
|
img: '/static/serverImg/mine/adress.png',
|
|
@@ -255,15 +247,6 @@ const adminList = [
|
|
|
|
|
|
]
|
|
]
|
|
const userList = [
|
|
const userList = [
|
|
- {
|
|
|
|
- name: '实名认证',
|
|
|
|
- img: '/static/serverImg/mine/adress.png',
|
|
|
|
- key: 'map',
|
|
|
|
- text: '前往实名认证',
|
|
|
|
- operate: () => {
|
|
|
|
- hanldeAuthentication()
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
name: '我的地址',
|
|
name: '我的地址',
|
|
img: '/static/serverImg/mine/adress.png',
|
|
img: '/static/serverImg/mine/adress.png',
|
|
@@ -303,13 +286,6 @@ const userList = [
|
|
},
|
|
},
|
|
]
|
|
]
|
|
|
|
|
|
-
|
|
|
|
-// 实名认证
|
|
|
|
-const hanldeAuthentication = () => {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages_mine/pages/authentication/index`
|
|
|
|
- })
|
|
|
|
-}
|
|
|
|
const switchUserType = (userType) => {
|
|
const switchUserType = (userType) => {
|
|
uni.setStorageSync('userType', userType)
|
|
uni.setStorageSync('userType', userType)
|
|
store.dispatch('GetInfo').then((res) => {
|
|
store.dispatch('GetInfo').then((res) => {
|
|
@@ -411,11 +387,16 @@ const handLsetTing = () => {
|
|
}
|
|
}
|
|
|
|
|
|
const geUserInfo = () => {
|
|
const geUserInfo = () => {
|
|
- console.log(store.state.user, '>>>>99')
|
|
|
|
- userInfo.value = store.state.user
|
|
|
|
- // store.dispatch('GetInfo').then((res) => {
|
|
|
|
- // userInfo.value = store.state.user
|
|
|
|
- // });
|
|
|
|
|
|
+ // userInfo.value = store.state.user
|
|
|
|
+ getInfo().then(res => {
|
|
|
|
+ console.log("TCL: geUserInfo -> res", res)
|
|
|
|
+ userInfo.value = res.user;
|
|
|
|
+ // showConfirm('您未完成实名认证,是否前往实名?').then(res => {
|
|
|
|
+ // if (res.confirm) {
|
|
|
|
+ // handLsetTing();
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
onShow(() => {
|
|
onShow(() => {
|