|
|
@@ -57,12 +57,17 @@
|
|
|
{{ cardCaseInfo.description }}
|
|
|
</div>
|
|
|
<h3>卡箱稀有卡</h3>
|
|
|
- <div class="boxImg">
|
|
|
- <div v-for="(item, index) in img" :key="index">
|
|
|
- <img :src="item" alt="" />
|
|
|
+ <div class="cardBox">
|
|
|
+ <div class="cardList" v-for="(item, index) in cardList" :key="index">
|
|
|
+ <div class="boxImg">
|
|
|
+ <img :src="item.image" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="name">
|
|
|
+ <p>{{ item.cardName }}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <h3>拼箱规则</h3>
|
|
|
+ <h2>拼箱规则</h2>
|
|
|
<div class="box-details">
|
|
|
1.拼箱是一种类似拼团的玩法,用户选号后支付,当箱中的全部号码都被购买完毕,才算拼箱成功。如果在有限时间内拼箱没有成团,系统会把钱退回给买家<br />
|
|
|
2.带有“直播开箱”的拼箱商品,是指当拼箱成团后,店家会实时直播开箱,原箱开封,把所有卡包拆开确认卡片内容,买家可以在小程序上观看直播<br />
|
|
|
@@ -93,12 +98,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="box-footer-right">
|
|
|
- <van-button v-if="cardCaseInfo.caseStatus !== 'FINISH'" type="warning" @click="purchase"
|
|
|
- >立即购买</van-button
|
|
|
- >
|
|
|
<van-button v-if="cardCaseInfo.caseStatus == 'FINISH'" type="warning" @click="result"
|
|
|
>查看结果</van-button
|
|
|
>
|
|
|
+ <van-button v-else type="warning" @click="purchase">立即购买</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -119,26 +122,13 @@ export default {
|
|
|
show: false,
|
|
|
name: '',
|
|
|
list: [],
|
|
|
+ cardList: [],
|
|
|
cardCaseInfo: {},
|
|
|
chooseIds: [],
|
|
|
banners: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- img() {
|
|
|
- const imgs = [
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-04-40tPoNRlQq.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-05-07NiBLdSgT.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-04-40tPoNRlQq.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-05-07NiBLdSgT.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-04-40tPoNRlQq.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-05-07NiBLdSgT.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-04-40tPoNRlQq.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-05-07NiBLdSgT.jpg',
|
|
|
- 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-06-08-15-05-28LCsyYvYX.jpg'
|
|
|
- ];
|
|
|
- return imgs;
|
|
|
- },
|
|
|
time() {
|
|
|
if (this.cardCaseInfo.endTime) {
|
|
|
let date = dayjs(this.cardCaseInfo.endTime, 'YYYY-MM-DD HH:mm:ss');
|
|
|
@@ -167,16 +157,17 @@ export default {
|
|
|
.get('/cardCase/showInfoMA?caseId=' + this.$mp.options.id)
|
|
|
.then(res => {
|
|
|
this.hideLoading();
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
+ // console.log(res.cardCaseInfo.cardCaseId);
|
|
|
this.detailsList = res.groupBoxMap;
|
|
|
this.cardCaseInfo = res.cardCaseInfo || {};
|
|
|
+ this.cardList = res.cardCaseInfo.cardDTOs;
|
|
|
this.banners = res.cardCaseInfo.images;
|
|
|
return this.$http.get('/store/get/' + res.cardCaseInfo.storeId);
|
|
|
})
|
|
|
.then(res => {
|
|
|
console.log(res);
|
|
|
this.storeInfo = res;
|
|
|
- // console.log(this.storeInfo.id);
|
|
|
})
|
|
|
.catch(e => {
|
|
|
this.hideLoading();
|
|
|
@@ -187,7 +178,6 @@ export default {
|
|
|
},
|
|
|
result() {
|
|
|
this.navigateTo('/pages/unpacking?id=' + this.cardCaseInfo.cardCaseId);
|
|
|
- // this.navigateTo('/pages/unpacking');
|
|
|
},
|
|
|
// 确认订单
|
|
|
purchase() {
|
|
|
@@ -258,7 +248,6 @@ export default {
|
|
|
border-radius: 8px;
|
|
|
}
|
|
|
.box-tit {
|
|
|
- height: 24px;
|
|
|
font-size: 20px;
|
|
|
font-weight: bold;
|
|
|
color: #000000;
|
|
|
@@ -267,7 +256,6 @@ export default {
|
|
|
}
|
|
|
.box-live {
|
|
|
width: 88px;
|
|
|
- height: 26px;
|
|
|
background: #ff6c00;
|
|
|
border-radius: 4px;
|
|
|
.flex();
|
|
|
@@ -278,7 +266,6 @@ export default {
|
|
|
padding-left: 4px;
|
|
|
}
|
|
|
p {
|
|
|
- height: 22px;
|
|
|
font-size: 12px;
|
|
|
font-weight: 400;
|
|
|
color: #ffffff;
|
|
|
@@ -296,7 +283,6 @@ export default {
|
|
|
}
|
|
|
p {
|
|
|
font-family: 'OSP';
|
|
|
- height: 22px;
|
|
|
font-size: 30px;
|
|
|
font-weight: normal;
|
|
|
color: #f42202;
|
|
|
@@ -313,7 +299,6 @@ export default {
|
|
|
background: #ff6c0020;
|
|
|
border-radius: 8px;
|
|
|
p {
|
|
|
- height: 22px;
|
|
|
font-size: 13px;
|
|
|
font-weight: 400;
|
|
|
color: #00000040;
|
|
|
@@ -322,7 +307,6 @@ export default {
|
|
|
margin-top: 15px;
|
|
|
}
|
|
|
.val {
|
|
|
- height: 26px;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
color: @prim;
|
|
|
@@ -344,7 +328,6 @@ export default {
|
|
|
background: #ff6c0020;
|
|
|
border-radius: 8px;
|
|
|
p {
|
|
|
- height: 22px;
|
|
|
font-size: 13px;
|
|
|
font-weight: 400;
|
|
|
color: #00000040;
|
|
|
@@ -353,7 +336,6 @@ export default {
|
|
|
margin-top: 15px;
|
|
|
}
|
|
|
span {
|
|
|
- height: 26px;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
color: @prim;
|
|
|
@@ -382,14 +364,12 @@ export default {
|
|
|
}
|
|
|
.logo-shop {
|
|
|
p {
|
|
|
- height: 24px;
|
|
|
font-size: 15px;
|
|
|
font-weight: bold;
|
|
|
color: #000000;
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
span {
|
|
|
- height: 22px;
|
|
|
font-size: 12px;
|
|
|
font-weight: 400;
|
|
|
color: rgba(0, 0, 0, 0.3);
|
|
|
@@ -399,7 +379,6 @@ export default {
|
|
|
}
|
|
|
.logo-btn {
|
|
|
width: 68px;
|
|
|
- height: 34px;
|
|
|
background: #f5f7fa;
|
|
|
border-radius: 8px;
|
|
|
font-size: 13px;
|
|
|
@@ -410,6 +389,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ h2 {
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 28px;
|
|
|
+ margin-top: 17px;
|
|
|
+ }
|
|
|
h3 {
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
@@ -424,21 +410,33 @@ export default {
|
|
|
line-height: 28px;
|
|
|
margin: 10px 0 15px 0;
|
|
|
}
|
|
|
- .boxImg {
|
|
|
- // /deep/ ._swiper {
|
|
|
- // ._swiper-item {
|
|
|
- // width: 110px !important;
|
|
|
- // }
|
|
|
- // }
|
|
|
+ .cardBox {
|
|
|
.flex();
|
|
|
overflow: hidden;
|
|
|
overflow-x: auto;
|
|
|
- margin-top: 15px;
|
|
|
- img {
|
|
|
- width: 110px;
|
|
|
- height: 150px;
|
|
|
- margin-right: 2px;
|
|
|
- border-radius: 8px;
|
|
|
+ .cardList {
|
|
|
+ .boxImg {
|
|
|
+ .flex();
|
|
|
+ margin-top: 15px;
|
|
|
+ img {
|
|
|
+ top: 0;
|
|
|
+ width: 110px;
|
|
|
+ height: 150px;
|
|
|
+ margin-right: 2px;
|
|
|
+ border-radius: 8px;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .name {
|
|
|
+ .flex();
|
|
|
+ p {
|
|
|
+ min-height: 50px;
|
|
|
+ overflow: hidden;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #303133;
|
|
|
+ padding-left: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.box-footer {
|
|
|
@@ -456,7 +454,6 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
margin-right: 44px;
|
|
|
div {
|
|
|
- height: 28px;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
color: #000000;
|
|
|
@@ -464,7 +461,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
p {
|
|
|
- height: 28px;
|
|
|
width: 20px;
|
|
|
font-size: 16px;
|
|
|
font-weight: 500;
|
|
|
@@ -481,7 +477,6 @@ export default {
|
|
|
height: 24px;
|
|
|
}
|
|
|
p {
|
|
|
- height: 14px;
|
|
|
font-size: 10px;
|
|
|
font-weight: 400;
|
|
|
color: #1a1a1a;
|