|
@@ -68,7 +68,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
-<script>
|
|
|
|
|
|
|
+<script>
|
|
|
|
|
+import { showToast } from '../../../../common/queue';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -187,10 +188,11 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (!/^\d+$/.test(that.money)) {
|
|
if (!/^\d+$/.test(that.money)) {
|
|
|
- uni.showToast({
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
|
+ // icon: 'none',
|
|
|
|
|
+ // title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
+ // });
|
|
|
|
|
+ that.$queue.showToast('请输入正确金额,不能包含中文,英文,特殊字符和小数')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (Number(that.money) < Number(that.minMoney)) {
|
|
if (Number(that.money) < Number(that.minMoney)) {
|
|
@@ -238,10 +240,11 @@
|
|
|
|
|
|
|
|
} else if (that.current == 2) {
|
|
} else if (that.current == 2) {
|
|
|
if (!/^\d+$/.test(that.money)) {
|
|
if (!/^\d+$/.test(that.money)) {
|
|
|
- uni.showToast({
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
|
+ // icon: 'none',
|
|
|
|
|
+ // title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
+ // });
|
|
|
|
|
+ that.$queue.showToast('请输入正确金额,不能包含中文,英文,特殊字符和小数')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (Number(that.money) < Number(that.minMoney)) {
|
|
if (Number(that.money) < Number(that.minMoney)) {
|
|
@@ -332,23 +335,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (!/^\d+$/.test(that.moneys)) {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (!/^\d+$/.test(that.money)) {
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
|
+ // icon: 'none',
|
|
|
|
|
+ // title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
|
|
|
+ // });
|
|
|
|
|
+ that.$queue.showToast('请输入正确金额,不能包含中文,英文,特殊字符和小数')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (parseFloat(that.moneys).toFixed(1) >= that.minMoney) {
|
|
|
|
|
|
|
+ if (parseFloat(that.money).toFixed(1) >= that.minMoney) {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提现申请提示',
|
|
title: '提现申请提示',
|
|
|
- content: '金额:' + that.moneys + '元' + ',' + '手续费:' + parseFloat(that.moneys *
|
|
|
|
|
- that.shouxufei).toFixed(2),
|
|
|
|
|
|
|
+ content: '金额:' + that.money + '元' + ',' + '手续费:' + parseFloat(that
|
|
|
|
|
+ .money * that.shouxufei).toFixed(2),
|
|
|
success: e => {
|
|
success: e => {
|
|
|
if (e.confirm) {
|
|
if (e.confirm) {
|
|
|
that.$queue.showLoading('提现中...');
|
|
that.$queue.showLoading('提现中...');
|
|
|
let data = {
|
|
let data = {
|
|
|
- money: that.moneys,
|
|
|
|
|
|
|
+ money: that.money,
|
|
|
classify: 2,
|
|
classify: 2,
|
|
|
type: 3
|
|
type: 3
|
|
|
}
|
|
}
|