Commit 69f7dd43 authored by lihui's avatar lihui

feat: 去掉活动详情页面拼单商品展示

parent a0b79a7b
......@@ -50,8 +50,8 @@
</p>
<p class="endTime">{{ showTimer }}</p>
</div>
<p class="title">拼单商品</p>
<div class="images-wrapper">
<!-- <p class="title">拼单商品</p> -->
<!-- <div class="images-wrapper">
<div
class="image-block"
v-for="picItem in goodsList"
......@@ -65,7 +65,7 @@
></el-image>
<span class="goodsPrice">{{ `¥${picItem.price}` }}</span>
</div>
</div>
</div> -->
</el-card>
<!-- 商品描述 -->
<el-card class="activityIntroduce box-card">
......@@ -100,8 +100,11 @@
<span class="originPrice">{{
`¥${goodsItem.original_price} `
}}</span>
<span class="sold" v-if="goodsItem.inventory_rest==0">抢光了</span>
<span class="sold" v-else>已售{{ goodsItem.all_have_buy_goods_count }}</span
<span class="sold" v-if="goodsItem.inventory_rest == 0"
>抢光了</span
>
<span class="sold" v-else
>已售{{ goodsItem.all_have_buy_goods_count }}</span
>
</p>
</div>
......@@ -135,7 +138,7 @@ export default {
marketingInfo: {},
endTime: "",
showTimer: "",
detailInfo: {},
detailInfo: {}
};
},
watch: {},
......@@ -147,11 +150,11 @@ export default {
let dataArr = await Promise.all([
ActivityService.checkActivityDetail({
marketing_id: this.$route.query.marketing_id,
marketing_type: this.$route.query.marketing_type,
marketing_type: this.$route.query.marketing_type
}),
ActivityService.checkActivityDetailInfo({
marketing_id: this.$route.query.marketing_id,
}),
marketing_id: this.$route.query.marketing_id
})
]);
this.pageLoading = false;
this.goodsList = dataArr[0].result.goods_list;
......@@ -203,7 +206,7 @@ export default {
closePage() {
this.$router.go(-1);
},
}
},
async created() {
await this.checkActivityDetail();
......@@ -211,7 +214,7 @@ export default {
},
beforeUnmount() {
clearInterval(this.timer);
},
}
};
</script>
<style lang="less" scoped>
......@@ -306,9 +309,9 @@ export default {
}
}
.sold {
position:absolute;
right: 20px;;
color:#d44549;
position: absolute;
right: 20px;
color: #d44549;
font-weight: 500;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment