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

184 lines
3.5 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
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. onPullDownRefresh() {
  72. this.queryAreaList()
  73. },
  74. methods: {
  75. queryAreaList(){
  76. this.$api('queryAreaList', res => {
  77. if(res.code == 200){
  78. this.list = res.result.records
  79. this.total = res.result.total
  80. }
  81. })
  82. },
  83. loadMoreData(){
  84. if(this.queryParams.pageSize < this.total){
  85. this.queryParams.pageSize += 10
  86. this.queryAreaList()
  87. }
  88. },
  89. toUrl(id){
  90. uni.navigateTo({
  91. url: '/pages/index/tourGuide?areaId=' + id
  92. })
  93. },
  94. }
  95. }
  96. </script>
  97. <style scoped lang="scss">
  98. .situation {
  99. image{
  100. width: 100%;
  101. height: 100%;
  102. }
  103. .situation-imgs {
  104. width: 92%;
  105. margin-top: 20rpx;
  106. margin-left: 4%;
  107. .situation-imgs-one {
  108. height: 360rpx;
  109. position: relative;
  110. border-radius: 30rpx;
  111. overflow: hidden;
  112. .text{
  113. .title{
  114. font-size: 80rpx;
  115. }
  116. .tip{
  117. font-size: 45rpx;
  118. }
  119. }
  120. }
  121. .situation-imgs-two {
  122. margin-top: 20rpx;
  123. height: 300rpx;
  124. position: relative;
  125. border-radius: 30rpx;
  126. overflow: hidden;
  127. .text{
  128. .title{
  129. font-size: 60rpx;
  130. }
  131. .tip{
  132. font-size: 35rpx;
  133. }
  134. }
  135. }
  136. .situation-imgs-four {
  137. display: flex;
  138. flex-wrap: wrap;
  139. justify-content: space-between;
  140. >view {
  141. margin-top: 20rpx;
  142. width: 48%;
  143. height: 260rpx;
  144. position: relative;
  145. border-radius: 20rpx;
  146. overflow: hidden;
  147. .text{
  148. .title{
  149. font-size: 34rpx;
  150. margin-top: 40rpx;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. .text{
  157. font-family: 楷体;
  158. // font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  159. position: absolute;
  160. bottom: 0;
  161. left: 0;
  162. width: 100%;
  163. height: 100%;
  164. background-color: #00000036;
  165. color: #fff;
  166. display: flex;
  167. flex-direction: column;
  168. align-items: center;
  169. justify-content: center;
  170. font-weight: 900;
  171. .title{
  172. font-size: 34rpx;
  173. }
  174. .tip{
  175. font-size: 22rpx;
  176. margin-top: 10%;
  177. }
  178. }
  179. }
  180. </style>