YouJin.vue 3.3 KB

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