hmp před 4 roky
rodič
revize
87014030c9
1 změnil soubory, kde provedl 12 přidání a 5 odebrání
  1. 12 5
      components/amountInput/amountInput.vue

+ 12 - 5
components/amountInput/amountInput.vue

@@ -31,7 +31,7 @@
 
 			<view class='key-confirm key-cell-num' :class="{big:isShow,frist:fristShow}" :style="{'background':btnColor}"
 				@click.stop="_handleKeyPress('confirm')">
-				{{confirmText}}
+				{{confirmText.substring(0,2)}}
 			</view>
 
 			<view v-if="!isShow">
@@ -60,7 +60,7 @@
 				type: String
 			},
 			placeholder: {
-				default: '请输入充值金额',
+				default: '请输入交易金额',
 				type: String
 			},
 			currency: {
@@ -82,12 +82,12 @@
 			isFilter: {
 				type: Boolean,
 				default: true
-			}
+			},
 		},
 		data() {
 			return {
 				fristShow: true,
-				isShow: true,
+				isShow: false,
 				size: 0,
 				height: 0,
 				allWidth: 0,
@@ -95,7 +95,7 @@
 			}
 		},
 		created() {
-
+			
 		},
 		computed: {
 			//ios底部安全区域
@@ -117,6 +117,9 @@
 			}
 		},
 		methods: {
+			initialMoney(data){
+				this.money=data.toString()
+			},
 			show() {
 				this.isShow = true;
 			},
@@ -167,6 +170,10 @@
 			//处理数字
 			_handleNumberKey(num) {
 				if (Number(this.money + num) > this.maxNumber) {
+					uni.showToast({
+						title:"不能超过最大交易金额",
+						icon:"none"
+					})
 					return
 				}
 				let S = this.money;