|
|
@@ -35,79 +35,88 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 进行中 -->
|
|
|
<div class="box-con" v-if="conduct">
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/2.jpeg" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">DP20 简中 传说之决斗者编3</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>距离结束</p>
|
|
|
- <p class="box-con-p2">1天 20:35:06</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>已拼箱</p>
|
|
|
- <p class="box-con-p2">10/24</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
- <p>320</p>
|
|
|
+ <div v-for="(item, index) in conductList" :key="index + 2">
|
|
|
+ <div class="box-con-Cards">
|
|
|
+ <img :src="item.image" alt="" />
|
|
|
+ <div class="box-con-right">
|
|
|
+ <p class="box-con-tit">{{ item.caseName }}</p>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>距离结束</p>
|
|
|
+ <p class="box-con-p2">{{ item.endTime }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>已拼箱</p>
|
|
|
+ <p class="box-con-p2">{{ item.preorder }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-money">
|
|
|
+ <div class="box-con-num">
|
|
|
+ <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
+ <p>{{ item.price }}</p>
|
|
|
+ </div>
|
|
|
+ <van-button type="warning" @click="Details(item)">立即拼箱</van-button>
|
|
|
</div>
|
|
|
- <van-button type="warning" @click="Details">立即拼箱</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="box-border"></div>
|
|
|
</div>
|
|
|
- <div class="box-border"></div>
|
|
|
</div>
|
|
|
+ <!-- 已完成 -->
|
|
|
<div class="box-con" v-if="complete">
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../native/imgs/marker.png" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">DP20 简中 传说之决斗者编3</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>距离结束</p>
|
|
|
- <p class="box-con-p2">1天 20:35:06</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>已拼箱</p>
|
|
|
- <p class="box-con-p2">10/24</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
- <p>320</p>
|
|
|
+ <div v-for="(item, index) in completeList" :key="index + 4">
|
|
|
+ <div class="box-con-Cards">
|
|
|
+ <img :src="item.image" alt="" />
|
|
|
+ <div class="box-con-right">
|
|
|
+ <p class="box-con-tit">{{ item.caseName }}</p>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>距离结束</p>
|
|
|
+ <p class="box-con-p2">{{ item.endTime }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>已拼箱</p>
|
|
|
+ <p class="box-con-p2">{{ item.preorder }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-money">
|
|
|
+ <div class="box-con-num">
|
|
|
+ <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
+ <p>{{ item.price }}</p>
|
|
|
+ </div>
|
|
|
+ <van-button type="warning" @click="Details(item)">立即拼箱</van-button>
|
|
|
</div>
|
|
|
- <van-button type="warning" @click="Details">立即拼箱</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="box-border"></div>
|
|
|
</div>
|
|
|
- <div class="box-border"></div>
|
|
|
</div>
|
|
|
+ <!-- 已过期 -->
|
|
|
<div class="box-con" v-if="overdue">
|
|
|
- <div class="box-con-Cards">
|
|
|
- <img src="../static/imgs/megalo_logo.png" alt="" />
|
|
|
- <div class="box-con-right">
|
|
|
- <p class="box-con-tit">DP20 简中 传说之决斗者编3</p>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>距离结束</p>
|
|
|
- <p class="box-con-p2">1天 20:35:06</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-today">
|
|
|
- <p>已拼箱</p>
|
|
|
- <p class="box-con-p2">10/24</p>
|
|
|
- </div>
|
|
|
- <div class="box-con-money">
|
|
|
- <div class="box-con-num">
|
|
|
- <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
- <p>320</p>
|
|
|
+ <div v-for="(item, index) in overdueList" :key="index + 6">
|
|
|
+ <div class="box-con-Cards">
|
|
|
+ <img :src="item.image" alt="" />
|
|
|
+ <div class="box-con-right">
|
|
|
+ <p class="box-con-tit">{{ item.caseName }}</p>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>距离结束</p>
|
|
|
+ <p class="box-con-p2">{{ item.endTime }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-today">
|
|
|
+ <p>已拼箱</p>
|
|
|
+ <p class="box-con-p2">{{ item.preorder }}</p>
|
|
|
+ </div>
|
|
|
+ <div class="box-con-money">
|
|
|
+ <div class="box-con-num">
|
|
|
+ <img src="../static/imgs/icon_jiage.png" alt="" />
|
|
|
+ <p>{{ item.price }}</p>
|
|
|
+ </div>
|
|
|
+ <van-button type="warning" @click="Details(item)">立即拼箱</van-button>
|
|
|
</div>
|
|
|
- <van-button type="warning" @click="Details">立即拼箱</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="box-border"></div>
|
|
|
</div>
|
|
|
- <div class="box-border"></div>
|
|
|
</div>
|
|
|
- <van-popup :show="show" position="top" custom-style="height: 20%;" bind:close="onClose">内容</van-popup>
|
|
|
+ <van-popup :show="show" position="buttom" custom-style="height: 20%;" bind:close="onClose">内容</van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -119,15 +128,55 @@ export default {
|
|
|
conduct: true,
|
|
|
complete: false,
|
|
|
overdue: false,
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
+ PROGRESS: 'PROGRESS',
|
|
|
+ FINISH: 'FINISH',
|
|
|
+ SOLDOUT: 'SOLDOUT',
|
|
|
+ conductList: [],
|
|
|
+ completeList: [],
|
|
|
+ overdueList: []
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- Details() {
|
|
|
+ Details(item) {
|
|
|
+ console.log(item.cardCaseId);
|
|
|
wx.redirectTo({
|
|
|
- url: './details'
|
|
|
+ url: './details?id=' + item.cardCaseId
|
|
|
});
|
|
|
},
|
|
|
+ // 进行中
|
|
|
+ conDucts() {
|
|
|
+ this.$http
|
|
|
+ .get('/cardCase/showCasesMA', {
|
|
|
+ caseStatus: this.PROGRESS
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.conductList = res;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 已完成
|
|
|
+ compLetes() {
|
|
|
+ this.$http
|
|
|
+ .get('/cardCase/showCasesMA', {
|
|
|
+ caseStatus: this.SOLDOUT
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.completeList = res;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 已过期
|
|
|
+ overDues() {
|
|
|
+ this.$http
|
|
|
+ .get('/cardCase/showCasesMA', {
|
|
|
+ caseStatus: this.FINISH
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.overdueList = res;
|
|
|
+ });
|
|
|
+ },
|
|
|
conducts() {
|
|
|
this.conduct = true;
|
|
|
this.complete = false;
|
|
|
@@ -143,6 +192,11 @@ export default {
|
|
|
this.complete = false;
|
|
|
this.overdue = true;
|
|
|
}
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.conDucts();
|
|
|
+ this.compLetes();
|
|
|
+ this.overDues();
|
|
|
}
|
|
|
};
|
|
|
</script>
|