|
|
@@ -75,7 +75,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <order-open ref="box" :imgSrc="getImg(changeImgs(info.pic))"></order-open>
|
|
|
+ <order-open ref="box" :imgSrc="getImg(changeImgs(collection.pic))"></order-open>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -89,7 +89,8 @@ export default {
|
|
|
name: 'detail',
|
|
|
data() {
|
|
|
return {
|
|
|
- info: {}
|
|
|
+ info: {},
|
|
|
+ collection: {}
|
|
|
};
|
|
|
},
|
|
|
mixins: [order, product],
|
|
|
@@ -98,13 +99,19 @@ export default {
|
|
|
message: '加载中...',
|
|
|
forbidClick: true
|
|
|
});
|
|
|
- this.$http.get('/order/get/' + this.$route.query.id).then(res => {
|
|
|
- this.info = res;
|
|
|
- this.$toast.clear();
|
|
|
- if (dayjs().isBefore(dayjs(res.payTime).add(3, 'minute')) && res.type === 'BLIND_BOX') {
|
|
|
- this.$refs.box.show = true;
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$http
|
|
|
+ .get('/order/get/' + this.$route.query.id)
|
|
|
+ .then(res => {
|
|
|
+ this.info = res;
|
|
|
+ this.$toast.clear();
|
|
|
+ return this.$http.get('/collection/get/' + res.winCollectionId);
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.collection = res;
|
|
|
+ if (dayjs().isBefore(dayjs(this.info.payTime).add(3, 'minute')) && this.info.type === 'BLIND_BOX') {
|
|
|
+ this.$refs.box.show = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
copy() {
|