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

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