From eb61399c8a9d52d55af7fe86930e6a591de9f3d6 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com>
Date: 星期一, 28 十一月 2022 11:17:14 +0800
Subject: [PATCH] test

---
 pages/modal/classAttr.vue |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/pages/modal/classAttr.vue b/pages/modal/classAttr.vue
index 8f32e59..56a1c62 100644
--- a/pages/modal/classAttr.vue
+++ b/pages/modal/classAttr.vue
@@ -96,10 +96,10 @@
 	    width: 100%;
 	}
 	.tx_title{
-		font-size: 36rpx;
+		font-size: 32rpx;
 	}
 	.tx_title2{
-		font-size: 36rpx;
+		font-size: 32rpx;
 		text-align: right;
 		display: inline-block;
 		vertical-align: -2px;
@@ -146,12 +146,30 @@
 		transition-duration: 0.1s;
 	}
 	button.btn_add {
+		width:49.5%;
 		margin-top: 50rpx;
 		padding: 20rpx;
 		line-height: 1.5;
 		background: #27A6E1;
 		border: none;
 		color: #fff;
+	    font-size: 38rpx;
+		font-weight: bold;
+		float: right;
+		display: inline-block;
+	}
+	button.btn_cancel {
+		width:49.5%;
+		margin-top: 50rpx;
+		padding: 20rpx;
+		line-height: 1.5;
+		background: #27A6E1;
+		border: none;
+		color: #fff;
+	    font-size: 38rpx;
+		font-weight: bold;
+		float: left;
+		display: inline-block;
 	}
 	.i_tishi{
 		color: red;
@@ -214,7 +232,7 @@
 							<!-- 鎵爜鍚庝簨浠惰繑鍥�-->
 							<div class="input_vallist" >
 								<ul v-for="(inputval,vindex) in inputValList">
-									<li><span>{{inputval.Name}}</span><a href="javascript:;" @tap="isdel(vindex)"><i class="ace-icon fa fa-times"></i></a></li>
+									<li><span>{{inputval.Name}}</span><a href="javascript:;" @tap="inputValListIsDel(vindex)"><i class="ace-icon fa fa-times"></i></a></li>
 								</ul>
 							</div>
 						</view>
@@ -357,9 +375,9 @@
 				</div>
 			</div>
 			
-			
-			<button type="default" @tap="sava" class="btn_add">{{title}}</button>
 		</view>
+		<button type="default" @tap="cancel" class="btn_cancel">鍙栨秷</button>
+		<button type="default" @tap="sava" class="btn_add">{{title}}</button>
 	</view>
 </template> 
 
@@ -430,6 +448,11 @@
 			
 		},
 		methods: {
+			cancel(e){
+				uni.navigateBack({
+					delta:1 //杩斿洖灞傛暟锛�鍒欎笂涓婇〉
+				});
+			},
 			async classGridStyleInfo(){
 				var $this = this;
 				var gridstyleInfo = {
@@ -677,7 +700,7 @@
 				}
 				
 			},
-			isdel(index){
+			inputValListIsDel(index){
 				// console.log(index);
                 this.$data.inputValList.splice(index, 1); //鍒犻櫎tabPagejson鐨勫唴瀹� 				// console.log(this.$data.inputValList);

--
Gitblit v1.9.1