detail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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="row">
  11. <div class="col">机构名称:</div>
  12. <div class="col">机构名称</div>
  13. </div>
  14. <div class="row">
  15. <div class="col">联系电话:</div>
  16. <div class="col">15889586666</div>
  17. </div>
  18. <div class="row">
  19. <div class="col">所在地区:</div>
  20. <div class="col">广东省深圳市福田区上步南路锦峰大厦A座</div>
  21. </div>
  22. <div class="row">
  23. <div class="col">所在位置:</div>
  24. <div class="col">广东省深圳市福田区上步南路锦峰大厦A座</div>
  25. </div>
  26. <div class="row">
  27. <div class="col max-width">logo:</div>
  28. <div class="col">
  29. <el-image
  30. src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpe"
  31. ></el-image>
  32. </div>
  33. </div>
  34. <div class="row">
  35. <div class="col max-width">logo:</div>
  36. <div class="col">
  37. <el-image
  38. src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpe"
  39. ></el-image>
  40. <el-image
  41. src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpe"
  42. ></el-image>
  43. <el-image
  44. src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpe"
  45. ></el-image>
  46. </div>
  47. </div>
  48. <div class="row">
  49. <div class="col">机构类型:</div>
  50. <div class="col">医美</div>
  51. </div>
  52. <div class="row">
  53. <div class="col">医美类型:</div>
  54. <div class="col">诊所</div>
  55. </div>
  56. <div class="row">
  57. <div class="col">员工人数:</div>
  58. <div class="col">12</div>
  59. </div>
  60. <div class="row">
  61. <div class="col">状态:</div>
  62. <div class="col">认证中</div>
  63. </div>
  64. <div class="control flex flex-col items-center">
  65. <div
  66. class="button edit flex justify-center items-center mb-2"
  67. @click="onEdit"
  68. >
  69. 编辑
  70. </div>
  71. <div
  72. class="button search flex justify-center items-center"
  73. @click="onToDeviceList"
  74. >
  75. 查看认证设备
  76. </div>
  77. </div>
  78. </template>
  79. <template v-else>
  80. <SimpleEmpty name="icon-club-empty.png" description="暂无机构认证~" />
  81. </template>
  82. </div>
  83. </div>
  84. </template>
  85. <script>
  86. import SimpleEmpty from '@/components/SimpleEmpty'
  87. import { mapGetters } from 'vuex'
  88. export default {
  89. layout: 'app',
  90. components: {
  91. SimpleEmpty,
  92. },
  93. computed: {
  94. ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
  95. },
  96. methods: {
  97. onToDeviceList() {
  98. this.$router.push(`${this.routePrefix}/record/device`)
  99. },
  100. onEdit() {
  101. this.$router.push(`${this.routePrefix}/record/club/edit`)
  102. },
  103. },
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. @media screen and (min-width: 768px) {
  108. .page {
  109. background: #fff;
  110. }
  111. .page-top {
  112. height: 360px;
  113. @include themify($themes) {
  114. background: themed('banner-club-register');
  115. background-size: auto 360px;
  116. }
  117. .logo {
  118. display: block;
  119. width: 120px;
  120. height: 120px;
  121. border-radius: 50%;
  122. background: #fff;
  123. }
  124. .name {
  125. font-size: 30px;
  126. color: #fff;
  127. }
  128. }
  129. .page-content {
  130. width: 700px;
  131. margin: 0 auto;
  132. overflow: hidden;
  133. min-height: calc(100vh - 80px - 80px - 360px);
  134. box-sizing: border-box;
  135. padding-bottom: 40px;
  136. .page-title {
  137. font-size: 24px;
  138. font-weight: bold;
  139. text-align: center;
  140. padding: 40px 0;
  141. }
  142. .row {
  143. display: flex;
  144. justify-content: flex-start;
  145. align-items: flex-start;
  146. font-size: 18px;
  147. margin: 24px 0;
  148. .col {
  149. &:first-child {
  150. width: 90px;
  151. color: #666;
  152. }
  153. &:last-child {
  154. color: #282828;
  155. }
  156. }
  157. .el-image {
  158. width: 120px;
  159. height: 120px;
  160. margin-right: 12px;
  161. }
  162. }
  163. .control {
  164. margin-top: 62px;
  165. .button {
  166. width: 295px;
  167. height: 50px;
  168. cursor: pointer;
  169. &.edit {
  170. @include themify($themes) {
  171. border: 1px solid themed('color');
  172. color: themed('color');
  173. }
  174. }
  175. &.search {
  176. @include themify($themes) {
  177. background-color: themed('color');
  178. color: #fff;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. }
  185. @media screen and (max-width: 768px) {
  186. .page {
  187. background: #fff;
  188. }
  189. .page-top {
  190. height: 46vw;
  191. @include themify($themes) {
  192. background: themed('banner-home-h5');
  193. background-size: auto 46vw;
  194. }
  195. .logo {
  196. display: block;
  197. width: 14.8vw;
  198. height: 14.8vw;
  199. border-radius: 50%;
  200. background: #fff;
  201. }
  202. .name {
  203. font-size: 4vw;
  204. color: #fff;
  205. }
  206. }
  207. .page-content {
  208. box-sizing: border-box;
  209. padding: 8vw 7.2vw;
  210. .page-title {
  211. font-size: 4.2vw;
  212. font-weight: bold;
  213. text-align: center;
  214. margin-bottom: 8vw;
  215. color: #282828;
  216. }
  217. .row {
  218. display: flex;
  219. justify-content: flex-start;
  220. align-items: flex-start;
  221. font-size: 3.4vw;
  222. margin-bottom: 5.6vw;
  223. flex-wrap: wrap;
  224. .col {
  225. &:first-child {
  226. width: 17vw;
  227. color: #666;
  228. &.max-width {
  229. width: 100% !important;
  230. margin-bottom: 2.6vw;
  231. }
  232. }
  233. &:last-child {
  234. color: #282828;
  235. }
  236. }
  237. .el-image {
  238. width: 25.6vw;
  239. height: 25.6vw;
  240. }
  241. }
  242. .control {
  243. margin-top: 22.8vw;
  244. .button {
  245. width: 100%;
  246. height: 12vw;
  247. cursor: pointer;
  248. &.edit {
  249. @include themify($themes) {
  250. border: 1px solid themed('color');
  251. color: themed('color');
  252. }
  253. }
  254. &.search {
  255. @include themify($themes) {
  256. background-color: themed('color');
  257. color: #fff;
  258. }
  259. }
  260. }
  261. }
  262. }
  263. }
  264. </style>