Browse Source

auto commit

gcz 4 years ago
parent
commit
47332e288d
3 changed files with 9 additions and 1 deletions
  1. 1 1
      pages.json
  2. 7 0
      pages/getout/getout.vue
  3. 1 0
      pages/login/login.vue

+ 1 - 1
pages.json

@@ -36,7 +36,7 @@
 		{
 		{
 			"path": "pages/getout/getout",
 			"path": "pages/getout/getout",
 			"style": {
 			"style": {
-				// "navigationStyle":"custom",// 隐藏系统导航栏
+				"navigationStyle":"custom",// 隐藏系统导航栏
 				"navigationBarTitleText": "车辆出场"
 				"navigationBarTitleText": "车辆出场"
 			}
 			}
 		},
 		},

+ 7 - 0
pages/getout/getout.vue

@@ -1,5 +1,6 @@
 <template>
 <template>
 	<view>
 	<view>
+		<u-navbar title-color="#fff" :custom-back="customBack" :border-bottom="false" back-icon-color="#CCE8FF" :background="{background: '#008CFF' }" title="我的"></u-navbar>
 		<u-empty class="u-m-t-80" text="暂无停车" mode="data" v-if="roadspaceList.length == 0"></u-empty>
 		<u-empty class="u-m-t-80" text="暂无停车" mode="data" v-if="roadspaceList.length == 0"></u-empty>
 		<view class="roadspace-list wrap">
 		<view class="roadspace-list wrap">
 			<view class="roadspace-list-item" :class="{used:item.placeStatus==1}" @click="roadspaceClick(item)" v-for="item in roadspaceList" :key="item.id">
 			<view class="roadspace-list-item" :class="{used:item.placeStatus==1}" @click="roadspaceClick(item)" v-for="item in roadspaceList" :key="item.id">
@@ -58,6 +59,12 @@
 					url: path
 					url: path
 				})
 				})
 			},
 			},
+			customBack(){
+				this.$u.route({
+					// type:'switchTab',
+					url: 'pages/index/index'
+				});
+			},
 			handleGetRoadspace(roadNo){
 			handleGetRoadspace(roadNo){
 				this.$u.api.getRoadspace({roadNo:this.roadNo,placeStatus:1})
 				this.$u.api.getRoadspace({roadNo:this.roadNo,placeStatus:1})
 				.then(res=>{
 				.then(res=>{

+ 1 - 0
pages/login/login.vue

@@ -69,6 +69,7 @@
 			// 	}
 			// 	}
 			// },
 			// },
 			handleLogin(){
 			handleLogin(){
+				// this.form.deviceNo = '1122334455';
 				this.form.deviceNo = device.getDeviceInfo().deviceId;
 				this.form.deviceNo = device.getDeviceInfo().deviceId;
 				this.$u.api.login(this.form)
 				this.$u.api.login(this.form)
 				.then(res=>{
 				.then(res=>{