| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!--component/shop/shop.wxml-->
- <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
- <view class="shop_item z-padding-lr-24 z-padding-t-24 z-radius-16 z-margin-b-24" bindtap="shopTap">
- <image src="{{tool.cdn(info.logo_image)}}" class="shop_img z-flex-0 z-radius-16 z-margin-r-16" mode="aspectFill" lazy-load
- lazy-load-margin="0" />
- <view class="shop_item_info">
- <view class="shop_item_info_top hidden">
- {{info.abbr}}
- </view>
- <view class="rate">
- <image src="../../static/index/allstar.png" wx:for="{{tool.parInt(info.commentScore)}}" class="star z-margin-r-8" mode="" />
- <image src="../../static/index/halfstar.png" wx:if="{{!tool.full(info.commentScore)}}" class="star z-margin-r-8" mode="" />
- <block wx:if="{{!tool.full(info.commentScore)}}">
- <image src="../../static/index/nostar.png" wx:for="{{5 - tool.parInt(info.commentScore) -1 }}" class="star z-margin-r-8" mode="" />
- </block>
- <block wx:else>
- <image src="../../static/index/nostar.png" wx:for="{{5 - tool.parInt(info.commentScore) }}" class="star z-margin-r-8" mode="" />
- </block>
- <text class="z-font-w">{{tool.toFix(info.commentScore,1)}}</text>
- </view>
- <view class="shop_item_info_top text_999 z-font-22 z-margin-t-8">
- <view class="hidden">
- {{info.city}}{{info.address}}
- </view>
- <view class="text_333">{{tool.toFix(info.distance)}}km</view>
- </view>
- <view class="shop_item_info_midea z-margin-tb-16">
- <view class="shop_item_info_midea_item z-flex z-padding-lr-8 z-font-22 z-radius-4 text_999"
- wx:for="{{tool.split(info.categoryname)}}" wx:key="*this">
- {{item}}
- </view>
- </view>
- <view class="shop-goods z-flex-c z-padding-tb-16" wx:for="{{info.goodsList}}">
- <image src="/static/index/shopgoods.png" class="icon"></image>
- <view class="price z-margin-lr-16 z-font-26">¥{{item.price}}</view>
- <view class="text_999 z-flex-1 z-font-24 hidden">{{item.name}}</view>
- <image src="/static/index/brey-more.png" class="more"></image>
- </view>
- </view>
- </view>
|