index.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. <template v-if="true">
  9. <div class="page-title">设备认证</div>
  10. <div class="device-list">
  11. <div class="device" @click="toEdit">
  12. <div class="name">
  13. <span class="label">设备名称 1:</span>
  14. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  15. </div>
  16. <div class="status success">
  17. <span class="label">状态:</span>
  18. <span class="content">认证中</span>
  19. </div>
  20. </div>
  21. <div class="device">
  22. <div class="name">
  23. <span class="label">设备名称 1:</span>
  24. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  25. </div>
  26. <div class="status warning">
  27. <span class="label">状态:</span>
  28. <span class="content">认证通过</span>
  29. </div>
  30. </div>
  31. <div class="device">
  32. <div class="name">
  33. <span class="label">设备名称 1:</span>
  34. <span class="content">B-BEAUTY童颜皮肤管理(海宁店)</span>
  35. </div>
  36. <div class="status danger">
  37. <span class="label">状态:</span>
  38. <span class="content">认证未通过</span>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <template v-else>
  44. <SimpleEmpty name="icon-device-empty.png" description="暂无机构认证~" />
  45. </template>
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. import SimpleEmpty from '@/components/SimpleEmpty'
  51. import { mapGetters } from 'vuex'
  52. export default {
  53. layout: 'app',
  54. components: {
  55. SimpleEmpty,
  56. },
  57. computed: {
  58. ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
  59. },
  60. methods: {
  61. toEdit() {
  62. this.$router.push(`${this.routePrefix}/record/device/detail`)
  63. },
  64. },
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. @media screen and (min-width: 768px) {
  69. .page {
  70. background: #fff;
  71. }
  72. .page-top {
  73. height: 360px;
  74. @include themify($themes) {
  75. background: themed('banner-club-register');
  76. background-size: auto 360px;
  77. }
  78. .logo {
  79. display: block;
  80. width: 120px;
  81. height: 120px;
  82. border-radius: 50%;
  83. background: #fff;
  84. }
  85. .name {
  86. font-size: 30px;
  87. color: #fff;
  88. }
  89. }
  90. .page-content {
  91. width: 700px;
  92. margin: 0 auto;
  93. overflow: hidden;
  94. min-height: calc(100vh - 80px - 80px - 360px);
  95. box-sizing: border-box;
  96. padding-bottom: 40px;
  97. .page-title {
  98. font-size: 24px;
  99. font-weight: bold;
  100. text-align: center;
  101. padding: 40px 0;
  102. }
  103. .device-list {
  104. .device {
  105. position: relative;
  106. padding: 36px 0 12px;
  107. border-bottom: 1px solid #c2c2c2;
  108. cursor: pointer;
  109. .name {
  110. margin-bottom: 8px;
  111. }
  112. .label {
  113. font-size: 18px;
  114. color: #666;
  115. }
  116. .content {
  117. font-size: 18px;
  118. color: #282828;
  119. }
  120. .status {
  121. &.success {
  122. .content {
  123. color: #f3920d;
  124. }
  125. }
  126. &.warning {
  127. .content {
  128. color: #1890ff;
  129. }
  130. }
  131. &.danger {
  132. .content {
  133. color: #f94b4b;
  134. }
  135. }
  136. }
  137. &::after {
  138. content: '';
  139. position: absolute;
  140. right: 0;
  141. top: 50%;
  142. transform: translateY(-50%);
  143. display: block;
  144. width: 20px;
  145. height: 20px;
  146. background: url(https://static.caimei365.com/www/authentic/pc/icon-detail-more.png)
  147. no-repeat center;
  148. background-size: 18px;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. @media screen and (max-width: 768px) {
  155. .page {
  156. background: #fff;
  157. }
  158. .page-top {
  159. height: 46vw;
  160. @include themify($themes) {
  161. background: themed('banner-home-h5');
  162. background-size: auto 46vw;
  163. }
  164. .logo {
  165. display: block;
  166. width: 14.8vw;
  167. height: 14.8vw;
  168. border-radius: 50%;
  169. background: #fff;
  170. }
  171. .name {
  172. font-size: 4vw;
  173. color: #fff;
  174. }
  175. }
  176. .page-content {
  177. box-sizing: border-box;
  178. padding: 8vw 7vw;
  179. .page-title {
  180. font-size: 4.2vw;
  181. font-weight: bold;
  182. text-align: center;
  183. color: #282828;
  184. margin-bottom: 4.6vw;
  185. }
  186. .device-list {
  187. .device {
  188. position: relative;
  189. padding: 2.6vw 0;
  190. border-bottom: 0.1vw solid #c2c2c2;
  191. cursor: pointer;
  192. .name {
  193. margin-bottom: 2.2vw;
  194. }
  195. .label {
  196. font-size: 3.4vw;
  197. color: #666;
  198. }
  199. .content {
  200. font-size: 3.4vw;
  201. color: #282828;
  202. }
  203. .status {
  204. &.success {
  205. .content {
  206. color: #f3920d;
  207. }
  208. }
  209. &.warning {
  210. .content {
  211. color: #1890ff;
  212. }
  213. }
  214. &.danger {
  215. .content {
  216. color: #f94b4b;
  217. }
  218. }
  219. }
  220. &::after {
  221. content: '';
  222. position: absolute;
  223. right: 0;
  224. top: 50%;
  225. transform: translateY(-50%);
  226. display: block;
  227. width: 20px;
  228. height: 20px;
  229. background: url(https://static.caimei365.com/www/authentic/pc/icon-detail-more.png)
  230. no-repeat center;
  231. background-size: 18px;
  232. }
  233. }
  234. }
  235. }
  236. }
  237. </style>