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

149 lines
2.7 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 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. :clickable="true"
  41. @click="toUrl(item)"
  42. >
  43. <template #footer>
  44. <uv-image :src="item.articleImage" radius="10rpx" width="240rpx"
  45. height="160rpx" />
  46. </template>
  47. </uv-list-item>
  48. </uv-list>
  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.queryArticleList()
  67. },
  68. onReachBottom() {
  69. this.loadMoreData()
  70. },
  71. methods: {
  72. queryArticleList(){
  73. this.$api('queryArticleList', res => {
  74. if(res.code == 200){
  75. this.list = res.result
  76. }
  77. })
  78. },
  79. loadMoreData(){
  80. if(this.queryParams.pageSize < this.total){
  81. this.queryParams.pageSize += 10
  82. this.queryArticleList()
  83. }
  84. },
  85. toUrl(item){
  86. console.log(item);
  87. this.$utils.navigateTo(`/pages_order/service/articleDetail?id=${item.id}`)
  88. },
  89. }
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .apply {
  94. .top-img {
  95. height: 380rpx;
  96. }
  97. .middle-box {
  98. display: flex;
  99. position: relative;
  100. height: 220rpx;
  101. align-items: center;
  102. justify-content: space-around;
  103. background-color: #fff;
  104. .middle-img {
  105. display: flex;
  106. align-items: center;
  107. justify-content: space-around;
  108. width: 100%;
  109. view {
  110. width: 160rpx;
  111. height: 160rpx;
  112. image {
  113. width: 100%;
  114. height: 100%;
  115. }
  116. }
  117. }
  118. .middle-font {
  119. position: absolute;
  120. display: flex;
  121. width: 100%;
  122. justify-content: space-around;
  123. view {
  124. width: 60rpx;
  125. color: #FFFDF6;
  126. font-weight: 600;
  127. }
  128. }
  129. }
  130. .apply-list {
  131. width: 94%;
  132. margin-left: 3%;
  133. /deep/ .uv-list-item{
  134. background-color: #FFFDF6 !important;
  135. }
  136. }
  137. }
  138. </style>