list.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <view>
  3. <!-- 头部背景和搜索 -->
  4. <view>
  5. <image src="/static/images/list-bg.png" class="top-image w-full" id="top-image" mode="widthFix"></image>
  6. </view>
  7. <!-- 搜索 -->
  8. <view class="content">
  9. <view class="flex row-center white lg bold">
  10. <u-icon name="checkmark-circle-fill" size="48"></u-icon>
  11. <view class="m-l-12">匹配成功</view>
  12. </view>
  13. <view class="flex row-center m-t-14 white p-l-20 p-r-20">根据您的条件AI智能计算可能符合以下政策,具体以实际申报为准</view>
  14. <view class="m-t-22 p-l-24 p-r-24">
  15. <view class="top-line"></view>
  16. <view class="list">
  17. <view class="bg-white p-t-18 p-l-24 p-r-24 p-b-34">
  18. <!-- 标签 -->
  19. <view class="flex flex-wrap">
  20. <view class="tag-item" :class="{ 'tat-active': activeIndex == index }"
  21. v-for="(item, index) in policyList" :key="index" @tap="changeTag(index)">{{ item.title }}
  22. </view>
  23. </view>
  24. <view v-for="(item, index) in policyList" :key="index" v-if="activeIndex == index">
  25. <!-- <view class="detail">{{ item.content }}</view> -->
  26. <rich-text :nodes="item.content"></rich-text>
  27. <view class="flex row-center">
  28. <view class="user-logout flex col-center row-center white"
  29. @tap="goDetail(item)">
  30. <view class="m-r-12">查看“{{ item.title }}”详情</view>
  31. <u-icon name="arrow-rightward" size="28"></u-icon>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import {
  43. mapGetters,
  44. mapActions
  45. } from 'vuex'
  46. import {
  47. pxToRpx
  48. } from '@/utils/tools'
  49. const app = getApp()
  50. const homeItem = {
  51. name: '首页'
  52. }
  53. export default {
  54. data() {
  55. return {
  56. activeIndex: 0,
  57. }
  58. },
  59. onLoad(option) {
  60. this.policyList = uni.getStorageSync('policyList');
  61. },
  62. onShow() {
  63. // this.getHomeFun();
  64. // this.getUser();
  65. },
  66. onHide() {},
  67. onPullDownRefresh() {
  68. // this.getUser().then(() => {
  69. // uni.stopPullDownRefresh();
  70. // })
  71. },
  72. methods: {
  73. // ...mapActions(['getUser']),
  74. changeTag(index) {
  75. this.activeIndex = index;
  76. },
  77. goDetail(item){
  78. uni.setStorageSync('policyDetail', item);
  79. uni.navigateTo({
  80. url: '/pages/policy/detail?id=' + item.id+ '&title=' + item.title,
  81. })
  82. },
  83. },
  84. computed: {
  85. ...mapGetters(['appConfig']),
  86. }
  87. }
  88. </script>
  89. <style lang="less" scoped>
  90. .huodong-details {
  91. padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
  92. }
  93. .content {
  94. position: absolute;
  95. top: 54rpx;
  96. width: 100%;
  97. .detail {
  98. background: #F7F7F7;
  99. border-radius: 0rpx 0rpx 0rpx 0rpx;
  100. margin: 24rpx 0;
  101. padding: 24rpx;
  102. }
  103. .top-line {
  104. width: 100%;
  105. height: 24rpx;
  106. background: #DD4250;
  107. border-radius: 10rpx 10rpx 10rpx 10rpx;
  108. opacity: 1;
  109. border: 2rpx solid #B50818;
  110. }
  111. .list {
  112. margin-top: -12rpx;
  113. padding: 0 20rpx;
  114. }
  115. .tag-item {
  116. margin: 8rpx;
  117. padding: 16rpx 28rpx;
  118. background: #F7F8FA;
  119. border-radius: 8rpx 8rpx 8rpx 8rpx;
  120. opacity: 1;
  121. }
  122. .tat-active {
  123. color: #FFFFFF;
  124. background: #DD4250;
  125. border-radius: 8rpx 8rpx 8rpx 8rpx;
  126. }
  127. .user-logout {
  128. padding: 12rpx 32rpx;
  129. background: #DD4250;
  130. box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(221, 66, 80, 0.32);
  131. border-radius: 40rpx 40rpx 40rpx 40rpx;
  132. opacity: 1;
  133. }
  134. }
  135. .details-images {
  136. height: 408rpx;
  137. border-radius: 20rpx;
  138. overflow: hidden;
  139. width: 100%;
  140. image {
  141. width: 100%;
  142. height: 100%;
  143. }
  144. }
  145. .detail-title {
  146. // font-size: 36rpx;
  147. font-weight: bold;
  148. // padding: 30rpx 0;
  149. }
  150. .detail-cell {
  151. display: flex;
  152. // align-items: center;
  153. padding: 30rpx 0;
  154. .cell-img {
  155. padding: 5rpx 0;
  156. image {
  157. width: 48rpx;
  158. height: 48rpx;
  159. display: block
  160. }
  161. }
  162. }
  163. // .muted {
  164. // color: #989898;
  165. // padding-left: 10rpx;
  166. // }
  167. .detail-biaoti {
  168. // font-size: 36rpx;
  169. height: 88rpx;
  170. line-height: 88rpx;
  171. }
  172. .bj-w {
  173. background-color: #fff;
  174. }
  175. .padding-30 {
  176. padding: 0 30rpx !important;
  177. }
  178. .content-box {
  179. padding: 0 24rpx;
  180. box-shadow: 0rpx 8rpx 16rpx 2rpx rgba(0, 0, 0, 0.03);
  181. border-radius: 12rpx 12rpx 12rpx 12rpx;
  182. input {
  183. font-size: 28rpx;
  184. }
  185. textarea {
  186. width: 100%;
  187. height: 100rpx;
  188. font-size: 28rpx;
  189. }
  190. }
  191. .btn-r-border {
  192. position: relative;
  193. &::after {
  194. content: ' ';
  195. width: 1rpx;
  196. height: 36rpx;
  197. background-color: #CCCCCC;
  198. right: 0;
  199. top: 50%;
  200. margin-top: -18rpx;
  201. position: absolute;
  202. }
  203. }
  204. .width75 {
  205. width: 150rpx;
  206. font-weight: bold;
  207. }
  208. </style>
  209. <style lang="scss">
  210. .footer {
  211. left: 0%;
  212. bottom: 150rpx;
  213. width: 100%;
  214. padding: 0 24rpx;
  215. position: fixed;
  216. z-index: 99;
  217. .btn {
  218. height: 84rpx;
  219. line-height: 84rpx;
  220. background-color: $-color-primary;
  221. box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(243, 113, 113, 0.39);
  222. border-radius: 18rpx 18rpx 18rpx 18rpx;
  223. }
  224. }
  225. page {
  226. padding: 0;
  227. }
  228. .talent-tab {
  229. .title {
  230. font-size: 36rpx;
  231. font-weight: 400;
  232. color: #333333;
  233. }
  234. }
  235. </style>