景徳镇旅游微信小程序
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.

180 lines
3.4 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <!-- 遗产概况 -->
  3. <view class="situation">
  4. <navbar title="遗产概况" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="situation-imgs">
  6. <view class="situation-imgs-one"
  7. v-if="list[0].id"
  8. @click="toUrl(list[0].id)">
  9. <image :src="list[0].areaImage" mode="aspectFill"/>
  10. <view class="text">
  11. <view class="title text-ellipsis">
  12. {{ list[0].areaName }}
  13. </view>
  14. <view class="tip text-ellipsis">
  15. {{ list[0].areaBrief }}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="situation-imgs-two"
  20. v-if="list[1].id"
  21. @click="toUrl(list[1].id)">
  22. <image :src="list[1].areaImage" mode="aspectFill"/>
  23. <view class="text">
  24. <view class="title text-ellipsis">
  25. {{ list[1].areaName }}
  26. </view>
  27. <view class="tip text-ellipsis">
  28. {{ list[1].areaBrief }}
  29. </view>
  30. </view>
  31. </view>
  32. <view class="situation-imgs-four">
  33. <view
  34. v-for="(item,index) in list"
  35. v-if="index > 1"
  36. :key="index">
  37. <image :src="item.areaImage" mode="aspectFill"/>
  38. <view class="text">
  39. <view class="title text-ellipsis">
  40. {{ item.areaName }}
  41. </view>
  42. <view class="tip text-ellipsis">
  43. {{ item.areaBrief }}
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <tabber />
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. queryParams: {
  57. pageNo: 1,
  58. pageSize: 10,
  59. },
  60. total : 0,
  61. list : [],
  62. }
  63. },
  64. onShow() {
  65. this.queryAreaList()
  66. },
  67. onReachBottom() {
  68. this.loadMoreData()
  69. },
  70. methods: {
  71. queryAreaList(){
  72. this.$api('queryAreaList', res => {
  73. if(res.code == 200){
  74. this.list = res.result.records
  75. this.total = res.result.total
  76. }
  77. })
  78. },
  79. loadMoreData(){
  80. if(this.queryParams.pageSize < this.total){
  81. this.queryParams.pageSize += 10
  82. this.queryAreaList()
  83. }
  84. },
  85. toUrl(id){
  86. uni.navigateTo({
  87. url: '/pages/index/tourGuide?id=' + id
  88. })
  89. },
  90. }
  91. }
  92. </script>
  93. <style scoped lang="scss">
  94. .situation {
  95. image{
  96. width: 100%;
  97. height: 100%;
  98. }
  99. .situation-imgs {
  100. width: 92%;
  101. margin-top: 20rpx;
  102. margin-left: 4%;
  103. .situation-imgs-one {
  104. height: 360rpx;
  105. position: relative;
  106. border-radius: 30rpx;
  107. overflow: hidden;
  108. .text{
  109. .title{
  110. font-size: 80rpx;
  111. }
  112. .tip{
  113. font-size: 45rpx;
  114. }
  115. }
  116. }
  117. .situation-imgs-two {
  118. margin-top: 20rpx;
  119. height: 300rpx;
  120. position: relative;
  121. border-radius: 30rpx;
  122. overflow: hidden;
  123. .text{
  124. .title{
  125. font-size: 60rpx;
  126. }
  127. .tip{
  128. font-size: 35rpx;
  129. }
  130. }
  131. }
  132. .situation-imgs-four {
  133. display: flex;
  134. flex-wrap: wrap;
  135. justify-content: space-between;
  136. >view {
  137. margin-top: 20rpx;
  138. width: 48%;
  139. height: 260rpx;
  140. position: relative;
  141. border-radius: 20rpx;
  142. overflow: hidden;
  143. .text{
  144. .title{
  145. font-size: 34rpx;
  146. margin-top: 40rpx;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. .text{
  153. font-family: 楷体;
  154. // font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  155. position: absolute;
  156. bottom: 0;
  157. left: 0;
  158. width: 100%;
  159. height: 100%;
  160. background-color: #00000036;
  161. color: #fff;
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. justify-content: center;
  166. font-weight: 900;
  167. .title{
  168. font-size: 34rpx;
  169. }
  170. .tip{
  171. font-size: 22rpx;
  172. margin-top: 10%;
  173. }
  174. }
  175. }
  176. </style>