瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
4.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="postDetail">
  3. <navbar leftClick @leftClick="$utils.navigateBack" title="详情" />
  4. <view class="swipe">
  5. <uv-swiper :list="detail.images" indicator height="540rpx"></uv-swiper>
  6. </view>
  7. <view class="box">
  8. <view class="title">
  9. {{ detail.name }}
  10. <view class="spot">
  11. 3A景区
  12. </view>
  13. </view>
  14. <view class="pig">
  15. 江华同志故居位于永州市江华瑶族自治县大石桥...
  16. </view>
  17. <hr />
  18. <view class="mie">
  19. <view class="dog">
  20. 开园时间 830-17.30
  21. </view>
  22. <view class="look">
  23. 入园须知
  24. </view>
  25. <uv-icon name="arrow-right"></uv-icon>
  26. </view>
  27. <hr />
  28. <!-- <view class="createBy">
  29. <view class="">
  30. // 发布时间:{{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
  31. </view>
  32. </view> -->
  33. <!-- <view class="createBy">
  34. <view class="">
  35. 地址{{ detail.address }}
  36. </view>
  37. </view> -->
  38. <view class="ditu">
  39. <view class="weizhi">
  40. 湖南省永州市大石桥镇
  41. </view>
  42. <addressSpot :address="detail.address" :latitude="detail.latitude" :longitude="detail.longitude" />
  43. </view>
  44. <!-- <view class="content">
  45. <uv-parse :content="detail.details"></uv-parse>
  46. </view> -->
  47. <view class="convenient">
  48. <view class="Evaluate ">
  49. 景区评论
  50. </view>
  51. <view class="Details">
  52. 景区详情
  53. </view>
  54. <view class="Gohere">
  55. 去这里
  56. </view>
  57. </view>
  58. </view>
  59. <commentList @getData="getData" :list="list" :params="params" />
  60. </view>
  61. </template>
  62. <script>
  63. import mixinsList from '@/mixins/list.js'
  64. import commentList from '../components/list/comment/commentList.vue'
  65. export default {
  66. mixins: [mixinsList],
  67. components: {
  68. commentList
  69. },
  70. data() {
  71. return {
  72. detail: {},
  73. mixinsListApi: 'getCommentPage',
  74. params: {
  75. type: '3',
  76. orderId: '',
  77. name: '',
  78. },
  79. id: 0,
  80. }
  81. },
  82. onLoad(options) {
  83. // this.$route.query的参数
  84. console.log(options)
  85. this.id = options.id
  86. this.queryParams.type = this.params.type
  87. this.queryParams.orderId = options.id
  88. this.params.orderId = options.id
  89. },
  90. onPullDownRefresh() {
  91. this.getDetail()
  92. },
  93. onShow() {
  94. this.getDetail()
  95. },
  96. onShareAppMessage(res) {
  97. return {
  98. title: this.detail.name,
  99. path: '/pages_order/scenicSpot/scenicSpotDetail?id=' + this.id
  100. }
  101. },
  102. methods: {
  103. click(item) {
  104. console.log('item', item);
  105. },
  106. getDetail() {
  107. this.$api('getScenicDetail', {
  108. id: this.id
  109. }, res => {
  110. uni.stopPullDownRefresh()
  111. if (res.code == 200) {
  112. this.params.name = res.result.name
  113. this.detail = res.result
  114. this.detail.images = res.result.images && res.result.images.split(',')
  115. }
  116. })
  117. },
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. .postDetail {
  123. .box {
  124. padding: 20rpx;
  125. width: 100vw;
  126. background-color: #fff;
  127. box-sizing: border-box;
  128. .title {
  129. display: flex;
  130. font-size: 34rpx;
  131. font-weight: 600;
  132. color: #000;
  133. .spot {
  134. margin: 0rpx 20rpx;
  135. padding: 5rpx;
  136. background-color: $uni-color;
  137. border-radius: 10rpx;
  138. color: #fff;
  139. font-size: 30rpx;
  140. letter-spacing: 5rpx;
  141. }
  142. }
  143. .pig {
  144. margin: 50rpx 0rpx;
  145. font-size: 25rpx;
  146. color: $uni-color;
  147. }
  148. .mie {
  149. display: flex;
  150. justify-content: space-between;
  151. .dog {
  152. margin: 30rpx 0rpx;
  153. font-size: 25rpx;
  154. color: $uni-color;
  155. }
  156. .look {
  157. margin: 30rpx 0rpx;
  158. margin-left: 320rpx;
  159. font-size: 25rpx;
  160. }
  161. }
  162. hr {
  163. opacity: 0.5;
  164. }
  165. .createBy {
  166. display: flex;
  167. margin-top: auto;
  168. margin-bottom: 10rpx;
  169. font-size: 24rpx;
  170. margin-top: 20rpx;
  171. color: #555;
  172. &>view {
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. padding-right: 20rpx;
  177. }
  178. }
  179. .ditu {
  180. display: flex;
  181. justify-content: space-between;
  182. .weizhi {
  183. font-size: 25rpx;
  184. margin-top: 25rpx;
  185. opacity: 0.7;
  186. }
  187. }
  188. .controls {
  189. margin-top: 30rpx;
  190. }
  191. .content {
  192. margin-top: 30rpx;
  193. font-size: 28rpx;
  194. }
  195. }
  196. .convenient {
  197. display: flex;
  198. justify-content: space-between;
  199. padding: 10rpx 20rpx;
  200. margin-top: 20rpx;
  201. .Evaluate:hover {
  202. text-decoration: underline;
  203. text-decoration-color: $uni-color;
  204. text-decoration-thickness: 8rpx;
  205. text-decoration-widht: 100rpx;
  206. }
  207. .Details:hover {
  208. text-decoration: underline;
  209. text-decoration-color: $uni-color;
  210. text-decoration-thickness: 8rpx;
  211. text-decoration-widht: 100rpx;
  212. }
  213. .Gohere:hover {
  214. text-decoration: underline;
  215. text-decoration-color: $uni-color;
  216. text-decoration-thickness: 8rpx;
  217. text-decoration-widht: 100rpx;
  218. }
  219. }
  220. }
  221. </style>