积分商城问题修复
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
<view v-for="(item, index) in list" :key="index" @click="toDetail(item)">
|
||||
<template v-if="layout === 'list'">
|
||||
<view class="item">
|
||||
<view class="img coupon" v-if="item.goodsCategory=='优惠劵'&&item.couponInfo">
|
||||
<couponIcon :item="item.couponInfo" typeKey="couponType" />
|
||||
<view class="img coupon" v-if="item.goodsCategory=='优惠券'&&item.couponInfo">
|
||||
<couponIcon :item="item.couponInfo" typeKey="couponType" />
|
||||
</view>
|
||||
<image class="img" v-else lazy-load :src="item.goodsImageUrl"></image>
|
||||
<image class="img" v-else lazy-load :src="item.goodsImageUrl" mode="aspectFill"></image>
|
||||
<view class="info">
|
||||
<view>
|
||||
<view class="name u-line-1">{{item.goodsName}}</view>
|
||||
@@ -26,9 +26,9 @@
|
||||
<template v-if="layout === 'block'">
|
||||
<view class="item">
|
||||
<view class="img coupon" v-if="item.goodsCategory=='优惠券'&&item.couponInfo">
|
||||
<couponIcon :item="item.couponInfo" typeKey="couponType" />
|
||||
<couponIcon :item="item.couponInfo" typeKey="couponType" />
|
||||
</view>
|
||||
<image class="img" v-else lazy-load :src="item.goodsImageUrl"></image>
|
||||
<image class="img" v-else lazy-load :src="item.goodsImageUrl" mode="aspectFill"></image>
|
||||
<view class="info">
|
||||
<view class="name u-line-1">{{item.goodsName}}</view>
|
||||
<view class="price">
|
||||
@@ -63,11 +63,15 @@
|
||||
default: () => {},
|
||||
}
|
||||
});
|
||||
|
||||
const numListStyle={
|
||||
'font-size':'24rpx'
|
||||
}
|
||||
const numBlockStyle={
|
||||
'font-size':'24rpx'
|
||||
}
|
||||
|
||||
function toDetail(item) {
|
||||
if (item.quantity<=0) {
|
||||
return
|
||||
}
|
||||
uni.setStorageSync('exchange_goods', item)
|
||||
uni.navigateTo({
|
||||
url: '/scoreShop/detail/index?id=' + item.id,
|
||||
@@ -129,7 +133,7 @@
|
||||
background: #d9d9d9;
|
||||
|
||||
&.coupon {
|
||||
// background-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +164,7 @@
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
|
||||
&.end {
|
||||
color: #999999;
|
||||
background: rgba(153, 153, 153, 0.3);
|
||||
@@ -195,7 +200,7 @@
|
||||
background: #d9d9d9;
|
||||
|
||||
&.coupon {
|
||||
// background-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user