提交 c3eae2ff authored 作者: huaxinzhu's avatar huaxinzhu

1、官网图片压缩;2、提现申请,扣手续费提示

上级 3bba680a
src/assets/image/website/banner.png

447.8 KB | W: | H:

src/assets/image/website/banner.png

147.0 KB | W: | H:

src/assets/image/website/banner.png
src/assets/image/website/banner.png
src/assets/image/website/banner.png
src/assets/image/website/banner.png
  • 2-up
  • Swipe
  • Onion skin
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
......@@ -265,12 +265,9 @@
this.$refs["form"].validate(valid => {
if (valid) {
this.form.sellerId = this.queryParams.sellerId;
// this.form.TxType = 1;
this.loading = true;
addBankcard(this.form).then(response => {
if (response.code === 1) {
this.msgSuccess("新增成功");
this.loading = false;
this.open = false;
this.bank = false;
this.zfb = false;
......@@ -278,8 +275,6 @@
}else {
this.message({type:'error',message: response.message});
}
this.loading = true;
});
}
......
......@@ -105,6 +105,7 @@
methods: {
//-----------
// 自定义高精度浮点数运算
// 加法
add(arg1, arg2) {
let r1, r2, m, result;
try {
......@@ -120,6 +121,7 @@
result = result.toFixed(2);
return result;
},
// 减法
minus(arg1, arg2) {
return this.add(arg1, -arg2);
},
......@@ -223,7 +225,7 @@
getBankcardList() {
getBankcardList({sellerId: this.sellerId}).then(response => {
this.banklist = response.data.data;
debugger
//debugger
});
},
......@@ -249,6 +251,13 @@
if (valid) {
let numberMoney = Number(this.form.amount);
let numberCash = Number(this.drawableCash);
let numberFee = Number(this.newFee);
// 提现金额 + 手续费 <= 可提现金额
// add minus
// 提现金额 + 手续费
let feeAddAmount = this.add(numberFee,numberMoney);
let isabled = Number(this.minus( numberCash, feeAddAmount) );
this.form.sellerId = this.sellerId;
// 再次校验 提现信息
......@@ -260,12 +269,22 @@
this.$message({type: 'error',message: '提现金额不能小于100'});
return;
}
if(numberMoney > numberCash ) {
if( (numberMoney > numberCash) ) {
this.$message({type: 'error',message: '提现金额不足!'});
return;
}
if( isabled < 0 ) {
this.$message({type: 'error',message: '【当前余额】不足以支付本次提现的手续费用,请您重新输入提现金额'});
return;
}
this.form.amount = Number(this.form.amount);
// console.log(this.newFee);
// console.log(feeAddAmount,isabled);
//
// return;
addWithdrawlog(this.form).then(response => {
if (response.code === 1) {
this.msgSuccess(response.message);
......@@ -274,9 +293,6 @@
else {
this.$message({type: 'error',message: response.message});
}
// else {
// this.$message({type: 'error',message: res.msg});
// }
});
}
});
......
......@@ -765,9 +765,10 @@
}
.floor-item {
padding: 0 20px 0 0;
margin: 15px auto;
padding: 20px;
margin: 20px;
color: #333;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0 ,0.1);
}
.submit-type-con {
width: 236px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论