|
@@ -46,7 +46,7 @@
|
|
|
<view class="record-list">
|
|
|
<view class="list-main" v-if="discernReceipt.length>0">
|
|
|
<view class="list-item" v-for="(item,index) in discernReceipt" :key="index">
|
|
|
- <text class="text row-1">¥{{item.receiptAmount}}</text>
|
|
|
+ <text class="text row-1">¥{{toFixedFn(item.receiptAmount)}}</text>
|
|
|
<text class="text row-2">{{payTypeText(item.payType)}}</text>
|
|
|
<text class="text row-3">{{item.receiptDate}}</text>
|
|
|
</view>
|
|
@@ -64,7 +64,7 @@
|
|
|
<view class="freight-alert" @tap="hideTips">
|
|
|
<view class="content">
|
|
|
<view class="title">
|
|
|
- <text>生成链接</text>
|
|
|
+ <text>支付链接</text>
|
|
|
<text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
|
|
|
</view>
|
|
|
<view class="text-content">
|
|
@@ -233,9 +233,13 @@
|
|
|
this.showDigitKeyboard = false
|
|
|
},
|
|
|
chechValue(value){
|
|
|
- if(value == 0){
|
|
|
- this.payAmount = this.payableAmount.toFixed(2)
|
|
|
- this.balanceAmount = this.payableAmount-this.payAmount
|
|
|
+ let patern = /\d+\.\d+/g;
|
|
|
+ if(value && value.split('.').length > 2) {
|
|
|
+ value= patern.exec(value);
|
|
|
+ }
|
|
|
+ if(value == "" || value <0 ){
|
|
|
+ this.payAmount = '';
|
|
|
+ this.balanceAmount = this.payableAmount;
|
|
|
}else if(parseInt(value)>this.payableAmount){
|
|
|
this.payAmount = this.payableAmount.toFixed(2)
|
|
|
this.balanceAmount = this.payableAmount - this.payAmount
|
|
@@ -252,9 +256,9 @@
|
|
|
payTypeText (state){//处理支付记录文字
|
|
|
let stateText = '',
|
|
|
stateTextObject={
|
|
|
- 12:'网银支付',
|
|
|
+ 12:'企业网银',
|
|
|
13:'微信支付',
|
|
|
- 14:'支付宝支付',
|
|
|
+ 14:'支付宝',
|
|
|
15:'微信支付',
|
|
|
16:'余额抵扣',
|
|
|
}
|
|
@@ -268,15 +272,17 @@
|
|
|
hideTips(){//隐藏弹窗
|
|
|
this.isShowTip = false
|
|
|
},
|
|
|
+ toFixedFn(text){//处理小数点后两位数
|
|
|
+ return Number(text).toFixed(2);
|
|
|
+ },
|
|
|
clipboard(data) {//复制链接
|
|
|
thorui.getClipboardData(data, (res) => {
|
|
|
- // #ifdef H5
|
|
|
if (res) {
|
|
|
- this.$util.msg("复制成功",2000);
|
|
|
+ this.isShowTip = false;
|
|
|
+ this.$util.msg("复制成功",2000,true,'success');
|
|
|
} else {
|
|
|
- this.$util.msg("复制失败",2000);
|
|
|
+ this.$util.msg("复制失败",2000,true,'none');
|
|
|
}
|
|
|
- // #endif
|
|
|
})
|
|
|
},
|
|
|
discard(){
|
|
@@ -300,7 +306,7 @@
|
|
|
width: 662rpx;
|
|
|
height: 420rpx;
|
|
|
padding: 64rpx 44rpx 0 44rpx;
|
|
|
- background: url(https://admin-b.caimei365.com/userfiles/1/images/photo/2020/07/icon-kdnakdj.png) no-repeat;
|
|
|
+ background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
|
|
|
background-size: cover;
|
|
|
float: left;
|
|
|
position: relative;
|
|
@@ -461,6 +467,7 @@
|
|
|
&.row-3{
|
|
|
flex: 4;
|
|
|
text-align: right;
|
|
|
+ color: #999999;
|
|
|
}
|
|
|
}
|
|
|
}
|