|
@@ -31,7 +31,7 @@
|
|
|
<div class="withd-tips">
|
|
|
提现注意事项:
|
|
|
<p>1.当佣金被结算时有一定的冻结期,被解冻的佣金方可提现</p>
|
|
|
- <p>2.微信打款当日单笔金额最多500元,当日最多20000元</p>
|
|
|
+ <p>2.微信打款当日单笔金额1元至200元,当日最多1000元</p>
|
|
|
<p>3.通常在1-3个工作日内可到账</p>
|
|
|
</div>
|
|
|
</Base-dialog>
|
|
@@ -57,6 +57,13 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
data() {
|
|
|
+ var checkMoney = (rule, value, callback) => {
|
|
|
+ if (!value || value < 1 || value > 200) {
|
|
|
+ callback(new Error("提现金额需在1至200元之间"));
|
|
|
+ } else {
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ };
|
|
|
return {
|
|
|
msgTitle: [
|
|
|
{ label: "学习拍照异常", value: 1 },
|
|
@@ -77,7 +84,7 @@ export default {
|
|
|
cash: 0,
|
|
|
},
|
|
|
rules: {
|
|
|
- cash: [{ required: true, message: "请输入提现金额", trigger: "blur" }],
|
|
|
+ cash: [{ required: true, validator: checkMoney, trigger: "blur" }],
|
|
|
},
|
|
|
reverse: true,
|
|
|
activities: [
|
|
@@ -135,17 +142,13 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
formatNum(val, key) {
|
|
|
- if (val > this.cash) {
|
|
|
- this.form[key] = this.cash;
|
|
|
- return;
|
|
|
- }
|
|
|
let temp = val.toString();
|
|
|
temp = temp.replace(/。/g, ".");
|
|
|
- temp = temp.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
|
|
|
- temp = temp.replace(/^\./g, ""); //验证第一个字符是数字
|
|
|
- temp = temp.replace(/\.{2,}/g, ""); //只保留第一个, 清除多余的
|
|
|
+ temp = temp.replace(/[^\d.]/g, "");
|
|
|
+ temp = temp.replace(/^\./g, "");
|
|
|
+ temp = temp.replace(/\.{2,}/g, "");
|
|
|
temp = temp.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
|
|
|
- temp = temp.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3"); //只能输入两个小数
|
|
|
+ temp = temp.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3");
|
|
|
this.form[key] = temp;
|
|
|
},
|
|
|
getWxCodeUrl() {
|
|
@@ -173,7 +176,7 @@ export default {
|
|
|
watch: {
|
|
|
dialogVisible(val) {
|
|
|
if (val) {
|
|
|
- this.form.cash = this.cash || 0;
|
|
|
+ this.form.cash = this.cash >= 200 ? 200 : this.cash || 0;
|
|
|
}
|
|
|
},
|
|
|
},
|