store.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="content">
  3. <map
  4. id="map"
  5. :latitude="lat"
  6. :longitude="lng"
  7. scale="18"
  8. show-compass
  9. show-location
  10. :markers="markers"
  11. style="width: 100%; height:30%;">
  12. </map>
  13. <!-- 网点信息及设备 -->
  14. <view class="details">
  15. <view class="details-address">
  16. <view>华金基座A座</view>
  17. <view>西安市未央路北二环真光路A座12号</view>
  18. <view>营业时间:9:00 - 12:00</view>
  19. </view>
  20. <!-- 设备列表 -->
  21. <view class="details-dev">
  22. <view class="details-dev-box" v-for="item in 3">
  23. <view class="details-dev-title">设备编号:<text>SDFLSJLSAFJLJSLFJLKF</text></view>
  24. <view class="details-dev-cons">
  25. <view class="dev-item">
  26. <view>
  27. <u-image height="80" width="80" src="/static/yw.png"></u-image>
  28. </view>
  29. <view>
  30. <view>废旧衣物</view>
  31. <text>100g/1乐豆</text>
  32. </view>
  33. </view>
  34. <view class="dev-item">
  35. <view>
  36. <u-image height="80" width="80" src="/static/zhizhang.png"></u-image>
  37. </view>
  38. <view>
  39. <view>废旧纸张 <u-tag text="已满" size="mini" mode="dark" type="info" /></view>
  40. <text>100g/1乐豆</text>
  41. </view>
  42. </view>
  43. <view class="dev-item">
  44. <view>
  45. <u-image height="80" width="80" src="/static/jinshou.png"></u-image>
  46. </view>
  47. <view>
  48. <view>废旧金属</view>
  49. <text>100g/1乐豆</text>
  50. </view>
  51. </view>
  52. <view class="dev-item">
  53. <view>
  54. <u-image height="80" width="80" src="/static/dhai.png"></u-image>
  55. </view>
  56. <view>
  57. <view>有害垃圾</view>
  58. <text>100g/1乐豆</text>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. lat: '',
  72. lng: '',
  73. mapCtx: null, // 地图对象
  74. markers: [], // 标注点
  75. };
  76. },
  77. onLoad() {
  78. this.lng = '101.760521'
  79. this.lat = '36.636193'
  80. this.markers = [
  81. {
  82. latitude: this.lat,
  83. longitude: this.lng,
  84. width: 30,
  85. height: 30,
  86. iconPath: "/static/store.png"
  87. }
  88. ]
  89. }
  90. }
  91. </script>
  92. <style lang="scss">
  93. .content{
  94. width: 100%;
  95. padding: 0;
  96. .details{
  97. margin: 20upx;
  98. .details-address{
  99. padding: 20upx;
  100. background: #FFFFFF;
  101. border-radius: 15upx;
  102. box-shadow: 0upx 3upx 6upx #eee;
  103. margin-bottom: 20upx;
  104. >view{
  105. font-size: 24upx;
  106. padding: 5upx 0;
  107. color: #666;
  108. &:first-child{
  109. font-weight: bold;
  110. font-size: 30upx;
  111. color: #333;
  112. }
  113. }
  114. }
  115. .details-dev{
  116. .details-dev-box{
  117. padding: 20upx 20upx 5upx;
  118. background: #FFFFFF;
  119. border-radius: 15upx;
  120. box-shadow: 0upx 3upx 6upx #eee;
  121. margin-bottom: 20upx;
  122. .details-dev-title{
  123. border-bottom: 1px solid #F8F8F8;
  124. padding: 10upx 0 20upx;
  125. text{
  126. color: #666;
  127. }
  128. }
  129. .details-dev-cons{
  130. padding: 10upx;
  131. display: flex;
  132. flex-wrap: wrap;
  133. .dev-item{
  134. width: 50%;
  135. display: flex;
  136. align-items: center;
  137. > view{
  138. padding: 15upx 10upx;
  139. &:last-child{
  140. text{
  141. color: #666;
  142. font-size: 24upx;
  143. }
  144. view{
  145. display: flex;
  146. align-items: center;
  147. .u-tag{
  148. margin-left: 10upx;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }
  159. </style>