store.wxml 1.1 KB

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