feat: 超级补贴优化

This commit is contained in:
2026-07-13 18:33:00 +08:00
parent c6015b8295
commit fd25002ab3
3 changed files with 10 additions and 7 deletions
+8 -5
View File
@@ -24,15 +24,14 @@
<!-- (秒杀券立减) -->
<view class="coupon_row" v-if="hasCoupon">
<view class="coupon_badge" >
<!-- <view class="coupon_badge" v-if="activedType === 'seckill'"> -->
<view class="coupon_badge" v-if="activedType === 'seckill'">
<text class="flash_icon">⚡</text>
<text class="coupon_text" v-if="item.secDiscount || item.subsidy">加倍补{{ item.secDiscount || item.subsidy }}元</text>
</view>
<!-- <view class="coupon_badge" v-else>
<view class="coupon_badge" v-if="activedType === 'super'">
<text class="flash_icon">⚡</text>
<text class="coupon_text">加倍补{{ item.subsidy }}积分</text>
</view> -->
</view>
</view>
<!-- Price and action card row -->
@@ -109,8 +108,12 @@ export default {
methods: {
// 商品
onSelectProct(item) {
let url = "/pages/other_package/productInfo/productInfo?id=" + item.id ;
if(this.activedType === 'seckill'){
url = "/pages/other_package/productInfo/productInfo?id=" + item.id + "&activedType=" + this.activedType + "&activityId=" + item.activityId;
}
uni.navigateTo({
url: "/pages/other_package/productInfo/productInfo?id=" + item.id + "&activedType=" + this.activedType + "&activityId=" + item.activityId,
url: url,
});
},
startCountdown() {
+1 -1
View File
@@ -33,7 +33,7 @@
@init="mescrollInit" :fixed="false">
<!-- 原来单个 v-for 替换成两列 -->
<view class="mescrollUniView" v-for="item in dataList" :key="item.id">
<productSeckillCard :item="item" actived-type="subsidy" />
<productSeckillCard :item="item" actived-type="super" />
</view>
</mescroll-uni>
</view>
@@ -196,7 +196,7 @@
style="display:inline-block;vertical-align: middle;"></up-image>
</view>
</view> -->
<view class="price-view" @click="this.sed?.activedType == 'seckill' && allOrderInfo.activity?.activityPrice">
<view class="price-view" v-if="this.sed?.activedType == 'seckill' && allOrderInfo.activity?.activityPrice">
<text class="text-32 text-zu">秒杀价</text>
<view style="display: flex; align-items: center;">
<view class="seckill-tag">限时秒杀</view>