移动端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

310 行
8.8 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. 承包方记事
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div class="search_info">
  8. <div class="search_block">
  9. <i class="icon"></i>
  10. <input type="text" class="ipt" v-model="queryParams.cbfmc" placeholder="搜索" >
  11. </div>
  12. <div class="total" @click="getCbfCount">查询</div>
  13. </div>
  14. <div class="list_main">
  15. <van-list
  16. v-model:loading="loading"
  17. :finished="finished"
  18. finished-text="没有更多了"
  19. @load="onRefreshContractor"
  20. :immediate-check="false"
  21. >
  22. <van-swipe-cell v-for="(item,index) in cbfList" :key="'cbfjs'+index">
  23. <div class="item" style="height: 100px;" @click="$router.push({path:'/sunVillage_info/list_chronicles_single_process',query:{item:item,status:false}})">
  24. <div class="info">
  25. <div class="title">
  26. <i class="icon_box"></i>
  27. <p class="news_title">{{item.cbfmc}}</p>
  28. </div>
  29. <div class="time">
  30. <p><img src="../../assets/images/sunVillage_info/contractor_icon_04.png" width="14">{{item.lxdh}}</p>
  31. <p><img src="../../assets/images/sunVillage_info/contractor_icon_05.png" width="14">{{item.cbfcysl}}</p>
  32. </div>
  33. </div>
  34. <div style="width: 30%;">
  35. <img :src="'/api'+item.gsjsrqz" width="100%" alt="" v-if="item.gsjsrqz" >
  36. </div>
  37. </div>
  38. <template #right>
  39. <div class="operation">
  40. <div class="opera_btn" @click="$router.push({path:'/sunVillage_info/list_chronicles_single_process',query:{item:item,status:true}})">
  41. <img src="../../assets/images/sunVillage_info/contractor_icon_07.png" alt="" width="25">
  42. <p>记事签字</p>
  43. </div>
  44. </div>
  45. </template>
  46. </van-swipe-cell>
  47. </van-list>
  48. </div>
  49. </div>
  50. </template>
  51. <script>
  52. import { getList} from "@/api/sunVillage_info/sysCbf";
  53. import request from '@/utils/request'
  54. export default {
  55. name: "certificateList",
  56. data() {
  57. return {
  58. loading: false,
  59. finished: false,
  60. cbfList:[],
  61. countcbf:0,
  62. queryParams:{
  63. pageNum: 1,
  64. pageSize: 10,
  65. cbfbm:null},
  66. };
  67. },
  68. created() {
  69. this.getCbfCount();
  70. },
  71. methods: {
  72. getCbfCount(){
  73. getList(this.queryParams).then(res=>{
  74. this.cbfList = res.rows;
  75. if(this.cbfList.length >= res.total){
  76. this.finished = true;
  77. }else{
  78. this.loading = false;
  79. this.queryParams.pageNum += 1 ;
  80. }
  81. });
  82. },
  83. onRefreshContractor(){
  84. if(this.loading){
  85. let params = {
  86. "cbfbm":this.queryParams.cbfbm,
  87. "pageNum": this.countcbf+1,
  88. "pageSize":10,
  89. }
  90. getList(params).then((response) => {
  91. if(response.rows.length>0&&this.cbfList.length<response.total){
  92. response.rows.map(res => {
  93. this.cbfList.unshift(res)
  94. })
  95. this.loading = false;
  96. this.countcbf++
  97. }else{
  98. this.finished = true;
  99. }
  100. });
  101. }
  102. },
  103. },
  104. }
  105. </script>
  106. <style scoped lang="scss">
  107. .home_wrapper{
  108. background: #e9e9e9;
  109. min-height: 100vh;
  110. width: 100vw;
  111. .header_main {
  112. height: 116px;
  113. background: url('../../assets/images/sunVillage_info/list_head.png') no-repeat;
  114. background-size: 100% 100%;
  115. position: fixed;
  116. top: 0;
  117. left: 0;
  118. width: 100%;
  119. font-size: 36px;
  120. line-height: 116px;
  121. text-align: center;
  122. color: #fff;
  123. position: relative;
  124. .return_btn {
  125. width: 24px;
  126. height: 43.2px;
  127. background: url('../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  128. background-size: 20px 36px;
  129. position: absolute;
  130. left: 38px;
  131. top: 36px;
  132. }
  133. .add_btn {
  134. width: 56.4px;
  135. height: 40.8px;
  136. background: url('../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  137. background-size: 47px 34px;
  138. position: absolute;
  139. right: 38px;
  140. top: 36px;
  141. }
  142. }
  143. .search_info{
  144. padding:20px 23px 0;
  145. display: flex;
  146. .search_block{
  147. height: 59px;
  148. flex: .75;
  149. border-radius: 59px;
  150. background: #fff;
  151. display: flex;
  152. border:2px solid #3494ff;
  153. padding-right: 35px;
  154. align-items: center;
  155. margin-right: 5vw;
  156. .icon{
  157. width: 30px;
  158. height: 30px;
  159. background: url('../../assets/images/sunVillage_info/fixedAssets_icon_1.png') no-repeat;
  160. background-size: 100% 100%;
  161. display: block;
  162. margin:0 8px 0 26px;
  163. }
  164. .ipt{
  165. flex: 1;
  166. font-size: 26px;
  167. background: none;
  168. border:0 none;
  169. line-height: 59px;
  170. }
  171. }
  172. .total{
  173. flex: .25;
  174. display: flex;
  175. align-items: center;
  176. justify-content: center;
  177. font-size: 26px;
  178. color: #ffffff;
  179. background: #3494ff;
  180. border-radius: 50PX;
  181. }
  182. }
  183. .list_main {
  184. padding: 0 22px;
  185. margin-top: 15PX;
  186. .item {
  187. border-radius: 30px;
  188. background: #fff;
  189. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  190. padding: 25px 32px;
  191. margin-bottom: 20px;
  192. display: flex;
  193. align-items: center;
  194. .info {
  195. flex: 1;
  196. .title {
  197. display: flex;
  198. font-size: 32px;
  199. align-items: center;
  200. height: 58px;
  201. .icon_box {
  202. width: 34px;
  203. display: block;
  204. height: 30px;
  205. background: url('../../assets/images/sunVillage_info/contractor_icon_03.png') no-repeat;
  206. background-size: 100% 100%;
  207. margin-right: 10px;
  208. flex-shrink: 0;
  209. }
  210. .news_title {
  211. display: -webkit-box;
  212. -webkit-box-orient: vertical;
  213. -webkit-line-clamp: 1;
  214. word-break: break-all;
  215. overflow: hidden;
  216. font-weight: bold;
  217. }
  218. .tips_mark {
  219. background: #ffedcd;
  220. border-radius: 8px;
  221. font-size: 24px;
  222. color: #f8a83d;
  223. text-align: center;
  224. line-height: 34px;
  225. flex-shrink: 0;
  226. padding: 0 5Px;
  227. margin-left: auto;
  228. }
  229. .tips_mark2 {
  230. background: #eb1616;
  231. border-radius: 8px;
  232. font-size: 24px;
  233. color: #ffffff;
  234. text-align: center;
  235. line-height: 34px;
  236. flex-shrink: 0;
  237. padding: 0 5Px;
  238. margin-left: 10PX;
  239. }
  240. }
  241. .time {
  242. font-size: 16PX;
  243. color: #333333;
  244. display: flex;
  245. align-items: center;
  246. margin-top: 5PX;
  247. p{
  248. display: flex;
  249. align-items: center;
  250. font-size: 14PX;
  251. margin-right: 10vw;
  252. }
  253. img{
  254. margin-right: 5PX;
  255. }
  256. .icon_time {
  257. width: 25px;
  258. height: 25px;
  259. background: url('../../assets/images/sunVillage_info/list_icon_4.png') no-repeat;
  260. background-size: 100% 100%;
  261. margin-right: 10px;
  262. }
  263. }
  264. }
  265. }
  266. .operation {
  267. display: flex;
  268. align-items: center;
  269. justify-content: right;
  270. text-align: center;
  271. border-radius: 30px;
  272. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  273. height: 100%;
  274. margin-left: 10PX;
  275. background: #79cf13;
  276. padding: 0 15Px;
  277. .opera_btn {
  278. color: #ffffff;
  279. }
  280. }
  281. }
  282. .bottom_tips{
  283. font-size: 24px;
  284. color: #a7a6a6;
  285. text-align: center;
  286. margin-top: 32px;
  287. background: url('../../assets/images/sunVillage_info/list_icon_8.png') center center no-repeat;
  288. background-size: 260px 2px;
  289. .xs{
  290. padding:0 8px;
  291. background: #e9e9e9;
  292. }
  293. }
  294. }
  295. </style>