wangguoyu há 2 meses atrás
pai
commit
21c11bf2b8

+ 3 - 12
pages/Login/components/loginBox.vue

@@ -114,18 +114,9 @@
 	// 跳转
 	function gotoPage(){
 		// 客户端
-				// #ifdef H5
-				uni.navigateTo({
-					url: `/pages/client/ShouYe/shouye`
-				})
-				// #endif
-
-				// 管理端
-				// #ifdef APP-PLUS
-				uni.navigateTo({
-					url: `/pages/admin/ShouYe/shouye`
-				})
-				// #endif
+		uni.navigateTo({
+			url: `/pages/admin/ShouYe/shouye`
+		})
 	}
 </script>
 

+ 54 - 26
pages/admin/Jiazheng/jiazhengUserManager.vue

@@ -4,10 +4,13 @@
 			<view @click="goUpPage" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">家政人员</text>
 		</view>
-		<v-tabs v-model="current" :tabs="tabs" :scroll="false" @change="changeTab" field="name" class="admin-tab-box"></v-tabs>	
+		<v-tabs v-model="current" :tabs="tabs" :scroll="false" @change="changeTab" field="name"
+			class="admin-tab-box"></v-tabs>
 		<gerenZiliao ref="gerenZiliao" @goNext="gerenziliaoNext" v-show="current ==0"></gerenZiliao>
-		<qiuzhiXinxi ref="qiuzhiXinxi" @goUp="goUpQiuzhixinxi" @goNext="goNextQiuzhixinxi" v-show="current ==1"></qiuzhiXinxi>
-		<zhaopianZiliao ref="zhaopianZiliao" @goUp="goUpZhaopianZiliao" @goNext="goNextZhaopianZiliao" v-show="current ==2"></zhaopianZiliao>
+		<qiuzhiXinxi ref="qiuzhiXinxi" @goUp="goUpQiuzhixinxi" @goNext="goNextQiuzhixinxi" v-show="current ==1">
+		</qiuzhiXinxi>
+		<zhaopianZiliao ref="zhaopianZiliao" @goUp="goUpZhaopianZiliao" @goNext="goNextZhaopianZiliao"
+			v-show="current ==2"></zhaopianZiliao>
 		<banzhengXinxi ref="banzhengXinxi" @goUp="goUpBanzhengXinxi" v-show="current ==3"></banzhengXinxi>
 	</view>
 </template>
@@ -23,16 +26,31 @@
 	export default {
 		data() {
 			return {
-				current:3,
-			//	tabs: ['个人资料', '求职信息', '照片资料', '办证信息']
-				tabs: [
-				  { id: 1, name: '个人资料', disabled: false },
-				  { id: 2, name: '求职信息', disabled: true },
-				  { id: 3, name: '照片资料', disabled: true },
-				  { id: 4, name: '办证信息', disabled: true },
-				
+				current: 1,
+				//	tabs: ['个人资料', '求职信息', '照片资料', '办证信息']
+				tabs: [{
+						id: 1,
+						name: '个人资料',
+						disabled: false
+					},
+					{
+						id: 2,
+						name: '求职信息',
+						disabled: true
+					},
+					{
+						id: 3,
+						name: '照片资料',
+						disabled: true
+					},
+					{
+						id: 4,
+						name: '办证信息',
+						disabled: true
+					},
+
 				],
-				
+
 			}
 		},
 		components: {
@@ -43,35 +61,45 @@
 		},
 		methods: {
 			changeTab(data) {
-				console.log('data',data);
+				console.log('data', data);
 			},
 			goUpPage() {
 				uni.redirectTo({
 					url: `/pages/admin/Jiazheng/jiazhengUserInfo`
 				})
 			},
-			gerenziliaoNext(data,num) {
-				console.log('data',data);
-				console.log('num',num);
+			gerenziliaoNext(data, num) {
+				console.log('data', data);
+				console.log('num', num);
 				this.current = num + 1
-				this.tabs[this.current].disabled = false
-				console.log('this.tabs',this.tabs);
+				this.tabs = this.tabs.map((item, i) => {
+					if (i == this.current) item.disabled = false
+					return item
+				})
+				console.log('this.tabs', this.tabs);
 			},
-			goUpQiuzhixinxi(data,num){
+			goUpQiuzhixinxi(data, num) {
 				this.current = num - 1
 			},
-			goNextQiuzhixinxi(data,num){
+			goNextQiuzhixinxi(data, num) {
 				this.current = num + 1
-				this.tabs[this.current].disabled = false
-			},	
-			goUpZhaopianZiliao(data,num){
+				this.tabs = this.tabs.map((item, i) => {
+					if (i == this.current) item.disabled = false
+					return item
+				})
+					console.log('this.tabs', this.tabs);
+			},
+			goUpZhaopianZiliao(data, num) {
 				this.current = num - 1
 			},
-			goNextZhaopianZiliao(data,num){
+			goNextZhaopianZiliao(data, num) {
 				this.current = num + 1
-				this.tabs[this.current].disabled = false
+				this.tabs = this.tabs.map((item, i) => {
+					if (i == this.current) item.disabled = false
+					return item
+				})
 			},
-			goUpBanzhengXinxi(data,num){
+			goUpBanzhengXinxi(data, num) {
 				this.current = num - 1
 			}
 		}