|
|
@@ -1,3 +1,4 @@
|
|
|
+/* eslint-disable no-empty */
|
|
|
<template>
|
|
|
<div class="detail">
|
|
|
<product-banner :info="info" pageType="asset"></product-banner>
|
|
|
@@ -461,44 +462,34 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
Consignment() {
|
|
|
- if (this.userInfo.authStatus === 'SUCCESS') {
|
|
|
- if (!this.info.consignment) {
|
|
|
- Dialog.confirm({
|
|
|
- title: '寄售上架',
|
|
|
- message: '确定寄售上架吗?'
|
|
|
- }).then(() => {
|
|
|
- this.$router.push('/Consignment?id=' + this.info.id);
|
|
|
- });
|
|
|
- } else {
|
|
|
- Dialog.confirm({
|
|
|
- title: '取消寄售',
|
|
|
- message: '确定取消寄售吗?'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- return this.$http.post(`/asset/cancelConsignment?id=${this.info.id}`);
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$toast.success('取消寄售');
|
|
|
- setTimeout(() => {
|
|
|
- this.getProduct();
|
|
|
- }, 1000);
|
|
|
+ this.checkAuth()
|
|
|
+ .then(() => {
|
|
|
+ return this.checkBank();
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (!this.info.consignment) {
|
|
|
+ Dialog.confirm({
|
|
|
+ title: '寄售上架',
|
|
|
+ message: '确定寄售上架吗?'
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push('/Consignment?id=' + this.info.id);
|
|
|
});
|
|
|
- }
|
|
|
- } else if (this.userInfo.authStatus === 'PENDING' || this.userInfo.authStatus === 'FAIL') {
|
|
|
- Dialog.confirm({
|
|
|
- title: '认证信息',
|
|
|
- message: '用户认证中,是否查看认证'
|
|
|
- }).then(() => {
|
|
|
- this.$router.push('/waiting');
|
|
|
- });
|
|
|
- } else if (this.userInfo.authStatus === 'NOT_AUTH') {
|
|
|
- Dialog.confirm({
|
|
|
- title: '认证信息',
|
|
|
- message: '用户未认证,是否立即认证'
|
|
|
- }).then(() => {
|
|
|
- this.$router.push('/Authentication');
|
|
|
+ } else {
|
|
|
+ Dialog.confirm({
|
|
|
+ title: '取消寄售',
|
|
|
+ message: '确定取消寄售吗?'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ return this.$http.post(`/asset/cancelConsignment?id=${this.info.id}`);
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$toast.success('取消寄售');
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getProduct();
|
|
|
+ }, 1000);
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
- }
|
|
|
},
|
|
|
Add() {
|
|
|
if (this.userInfo.authStatus === 'SUCCESS') {
|