|
@@ -381,7 +381,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
Whisper() {
|
|
Whisper() {
|
|
|
- // this.show2 = true;
|
|
|
|
|
if (!this.init2.once) {
|
|
if (!this.init2.once) {
|
|
|
this.show2 = true;
|
|
this.show2 = true;
|
|
|
this.$http
|
|
this.$http
|
|
@@ -445,25 +444,32 @@ export default {
|
|
|
Dialog.confirm({
|
|
Dialog.confirm({
|
|
|
title: '公开展示',
|
|
title: '公开展示',
|
|
|
message: '藏品将公开展示,无报价'
|
|
message: '藏品将公开展示,无报价'
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- return this.$http.post(`/asset/publicShow?id=${this.info.id}`);
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- this.getProduct();
|
|
|
|
|
- this.$toast.success('展示成功');
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ return this.$http
|
|
|
|
|
+ .post(`/asset/publicShow?id=${this.info.id}`)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.$toast.success('展示成功');
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.getProduct();
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ this.$toast.success(e.error);
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
Dialog.confirm({
|
|
Dialog.confirm({
|
|
|
title: '取消展示',
|
|
title: '取消展示',
|
|
|
- message: '藏品将公开展示,无报价'
|
|
|
|
|
|
|
+ message: '藏品将取消展示,无报价'
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
return this.$http.post(`/asset/cancelPublic?id=${this.info.id}`);
|
|
return this.$http.post(`/asset/cancelPublic?id=${this.info.id}`);
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- this.getProduct();
|
|
|
|
|
- this.$toast.success('取消展示');
|
|
|
|
|
|
|
+ this.$toast.success('取消成功');
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.getProduct();
|
|
|
|
|
+ }, 1000);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -488,8 +494,6 @@ export default {
|
|
|
this.init = res.privileges.filter(item => {
|
|
this.init = res.privileges.filter(item => {
|
|
|
return item.name !== '悄悄话';
|
|
return item.name !== '悄悄话';
|
|
|
});
|
|
});
|
|
|
- // console.log(this.init);
|
|
|
|
|
- console.log(this.info);
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
if (this.isBuy) {
|
|
if (this.isBuy) {
|
|
|
this.btn = this.$refs.btn;
|
|
this.btn = this.$refs.btn;
|