index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--pages/taxDisputes/index/index.wxml-->
  2. <view class="banner">
  3. <image class="banner-image" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/taxDisputesIndexBanner.png" mode="widthFix" />
  4. </view>
  5. <view class="hall">
  6. <view class="hall-other-box" wx:if="{{hall.ssswjgDm == '16101980000'}}">
  7. <image class="hall-other-box-image" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexHallLogo.png" mode="heightFix" />
  8. </view>
  9. <view class="hall-info-box">
  10. <view class="hall-map">
  11. <map enable-scroll="{{false}}" enable-zoom="{{false}}" longitude="{{hall.longitude}}" latitude="{{hall.latitude}}" markers="{{markers}}" scale="15" />
  12. </view>
  13. <view class="hall-info">
  14. <view class="hall-info-list1">
  15. <view>我的办税厅</view>
  16. <view hover-class="buttonActive" data-type="3" bind:tap="selectHall">
  17. <span>
  18. <image src="../../../images/index/chage1.png" mode="widthFix" />
  19. </span>
  20. <span>切换办税厅</span>
  21. </view>
  22. </view>
  23. <view class="hall-info-list2">{{hall.bsfwtmc}}</view>
  24. <view class="hall-info-list3">距您 {{tools.juli(hall.zxjl)}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="card">
  29. <view class="card-box" hover-class="active" wx:for="{{menuList}}" wx:key="index" data-item="{{item}}" bind:tap="menuTap">
  30. <image class="card-bg card-bg1" src="{{item.imgUrl}}" mode="widthFix" />
  31. <view class="card-content">
  32. <view class="card-title">{{tools.title(item.cdmc)}}</view>
  33. <view class="card-introduce">{{tools.introduce(item.cdmc)}}</view>
  34. </view>
  35. </view>
  36. </view>
  37. <wxs module="tools">
  38. var juli = function (e) {
  39. if (e) {
  40. var b = e.split('.')[0]
  41. var a = e.split('.')[1].substring(0, 3) || '00'
  42. return b + '.' + a + 'km'
  43. } else {
  44. return ""
  45. }
  46. }
  47. var title = function (e) {
  48. if (e) {
  49. return e.split('&&&')[0] || ""
  50. } else {
  51. return ""
  52. }
  53. }
  54. var introduce = function (e) {
  55. if (e) {
  56. return e.split('&&&')[1] || ""
  57. } else {
  58. return ""
  59. }
  60. }
  61. var tools = {
  62. juli: juli,
  63. title: title,
  64. introduce: introduce
  65. }
  66. module.exports = tools;
  67. </wxs>