Commit 265a2162 authored by v-yuchenglong's avatar v-yuchenglong

add:增加商品已售卖数量

parent cc19e96f
...@@ -42,8 +42,12 @@ ...@@ -42,8 +42,12 @@
<el-card class="activityGoods box-card"> <el-card class="activityGoods box-card">
<div class="my-header"> <div class="my-header">
<h3>{{ marketingInfo.marketing_name }}</h3> <h3>{{ marketingInfo.marketing_name }}</h3>
<!-- 查看参与字段待确认 --> <!-- 查看参与字段待确认 -->
<p><span>{{detailInfo.lookUserCount}}人查看</span><span>{{detailInfo.haveBuyGoodsUserCount}}人参与</span></p> <p>
<span>{{ detailInfo.lookUserCount }}人查看</span><span
>{{ detailInfo.haveBuyGoodsUserCount }}人参与</span
>
</p>
<p class="endTime">{{ showTimer }}</p> <p class="endTime">{{ showTimer }}</p>
</div> </div>
<p class="title">拼单商品</p> <p class="title">拼单商品</p>
...@@ -96,6 +100,9 @@ ...@@ -96,6 +100,9 @@
<span class="originPrice">{{ <span class="originPrice">{{
`¥${goodsItem.original_price} ` `¥${goodsItem.original_price} `
}}</span> }}</span>
<span class="sold"
>已售{{ goodsItem.all_have_buy_goods_count }}</span
>
</p> </p>
</div> </div>
</div> </div>
...@@ -128,7 +135,7 @@ export default { ...@@ -128,7 +135,7 @@ export default {
marketingInfo: {}, marketingInfo: {},
endTime: "", endTime: "",
showTimer: "", showTimer: "",
detailInfo: {} detailInfo: {},
}; };
}, },
watch: {}, watch: {},
...@@ -140,11 +147,11 @@ export default { ...@@ -140,11 +147,11 @@ export default {
let dataArr = await Promise.all([ let dataArr = await Promise.all([
ActivityService.checkActivityDetail({ ActivityService.checkActivityDetail({
marketing_id: this.$route.query.marketing_id, marketing_id: this.$route.query.marketing_id,
marketing_type: this.$route.query.marketing_type marketing_type: this.$route.query.marketing_type,
}), }),
ActivityService.checkActivityDetailInfo({ ActivityService.checkActivityDetailInfo({
marketing_id: this.$route.query.marketing_id marketing_id: this.$route.query.marketing_id,
}) }),
]); ]);
this.pageLoading = false; this.pageLoading = false;
this.goodsList = dataArr[0].result.goods_list; this.goodsList = dataArr[0].result.goods_list;
...@@ -196,7 +203,7 @@ export default { ...@@ -196,7 +203,7 @@ export default {
closePage() { closePage() {
this.$router.go(-1); this.$router.go(-1);
} },
}, },
async created() { async created() {
await this.checkActivityDetail(); await this.checkActivityDetail();
...@@ -204,7 +211,7 @@ export default { ...@@ -204,7 +211,7 @@ export default {
}, },
beforeUnmount() { beforeUnmount() {
clearInterval(this.timer); clearInterval(this.timer);
} },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
...@@ -279,7 +286,9 @@ export default { ...@@ -279,7 +286,9 @@ export default {
display: flex; display: flex;
margin: 15px 0; margin: 15px 0;
.itemIntroduce { .itemIntroduce {
position: relative;
display: flex; display: flex;
width: 100%;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
margin-left: 10px; margin-left: 10px;
...@@ -296,6 +305,12 @@ export default { ...@@ -296,6 +305,12 @@ export default {
} }
} }
} }
.sold {
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