|
- <!-- c:\Users\56817\Desktop\Working Space\3,TikTok-MiniPro\ttc\pages2\shopSelect\shopSelect.ttml -->
- <view class="continer">
- <view tt:if="{{ isShop }}" class="selectShop">
- <view class="nav">
- <view tt:if="{{ currentCity }}" class="item">当前城市:{{ currentCity }}</view>
- <view tt:if="{{ !currentCity }}" class="item">定位失败</view>
- <view class="item" bindtap="selectCity">切换城市</view>
- </view>
- <view tt:if="{{ mallList.length > 0 }}" class="shopList">
- <view class="item" tt:for="{{ mallList }}" tt:key="index" bindtap="goSetShop" data-item="{{ item }}">
- <view class="img">
- <image src="{{ item.merchantImgUrl }}"></image>
- </view>
- <view tt:if="{{ item.distance_str }}" class="infoBox">
- <view class="infoItem">{{ item.merchantName }}</view>
- <view class="infoItem">地址:{{ item.addr }}</view>
- <view class="infoItem">距您 {{ item.distance_str }}</view>
- </view>
-
- <view tt:if="{{ !item.distance_str }}" class="infoBox2">
- <view class="infoItem">{{ item.merchantName }}</view>
- <view class="infoItem">地址:{{ item.addr }}</view>
- </view>
- </view>
- </view>
-
- <view tt:if="{{ mallList.length <= 0 }}" class="shopList">
- <view class="takeingPlace">
- <view class="title">该城市暂无可用门店哦</view>
- <image src="../../assets/itemImg/place.png"></image>
- </view>
- </view>
- </view>
-
- <view tt:if="{{ !isShop }}" class="selectCity">
- <view class="nav">
- <view class="item" bindtap="selectShop">返回</view>
- </view>
-
- <view class="notice">请选择您所在城市</view>
-
- <scroll-view scroll-y="{{true}}" style="height:1400rpx;" scroll-with-animation="{{true}}"
- upper-threshold="{{50}}" lower-threshold="{{50}}" scroll-into-view="{{toView}}">
- <view tt:for="{{ tagArr }}" tt:key="index" class="indexList" id="{{ item }}">
- <view class="title">{{ item }}</view>
- <view tt:for="{{ cityArr[item] }}" tt:for-item="city" tt:key="index" class="item" bindtap="goFindShop"
- data-name="{{ city }}">{{ city }}</view>
- </view>
- </scroll-view>
- </view>
-
- <view tt:if="{{ !isShop }}" class="indexBar" catchtouchmove="indexBarMove">
- <view class="{{ currentTag == item ? 'indexBarItem active' : 'indexBarItem' }}" tt:for="{{ tagArr }}"
- tt:key="index" id="{{ item }}" bindtap="tagBind">{{ item }}
- <view tt:if="{{ currentTag==item }}" class="tag">
- <view class="name">{{ item }}</view>
- <view class="tran"></view>
- </view>
- </view>
- </view>
- </view>
|