소스 검색

支付。跳转

hmp 4 년 전
부모
커밋
4a31070fea
1개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 12 12
      components/amountInput/amountInput.vue

+ 12 - 12
components/amountInput/amountInput.vue

@@ -23,13 +23,13 @@
 				<view class='key-cell last-child '></view>
 			</view>
 			<view class="key-zero-and-point" v-if="isShow">
-				<view class="a zero" @click.stop='_handleKeyPress(0)'>0</view>
-				<view class="a point" @click.stop="_handleKeyPress('.')">.</view>
+				<view class="a zero key-cell-num" @click.stop='_handleKeyPress(0)'>0</view>
+				<view class="a point key-cell-num" @click.stop="_handleKeyPress('.')">.</view>
 				<view class='a last-child'>
 				</view>
 			</view>
 
-			<view class='key-confirm' :class="{big:isShow,frist:fristShow}" :style="{'background':btnColor}"
+			<view class='key-confirm key-cell-num' :class="{big:isShow,frist:fristShow}" :style="{'background':btnColor}"
 				@click.stop="_handleKeyPress('confirm')">
 				{{confirmText}}
 			</view>
@@ -68,7 +68,7 @@
 				type: String
 			},
 			maxNumber: {
-				default: 100000000000,
+				default: 10000000,
 				type: Number
 			},
 			fontSize: {
@@ -191,14 +191,14 @@
 			_handleConfirmKey() {
 				let S = this.money;
 				//未输入
-				if (!S.length || S == 0) {
-					uni.showToast({
-						title: this.placeholder,
-						icon: 'none',
-						duration: 1000
-					});
-					return false;
-				}
+				// if (!S.length || S == 0) {
+				// 	uni.showToast({
+				// 		title: this.placeholder,
+				// 		icon: 'none',
+				// 		duration: 1000
+				// 	});
+				// 	return false;
+				// }
 				//将 8. 这种转换成 8.00
 				if (S.indexOf('.') > -1 && S.indexOf('.') == (S.length - 1))
 					S = Number(S.substring(0, S.length - 1)).toFixed(2);