certificate-page.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="container clearfix">
  3. <view class="foot-list">
  4. <view class="list-cell-item">
  5. <view class="list-cell" v-for="(item,index) in certificates" :key="index" @click="handleClick(item.id)"
  6. hover-class="cell-hover" :hover-stay-time="50">
  7. <text class="cell-tit">{{ item.name }}</text>
  8. <text class="cell-more">
  9. <text class="iconfont icon-xiayibu"></text>
  10. </text>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. certificates: [
  21. { name: '中华人民共和国增值电信业务经营许', id: 1 },
  22. { name: '医疗器械网络交易服务第三方平台备案凭证', id: 2 },
  23. { name: '互联网药品信息服务资格证编号(粤)-非经营性-2021-0339', id: 3 },
  24. ]
  25. }
  26. },
  27. onLoad(option) {
  28. },
  29. methods: {
  30. handleClick(id) { // 跳转资质证书
  31. this.$api.navigateTo(`/pages/service/certificate?id=${id}`)
  32. }
  33. },
  34. onShow() {}
  35. }
  36. </script>
  37. <style lang='scss'>
  38. page {
  39. height: auto;
  40. }
  41. page,
  42. .container {
  43. /* padding-bottom: 120upx; */
  44. background: #fff;
  45. /* border-top: 1px solid #EBEBEB; */
  46. }
  47. .foot-list {
  48. width: 100%;
  49. margin-top: 30rpx;
  50. }
  51. .list-cell-item {
  52. width: 702rpx;
  53. height: auto;
  54. margin-bottom: 24rpx;
  55. padding: 0 24rpx;
  56. background: $bg-color;
  57. }
  58. .list-cell {
  59. display: flex;
  60. width: 100%;
  61. align-items: baseline;
  62. line-height: 100rpx;
  63. position: relative;
  64. background: $bg-color;
  65. justify-content: center;
  66. border-bottom: 1px solid #EBEBEB;
  67. &.cell-hover {
  68. background: #fafafa;
  69. }
  70. .cell-more {
  71. align-self: baseline;
  72. font-size: $font-size-28;
  73. color: #b2b2b2;
  74. margin-left: 10rpx;
  75. .txt {
  76. color: #999999;
  77. padding-right: 10rpx;
  78. }
  79. }
  80. .cell-tit {
  81. flex: 1;
  82. font-size: $font-size-24;
  83. color: #666666;
  84. margin-right: 10rpx;
  85. }
  86. .cell-tip {
  87. font-size: $font-size-28;
  88. color: $text-color;
  89. }
  90. }
  91. .list-cell.last {
  92. border-bottom: none;
  93. }
  94. </style>