|
|
@@ -467,7 +467,8 @@ export default {
|
|
|
init2: [],
|
|
|
list2: [],
|
|
|
opened: '',
|
|
|
- lists: ''
|
|
|
+ lists: '',
|
|
|
+ ipcList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -489,6 +490,13 @@ export default {
|
|
|
return list.map(item => {
|
|
|
return this.getImg(this.changeImgs(item.pic));
|
|
|
});
|
|
|
+ },
|
|
|
+ ipcFlag() {
|
|
|
+ if (this.ipcList.length > 0) {
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -499,6 +507,9 @@ export default {
|
|
|
if (this.userInfo.authStatus !== 'NOT_AUTH') {
|
|
|
this.add();
|
|
|
}
|
|
|
+ if (this.isLogin) {
|
|
|
+ this.BackCard();
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
$route() {
|
|
|
@@ -687,8 +698,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ BackCard() {
|
|
|
+ this.$http.get('user/myBankCard').then(res => {
|
|
|
+ this.ipcList = res;
|
|
|
+ // console.log(res);
|
|
|
+ });
|
|
|
+ },
|
|
|
Consignment() {
|
|
|
- if (this.userInfo.authStatus === 'SUCCESS') {
|
|
|
+ if (this.userInfo.authStatus === 'SUCCESS' && this.ipcFlag) {
|
|
|
if (!this.info.consignment) {
|
|
|
this.$refs.refFn.isShow = true;
|
|
|
} else {
|
|
|
@@ -741,11 +758,19 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.$router.push('/authentication');
|
|
|
});
|
|
|
+ } else if (!this.ipcFlag) {
|
|
|
+ this.$confirm('未绑定银行卡不可寄售,是否认证', '认证', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ customClass: 'myClass',
|
|
|
+ center: true
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push('/addipc');
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
changeShow() {
|
|
|
if (!this.info.publicShow) {
|
|
|
- // console.log(this.info);
|
|
|
this.$confirm('藏品将公开展示,无报价', '公开展示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -797,7 +822,6 @@ export default {
|
|
|
.then(res => {
|
|
|
// console.log(res);
|
|
|
this.lists = res.content[0].org;
|
|
|
- // console.log(this.lists);
|
|
|
});
|
|
|
},
|
|
|
send() {
|
|
|
@@ -813,7 +837,6 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.add();
|
|
|
this.$nextTick(() => {
|
|
|
- // console.log(this.lists);
|
|
|
setTimeout(() => {
|
|
|
if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
|
|
|
this.add();
|