|
@@ -159,6 +159,7 @@ font-weight: 500;">{{ findMyAmountData.withdrawableAmount }}</span> </span>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
|
|
|
+import { MessageBox } from 'element-ui'
|
|
|
export default {
|
|
export default {
|
|
|
// 数据存放区域
|
|
// 数据存放区域
|
|
|
data() {
|
|
data() {
|
|
@@ -375,56 +376,64 @@ export default {
|
|
|
bankNumber: this.bankCardInfo?this.bankCardInfo.bankNumber: null
|
|
bankNumber: this.bankCardInfo?this.bankCardInfo.bankNumber: null
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
that.withdrawLoading = false
|
|
that.withdrawLoading = false
|
|
|
- if(res.data.bizCode === '2') {
|
|
|
|
|
- if(res.data.url) {
|
|
|
|
|
- that.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.msg,
|
|
|
|
|
- });
|
|
|
|
|
- window.open(res.data.url)
|
|
|
|
|
- }
|
|
|
|
|
- } else if(res.data.bizCode === '1') {
|
|
|
|
|
- that.$api.letter.getSignSrc({
|
|
|
|
|
- userId: userInfo.id
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
|
+ if(res.code == '200') {
|
|
|
|
|
+ if(res.data.bizCode === '2') {
|
|
|
if(res.data.url) {
|
|
if(res.data.url) {
|
|
|
- that.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: res.data.msg,
|
|
|
|
|
- });
|
|
|
|
|
- window.open(res.data.url)
|
|
|
|
|
|
|
+ MessageBox.confirm(res.data.msg, '温馨提示',{
|
|
|
|
|
+ confirmButtonText: '去查看',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ window.open(res.data.url)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- } else if(res.data.bizCode === '3' || res.data.bizCode === '0') {
|
|
|
|
|
- that.extract = null
|
|
|
|
|
- that.$api.letter.getUserBankList({
|
|
|
|
|
- auditStatus: '1',
|
|
|
|
|
- delFlag: '0'
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- if (res.code == '200' && res.data.length) {
|
|
|
|
|
- this.bankList.map(val => {
|
|
|
|
|
- res.data.map(ele => {
|
|
|
|
|
- if (val.bankName == ele.bankAccount) {
|
|
|
|
|
- ele.logo = val.logo;
|
|
|
|
|
- return ele;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ } else if(res.data.bizCode === '1') {
|
|
|
|
|
+ that.$api.letter.getSignSrc({
|
|
|
|
|
+ userId: userInfo.id
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res.data.url) {
|
|
|
|
|
+ MessageBox.confirm(res.data.msg, '温馨提示',{
|
|
|
|
|
+ confirmButtonText: '去签约',
|
|
|
|
|
+ cancelButtonText: '稍后签约',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ window.open(res.data.url)
|
|
|
})
|
|
})
|
|
|
- })
|
|
|
|
|
- this.cardPackList = res.data;
|
|
|
|
|
- let bankinfo = res.data.find(val => val.isDefault == 1)
|
|
|
|
|
- if (bankinfo) {
|
|
|
|
|
- this.bankCardInfo = bankinfo;
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if(res.data.bizCode === '3' || res.data.bizCode === '0') {
|
|
|
|
|
+ that.extract = null
|
|
|
|
|
+ that.$api.letter.getUserBankList({
|
|
|
|
|
+ auditStatus: '1',
|
|
|
|
|
+ delFlag: '0'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.code == '200' && res.data.length) {
|
|
|
|
|
+ this.bankList.map(val => {
|
|
|
|
|
+ res.data.map(ele => {
|
|
|
|
|
+ if (val.bankName == ele.bankAccount) {
|
|
|
|
|
+ ele.logo = val.logo;
|
|
|
|
|
+ return ele;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ this.cardPackList = res.data;
|
|
|
|
|
+ let bankinfo = res.data.find(val => val.isDefault == 1)
|
|
|
|
|
+ if (bankinfo) {
|
|
|
|
|
+ this.bankCardInfo = bankinfo;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.bankCardInfo = res.data[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ this.withdrawalVisible = true;
|
|
|
} else {
|
|
} else {
|
|
|
- this.bankCardInfo = res.data[0]
|
|
|
|
|
|
|
+ that.$message({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: "暂无审核通过的银行卡,不可提现",
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- this.withdrawalVisible = true;
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$message({
|
|
|
|
|
- type: 'error',
|
|
|
|
|
- message: "暂无审核通过的银行卡,不可提现",
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|