|
|
@@ -13,15 +13,19 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 当商户数量不大于三个时 --> |
|
|
|
<view class="goExpand" catchtap="expandList" data-index="{{index}}"> |
|
|
|
<view>{{item.merchantVoList.length+'家门店适用'}}</view> |
|
|
|
<image tt:if="{{!item.expand}}" src="../../assets/itemImg/chevron.png" mode="widthFix" |
|
|
|
class="rightArrowDown"> |
|
|
|
</image> |
|
|
|
<image tt:else src="../../assets/itemImg/chevron.png" mode="widthFix" class="rightArrowUp"></image> |
|
|
|
<view tt:if="{{item.merchantVoList.length<=3}}"> |
|
|
|
<view>{{item.merchantVoList.length+'家门店适用'}}</view> |
|
|
|
<image tt:if="{{!item.expand}}" src="../../assets/itemImg/chevron.png" mode="widthFix" |
|
|
|
class="rightArrowDown"> |
|
|
|
</image> |
|
|
|
<image tt:else src="../../assets/itemImg/chevron.png" mode="widthFix" class="rightArrowUp"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="shop" tt:if="{{item.expand}}"> |
|
|
|
<!-- 当item.expand为true且商户数量不大于三个时 --> |
|
|
|
<view class="shop" tt:if="{{item.expand&&item.merchantVoList.length<=3}}"> |
|
|
|
<view class='posi' tt:for="{{item.merchantVoList}}" tt:key="index"> |
|
|
|
<view class='posi_logo'> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
@@ -53,5 +57,110 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 当商户数量不大于三个时 --> |
|
|
|
<view class="shop" tt:if="{{item.merchantVoList.length>3}}"> |
|
|
|
<!-- 当item.expand为true时 --> |
|
|
|
<view class='posi' tt:if="{{item.expand}}" tt:for="{{item.merchantVoList}}" tt:key="index"> |
|
|
|
<view class='posi_logo'> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<image src='{{item.merchantImgUrl}}'></image> |
|
|
|
</view> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<view class='name'>{{item.merchantName}}</view> |
|
|
|
<view class='shopVoList'> |
|
|
|
<view tt:for="{{item.shopVoList}}" tt:key="{{index}}" tt:for-item="itemName"> |
|
|
|
<text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text> |
|
|
|
<text class='douhao' tt:if="{{item.shopVoList.length>1}}">,</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="telBox" tt:if="{{item.linkLinePhone}}"> |
|
|
|
<image bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="telImg" |
|
|
|
src="{{teljpgUrl}}" mode="widthFix" /> |
|
|
|
<view class="telText">电话</view> |
|
|
|
</view> |
|
|
|
<view class="certificationBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goCertification" |
|
|
|
data-id="{{item.id}}"> |
|
|
|
<image class="certificationImg" src="../../assets/imgData/certification.png" mode="widthFix" /> |
|
|
|
<view class="telText">资质</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="siteBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goMap" data-item="{{item}}"> |
|
|
|
<view class="siteText">{{item.addr}}</view> |
|
|
|
<image class="siteImg" src="../../assets/imgData/siteImg.png" mode="widthFix" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 当item.expand为true时 --> |
|
|
|
<view class='posi' tt:if="{{item.expand}}" tt:for="{{item.merchantVoList}}" tt:key="index"> |
|
|
|
<view class='posi_logo'> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<image src='{{item.merchantImgUrl}}'></image> |
|
|
|
</view> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<view class='name'>{{item.merchantName}}</view> |
|
|
|
<view class='shopVoList'> |
|
|
|
<view tt:for="{{item.shopVoList}}" tt:key="{{index}}" tt:for-item="itemName"> |
|
|
|
<text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text> |
|
|
|
<text class='douhao' tt:if="{{item.shopVoList.length>1}}">,</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="telBox" tt:if="{{item.linkLinePhone}}"> |
|
|
|
<image bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="telImg" |
|
|
|
src="{{teljpgUrl}}" mode="widthFix" /> |
|
|
|
<view class="telText">电话</view> |
|
|
|
</view> |
|
|
|
<view class="certificationBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goCertification" |
|
|
|
data-id="{{item.id}}"> |
|
|
|
<image class="certificationImg" src="../../assets/imgData/certification.png" mode="widthFix" /> |
|
|
|
<view class="telText">资质</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="siteBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goMap" data-item="{{item}}"> |
|
|
|
<view class="siteText">{{item.addr}}</view> |
|
|
|
<image class="siteImg" src="../../assets/imgData/siteImg.png" mode="widthFix" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 当item.expand为false时 --> |
|
|
|
<view class='posi' tt:else tt:for="{{item.merchantVoList}}" tt:key="index"> |
|
|
|
<view class='posi_logo'> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<image src='{{item.merchantImgUrl}}'></image> |
|
|
|
</view> |
|
|
|
<view bindtap='gotoDetail' data-id='{{item.id}}' data-tenantId='{{item.tenantId}}'> |
|
|
|
<view class='name'>{{item.merchantName}}</view> |
|
|
|
<view class='shopVoList'> |
|
|
|
<view tt:for="{{item.shopVoList}}" tt:key="{{index}}" tt:for-item="itemName"> |
|
|
|
<text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text> |
|
|
|
<text class='douhao' tt:if="{{item.shopVoList.length>1}}">,</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="telBox" tt:if="{{item.linkLinePhone}}"> |
|
|
|
<image bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="telImg" |
|
|
|
src="{{teljpgUrl}}" mode="widthFix" /> |
|
|
|
<view class="telText">电话</view> |
|
|
|
</view> |
|
|
|
<view class="certificationBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goCertification" |
|
|
|
data-id="{{item.id}}"> |
|
|
|
<image class="certificationImg" src="../../assets/imgData/certification.png" mode="widthFix" /> |
|
|
|
<view class="telText">资质</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="siteBox" tt:if="{{item.latitude&&item.longitude}}" bindtap="goMap" data-item="{{item}}"> |
|
|
|
<view class="siteText">{{item.addr}}</view> |
|
|
|
<image class="siteImg" src="../../assets/imgData/siteImg.png" mode="widthFix" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 当商户数量不小于三个时 --> |
|
|
|
<view tt:if="{{item.merchantVoList.length>3}}"> |
|
|
|
<view>{{item.merchantVoList.length+'家门店适用,展开全部'}}</view> |
|
|
|
<image tt:if="{{!item.expand}}" src="../../assets/itemImg/chevron.png" mode="widthFix" |
|
|
|
class="rightArrowDown"> |
|
|
|
</image> |
|
|
|
<image tt:else src="../../assets/itemImg/chevron.png" mode="widthFix" class="rightArrowUp"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |