map.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <scroll-view style="height: {{height}}px; background-color : #f3f3f3" scroll-y="true">
  2. <view class="head">
  3. <!-- 左边的logo和文字 -->
  4. <view class="left-logo">
  5. <view href="https://www.cqna.gov.cn/" target="_blank">
  6. <image class="logo-img" src="{{imgUrl}}/map-logo.png"></image>
  7. </view>
  8. </view>
  9. <!-- 右边的搜索框 -->
  10. <view class="right_logo" bindtap="openVR">
  11. <image src="{{imgUrl}}/second-erw-3.png" alt="" class="first_erw"></image>
  12. </view>
  13. </view>
  14. <view class="main">
  15. <view wx:if="{{showSearch}}" class="top_search">
  16. <view class="input-icon">
  17. <input type="text" enterkeyhint="search" confirm-type="search" bindconfirm="searchTap" name="" id="" value="{{searchVal}}" bindinput="getSearchVal" class="inp" placeholder="请输入您要搜索的内容" />
  18. <image src="{{imgUrl}}/ss2.png" class="inp-icon1" bindtap="searchTap"></image>
  19. </view>
  20. </view>
  21. <view wx:if="{{showSet}}" class="right-search" style="position: absolute; left: 22rpx; top: 10px; width: 708rpx; height: 300rpx; display: block; box-sizing: border-box; padding-top: 10rpx;">
  22. <t-tabs defaultValue="{{trafficType}}" bindchange= "onchange" theme="tag" style="height: 292rpx; ">
  23. <t-tab-panel label="公交" value="0" style=" height: 180rpx; ">
  24. <include src="./quert"></include>
  25. </t-tab-panel>
  26. <t-tab-panel label="自驾" value="1">
  27. <include src="./quert"></include>
  28. </t-tab-panel>
  29. </t-tabs>
  30. </view>
  31. <view class="right-map" id="right-map">
  32. <map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="18" markers="{{markers}}" class="map"></map>
  33. </view>
  34. <view wx:if="{{showTraffic}}">
  35. <view class="right-search" style="position: absolute; left: 22rpx; top: 257px; width: 708rpx; height: 300rpx; display: block; box-sizing: border-box; padding-top: 10rpx;">
  36. <t-tabs defaultValue="{{trafficType}}" bindchange="onchange" theme="tag" style="height: 292rpx; ">
  37. <t-tab-panel label="公交" value="0" style=" height: 180rpx; ">
  38. <include src="./quert"></include>
  39. </t-tab-panel>
  40. <t-tab-panel label="自驾" value="1">
  41. <include src="./quert"></include>
  42. </t-tab-panel>
  43. </t-tabs>
  44. </view>
  45. <view class="left-map">
  46. <view class="bttom-tab show-first">
  47. <t-grid wx:for="{{type}}" wx:for-item="typeitem" wx:for-index="keys" class="block">
  48. <t-grid-item bindtap="popview" wx:for="{{typeitem}}" data-index="{{keys}}" wx:key="index2" data-id="{{item.id}}" wx:for-item="item" text="{{item.name}}">
  49. <!-- image=" {{imgUrl+ item.image}}" -->
  50. <image src="{{imgUrl+ item.image}}" class="gridiamge"/>
  51. </t-grid-item>
  52. </t-grid>
  53. </view>
  54. </view>
  55. </view>
  56. <view wx:else >
  57. <view class="wrap_result">
  58. <view class="title-second" style="border-radius: 30rpx; position: absolute; left: 22rpx; top: 330px; width: 708rpx; height: 120rpx;">
  59. <text style="font-size: 16px;font-weight: 400;color: #2775CC;">搜索结果</text>
  60. <button type="button" class="back_btn" bindtap="backSearch">返回</button>
  61. </view>
  62. <view class="pad_box">
  63. <include wx:if="{{isList}}" src="./item"></include>
  64. <include wx:else src="./item-info"></include>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view style="height: 100rpx;"></view>
  70. </scroll-view>
  71. <view class="popup-box" wx:if="{{showIndex}}" bindtap="closePopup"></view>
  72. <view class="info-bottom" wx:if="{{showIndex}}">
  73. <view class="title">点位信息</view>
  74. <view class="row-info">
  75. <view class="pop-value">
  76. <scroll-view scroll-y="true" style="height:350rpx;margin-left: 50rpx;">
  77. <view style="width:50%;float: left; height: 38rpx; margin: 20rpx 0; " wx:for="{{popData}}" bindtap="changeInfo" wx:for-item="item" data-data="{{item}}" wx:index="{{index}}" wx:key="index">
  78. <image src="https://www.cqna.gov.cn/mnazw/applet/ding.png" class="icon-pop" style="float: left;"></image>
  79. <text class="text-pop">{{item.name}}</text>
  80. </view>
  81. </scroll-view>
  82. </view>
  83. </view>
  84. </view>