Refactor(千县名品):模块首页和县主页界面使用新版UI调整
This commit is contained in:
@@ -23,18 +23,18 @@
|
||||
</view>
|
||||
<view class="info-wrap">
|
||||
<view class="name more-t">
|
||||
{{ item.storeName }}
|
||||
{{ item[nameKey] }}
|
||||
</view>
|
||||
<view v-if="item.bestContent" class="desc more-t">
|
||||
{{ item.bestContent }}
|
||||
</view>
|
||||
<view v-if="item.couponName" class="coupon">
|
||||
<view v-if="item.couponName && showCoupon" class="coupon">
|
||||
<view class="tag">券</view>
|
||||
<view class="tag">{{ item.couponName }}</view>
|
||||
</view>
|
||||
<view class="price-wrap">
|
||||
<view class="price">
|
||||
<text class="price-txt price-red">¥{{ item.price }}</text>
|
||||
<text class="price-txt price-red">¥{{ item[priceKey] }}</text>
|
||||
</view>
|
||||
<view class="btn">
|
||||
<image
|
||||
@@ -60,6 +60,19 @@ export default {
|
||||
imageKey: {
|
||||
type: String,
|
||||
default: 'image'
|
||||
},
|
||||
nameKey: {
|
||||
type: String,
|
||||
default: 'storeName'
|
||||
},
|
||||
priceKey: {
|
||||
type: String,
|
||||
default: 'price'
|
||||
},
|
||||
// 是否显示优惠券
|
||||
showCoupon: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user