抖音c端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

64 行
3.1 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 distance">距您 {{ item.distance_str }}<view tt:if="{{ isLocation }}" id="goMap"
  17. class="mapBtn" bindtap="goMap" data-item="{{ item }}">门店位置
  18. </view>
  19. </view>
  20. <view class="infoItem address">地址:{{ item.addr }}</view>
  21. </view>
  22. <view tt:if="{{ !item.distance_str }}" class="infoBox2">
  23. <view class="infoItem">{{ item.merchantName }}</view>
  24. <view class="infoItem address">地址:{{ item.addr }}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view tt:if="{{ mallList.length <= 0 }}" class="shopList">
  29. <view class="takeingPlace">
  30. <view class="title">该城市暂无可用门店哦</view>
  31. <image src="../../assets/itemImg/place.png"></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view tt:if="{{ !isShop }}" class="selectCity">
  36. <view class="nav">
  37. <view class="item" bindtap="selectShop">返回</view>
  38. </view>
  39. <view class="notice">请选择您所在城市</view>
  40. <scroll-view scroll-y="{{true}}" style="height:1400rpx;" scroll-with-animation="{{true}}"
  41. upper-threshold="{{50}}" lower-threshold="{{50}}" scroll-into-view="{{toView}}">
  42. <view tt:for="{{ tagArr }}" tt:key="index" class="indexList" id="{{ item }}">
  43. <view class="title">{{ item }}</view>
  44. <view tt:for="{{ cityArr[item] }}" tt:for-item="city" tt:key="index" class="item" bindtap="goFindShop"
  45. data-name="{{ city }}">{{ city }}</view>
  46. </view>
  47. </scroll-view>
  48. </view>
  49. <view tt:if="{{ !isShop }}" class="indexBar" catchtouchmove="indexBarMove">
  50. <view class="{{ currentTag == item ? 'indexBarItem active' : 'indexBarItem' }}" tt:for="{{ tagArr }}"
  51. tt:key="index" id="{{ item }}" bindtap="tagBind">{{ item }}
  52. <view tt:if="{{ currentTag==item }}" class="tag">
  53. <view class="name">{{ item }}</view>
  54. <view class="tran"></view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>