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

115 行
3.0 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">证书查看</p>
  11. </template>
  12. </van-nav-bar>
  13. <van-list
  14. v-model="loading"
  15. :finished="finished"
  16. finished-text="没有更多了"
  17. @load="getList"
  18. >
  19. <van-swipe-cell v-for="(item,index) in applicationList" :key="index">
  20. <van-cell :title="item.zrfdbmc+'-'+item.lzfs" value="查看证书" center :to="{name:'certificateSee', query: {id:item.id}}">
  21. <template #icon>
  22. <van-icon name="../../../static/images/onlineHome/icon_zjd7.png" size="30" color="#7790FE" style="margin-right: 10px;" />
  23. </template>
  24. <template #label>
  25. <p>{{item.zrfdbzjhm}}</p>
  26. </template>
  27. </van-cell>
  28. </van-swipe-cell>
  29. </van-list>
  30. </div>
  31. </template>
  32. <script>
  33. import { getList } from "@/api/onlineHome/homestead/circulation";
  34. export default {
  35. name: "certificateList",
  36. data() {
  37. return {
  38. applicationList:[],
  39. houseApplyStatus:[],
  40. auditStatus:[],
  41. loading: false,
  42. finished: false,
  43. queryParams:{
  44. pageNum:1,
  45. pageSize:10,
  46. orderByColumn:'createTime',
  47. isAsc:'desc',
  48. printLicense: "Y"
  49. }
  50. };
  51. },
  52. created() {
  53. this.houseGetDicts("lzfs").then((response) => {
  54. this.houseApplyStatus = response.data;
  55. });
  56. },
  57. methods: {
  58. getList(){
  59. setTimeout(() => {
  60. getList(this.queryParams).then(response => {
  61. console.log(response)
  62. for (var i = 0; i < response.rows.length; i++) {
  63. var houseApplyStatus = this.selectDictLabel(this.houseApplyStatus, response.rows[i].lzfs);
  64. response.rows[i].lzfs = houseApplyStatus;
  65. var auditStatus = this.selectDictLabel(this.auditStatus, response.rows[i].auditStatus);
  66. response.rows[i].auditStatus = auditStatus;
  67. this.applicationList.push(response.rows[i]);
  68. }
  69. console.log(this.applicationList.length >= response.total)
  70. if(this.applicationList.length >= response.total){
  71. this.finished = true;
  72. return;
  73. }else{
  74. this.loading = false;
  75. this.queryParams.pageNum += 1 ;
  76. }
  77. });
  78. }, 1000);
  79. },
  80. },
  81. }
  82. </script>
  83. <style scoped>
  84. .app-container {
  85. padding: 0.2rem 3%;
  86. }
  87. /deep/.van-cell__title{
  88. flex: 0.7;
  89. }
  90. /deep/.van-cell__title span{
  91. font-family: Arial;
  92. font-size: 0.4rem;
  93. font-weight: normal;
  94. }
  95. /deep/.van-cell__value{
  96. flex: 0.3;
  97. color: #1D6FE9;
  98. font-weight: bold;
  99. }
  100. /deep/.van-swipe-cell{
  101. margin-bottom: 0.2rem;
  102. border-radius: 0.2rem;
  103. overflow: hidden;
  104. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  105. }
  106. /deep/van-ellipsis{
  107. font-weight: bold;
  108. }
  109. .delete-button {
  110. height: 100%;
  111. }
  112. </style>