store/packageC/mycomponent/storeList02/storeList02.wxml

88 lines
5.3 KiB
Plaintext

<view class="storelist02">
<view class="list-02">
<view class="list-top">
<view class="store-img">
<view class="img-mask" wx:if="{{items.operating_state === 1}}"></view>
<view class="img-text" wx:if="{{items.operating_state === 1}}">商家休息中</view>
<image class="store-logo" src="{{items.thumb}}" />
</view>
<view class="store-info">
<view class="store-name text-ellipsis">{{ items.store_name }}</view>
<view class="store-score">
<view class="left">
<van-rate value="{{ items.average_score }}" size="{{ 15 }}" color="#ffd21e" allow-half readonly/>
<view class="score">{{ items.average_score }}分</view>
</view>
<view class="right">已售{{ items.order_total }}单</view>
</view>
<view class="store-address">
<view class="left">
<view class="category text-ellipsis" catchtap="toClassify" data-id="{{items.has_one_category.id}}">{{ items.has_one_category.name || "暂无分类" }}</view>
<view class="line"></view>
<view class="address text-ellipsis">
<block wx:if="{{items.address.city}}">{{ items.address.city }}</block>
<block wx:if="{{items.address.detailed_address}}">{{ items.address.detailed_address }}</block>
</view>
</view>
<view class="right" catchtap="goToAdress" data-items="{{items}}">
<block wx:if="{{items.distance}}">{{ items.distance }}{{ items.unit }} </block><i class="iconfont icon-fontclass-daohang"></i>
</view>
</view>
<view class="{{ items.dispatchs && items.dispatchs.length >= 4?'shadow-box':'' }}">
<view class="dispatch-box" wx:if="{{items.dispatchs}}">
<view class="dispatch-item" wx:for="{{items.dispatchs}}" wx:for-index="dispatchidx" wx:for-item="dispatch" wx:key="dispatchidx">{{ dispatch }}</view>
</view>
</view>
</view>
</view>
<view class="discount-box">
<view class="discount-item" wx:if="{{items.has_many_coupon && items.has_many_coupon.length > 0}}">
<view class="red">优惠</view>
<view style="margin-left: 0.5rem;" wx:for-index="coupon_index" wx:for-item="coupon" wx:for="{{items.has_many_coupon}}" wx:key="coupon_index" wx:if="{{coupon_index <=2}}">{{ coupon.name }}</view>
</view>
<view class="discount-item" wx:if="{{items.store_point.point_switch != 0 || items.store_love.award == 1}}">
<view class="red">赠送</view>
<view style="margin-left: 0.5rem;" wx:if="{{items.store_point.point_switch == 0 ? false : true}}">{{ items.store_point.point }}</view>
<view style="margin-left: 0.5rem;" wx:if="{{items.store_love.award == 1 ? true : false}}">{{ items.store_love.award_proportion }}</view>
</view>
<view class="discount-item" wx:if="{{items.store_point.point_deduct_switch != 0 || items.store_love.deduction == 1}}">
<view class="red">{{ items.goods_show && items.goods_show.search_class_name ? items.goods_show.search_class_name : "抵扣" }}</view>
<view style="margin-left: 0.5rem;" wx:if="{{items.store_love.deduction == 1 ? true : false}}">{{ items.store_love.deduction_proportion }}</view>
<view
style="margin-left: 0.5rem;"
class="{{ items.goods_show && items.goods_show.store_deduction_style?'store_deduction_style':'' }}"
wx:if="{{items.store_point.point_deduct_switch == 0 ? false : true}}"
>{{ items.store_point.max_point_deduct }}</view
>
<view style="margin-left: 0.5rem;" class="store_cash_back_style" wx:if="{{items.store_point.commission_deduct && items.goods_show.store_cash_back}}">{{
items.store_point.commission_deduct
}}</view>
</view>
<view class="discount-item" wx:if="{{items.store_full_reduction && items.store_full_reduction.length != 0}}">
<view class="red">满减</view>
<view style="margin-left: 0.5rem;" wx:for-index="reduction_index" wx:for-item="reduction" wx:for="{{items.store_full_reduction}}" wx:key="reduction_index" wx:if="{{reduction_index <=2}}">{{ reduction }}</view>
</view>
<view class="discount-item" wx:if="{{items.store_full_package}}">
<view class="red">包邮</view>
<view style="margin-left: 0.5rem;">{{ items.store_full_package }}</view>
</view>
</view>
<view class="goods-box" wx:if="{{items.recommend_goods &&items.recommend_goods.length > 0}}">
<!-- <view class="flexBox"></view> -->
<view class="good-item" wx:for-index="i" wx:for-item="good" wx:for="{{items.recommend_goods}}" wx:key="i" catchtap="toGood" data-goods_id="{{good.goods_id}}">
<view class="good-img">
<image src="{{good.thumb}}" mode='aspectFill' />
</view>
<view class="good-title p">{{good.title}}</view>
<view class="good-title p money" wx:if="{{!good.goods_show||good.goods_show.length<=0}}">{{language['money']}}{{good.price}}</view>
<view class="show_price_box" wx:if="{{good.goods_show&&good.goods_show.length>0}}">
<view class="show_price {{index % 2 == 0 ? 'red_white' : 'white_red'}}" wx:for="{{good.goods_show}}">
{{ item.name }}:{{ item.value }}
</view>
</view>
</view>
</view>
</view>
</view>