fixbug: 修改页面改造bug

This commit is contained in:
2026-07-14 23:08:25 +08:00
parent fd25002ab3
commit 45176d7d22
7 changed files with 243 additions and 291 deletions
+12 -10
View File
@@ -14,8 +14,8 @@
<view>
<!-- <view class="tags_row" v-if="Array.isArray(item.tags)"> -->
<view class="tags_row">
<image v-for="i in item.goodsTagList" :key="i.mchId" :src="i.icon"
class="tag_image" mode="heightFix"></image>
<image v-for="i in item.goodsTagList" :key="i.mchId" :src="i.icon" class="tag_image"
mode="heightFix"></image>
</view>
<!-- 商品名称 -->
@@ -26,7 +26,8 @@
<view class="coupon_row" v-if="hasCoupon">
<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>
<text class="coupon_text" v-if="item.secDiscount || item.subsidy">加倍补{{ item.secDiscount ||
item.subsidy }}元</text>
</view>
<view class="coupon_badge" v-if="activedType === 'super'">
<text class="flash_icon">⚡</text>
@@ -39,15 +40,16 @@
<view class="price_section">
<text class="price_symbol">¥</text>
<text class="price_integer">{{ item.price }}</text>
<text class="original_price seckill" >{{ `${attributes.leftTime ?
<text class="original_price seckill">{{ `${attributes.leftTime ?
`只剩${attributes.leftTime}` : ''}` }}</text>
<!-- <text class="original_price" v-else>¥{{ formatOriginalPrice }}</text> -->
</view>
<!-- Alarm clock button -->
<view class="alarm_btn_wrapper" @click.stop="$emit('action', item)">
<image class="uni-image" v-if="activedType === 'seckill'" src="https://static.tbmall.xin/static/new-home/home_3.png"></image>
<image class="uni-image seckill-icon" v-else
src="https://static.tbmall.xin/static/home/qiang.png"></image>
<view class="alarm_btn_wrapper">
<image class="uni-image" v-if="activedType === 'seckill'"
src="https://static.tbmall.xin/static/new-home/home_3.png"></image>
<image class="uni-image seckill-icon" v-else src="https://static.tbmall.xin/static/home/qiang.png">
</image>
</view>
</view>
</view>
@@ -108,8 +110,8 @@ export default {
methods: {
// 商品
onSelectProct(item) {
let url = "/pages/other_package/productInfo/productInfo?id=" + item.id ;
if(this.activedType === 'seckill'){
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({