Commit 58a5395b authored by 全球's avatar 全球

bug

1.提现时间
2.直推切换
3.税款截取
parent 102b1a1c
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
<div class="real"> <div class="real">
<p class="real-item"> <p class="real-item">
<span>实际到账</span> <span>实际到账</span>
<span>{{ account }}</span> <span>{{ account.toFixed(2) }}</span>
</p> </p>
<p class="real-item"> <p class="real-item">
<span>税款</span> <span>税款</span>
<span>{{ rate }}</span> <span>{{ rate.toFixed(2) }}</span>
</p> </p>
<p class="explain"> <p class="explain">
<span>扣税说明</span> <span>扣税说明</span>
...@@ -70,6 +70,17 @@ ...@@ -70,6 +70,17 @@
class="valid-code" class="valid-code"
src="@/assets/images/验证码.png" src="@/assets/images/验证码.png"
/> />
<van-button
slot="button"
size="small"
type="primary"
class="verify-code"
:disabled="disabled"
@click="sendSms"
>
<span v-if="!disabled">发送验证码</span>
<span v-else>{{ time }}秒后重新发送</span>
</van-button>
</van-field> </van-field>
</div> </div>
</base-dialog> </base-dialog>
...@@ -109,9 +120,11 @@ export default { ...@@ -109,9 +120,11 @@ export default {
resultDialogTip: "", resultDialogTip: "",
resultDialogImg: "", resultDialogImg: "",
resultDialog: false, resultDialog: false,
disabled: false,
textName: "", textName: "",
validCodeDialogShow: false, validCodeDialogShow: false,
validCode: null validCode: null,
time: 60,
}; };
}, },
created() { created() {
...@@ -125,6 +138,13 @@ export default { ...@@ -125,6 +138,13 @@ export default {
return false; return false;
} }
}, },
sendSms() {
const _this = this;
_this.time = 60;
_this.disabled = true;
},
inputClick() { inputClick() {
this.rate = this.money * 0.02; this.rate = this.money * 0.02;
this.account = this.money - this.rate; this.account = this.money - this.rate;
...@@ -329,4 +349,9 @@ export default { ...@@ -329,4 +349,9 @@ export default {
height: 18px; height: 18px;
} }
} }
.verify-code {
background-color: transparent;
border: none;
color: #88c677;
}
</style> </style>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
sticky sticky
color="#28b537" color="#28b537"
@click="changeTab" @click="changeTab"
@change="changeTabs"
> >
<van-tab <van-tab
v-for="item in Tabs" v-for="item in Tabs"
...@@ -158,6 +159,10 @@ export default { ...@@ -158,6 +159,10 @@ export default {
console.log("tab", name); console.log("tab", name);
this.getRecommendDetail(name); this.getRecommendDetail(name);
}, },
changeTabs(name){
console.log("tab", name);
this.getRecommendDetail(name);
},
onDownLoad(val) { onDownLoad(val) {
console.log("下拉加载", val); console.log("下拉加载", val);
}, },
......
...@@ -112,9 +112,9 @@ export default { ...@@ -112,9 +112,9 @@ export default {
}, },
sendSms() { sendSms() {
const _this = this; const _this = this;
if (_this.timer) { // if (_this.timer) {
return false; // return false;
} // }
// 校验手机号 // 校验手机号
let phoneReg = /^(0|86|17951)?(13[0-9]|15[012356789]|17[0-9]|18[0-9]|14[57])[0-9]{8}$/; let phoneReg = /^(0|86|17951)?(13[0-9]|15[012356789]|17[0-9]|18[0-9]|14[57])[0-9]{8}$/;
//如果手机号码输入为空 //如果手机号码输入为空
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
this.$toast.clear(); this.$toast.clear();
_this.registerBtnDisabled = false; _this.registerBtnDisabled = false;
if (res.code === 0) { if (res.code === 0) {
this.$toast("注册成功"); this.$toast.success("注册成功");
//_this.$toast.sucess(res.msg); //_this.$toast.sucess(res.msg);
} else { } else {
_this.show = true; _this.show = true;
......
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