selectHall.wxml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!--pages/indexPages/selectHall/selectHall.wxml-->
  2. <view class="custom-navigation" style="height: {{navigation.height}};padding-top: {{navigation.paddingTop}}">
  3. <image src="../../../images/selectHall/back.png" mode="widthFix" bind:tap="back" />
  4. <view>选择办税厅</view>
  5. </view>
  6. <view class="map">
  7. <map longitude="{{addressInfo.lng}}" latitude="{{addressInfo.lat}}" scale="{{containerStyle == 'down'? 15:14}}" markers="{{markers}}" />
  8. </view>
  9. <view class="containers contrain{{containerStyle}}" catch:touchmove="none">
  10. <view class="border-style" catch:touchmove="barmove" catch:touchstart="bardown">
  11. <view class="border-style-bar"></view>
  12. </view>
  13. <view class="search-box">
  14. <view class="search-icon">
  15. <image src="../../../images/index/search.png" mode="widthFix" />
  16. </view>
  17. <view class="search-input">
  18. <input type="text" value="{{searchText}}" placeholder="搜索税务大厅" bindinput="search" />
  19. </view>
  20. </view>
  21. <view class="select-tabs">
  22. <view class="select-tab {{selectTabIndex == index?'select-tab-active':''}}" wx:for="{{selectTab}}" wx:key="index" data-index="{{index}}" bind:tap="selectTab">{{item.label}}</view>
  23. </view>
  24. <scroll-view class="hallList" scroll-y="{{true}}">
  25. <view wx:if="{{hall.length > 0}}" class="hall-list {{myHall.bsfwtDm == item.bsfwtDm?'hall-list-xz':''}}" wx:for="{{hall}}" wx:key="index" data-item="{{item}}" catch:tap="selectHall">
  26. <image wx:if="{{myHall.bsfwtDm == item.bsfwtDm}}" class="hallList-select" src="../../../images/selectHall/xz.png" mode="widthFix" />
  27. <view class="hallName">{{item.bsfwtmc}}</view>
  28. <view class="address">
  29. <image src="../../../images/selectHall/dz.png" mode="widthFix" />
  30. <span>{{item.bsfwtdz}}</span>
  31. <span class="juli">距离您 {{tools.juli(item.zxjl)}}</span>
  32. </view>
  33. <view class="daohang">
  34. <image src="../../../images/selectHall/dh.png" mode="widthFix" />
  35. <span class="toDaohang" data-item="{{item}}" catch:tap="daohang">前往导航</span>
  36. <span>(需要开启GPS)</span>
  37. </view>
  38. <view class="other">
  39. <view class="zxsc">
  40. <view hover-class="active" data-item="{{item}}" catch:tap="call">
  41. <image class="zxscIcon" src="../../../images/selectHall/zx.png" mode="widthFix" />
  42. <span>咨询</span>
  43. </view>
  44. <view hover-class="active">
  45. <image wx:if="{{1 == 0}}" class="zxscIcon" src="../../../images/selectHall/ysc.png" mode="widthFix" />
  46. <image wx:else class="zxscIcon" src="../../../images/selectHall/wsc.png" mode="widthFix" />
  47. <span>{{1 == 0?'已收藏':'收藏'}}</span>
  48. </view>
  49. <view hover-class="active">
  50. <image wx:if="{{1 == 0}}" class="zxscIcon" src="../../../images/selectHall/ymr.png" mode="widthFix" />
  51. <image wx:else class="zxscIcon" src="../../../images/selectHall/wmr.png" mode="widthFix" />
  52. <span>{{1 == 0?'已设为默认地址':'设为默认地址'}}</span>
  53. </view>
  54. </view>
  55. <view class="yypdmr">
  56. <view wx:if="{{type == 1}}" class="qyypd" hover-class="active" data-type="{{type}}" bind:tap="start">去预约
  57. <image src="../../../images/workGuide/enter.png" mode="widthFix" />
  58. </view>
  59. <view wx:if="{{type == 2}}" class="qyypd" hover-class="active" data-type="{{type}}" bind:tap="start">去取号
  60. <image src="../../../images/workGuide/enter.png" mode="widthFix" />
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view wx:if="{{hall.length == 0}}" class="none-hall">{{selectTabIndex==0?'没有与当前企业匹配的税务机关':selectTabIndex==1?'暂没有大厅':selectTabIndex == 2?'您还没有收藏哦': ''}}</view>
  66. <view style="width: 100%;height: 1rpx;"></view>
  67. </scroll-view>
  68. </view>
  69. <wxs module="tools">
  70. var juli = function (e) {
  71. if (e) {
  72. var b = e.split('.')[0]
  73. var a = e.split('.')[1].substring(0, 3) || '00'
  74. return b + '.' + a + '公里'
  75. } else {
  76. return ""
  77. }
  78. }
  79. var tools = {
  80. juli: juli
  81. }
  82. module.exports = tools;
  83. </wxs>