index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <img class="logo" :src="supplierInfo.logo" />
  5. <div class="name mt-2" v-text="supplierInfo.shopName + '认证记录'"></div>
  6. </div>
  7. <div class="page-content">
  8. <div class="page-title">设备认证</div>
  9. <div class="device-list">
  10. <div class="device" @click="toEdit">
  11. <div class="name">
  12. <span class="label">设备名称 1:</span>
  13. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  14. </div>
  15. <div class="status success">
  16. <span class="label">状态:</span>
  17. <span class="content">认证中</span>
  18. </div>
  19. </div>
  20. <div class="device">
  21. <div class="name">
  22. <span class="label">设备名称 1:</span>
  23. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  24. </div>
  25. <div class="status warning">
  26. <span class="label">状态:</span>
  27. <span class="content">认证通过</span>
  28. </div>
  29. </div>
  30. <div class="device">
  31. <div class="name">
  32. <span class="label">设备名称 1:</span>
  33. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  34. </div>
  35. <div class="status danger">
  36. <span class="label">状态:</span>
  37. <span class="content">认证未通过</span>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. import { mapGetters } from 'vuex'
  46. export default {
  47. layout: 'app',
  48. computed: {
  49. ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
  50. },
  51. methods: {
  52. toEdit() {
  53. this.$router.push(`${this.routePrefix}/record/device/edit`)
  54. },
  55. },
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. @media screen and (min-width: 768px) {
  60. .page {
  61. background: #fff;
  62. }
  63. .page-top {
  64. height: 360px;
  65. @include themify($themes) {
  66. background: themed('banner-club-register');
  67. background-size: auto 360px;
  68. }
  69. .logo {
  70. display: block;
  71. width: 120px;
  72. height: 120px;
  73. border-radius: 50%;
  74. background: #fff;
  75. }
  76. .name {
  77. font-size: 30px;
  78. color: #fff;
  79. }
  80. }
  81. .page-content {
  82. width: 700px;
  83. margin: 0 auto;
  84. overflow: hidden;
  85. min-height: calc(100vh - 80px - 80px - 360px);
  86. box-sizing: border-box;
  87. padding-bottom: 40px;
  88. .page-title {
  89. font-size: 24px;
  90. font-weight: bold;
  91. text-align: center;
  92. padding: 40px 0;
  93. }
  94. .device-list {
  95. .device {
  96. position: relative;
  97. padding: 36px 0 12px;
  98. border-bottom: 1px solid #c2c2c2;
  99. cursor: pointer;
  100. .name {
  101. margin-bottom: 8px;
  102. }
  103. .label {
  104. font-size: 18px;
  105. color: #666;
  106. }
  107. .content {
  108. font-size: 18px;
  109. color: #282828;
  110. }
  111. .status {
  112. &.success {
  113. .content {
  114. color: #f3920d;
  115. }
  116. }
  117. &.warning {
  118. .content {
  119. color: #1890ff;
  120. }
  121. }
  122. &.danger {
  123. .content {
  124. color: #f94b4b;
  125. }
  126. }
  127. }
  128. &::after {
  129. content: '';
  130. position: absolute;
  131. right: 0;
  132. top: 50%;
  133. transform: translateY(-50%);
  134. display: block;
  135. width: 20px;
  136. height: 20px;
  137. background: url(https://static.caimei365.com/www/authentic/pc/icon-detail-more.png)
  138. no-repeat center;
  139. background-size: 18px;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. </style>