Commit d320e776 authored by 全球's avatar 全球

提现税率计算,图片替换

parent 13e413d3
This image diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
label="¥" label="¥"
class="money" class="money"
@blur="onFillMoneyBlur" @blur="onFillMoneyBlur"
@input="inputClick"
/> />
<div class="remain"> <div class="remain">
<span style="color: #666666" <span style="color: #666666"
...@@ -21,11 +22,11 @@ ...@@ -21,11 +22,11 @@
<div class="real"> <div class="real">
<p class="real-item"> <p class="real-item">
<span>实际到账</span> <span>实际到账</span>
<span>94.19</span> <span>{{account}}</span>
</p> </p>
<p class="real-item"> <p class="real-item">
<span>税款</span> <span>税款</span>
<span>6.34</span> <span>{{rate}}</span>
</p> </p>
<p class="explain"> <p class="explain">
<span>扣税说明</span> <span>扣税说明</span>
...@@ -94,6 +95,8 @@ export default { ...@@ -94,6 +95,8 @@ export default {
userPhone: this.$userId, userPhone: this.$userId,
bank: "", bank: "",
money: null, money: null,
account:0,
rate:0,
remainMoney: 100, remainMoney: 100,
resultDialogTitle: "", resultDialogTitle: "",
resultDialogTip: "", resultDialogTip: "",
...@@ -114,6 +117,10 @@ export default { ...@@ -114,6 +117,10 @@ export default {
return false; return false;
} }
}, },
inputClick(){
this.rate = this.money * 0.02
this.account = this.money - this.rate
},
canCashOut() { canCashOut() {
const params = { const params = {
userId: this.$userId userId: this.$userId
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
.invite-code { .invite-code {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background: url("../assets/images/invite.png"); background: url("../assets/images/invite1.png");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.imgCode { .imgCode {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-cell <van-cell
class="van-less"
is-link is-link
title="推荐人邀请码" title="推荐人邀请码"
:value="inviteeCode" :value="inviteeCode"
...@@ -126,6 +127,11 @@ export default { ...@@ -126,6 +127,11 @@ export default {
.settings { .settings {
box-sizing: border-box; box-sizing: border-box;
padding: 10px 16px; padding: 10px 16px;
.van-less{
.van-cell__right-icon{
display: none;
}
}
} }
.group-1 { .group-1 {
margin-bottom: 10px; margin-bottom: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment