feat: 💄 商品详情新增砍价活动跳转
parent
7b9b5c2819
commit
394cda3efd
|
@ -49,6 +49,13 @@
|
||||||
<span class="pro-text">当前商品参与积分活动。<span @click="handClickToJoinPromotion(prom)" class="href">点击此处参与活动</span></span>
|
<span class="pro-text">当前商品参与积分活动。<span @click="handClickToJoinPromotion(prom)" class="href">点击此处参与活动</span></span>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view v-if="prom.split('-')[0] == 'KANJIA'">
|
||||||
|
<div class="res_prom_item">
|
||||||
|
<u-tag text="砍价活动" type="error"></u-tag>
|
||||||
|
<span class="pro-text">当前商品参与砍价活动。<span @click="handClickToJoinPromotion(prom)" class="href">点击此处参与活动</span></span>
|
||||||
|
</div>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="!res">暂无促销活动</view>
|
<view v-if="!res">暂无促销活动</view>
|
||||||
|
@ -89,7 +96,8 @@ export default {
|
||||||
handClickToJoinPromotion(val){
|
handClickToJoinPromotion(val){
|
||||||
|
|
||||||
const promotion = {
|
const promotion = {
|
||||||
"POINTS_GOODS": `/pages/promotion/point/detail?id=${this.res[val].id}`
|
"POINTS_GOODS": `/pages/promotion/point/detail?id=${this.res[val].id}`,
|
||||||
|
"KANJIA": `/pages/promotion/bargain/detail?id=${this.res[val].id}`,
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
@ -44,6 +44,18 @@
|
||||||
<div class="text proText">{{ res[item].promotionName }}</div>
|
<div class="text proText">{{ res[item].promotionName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="promotion_col"
|
||||||
|
v-if="
|
||||||
|
item.split('-')[0] == promotionItem.value && item.split('-')[0] == 'KANJIA'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<!-- 砍价活动 -->
|
||||||
|
<div class="flex">
|
||||||
|
<view class="deg_tag">{{ promotionItem.title }}</view>
|
||||||
|
<div class="text proText"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="promotion_col"
|
class="promotion_col"
|
||||||
v-if="
|
v-if="
|
||||||
|
|
|
@ -3,6 +3,10 @@ const promotion = [
|
||||||
title: "积分活动",
|
title: "积分活动",
|
||||||
value: "POINTS_GOODS",
|
value: "POINTS_GOODS",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "砍价活动",
|
||||||
|
value: "KANJIA",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "单品立减",
|
title: "单品立减",
|
||||||
value: "MINUS",
|
value: "MINUS",
|
||||||
|
|
Loading…
Reference in New Issue