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

143 lines
2.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <!-- 申遗历程 -->
  3. <view class="apply">
  4. <navbar title="申遗历程" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="top-img">
  6. <image src="../static/applyRelic/jdz.png" mode="aspectFill" style="width: 100%; height: 100%;"></image>
  7. </view>
  8. <view class="middle-box">
  9. <view class="middle-img">
  10. <view>
  11. <image src="../static/applyRelic/2.png" mode="aspectFill" />
  12. </view>
  13. <view>
  14. <image src="../static/applyRelic/2.png" mode="aspectFill" />
  15. </view>
  16. <view>
  17. <image src="../static/applyRelic/2.png" mode="aspectFill" />
  18. </view>
  19. </view>
  20. <view class="middle-font">
  21. <view>
  22. 申遗历程
  23. </view>
  24. <view>
  25. 申遗缘由
  26. </view>
  27. <view>
  28. 遗产价值
  29. </view>
  30. </view>
  31. </view>
  32. <view class="apply-list">
  33. <uv-list @scrolltolower="scrolltolower">
  34. <uv-list-item
  35. :title="item.articleTitle"
  36. :note="$dayjs(item.createTime).format('YYYY-MM-DD')"
  37. border="true"
  38. v-for="(item,index) in list"
  39. :key="index"
  40. >
  41. <template #footer>
  42. <uv-image :src="item.articleImage" radius="10rpx" width="240rpx"
  43. height="160rpx" />
  44. </template>
  45. </uv-list-item>
  46. </uv-list>
  47. </view>
  48. <tabber />
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. queryParams: {
  56. pageNo: 1,
  57. pageSize: 10,
  58. },
  59. total : 0,
  60. list : [],
  61. }
  62. },
  63. onShow() {
  64. this.queryArticleList()
  65. },
  66. onReachBottom() {
  67. this.loadMoreData()
  68. },
  69. methods: {
  70. queryArticleList(){
  71. this.$api('queryArticleList', res => {
  72. if(res.code == 200){
  73. this.list = res.result
  74. }
  75. })
  76. },
  77. loadMoreData(){
  78. if(this.queryParams.pageSize < this.total){
  79. this.queryParams.pageSize += 10
  80. this.queryArticleList()
  81. }
  82. },
  83. }
  84. }
  85. </script>
  86. <style scoped lang="scss">
  87. .apply {
  88. .top-img {
  89. height: 380rpx;
  90. }
  91. .middle-box {
  92. display: flex;
  93. position: relative;
  94. height: 220rpx;
  95. align-items: center;
  96. justify-content: space-around;
  97. background-color: #fff;
  98. .middle-img {
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-around;
  102. width: 100%;
  103. view {
  104. width: 160rpx;
  105. height: 160rpx;
  106. image {
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. }
  112. .middle-font {
  113. position: absolute;
  114. display: flex;
  115. width: 100%;
  116. justify-content: space-around;
  117. view {
  118. width: 60rpx;
  119. color: #FFFDF6;
  120. font-weight: 600;
  121. }
  122. }
  123. }
  124. .apply-list {
  125. width: 94%;
  126. margin-left: 3%;
  127. /deep/ .uv-list-item{
  128. background-color: #FFFDF6 !important;
  129. }
  130. }
  131. }
  132. </style>