抖音c端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.9 KiB

  1. <!-- c:\Users\56817\Desktop\Working Space\3,TikTok-MiniPro\ttc\pages2\shopSelect\shopSelect.ttml -->
  2. <view class="continer">
  3. <view tt:if="{{ isShop }}" class="selectShop">
  4. <view class="nav">
  5. <view tt:if="{{ currentCity }}" class="item">当前城市:{{ currentCity }}</view>
  6. <view tt:if="{{ !currentCity }}" class="item">定位失败</view>
  7. <view class="item" bindtap="selectCity">切换城市</view>
  8. </view>
  9. <view tt:if="{{ mallList.length > 0 }}" class="shopList">
  10. <view class="item" tt:for="{{ mallList }}" tt:key="index" bindtap="goSetShop" data-item="{{ item }}">
  11. <view class="img">
  12. <image src="{{ item.merchantImgUrl }}"></image>
  13. </view>
  14. <view tt:if="{{ item.distance_str }}" class="infoBox">
  15. <view class="infoItem">{{ item.merchantName }}</view>
  16. <view class="infoItem">地址:{{ item.addr }}</view>
  17. <view class="infoItem">距您 {{ item.distance_str }}</view>
  18. </view>
  19. <view tt:if="{{ !item.distance_str }}" class="infoBox2">
  20. <view class="infoItem">{{ item.merchantName }}</view>
  21. <view class="infoItem">地址:{{ item.addr }}</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view tt:if="{{ mallList.length <= 0 }}" class="shopList">
  26. <view class="takeingPlace">
  27. <view class="title">该城市暂无可用门店哦</view>
  28. <image src="../../assets/itemImg/place.png"></image>
  29. </view>
  30. </view>
  31. </view>
  32. <view tt:if="{{ !isShop }}" class="selectCity">
  33. <view class="nav">
  34. <view class="item" bindtap="selectShop">返回</view>
  35. </view>
  36. <view class="notice">请选择您所在城市</view>
  37. <scroll-view scroll-y="{{true}}" style="height:1400rpx;" scroll-with-animation="{{true}}"
  38. upper-threshold="{{50}}" lower-threshold="{{50}}" scroll-into-view="{{toView}}">
  39. <view tt:for="{{ tagArr }}" tt:key="index" class="indexList" id="{{ item }}">
  40. <view class="title">{{ item }}</view>
  41. <view tt:for="{{ cityArr[item] }}" tt:for-item="city" tt:key="index" class="item" bindtap="goFindShop"
  42. data-name="{{ city }}">{{ city }}</view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. <view tt:if="{{ !isShop }}" class="indexBar" catchtouchmove="indexBarMove">
  47. <view class="{{ currentTag == item ? 'indexBarItem active' : 'indexBarItem' }}" tt:for="{{ tagArr }}"
  48. tt:key="index" id="{{ item }}" bindtap="tagBind">{{ item }}
  49. <view tt:if="{{ currentTag==item }}" class="tag">
  50. <view class="name">{{ item }}</view>
  51. <view class="tran"></view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>