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

171 lines
3.2 KiB

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