12345678910111213141516171819202122232425262728293031323334353637 |
- <swiper class="slides" indicator-dots="{{shop.images.length > 1}}" indicator-color="#bcc0c9" indicator-active-color="#3a4861">
- <swiper-item wx:for="{{shop.images}}" wx:key="id">
- <image src="{{item}}" mode="aspectFill" bindtap="previewHandle" data-src="{{item}}"/>
- </swiper-item>
- </swiper>
- <view class="heading" wx:if="{{shop.name}}">
- <text class="name">{{shop.name}}</text>
- <text class="phone">电话:{{shop.phone || 'none'}}</text>
- <text class="address">地址:{{shop.address}}</text>
- <text class="hours">营业时间:{{shop.businessHours}}</text>
- <view class="score" wx:if="{{item.score}}">{{item.score}}</view>
- </view>
- <view class="introduction" wx:if="{{shop.introduction}}">
- <text>{{shop.introduction}}</text>
- </view>
- <view class="comments" wx:if="{{shop.comments.length}}">
- <view class="item" wx:for="{{shop.comments}}" wx:key="*this">
- <text class="name">{{item.name}}</text>
- <text class="date">{{item.date}}</text>
- <text class="rating">{{item.rating}}</text>
- <text class="content">{{item.content}}</text>
- <view class="images">
- <image wx:for="{{item.images}}" wx:key="*this" src="{{utils.size(item)}}"/>
- </view>
- </view>
- </view>
- <wxs module="utils">
- module.exports = {
- size: function (input) {
- return input.replace('w.h', '100.100')
- }
- }
- </wxs>
|