YouJin.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="文物主题游径" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="ban_box">
  5. <view class="map_box">
  6. <mapComponent :latitudeAndLongitude="latitudeAndLongitude" :height="height"></mapComponent>
  7. </view>
  8. </view>
  9. <!-- 路线 -->
  10. <view class="lx_box">
  11. <view class="lx_tit">
  12. <view class="">
  13. <text style="color: #d85f4c">{{ list.title }}:</text>
  14. {{ list.content }}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="btm_box">
  19. <view class="" style="display: flex; align-items: center; justify-content: start">
  20. <view class="Serial"></view>
  21. <view style="font-size: 32rpx; margin-left: 20rpx">{{ list.title }}</view>
  22. </view>
  23. <view class="introduce">{{ list.desc }}</view>
  24. <!-- -->
  25. <view class="fx_box">
  26. <view style="display: flex; align-items: center">
  27. <uni-icons type="redo" color="#5b5b5b" size="20"></uni-icons>
  28. <view class="">分享</view>
  29. </view>
  30. <view style="display: flex; align-items: center">
  31. <uni-icons type="star" color="#5b5b5b" size="20"></uni-icons>
  32. <view class="">收藏</view>
  33. </view>
  34. <view style="display: flex; align-items: center">
  35. <uni-icons type="paperplane" color="#5b5b5b" size="20"></uni-icons>
  36. <view class="">前往</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. let that;
  44. export default {
  45. data() {
  46. return {
  47. latitudeAndLongitude: {
  48. latitude: '24.503559',
  49. longitude: '118.13093'
  50. },
  51. list: {},
  52. height: 1000
  53. };
  54. },
  55. onLoad(o) {
  56. that = this;
  57. this.activityDetails(o.id);
  58. },
  59. methods: {
  60. activityDetails(id) {
  61. this.$api.activityDetails({ main_body_id: 1, id: id }, function (res) {
  62. if (res.code == 1) {
  63. console.log(res, '游径详情');
  64. that.list = res.data;
  65. // that.content_list = Object.values(that.list.content_list);
  66. }
  67. });
  68. }
  69. }
  70. };
  71. </script>
  72. <style>
  73. .box {
  74. width: 100%;
  75. padding-bottom: 50rpx;
  76. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  77. background-size: 100% 100%;
  78. background-repeat: repeat-y;
  79. height: auto;
  80. }
  81. .ban_box {
  82. width: 90%;
  83. height: 1000rpx;
  84. position: relative;
  85. margin: auto;
  86. margin-top: 20rpx;
  87. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/lx_bg.png');
  88. background-size: 100% 100%;
  89. }
  90. .map_box {
  91. width: 600rpx;
  92. height: 875rpx;
  93. overflow: hidden;
  94. padding-top: 130rpx;
  95. margin: auto;
  96. }
  97. .img {
  98. position: absolute;
  99. width: 692rpx;
  100. height: 1000rpx;
  101. }
  102. .lx_box {
  103. width: 90%;
  104. margin: auto;
  105. }
  106. .lx_tit {
  107. margin: 20rpx 0 20rpx 10rpx;
  108. font-size: 28rpx;
  109. font-weight: 700;
  110. }
  111. .btm_box {
  112. width: 653rpx;
  113. /* height: 345rpx; */
  114. padding: 40rpx;
  115. margin: auto;
  116. font-size: 28rpx;
  117. font-weight: 600;
  118. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/yjlx_bg.png');
  119. background-size: 100% 100%;
  120. }
  121. .Serial {
  122. width: 35rpx;
  123. height: 35rpx;
  124. background-color: #d92e2e;
  125. border-radius: 50%;
  126. text-align: center;
  127. color: #ffffff;
  128. }
  129. .introduce {
  130. height: 130rpx;
  131. margin-left: 54rpx;
  132. overflow: scroll;
  133. }
  134. .fx_box {
  135. display: flex;
  136. align-items: center;
  137. font-weight: 500;
  138. justify-content: space-evenly;
  139. color: #5b5b5b;
  140. font-size: 26rpx;
  141. }
  142. </style>