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

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