zhangyuewww 3 năm trước cách đây
mục cha
commit
1c25ae1f4e
1 tập tin đã thay đổi với 27 bổ sung8 xóa
  1. 27 8
      pages/erpbusiness/acquisitionInformation.vue

+ 27 - 8
pages/erpbusiness/acquisitionInformation.vue

@@ -12,15 +12,18 @@
 				<view class="left">收购信息</view>
 				<view class='row'>
 				<textarea placeholder="输入收购信息,不超过2000个字" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
+				<view class="textarea-left">
+					<u-button type="primary" class="clear" hover-class="none" @click="clear()">清除全部</u-button>
+				</view>
 				<view class="textarea-bottom">{{textareaValue?textareaValue.length:'0'}}/2000字</view>
-			</view>
-			<view class='row row_css'>
-				显示在易粮易运收购信息中
-				<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
-				<view class="right">
-					<u-switch v-model="value" active-color="#19be6b" inactive-color="#eee" size='40' @change="checkBoxChange"></u-switch>
 				</view>
-			</view>
+				<view class='row row_css'>
+					显示在易粮易运收购信息中
+					<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
+					<view class="right">
+						<u-switch v-model="value" active-color="#19be6b" inactive-color="#eee" size='40' @change="checkBoxChange"></u-switch>
+					</view>
+				</view>
 			</view>
 			
 		</view>
@@ -238,6 +241,9 @@
 				
 				// this.$api.msg('提交成功')
 				// this.$api.msg('提交失败')
+			},
+			clear(){
+				this.textareaValue=''
 			}
 		}
 	}
@@ -309,7 +315,12 @@
 		padding-bottom: 20rpx;
 		color: #AFB3BF ;
 	}
-
+    .textarea-left{
+		position: absolute;
+		bottom: 20rpx;
+		left: 20rpx;
+		color: #606266;
+	}
 	.textarea-bottom {
 		position: absolute;
 		bottom: 20rpx;
@@ -322,6 +333,14 @@
 		background: #22C572;
 		border-radius: 50rpx;
 	}
+	.clear {
+		/* width: 90%; */
+		background: #ffffff;
+		color: #22C572;
+		height: 35px;
+		border:1px solid  #22C572;
+		border-radius: 50rpx;
+	}
 
 	.bottom-btn {
 		position: fixed;