提现限制最多两位小数
This commit is contained in:
parent
66e9d9a460
commit
dc67568b6b
|
|
@ -17,10 +17,10 @@
|
||||||
style="display: flex;flex-direction: row;padding: 20upx;justify-content: space-between;align-items: center;">
|
style="display: flex;flex-direction: row;padding: 20upx;justify-content: space-between;align-items: center;">
|
||||||
<view style="display: flex;align-items: center;">
|
<view style="display: flex;align-items: center;">
|
||||||
<view style="font-size: 40upx;color: #333333;">¥</view>
|
<view style="font-size: 40upx;color: #333333;">¥</view>
|
||||||
<input type="number" v-model="money" placeholder="请输入金额"
|
<input type="number" v-model="money" placeholder="请输入金额" @input="moneyInput" @blur="moneyBlur"
|
||||||
style="font-size: 40upx;color: #333333;text-align: left;margin-left: 10upx;width: 80%;" />
|
style="font-size: 40upx;color: #333333;text-align: left;margin-left: 10upx;width: 80%;" />
|
||||||
</view>
|
</view>
|
||||||
<view @click="money = mayMoney"
|
<view @click="setAllMoney"
|
||||||
style="font-size: 30rpx;color: #333333;background: #ff7581;color: white;border-radius: 10rpx;padding: 7rpx 15rpx;flex-shrink: 0;">
|
style="font-size: 30rpx;color: #333333;background: #ff7581;color: white;border-radius: 10rpx;padding: 7rpx 15rpx;flex-shrink: 0;">
|
||||||
全部</view>
|
全部</view>
|
||||||
|
|
||||||
|
|
@ -46,9 +46,11 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;width: 100%;justify-content: center;">
|
<view style="display: flex;width: 100%;justify-content: center;">
|
||||||
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goZhifuBao">提现账号
|
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goZhifuBao">
|
||||||
|
提现账号
|
||||||
</view>
|
</view>
|
||||||
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goqianbao">红包明细
|
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goqianbao">
|
||||||
|
红包明细
|
||||||
</view>
|
</view>
|
||||||
<!-- <view style="color: grey;padding-bottom: 30px;padding-top: 20upx;width: 33%;" @click="gojilu">提现记录
|
<!-- <view style="color: grey;padding-bottom: 30px;padding-top: 20upx;width: 33%;" @click="gojilu">提现记录
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
@ -60,7 +62,8 @@
|
||||||
<view style="margin-bottom: 8upx;text-align: right;">
|
<view style="margin-bottom: 8upx;text-align: right;">
|
||||||
<text style="margin-bottom: 8upx;color: green" v-if="item.state==1"> 提现成功</text>
|
<text style="margin-bottom: 8upx;color: green" v-if="item.state==1"> 提现成功</text>
|
||||||
<text style="margin-bottom: 8upx;color: green" v-if="item.state==0"> 提现中</text>
|
<text style="margin-bottom: 8upx;color: green" v-if="item.state==0"> 提现中</text>
|
||||||
<text style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1||item.state==2"> 提现失败</text>
|
<text style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1||item.state==2">
|
||||||
|
提现失败</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="color: #999999;font-size: 28upx;">
|
<view style="color: #999999;font-size: 28upx;">
|
||||||
|
|
@ -68,7 +71,8 @@
|
||||||
<view style="margin-bottom: 8upx"> 收款人姓名:{{item.zhifubaoName}}</view>
|
<view style="margin-bottom: 8upx"> 收款人姓名:{{item.zhifubaoName}}</view>
|
||||||
<view style="margin-bottom: 8upx"> 发起时间:{{item.createAt}}</view>
|
<view style="margin-bottom: 8upx"> 发起时间:{{item.createAt}}</view>
|
||||||
<view style="margin-bottom: 8upx" v-if="item.state==1">成功时间 {{item.outAt}}</view>
|
<view style="margin-bottom: 8upx" v-if="item.state==1">成功时间 {{item.outAt}}</view>
|
||||||
<view style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1||item.state==2">失败原因:{{item.refund}}
|
<view style="margin-bottom: 8upx;color: #FD6416" v-if="item.state==-1||item.state==2">
|
||||||
|
失败原因:{{item.refund}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="margin-bottom: 8upx;text-align: right;">
|
<view style="margin-bottom: 8upx;text-align: right;">
|
||||||
|
|
@ -159,10 +163,26 @@
|
||||||
// this.list();
|
// this.list();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
moneyInput(e) {
|
||||||
|
let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.money = num;
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
moneyBlur(e) {
|
||||||
|
let num = e.detail.value.match(/^\d*(\.?\d{0,2})/g)[0] || null;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.money = num;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
setAllMoney() {
|
||||||
|
this.money = Math.floor(this.mayMoney * 100) / 100
|
||||||
|
},
|
||||||
getMoneyDetail() {
|
getMoneyDetail() {
|
||||||
let that = this;
|
let that = this;
|
||||||
let token = uni.getStorageSync('token')
|
let token = uni.getStorageSync('token')
|
||||||
console.log(1);
|
console.log(1);
|
||||||
if (token) {
|
if (token) {
|
||||||
//可以提现金额查询预估收入查询
|
//可以提现金额查询预估收入查询
|
||||||
let data = {
|
let data = {
|
||||||
|
|
@ -460,7 +480,8 @@
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.money-list{
|
|
||||||
|
.money-list {
|
||||||
.item {
|
.item {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 32rpx;
|
padding: 32rpx;
|
||||||
|
|
@ -469,7 +490,8 @@
|
||||||
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
|
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 16upx;
|
border-radius: 16upx;
|
||||||
}
|
}
|
||||||
.item:first-child{
|
|
||||||
|
.item:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue