|
|
@@ -373,7 +373,8 @@ export default {
|
|
|
limit: {},
|
|
|
couponList: [],
|
|
|
assignments: [],
|
|
|
- noPay: false
|
|
|
+ noPay: false,
|
|
|
+ collectionId: 0
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -398,10 +399,15 @@ export default {
|
|
|
this.$store.dispatch('getUsedBuy');
|
|
|
this.$store.dispatch('getTime');
|
|
|
this.$store.dispatch('getUserInfo');
|
|
|
- this.getProduct();
|
|
|
- this.$http.get('/order/checkLimit', { collectionId: this.$route.query.id }).then(res => {
|
|
|
+ console.log(this.$route.params);
|
|
|
+ if (this.$route.params.id) {
|
|
|
+ this.collectionId = this.$route.params.id;
|
|
|
+ }
|
|
|
+ this.$http.get('/order/checkLimit', { collectionId: this.collectionId }).then(res => {
|
|
|
this.limit = res;
|
|
|
});
|
|
|
+
|
|
|
+ this.getProduct();
|
|
|
// if (this.isLogin) {
|
|
|
// this.$http
|
|
|
// .post(
|
|
|
@@ -409,7 +415,7 @@ export default {
|
|
|
// {
|
|
|
// query: {
|
|
|
// userId: this.$store.state.userInfo.id,
|
|
|
- // collectionId: this.$route.query.id,
|
|
|
+ // collectionId: this.collectionId,
|
|
|
// status: 'NOT_PAID'
|
|
|
// }
|
|
|
// },
|
|
|
@@ -453,7 +459,7 @@ export default {
|
|
|
forbidClick: true
|
|
|
});
|
|
|
this.$http
|
|
|
- .get('/collection/get/' + this.$route.query.id)
|
|
|
+ .get('/collection/get/' + this.collectionId)
|
|
|
.then(res => {
|
|
|
if (this.$store.state.from === 'scanCode') {
|
|
|
res.onShelf = true;
|
|
|
@@ -469,12 +475,12 @@ export default {
|
|
|
wx.updateAppMessageShareData({
|
|
|
title: '第九空间-' + res.name,
|
|
|
desc: '全球首个基于区块链的游戏资产集换中心',
|
|
|
- link: location.origin + '/9th/productDetail?id=' + res.id,
|
|
|
+ link: location.origin + '/9th/productDetail/' + res.id,
|
|
|
imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
|
|
|
});
|
|
|
wx.updateTimelineShareData({
|
|
|
title: '第九空间-' + res.name,
|
|
|
- link: location.origin + '/9th/productDetail?id=' + res.id,
|
|
|
+ link: location.origin + '/9th/productDetail/' + res.id,
|
|
|
imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
|
|
|
});
|
|
|
console.log(wx);
|
|
|
@@ -601,7 +607,7 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: '/submit',
|
|
|
query: {
|
|
|
- id: this.$route.query.id,
|
|
|
+ id: this.collectionId,
|
|
|
invitor: this.$route.query.invitor
|
|
|
}
|
|
|
});
|