Browse Source

fix: 修复导航返回层级和移除无用代码

- 调整city.vue中导航返回的delta值为1
- 移除modification.vue中注释掉的代码和标记
- 删除index.vue中多余的flex属性
allen 3 days ago
parent
commit
9335b3663a
3 changed files with 3 additions and 4 deletions
  1. 2 2
      pages/equipList2/seabox/modification.vue
  2. 1 1
      pages/fourBase/city.vue
  3. 0 1
      pages/index/index.vue

+ 2 - 2
pages/equipList2/seabox/modification.vue

@@ -29,7 +29,7 @@
 					<p>设备添加时间</p>
 					<input type="text" :value="moddata.addtime|timeFormat()" disabled />
 				</view>
-				<p style="width: 90%;margin: 0 auto;text-align: right;color: #06B535;"><span style="color: #ff0000;">*</span>为可修改</p>
+				<!-- <p style="width: 90%;margin: 0 auto;text-align: right;color: #06B535;"><span style="color: #ff0000;">*</span>为可修改</p> -->
 				<view class="sub" @click="btn">
 					提 交
 				</view>
@@ -138,7 +138,7 @@
 				})
 			},
 			amendcity() { //修改设备地址
-				this.selectcityTF = true
+				// this.selectcityTF = true
 				uni.navigateTo({
 					url: "/pages/fourBase/city"
 				})

+ 1 - 1
pages/fourBase/city.vue

@@ -32,7 +32,7 @@
 				let prevpage = pages[pages.length - 2]
 				prevpage.$vm.city = add
 				uni.navigateBack({
-					delta:2
+					delta:1
 				})
 			}
 		}

+ 0 - 1
pages/index/index.vue

@@ -459,7 +459,6 @@
 		}
 		.weatext {
 			gap: 8rpx;
-			flex: 1;
 			display: flex;
 			flex-direction: column;
 			padding-left: 44rpx;