map.wxml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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}}" bindchange="searchTap" 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:key 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}}" image="{{item.image}}" />
  49. </t-grid>
  50. </view>
  51. </view>
  52. </view>
  53. <view wx:else >
  54. <view class="wrap_result">
  55. <view class="title-second" style="border-radius: 30rpx; position: absolute; left: 22rpx; top: 330px; width: 708rpx; height: 120rpx;">
  56. <text style="font-size: 16px;font-weight: 400;color: #2775CC;">搜索结果</text>
  57. <button type="button" class="back_btn" bindtap="backSearch">返回</button>
  58. </view>
  59. <view class="pad_box">
  60. <include wx:if="{{isList}}" src="./item"></include>
  61. <include wx:else src="./item-info"></include>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view style="height: 100rpx;"></view>
  67. </scroll-view>
  68. <view class="popup-box" wx:if="{{showIndex}}" bindtap="closePopup"></view>
  69. <view class="info-bottom" wx:if="{{showIndex}}">
  70. <view class="row-info">
  71. <view class="pop-value">
  72. <scroll-view scroll-y="true" style="height:350rpx">
  73. <view style="width:50%;float: left;" wx:for="{{popData}}" bindtap="changeInfo" wx:for-item="item" data-data="{{item.data}}" wx:index="{{index}}" wx:key="index">
  74. <image src="{{imgUrl}}/flex.png" class="icon-pop" style="float: left;"></image>
  75. <text class="text-pop">{{item.popName}}</text>
  76. </view>
  77. </scroll-view>
  78. </view>
  79. </view>
  80. </view>