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_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="flash_icon">⚡</text>
<text class="coupon_text" v-if="item.secDiscount || item.subsidy">加倍补{{ item.secDiscount || item.subsidy }}元</text> <text class="coupon_text" v-if="item.secDiscount || item.subsidy">加倍补{{ item.secDiscount || item.subsidy }}元</text>
</view> </view>
<!-- <view class="coupon_badge" v-else> <view class="coupon_badge" v-if="activedType === 'super'">
<text class="flash_icon">⚡</text> <text class="flash_icon">⚡</text>
<text class="coupon_text">加倍补{{ item.subsidy }}积分</text> <text class="coupon_text">加倍补{{ item.subsidy }}积分</text>
</view> --> </view>
</view> </view>
<!-- Price and action card row --> <!-- Price and action card row -->
@@ -109,8 +108,12 @@ export default {
methods: { methods: {
// 商品 // 商品
onSelectProct(item) { 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({ uni.navigateTo({
url: "/pages/other_package/productInfo/productInfo?id=" + item.id + "&activedType=" + this.activedType + "&activityId=" + item.activityId, url: url,
}); });
}, },
startCountdown() { startCountdown() {
+1 -1
View File
@@ -33,7 +33,7 @@
@init="mescrollInit" :fixed="false"> @init="mescrollInit" :fixed="false">
<!-- 原来单个 v-for 替换成两列 --> <!-- 原来单个 v-for 替换成两列 -->
<view class="mescrollUniView" v-for="item in dataList" :key="item.id"> <view class="mescrollUniView" v-for="item in dataList" :key="item.id">
<productSeckillCard :item="item" actived-type="subsidy" /> <productSeckillCard :item="item" actived-type="super" />
</view> </view>
</mescroll-uni> </mescroll-uni>
</view> </view>
@@ -196,7 +196,7 @@
style="display:inline-block;vertical-align: middle;"></up-image> style="display:inline-block;vertical-align: middle;"></up-image>
</view> </view>
</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> <text class="text-32 text-zu">秒杀价</text>
<view style="display: flex; align-items: center;"> <view style="display: flex; align-items: center;">
<view class="seckill-tag">限时秒杀</view> <view class="seckill-tag">限时秒杀</view>