1234567891011121314151617181920212223 |
- <view wx:if="{{!isSelectProduct}}" class="search">
- <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
- <wux-search-bar clear bind:confirm="onConfirm" bind:change="onChange" bind:clear="onClear" value="{{ value }}" placeholder="请输出门店名称、地址进行搜索" />
- </view>
- <view wx:if="{{!isSelectProduct}}" class="position">
- <view class="box">
- <view class="flex-center">
- <text>请选择一个最方便的门店(建议距离最近)</text>
- </view>
- </view>
- </view>
- <view class="list {{isSelectProduct?'activeList':''}}">
- <view class="item {{item.id==defaultStore.id?'activeStore':''}}" wx:for="{{list}}" wx:key="index" bindtap="onChangeStore" data-item="{{item}}">
- <view class="left">
- <text><text class="storeName">{{item.store_name}}</text><text>距离{{wxsUtil.getDistance(lat1,lng1,item.latitude,item.longitude)}}km</text></text>
- <text class="adress">{{item.belong_region}}</text>
- </view>
- <view class="right">
- <image catchtap="onOpenLocation" data-storeInfo="{{item}}" src="../../images/goStore.png" ></image>
- </view>
- </view>
- </view>
- <view class="btm-text">--更多分店敬请期待--</view>
|