index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view class="container b-f">
  2. <view class="shop-list">
  3. <view wx:for="{{ shopList }}" wx:key="this" catchtap="onSelectedShop" data-id="{{ item.shop_id }}" class="shop-item dis-flex flex-y-center">
  4. <view class="shop-item__content flex-box">
  5. <view class="shop-item__title">
  6. <text>{{ item.shop_name }}</text>
  7. </view>
  8. <view class="shop-item__address">
  9. <text>地址:{{ item.region.province }}{{ item.region.city }}{{ item.region.region }}{{ item.address }}</text>
  10. </view>
  11. <view class="shop-item__phone">
  12. <text>联系电话:{{ item.phone }}</text>
  13. </view>
  14. <view class="shop-item__distance">
  15. <block wx:if="{{ item.distance }}">
  16. <text class="iconfont icon-dingwei"></text>
  17. <text class="f-24">{{ item.distance_unit }}</text>
  18. </block>
  19. </view>
  20. </view>
  21. <!-- 选中状态 -->
  22. <view wx:if="{{ item.shop_id == selectedId }}" class="shop-item__right">
  23. <text class="iconfont icon-iconfontduihaocopy"></text>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 无数据提供的页面 -->
  28. <view wx:if="{{ !isLoading && !shopList.length }}">
  29. <view class="yoshop-notcont">
  30. <text class="iconfont icon-wushuju"></text>
  31. <text class="cont">亲,暂无自提门店哦</text>
  32. </view>
  33. </view>
  34. <!-- 定位按钮 -->
  35. <view wx:if="{{ !isAuthor }}" class="widget-location dis-flex flex-x-center flex-y-center" catchtap="onAuthorize">
  36. <text class="iconfont icon-locate"></text>
  37. </view>
  38. </view>
  39. <zan-toptips id="zan-toptips" content="{{ content }}" />