|
|
@@ -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);
|