ken.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view class="content">
  3. <image src="../../static/images/bg-bg.png" mode="" class="bg-bg"></image>
  4. <image src="../../static/images/ken-tit1.png" mode="" class="top-tit"></image>
  5. <view class="cot">
  6. {{$store.state.baseName}}推出博爱园公益月捐计划 ,参与月捐项目 ,我们将为您每月发放一封{{$store.state.baseName}}官方感谢信 ,我们期待并感谢您无私的爱心奉献。
  7. </view>
  8. <view class="lov">
  9. Love makes dreams come true
  10. </view>
  11. <view class="dow">
  12. 下拉查看详情
  13. </view>
  14. <image src="../../static/icon/dow.png" mode="" class="dow-dow"></image>
  15. <image src="../../static/images/pen.png" mode="" class="pen"></image>
  16. <view class="pen-pen" v-for="(item,index) in list" @click="navto('/pages/index/yue?id=' + item.id)">
  17. <image src="../../static/img/pen0.png" mode=""></image>
  18. <view class="tit" v-html="item.title">
  19. </view>
  20. </view>
  21. <view class="" style="height: 150rpx;">
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import {
  27. getArticList
  28. } from '@/api/index.js';
  29. import { getPlan} from '@/api/money.js'
  30. export default {
  31. data() {
  32. return {
  33. list: [],
  34. page: 1,
  35. limit: 10,
  36. loadingType: 'more'
  37. }
  38. },
  39. methods: {
  40. navto(url) {
  41. uni.navigateTo({
  42. url
  43. })
  44. },
  45. getList() {
  46. let that = this
  47. if (that.loadingType == 'loading' || that.loadingType == 'noMore') return;
  48. that.loadingType = 'loading'
  49. getPlan({
  50. page: that.page,
  51. limit: that.limit
  52. }).then(({data}) => {
  53. let arr = []
  54. if (data.data.length > 0) {
  55. arr = data.data.map(item => {
  56. item.title = item.title.replace(/[^\u4e00-\u9fa5]/g, '<br />');
  57. return item
  58. })
  59. }
  60. that.list = that.list.concat(arr);
  61. that.page++
  62. if (that.limit == data.data.length) {
  63. that.loadingType = 'more'
  64. } else {
  65. that.loadingType = 'noMore'
  66. }
  67. })
  68. // getArticList({
  69. // ifyid: 78,
  70. // page: that.page,
  71. // limit: that.limit
  72. // }).then(({
  73. // data
  74. // }) => {
  75. // let arr = []
  76. // if (data.list.length > 0) {
  77. // arr = data.list.map(item => {
  78. // item.title = item.title.replace(/[^\u4e00-\u9fa5]/g, '<br />');
  79. // return item
  80. // })
  81. // }
  82. // that.list = that.list.concat(arr);
  83. // that.page++
  84. // if (that.limit == that.list.length) {
  85. // that.loadingType = 'more'
  86. // } else {
  87. // that.loadingType = 'noMore'
  88. // }
  89. // });
  90. }
  91. },
  92. onLoad() {
  93. this.getList()
  94. },
  95. onReachBottom() {
  96. this.getList()
  97. }
  98. }
  99. </script>
  100. <style lang="scss" scoped>
  101. image {
  102. display: block;
  103. }
  104. * {
  105. position: relative;
  106. }
  107. .bg-bg {
  108. width: 750rpx;
  109. height: 773rpx;
  110. position: absolute;
  111. bottom: 0;
  112. }
  113. .content {
  114. width: 750rpx;
  115. // height: 4983rpx;
  116. background: linear-gradient(3.799999999999997deg, #1784D8 0%, #6CA7E1 100%);
  117. padding-top: 1rpx;
  118. }
  119. .top-tit {
  120. width: 521rpx;
  121. height: 322rpx;
  122. margin: 128rpx auto 70rpx;
  123. }
  124. .cot {
  125. padding: 0 70rpx;
  126. font-weight: bold;
  127. font-size: 26rpx;
  128. color: #FFFFFF;
  129. text-decoration-line: underline;
  130. text-align: center;
  131. line-height: 53rpx;
  132. letter-spacing: 1rpx;
  133. text-underline-offset: 10px
  134. }
  135. .lov {
  136. // font-family: Source Han Serif SC;
  137. text-align: center;
  138. font-weight: bold;
  139. font-size: 19rpx;
  140. color: #FFFFFF;
  141. padding: 30rpx 0 64rpx;
  142. }
  143. .dow {
  144. text-align: center;
  145. font-weight: bold;
  146. font-size: 43rpx;
  147. color: #FFFFFF;
  148. padding-bottom: 27rpx;
  149. }
  150. .dow-dow {
  151. width: 38rpx;
  152. height: 87rpx;
  153. margin: auto;
  154. }
  155. .pen {
  156. width: 738rpx;
  157. height: 562rpx;
  158. margin: auto;
  159. }
  160. .pen-pen {
  161. width: 594rpx;
  162. height: 757rpx;
  163. margin:30rpx auto;
  164. image {
  165. width: 594rpx;
  166. height: 757rpx;
  167. position: absolute;
  168. top: 0;
  169. left: 0;
  170. }
  171. .tit {
  172. width: 250rpx;
  173. height: 100rpx;
  174. text-align: center;
  175. font-size: 40rpx;
  176. color: #D27227;
  177. font-weight: bold;
  178. // font-weight: bold;
  179. // /* 设置描边宽度及颜色 默认为字体内外描边 */
  180. // text-stroke: 1px #D27227;
  181. // /* 兼容Webkit(Chrome/Safari)内核浏览器的写法 */
  182. // -webkit-text-stroke: 1px #D27227;
  183. position: absolute;
  184. top: 200rpx;
  185. left: 0;
  186. right: 0;
  187. margin: auto;
  188. }
  189. }
  190. </style>