gjy 3 年 前
コミット
69534bb856
2 ファイル変更11 行追加1 行削除
  1. 7 0
      pages/grain_pulse/enter.vue
  2. 4 1
      pages/grain_pulse/perfect.vue

+ 7 - 0
pages/grain_pulse/enter.vue

@@ -294,6 +294,13 @@
 				}
 			},
 			navBack() {
+				uni.setStorage({
+					key: 'setPosition',
+					data:{},
+					success: (res) => {
+					}
+				
+				})
 				uni.navigateBack()
 			},
 			// navBack1() {

+ 4 - 1
pages/grain_pulse/perfect.vue

@@ -24,7 +24,7 @@
 				<view class="addinput addlabel flex" v-if="inputShow">
 					<u-input class='label' v-model="value" type="type" border focus v-if="inputShow"
 					 placeholder="请输入标签内容,不超过6个字" />
-					<u-button :type="types" class="inputOk" shape="circle" @click="addinput">确定</u-button>
+					<u-button :type="types" class="inputOk" :class="{active:value.length>0}" shape="circle" @click="addinput">确定</u-button>
 				</view>
 			</view>
 			<view style='padding-bottom:10px;' class="modular">
@@ -298,6 +298,9 @@
 	padding-right:40px;
 	line-height: 52rpx;
 	margin-bottom:10px;
+}
+.inputOk.active{
+	background:#22C572;
 }
 	.inputOk {
 		width: 100rpx;