Browse Source

底导航

zhaomiao 4 years ago
parent
commit
e38fe1ba3c
2 changed files with 17 additions and 6 deletions
  1. 7 2
      components/drawer/threeLineDrawer.vue
  2. 10 4
      pages/mine/Mine.vue

+ 7 - 2
components/drawer/threeLineDrawer.vue

@@ -142,9 +142,14 @@
 				else if(item.remark1 == '/components/weatherProphethomepage/WeatherProphethomepage'){
 					this.$parent.$root.toggleSwitch = true;
 				}
-
 				
-								
+				else if(item.remark1 == '/pages/mine/Mine'){
+					this.$parent.$root.pageDisplay = 1;
+				}
+				
+				else if(item.remark1 == '/components/mine/addressBook/addressBook'){
+					this.$parent.$root.pageDisplay = 2;
+				}				
 				else{
 					
 					 uni.navigateTo({

+ 10 - 4
pages/mine/Mine.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<cu-custom bgColor="bg-blacks" :isBack="false">
+		<cu-custom bgColor="bg-blacks" :isBack="false" v-if="pageDisplay==1">
 		    <block slot="right">
 				<image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
 			</block>
@@ -29,7 +29,7 @@
 <!-- 		<view>
 			<button class="cu-btn bg-red lg" @tap="falseLogin" type="" :style="{ 'height': buttonHeight}">注销账号</button>
 		</view> -->
-		
+		<view v-if="pageDisplay==1">
 		<view v-if="toggleid==12">
 			<mine ref="r1"></mine>
 		</view>
@@ -37,6 +37,10 @@
 		<view v-if="toggleid==13">
 			<chatindex ref="r1"></chatindex>
 		</view>
+		</view>
+		<view v-if="pageDisplay==2">
+			<addressBook></addressBook>
+		</view>
 		
 	</view>
 	
@@ -49,7 +53,7 @@
 	import res from '../../common/data.json';
 	import drawer from '../../components/drawer/threeLineDrawer.vue'
 	import plusDrawer from '../../components/drawer/plusDrawer.vue';
-	
+	import addressBook from '../../components/mine/addressBook/addressBook.vue';
 	import mine from '../../components/mine/Mine.vue';
 	import chatindex from '../../components/mine/chat/Chatindex.vue';
 	
@@ -58,10 +62,12 @@
 			drawer: drawer,
 			plusDrawer: plusDrawer,
 			mine:mine,
-			chatindex:chatindex
+			chatindex:chatindex,
+			addressBook:addressBook
 		},
 		data:function(){
 			return{
+				pageDisplay:1,
 				toggleid:12,//12我的主页,13聊天通讯,默认12
 				badge: 22,
 				inconList:["form","favor","question","edit"],