|
|
@@ -515,6 +515,10 @@ export default {
|
|
|
title: '公开展示',
|
|
|
message: '藏品将公开展示,无报价'
|
|
|
}).then(() => {
|
|
|
+ this.$toast.loading({
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true
|
|
|
+ });
|
|
|
return this.$http
|
|
|
.post(`/asset/publicShow?id=${this.info.id}`)
|
|
|
.then(res => {
|
|
|
@@ -533,6 +537,10 @@ export default {
|
|
|
message: '藏品将取消展示,无报价'
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ this.$toast.loading({
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true
|
|
|
+ });
|
|
|
return this.$http.post(`/asset/cancelPublic?id=${this.info.id}`);
|
|
|
})
|
|
|
.then(res => {
|
|
|
@@ -556,19 +564,21 @@ export default {
|
|
|
});
|
|
|
this.$http.get('/asset/get/' + this.$route.query.id).then(res => {
|
|
|
this.info = res;
|
|
|
- this.$http.get('/order/get/' + res.orderId).then(res => {
|
|
|
- this.orderInfo = res;
|
|
|
- });
|
|
|
+ if (res.orderId) {
|
|
|
+ this.$http.get('/order/get/' + res.orderId).then(res => {
|
|
|
+ this.orderInfo = res;
|
|
|
+ });
|
|
|
+ }
|
|
|
wx.updateAppMessageShareData({
|
|
|
title: 'Cosmos Art - ' + res.name,
|
|
|
desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
|
|
|
- link: location.origin + '/cosmos/assetDetail?id=' + res.id,
|
|
|
+ link: location.origin + '/cosmos/productDetail?id=' + res.publicCollectionId,
|
|
|
imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
|
|
|
});
|
|
|
wx.updateTimelineShareData({
|
|
|
title: 'Cosmos Art - ' + res.name,
|
|
|
desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
|
|
|
- link: location.origin + '/cosmos/assetDetail?id=' + res.id,
|
|
|
+ link: location.origin + '/cosmos/productDetail?id=' + res.publicCollectionId,
|
|
|
imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
|
|
|
});
|
|
|
this.tokenId = this.info.tokenId;
|