Bladeren bron

调整页面

wangxy 2 maanden geleden
bovenliggende
commit
649a8b29dd

+ 5 - 5
api/jiazheng.js

@@ -4,7 +4,7 @@ export function getJiazhengList(data = {}) {
   return request({
     url: '/app/user/jiazheng/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -16,7 +16,7 @@ export function getAliyunPolicy(data = {}) {
   return request({
     url: '/app/file/policy',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -28,7 +28,7 @@ export function getJiazhengLeixing(data = {}) {
   return request({
     url: '/app/user/jiazheng/ops/leixing',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -40,7 +40,7 @@ export function getJiazhengJineng(data = {}) {
   return request({
     url: '/app/user/jiazheng/ops/jineng',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -52,7 +52,7 @@ export function getJiazhengZhuangtai(data = {}) {
   return request({
     url: '/app/user/jiazheng/ops/zhuangtai',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,

+ 16 - 16
api/kaoshi.js

@@ -4,7 +4,7 @@ export function getKaoshiList(data = {}) {
   return request({
     url: '/app/kaoshi/guanliyuan/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -17,7 +17,7 @@ export function getKaoshiInfo(data = {}) {
   return request({
     url: '/app/kaoshi/guanliyuan/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -29,7 +29,7 @@ export function getClientKaoshiInfo(data = {}) {
   return request({
     url: '/app/kaoshi/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -41,7 +41,7 @@ export function getClientKaoshiList(data = {}) {
   return request({
     url: '/app/kaoshi/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -54,7 +54,7 @@ export function getClientZhuaPaiUpdate(data = {}) {
   return request({
     url: '/app/kaoshi/zhuapai',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -67,7 +67,7 @@ export function getClientQiepingCheat(data = {}) {
   return request({
     url: '/app/qieping/cheat',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -79,7 +79,7 @@ export function getClientQiepingTimes(data = {}) {
   return request({
     url: '/app/qieping/times',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -92,7 +92,7 @@ export function getClientUserInfo(data = {}) {
   return request({
     url: '/app/kaoshi/user/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -105,7 +105,7 @@ export function getClientKsSubmit(data = {}) {
   return request({
     url: '/app/kaoshi/submit',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -117,7 +117,7 @@ export function getClientKsStart(data = {}) {
   return request({
     url: '/app/kaoshi/start',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -130,7 +130,7 @@ export function getClientKsSave(data = {}) {
   return request({
     url: '/app/kaoshi/save',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -143,7 +143,7 @@ export function getClientKsChengjiView(data = {}) {
   return request({
     url: '/app/chengji/view',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -155,7 +155,7 @@ export function getClientKsChengjiList(data = {}) {
   return request({
     url: '/app/chengji/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -168,7 +168,7 @@ export function getAdminKsChengjiList(data = {}) {
   return request({
     url: '/app/chengji/guanliyuan/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -180,7 +180,7 @@ export function getAdminKsChengjiView(data = {}) {
   return request({
     url: '/app/chengji/guanliyuan/view',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -193,7 +193,7 @@ export function getClientKaoshiBiaoji(data = {}) {
   return request({
     url: '/app/kaoshi/biaoji',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,

+ 9 - 9
api/kecheng.js

@@ -4,7 +4,7 @@ export function getKechengGlList(data = {}) {
   return request({
     url: '/app/kecheng/guanliyuan/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -16,7 +16,7 @@ export function getKechengGlRecord(data = {}) {
   return request({
     url: '/app/kecheng/guanliyuan/record',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -28,7 +28,7 @@ export function getKechengGlSave(data = {}) {
   return request({
     url: '/app/kecheng/guanliyuan/save',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -40,7 +40,7 @@ export function getKechengGlStart(data = {}) {
   return request({
     url: '/app/kecheng/guanliyuan/start',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -52,7 +52,7 @@ export function getKechengGlTime(data = {}) {
   return request({
     url: '/app/kecheng/guanliyuan/time',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -64,7 +64,7 @@ export function getVideoAuth(data = {}) {
   return request({
     url: '/app/video/auth',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -78,7 +78,7 @@ export function getClientKechengList(data = {}) {
   return request({
     url: '/app/kecheng/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -90,7 +90,7 @@ export function getClientKechengStart(data = {}) {
   return request({
     url: '/app/kecheng/start',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -102,7 +102,7 @@ export function getClientKechengSave(data = {}) {
   return request({
     url: '/app/kecheng/save',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,

+ 8 - 8
api/lianxi.js

@@ -4,7 +4,7 @@ export function getLianxiList(data = {}) {
   return request({
     url: '/app/lianxi/guanliyuan/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -16,7 +16,7 @@ export function getLianxiInfo(data = {}) {
   return request({
     url: '/app/lianxi/guanliyuan/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -28,7 +28,7 @@ export function getClientLianxiList(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/list',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -40,7 +40,7 @@ export function getClientLianxiInfo(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -52,7 +52,7 @@ export function getClientLianxiStart(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/start',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -64,7 +64,7 @@ export function getClientLianxiSubmit(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/submit',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -76,7 +76,7 @@ export function getClientLianxiBiaoji(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/biaoji',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -89,7 +89,7 @@ export function getClientLianxiChengjiView(data = {}) {
   return request({
     url: '/app/lianxi/kaozheng/view',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,

+ 2 - 2
api/my.js

@@ -4,7 +4,7 @@ export function getMineUser(data = {}) {
   return request({
     url: '/app/mine/user',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,
@@ -16,7 +16,7 @@ export function getMineInfo(data = {}) {
   return request({
     url: '/app/mine/info',
     headers: {
-      isToken: false
+      isToken: true
     },
     method: 'post',
     data,

+ 10 - 34
components/custom-tabbar/custom-tabbar-admin.vue

@@ -1,11 +1,8 @@
 <template>
 	<view class="phone-custom-tabbar">
-			<!-- <view class="tabbar-item" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)"
-				:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
-			</view> -->
 			<view class="tabbar-item" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)">
 				<icon class="tabbar-item-icon" :style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }"></icon>
-				<text class="tabbar-item-text">{{item.text}}</text>
+				<text class="tabbar-item-text" :class="{active: currentTab == index}">{{item.text}}</text>
 			</view>
 		</view>
 </template>
@@ -17,63 +14,42 @@
 	} from '@/utils/emitEvents.js';
 	import cacheManager from "@/utils/cacheManager.js";
 	export default {
+		props: {
+			currentTab: {
+				type: Number
+			}
+		},
 		data() {
 			return {
-				/* 		tabList: [{
-								iconPath: 'static/images/tabbar/unselect/plan-sj.png',
-								activePath: 'static/images/tabbar/select/plan-sj.png',
-								path: `/pages/study/index`
-							},
-							{
-								iconPath: 'static/images/tabbar/unselect/partner-sj.png',
-								activePath: 'static/images/tabbar/select/partner-sj.png',
-								path: '/pages/game/index'
-							},
-							{
-								iconPath: 'static/images/tabbar/unselect/my-sj.png',
-								activePath: 'static/images/tabbar/select/my-sj.png',
-								path: `/pages/my/index`
-							},
-						], */
 				tabList: [{
 						text: '首页',
-						path: `/pages/study/index`,
+						path: `/pages/admin/ShouYe/shouye`,
 						iconPath: getStaticUrl('static/images/tabbar/unselect/index-icon.png'),
 						activePath: getStaticUrl('static/images/tabbar/select/index-icon.png'),
 					},
 					{
 						text: '家政',
-						path: '/pages/game/index',
+						path: '/pages/admin/Jiazheng/index',
 						iconPath: getStaticUrl('static/images/tabbar/unselect/jz-icon.png'),
 						activePath: getStaticUrl('static/images/tabbar/select/jz-icon.png'),
 					},
 					{
 						text: '我的',
-						path: `/pages/my/index`,
+						path: `/pages/admin/my/index`,
 						iconPath: getStaticUrl('static/images/tabbar/unselect/my-icon.png'),
 						activePath: getStaticUrl('static/images/tabbar/select/my-icon.png'),
 					},
 				],
-				currentTab: 0,
 			};
 		},
 		methods: {
 			switchTab(path, index) {
-				uni.redirectTo({
+				uni.reLaunch({
 					url: path
 				});
-				/* uni.navigateTo({
-					url: path,
-					"animationType": "fade-in",
-					"animationDuration":0
-				}); */
 			},
 
 		},
-		created() {
-
-			this.currentTab = this.currentTabNumber
-		}
 	}
 </script>
 

+ 8 - 14
components/custom-tabbar/custom-tabbar-client.vue

@@ -14,39 +14,33 @@
 	} from '@/utils/emitEvents.js';
 	import cacheManager from "@/utils/cacheManager.js";
 	export default {
+		props: {
+			currentTab: {
+				type: Number,
+			}
+		},
 		data() {
 			return {
 				tabList: [{
 						text: '首页',
-						path: `/pages/study/index`,
+						path: `/pages/client/ShouYe/shouye`,
 						iconPath: getStaticUrl('static/images/tabbar/unselect/client-jz-icon.png'),
 						activePath: getStaticUrl('static/images/tabbar/select/client-jz-icon.png'),
 					},
 					{
 						text: '我的',
-						path: `/pages/my/index`,
+						path: `/pages/client/my/index`,
 						iconPath: getStaticUrl('static/images/tabbar/unselect/client-my-icon.png'),
 						activePath: getStaticUrl('static/images/tabbar/select/client-my-icon.png'),
 					},
 				],
-				currentTab: 0,
 			};
 		},
 		methods: {
 			switchTab(path, index) {
-				uni.redirectTo({url: path});
-				/* uni.navigateTo({
-					url: path,
-					"animationType": "fade-in",
-					"animationDuration":0
-				}); */
+				uni.reLaunch({url: path});
 			},
-
 		},
-		created() {
-
-			this.currentTab  =this.currentTabNumber
-		}
 	}
 </script>
 

+ 49 - 6
components/listCard/kaoshiCard.vue

@@ -8,7 +8,7 @@
 		
 		<!-- kaoshi title -->
 		<view class="card-name-box"> 	
-			<view class="card-name" v-if="data.name"><icon></icon>{{data.name}}</view>
+			<view class="card-name" v-if="data.ksName"><icon></icon>{{data.ksName}}</view>
 			<text class="card-level">{{data.zyLevelName}}</text>
 			<!-- <view class="card-name"><icon></icon>考试名称</view>
 			<text class="card-level">初级</text> -->
@@ -46,9 +46,9 @@
 		</view>
 		<!-- 底部 -->
 		<view class="card-bottom-box">
-			<button type="default" class="index-card-btn" v-if="data.status == 1" @click="handleStart">进行考试</button>
-			<button type="default" class="index-card-btn" v-if="data.status == 2" @click="handleStart">进行考试</button>
-			<button type="default" class="index-card-btn" v-if="data.status == 3" @click="handleContinue">考试中</button>
+			<button type="default" class="index-card-btn" v-if="data.status == 1" @click="handleStart(data)">进行考试</button>
+			<button type="default" class="index-card-btn" v-if="data.status == 2" @click="handleStart(data)">进行考试</button>
+			<button type="default" class="index-card-btn" v-if="data.status == 3" @click="handleContinue(data)">考试中</button>
 		</view>
 		
 		<!-- 考试须知 -->
@@ -62,12 +62,18 @@
 	import kaoshixuzhiVue from "@/components/kaoshixuzhi/kaoshixuzhi.vue";
 	import identificationVue from "@/components/identification/identification.vue";
 	import {useIdentificationTools} from "@/pages/client/Kaoshi/examTools.js"
+	import * as kaoshiApi from "@/api/kaoshi.js"
+	import { ref } from "vue"
 	
+	const {	saveIdentCache, getIdentCache, removeIdentCache } = useIdentificationTools();
 	defineProps({
 		data: {
 			type: Object,
 		}
 	})
+	const ksxzRef = ref(null)
+	const shenfenRef = ref(null)
+	const activeks = ref(null);
 	
 	function checkMore() {
 		uni.redirectTo({
@@ -75,9 +81,46 @@
 		})
 	}
 	
-	function handleStart() {}
+	// 修改身份
+	function handleChangeIdentification() {
+		uni.redirectTo({
+			url:'/pages/client/my/info?from=shouye'
+		})
+	}
+	
+	function handleConfirmIdent(data) {
+		saveIdentCache(activeks.value.ksId, true);
+		ksxzRef.value.showDialog(activeks.value)
+	}
+	
+	
+	function handleStart(data) {
+		activeks.value = data;
+		const result = getIdentCache(data.ksId);
+		if (result) {
+			ksxzRef.value.showDialog(data)
+		} else {
+			kaoshiApi.getClientUserInfo({ksId: data.ksId}).then(res => {
+				shenfenRef.value.showDialog(res.data);
+			})
+		}
 	
-	function handleContinue() {}
+	}
+	
+	function handleConfirmKs(data) {
+		checkKaoshi(data)
+	}
+	
+	function checkKaoshi(item) {
+		uni.navigateTo({
+			url: `/pages/client/Kaoshi/exam?ksId=${item.ksId}&zhuapai=${activeks.value.zhuapai}`
+		})
+	}
+	
+	function handleContinue(data) {
+		// 考试中 直接进入考试
+		checkKaoshi(data)
+	}
 </script>
 
 <style>

+ 36 - 5
components/listCard/lianxiCard.vue

@@ -3,11 +3,11 @@
 		<!-- card title -->
 		<view class="card-head-box">
 			<view class="card-line-title">练习</view>
-			<view class="card-more">更多<text class="more-num">{{data.count}}</text><icon class="more-jt"></icon></view>
+			<view class="card-more" @click="checkMore">更多<text class="more-num">{{data.count}}</text><icon class="more-jt"></icon></view>
 		</view>
 		<!-- kaoshi title -->
 		<view class="card-name-box">
-			<view class="card-name" v-if="data.name"><icon></icon>{{data.name}}</view>
+			<view class="card-name" v-if="data.lxName"><icon></icon>{{data.lxName}}</view>
 			<text class="card-level">{{data.zyLevelName}}</text>
 		</view>
 		<!-- 内容区域 -->
@@ -36,19 +36,50 @@
 		</view>
 		<!-- 底部 -->
 		<view class="card-bottom-box">
-			<button type="default" class="index-card-btn" v-if="data.status == 1">进行考试</button>
-			<button type="default" class="index-card-btn" v-if="data.status == 2">进行考试</button>
-			<button type="default" class="index-card-btn" v-if="data.status == 3">考试中</button>
+			<button type="default" class="index-card-btn" @click="handleStart(data)" v-if="data.status == 1">进行考试</button>
+			<button type="default" class="index-card-btn" @click="handleStart(data)" v-if="data.status == 2">再次考试</button>
 		</view>
+		
+		<!-- 考试须知 -->
+		<lianxixuzhi ref="lxzRef" @confirm="handleConfirmLx" key="1"></lianxixuzhi>
 	</view>
 </template>
 
 <script setup>
+	import lianxixuzhi from "@/components/kaoshixuzhi/lianxixuzhi.vue";
+	import * as lianxi from "@/api/lianxi.js"
+	import { ref } from "vue"
 	defineProps({
 		data: {
 			type: Object,
 		}
 	})
+	const activeks = ref(null);
+	const lxzRef = ref(null)
+	
+	function checkMore() {
+		uni.redirectTo({
+			url: '/pages/client/Lianxi/list'
+		})
+	}
+	
+	function handleStart(data) {
+		lxzRef.value.showDialog(data)
+	}
+	
+	function handleConfirmKs(data) {
+		checkKaoshi(data)
+	}
+	
+	function checkKaoshi(item) {
+		uni.navigateTo({
+			url: `/pages/client/Lianxi/exam?lxId=${item.lxId}`
+		})
+	}
+	
+	function handleConfirmLx(data) {
+		checkKaoshi(data)
+	}
 </script>
 
 <style>

+ 7 - 0
pages.json

@@ -141,6 +141,13 @@
 			{
 				"navigationStyle": "custom"
 			}
+		},
+		{
+			"path" : "pages/client/my/myInfo",
+			"style" : 
+			{
+				"navigationBarTitleText" : ""
+			}
 		}
 	],
 	"tabBar": {

+ 4 - 9
pages/admin/ShouYe/shouye.vue

@@ -1,18 +1,13 @@
 <template>
   <view>
-    总部管理员/跑单员首页 {{counter.count}}
-    <view v-if="data">{{data}}</view>
-    <view v-else>未设置缓存</view>
+    总部管理员/跑单员首页 
+	<!-- 页面底端 -->
+	<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
   </view>
 </template>
 
 <script setup>
-import { useCounterStore } from "@/store/counter.js"
+import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
 
-// 总部管理员/跑单员首页
-import { getAuth } from '@/utils/auth';
-const data = getAuth();
-
-const counter = useCounterStore();
 </script>
 

+ 8 - 7
pages/client/ShouYe/shouye.vue

@@ -1,7 +1,7 @@
 <template>
 	<view className="client-shouye-page">
 		<view class="icon-title-bjcolor-navBar-box">
-			<text class="nav-bar-title">用户名</text>
+			<text class="nav-bar-title">{{data.realName}}</text>
 		</view>
 		<!-- 考试 -->
 		<kaoshiCardVue v-if="data.kaoshiList.length" :data="{ count: data.kaoshiCount, ...data.kaoshiList[0] }"></kaoshiCardVue>
@@ -10,7 +10,7 @@
 		<!-- 课程 -->
 		<kechengCardVue v-if="data.kechengList.length"   :data="{ count: data.kechengCount,...data.kechengList[0] }"></kechengCardVue>
 		<!-- 底部区域 -->
-		<customTabbarClient></customTabbarClient>
+		<customTabbarClient :currentTab="0"></customTabbarClient>
 	</view>
 </template>
 
@@ -27,8 +27,7 @@
 	import {
 		reactive
 	} from "vue"
-
-	const {	saveIdentCache, getIdentCache, removeIdentCache } = useIdentificationTools();
+	import cacheManager from '@/utils/cacheManager.js'
 
 	const data = reactive({
 		kaoshiCount: 0,
@@ -36,10 +35,10 @@
 		kechengCount: 0,
 		kechengList: [],
 		lianxiCount: 0,
-		lianxiList: []
+		lianxiList: [],
+		realName: ''
 	})
 
-
 	function initPage() {
 		httpApi.getAppIndexInfo().then(res => {
 			const {
@@ -62,6 +61,8 @@
 
 
 	onLoad(() => {
-		initPage()
+		const auth = cacheManager.get('auth');
+		data.realName = auth.realName;
+		initPage();
 	})
 </script>

+ 103 - 0
pages/client/my/myInfo.vue

@@ -0,0 +1,103 @@
+<template>
+	<view class="my-info">
+		<!-- 导航区域 -->
+		<view class="icon-title-navBar-box">
+			<view @click="handleBack" class="nav-bar-icon"></view>
+			<text class="nav-bar-title">个人信息</text>
+		</view>
+		<!-- 头像 -->
+		<view>
+			<uni-file-picker limit="1" :del-icon="false" disable-preview :imageStyles="imageStyles" :auto-upload="false"
+				file-mediatype="image">选择</uni-file-picker>
+
+		</view>
+		<!-- 姓名 -->
+		<view></view>
+		<!-- 证件号 -->
+		<view></view>
+		<!-- 电话 -->
+		<view></view>
+		<!-- 性别 -->
+		<view></view>
+
+		<button @click="handleUpdate">更新</button>
+	</view>
+</template>
+
+<script setup>
+	import * as myApi from "@/api/my.js"
+	import {
+		ref,
+		reactive
+	} from "vue"
+	import {
+		onLoad
+	} from "@dcloudio/uni-app"
+
+	const imageStyles = ref({
+		width: 64,
+		height: 64,
+		border: {
+			radius: '50%'
+		}
+	});
+
+	const data = reactive({
+		from: 'shouye', // my | kaoshi | shouye
+		gender: 0,
+		icon: '',
+		realName: '',
+		idcard: '',
+		userName: '',
+		userId: null
+	})
+
+	onLoad((options) => {
+		data.from = options.from || 'shouye';
+
+		initPage();
+	})
+
+	function handleUpdate() {
+		myApi.getUserUpdate({}).then(res => {
+			if (res.data) {
+				uni.showToast({
+					title: '更新成功'
+				})
+			}
+		})
+	}
+
+	function handleBack() {
+		if (data.from == 'my') {
+			uni.redirectTo({
+				url: '/pages/client/my/index'
+			})
+		} else if (data.from == 'kaoshi') {
+			uni.redirectTo({
+				url: '/pages/client/ShouYe/shouye'
+			})
+		} else {
+			uni.redirectTo({
+				url: '/pages/client/ShouYe/shouye'
+			})
+		}
+	}
+
+	function initPage() {
+		myApi.getMineUser().then(res => {
+			const {
+				gender,
+				icon,
+				idcard,
+				realName,
+				userName,
+				userId
+			} = res.data;
+		})
+	}
+</script>
+
+<style>
+
+</style>