index.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <template>
  2. <div class="page">
  3. <div class="page-top flex flex-col justify-center items-center">
  4. <div class="club-logo">
  5. <img src="https://picsum.photos/120/120" alt="" />
  6. </div>
  7. <div class="club-mobile">15818799636</div>
  8. <div class="club-name">机构:晨美国际美容</div>
  9. </div>
  10. <div class="page-content">
  11. <div class="section-title">我的认证</div>
  12. <div class="section-content">
  13. <div class="item club" @click="onToClubDetail">
  14. <div class="auth-icon auth">已认证</div>
  15. <div class="tip">机构认证</div>
  16. <div class="btn">
  17. 点击查看<span class="icon el-icon-arrow-right"></span>
  18. </div>
  19. </div>
  20. <div class="item device" @click="onToDeviceList">
  21. <div class="auth-icon un-auth">未认证</div>
  22. <div class="tip">设备认证</div>
  23. <div class="btn">
  24. 点击查看<span class="icon el-icon-arrow-right"></span>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="line"></div>
  29. <template v-if="isPc">
  30. <div class="section-title">账户设置</div>
  31. <div class="section-content">
  32. <div class="reset-pwd">修改密码</div>
  33. </div>
  34. </template>
  35. <template v-else>
  36. <div class="menu-list">
  37. <div class="item">
  38. <span>账户设置</span>
  39. <span class="el-icon-arrow-right"></span>
  40. </div>
  41. </div>
  42. </template>
  43. </div>
  44. </div>
  45. </template>
  46. <script>
  47. import { mapGetters } from 'vuex'
  48. export default {
  49. layout: 'app-ross',
  50. computed: {
  51. ...mapGetters(['routePrefix', 'isPc']),
  52. },
  53. methods: {
  54. // 机构详情
  55. onToClubDetail() {
  56. this.$router.push(`${this.routePrefix}/center/club-detail`)
  57. },
  58. // 设备认证
  59. onToDeviceList() {
  60. this.$router.push(`${this.routePrefix}/center/device`)
  61. },
  62. },
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. @media screen and (min-width: 768px) {
  67. .page {
  68. position: relative;
  69. min-height: calc(100vh - 80px - 80px);
  70. background-color: #fff;
  71. overflow: hidden;
  72. }
  73. .page-top {
  74. height: 360px;
  75. @include themify($themes) {
  76. background-image: themed('pc-banner-doc');
  77. }
  78. background-size: cover;
  79. background-position: center;
  80. .club-logo {
  81. width: 90px;
  82. height: 90px;
  83. img {
  84. display: block;
  85. width: 100%;
  86. height: 100%;
  87. border-radius: 50%;
  88. }
  89. }
  90. .club-mobile {
  91. margin: 8px 0;
  92. }
  93. .club-mobile,
  94. .club-name {
  95. font-size: 18px;
  96. color: #fff;
  97. }
  98. }
  99. .page-content {
  100. width: 704px;
  101. margin: 8px auto 60px;
  102. .section-title {
  103. font-size: 24px;
  104. color: #666666;
  105. padding: 16px 0;
  106. }
  107. .section-content {
  108. display: flex;
  109. justify-content: space-between;
  110. align-items: flex-start;
  111. .item {
  112. position: relative;
  113. width: 340px;
  114. height: 230px;
  115. background: #eee;
  116. box-sizing: border-box;
  117. padding-left: 24px;
  118. cursor: pointer;
  119. display: flex;
  120. flex-direction: column;
  121. align-items: flex-start;
  122. justify-content: center;
  123. background-size: 340px 230px;
  124. background-position: center center;
  125. background-repeat: no-repeat;
  126. &.club {
  127. @include themify($themes) {
  128. background-image: themed('pc-icon-center-item-auth-club');
  129. }
  130. .icon {
  131. color: #f3920d;
  132. }
  133. }
  134. &.device {
  135. @include themify($themes) {
  136. background-image: themed('pc-icon-center-item-device');
  137. }
  138. .icon {
  139. color: #0a6eb1;
  140. }
  141. }
  142. .auth-icon {
  143. position: absolute;
  144. right: 16px;
  145. top: 16px;
  146. width: 72px;
  147. height: 32px;
  148. line-height: 32px;
  149. text-align: center;
  150. font-size: 16px;
  151. color: #fff;
  152. border-radius: 4px;
  153. &.auth {
  154. background: #1890ff;
  155. }
  156. &.un-auth {
  157. background: #f94b4b;
  158. }
  159. }
  160. .tip {
  161. font-size: 24px;
  162. color: #fff;
  163. margin-bottom: 8px;
  164. }
  165. .btn {
  166. font-size: 16px;
  167. color: #fff;
  168. .icon {
  169. display: inline-block;
  170. width: 18px;
  171. height: 18px;
  172. border-radius: 50%;
  173. background: #fff;
  174. // background: #0A6EB1;
  175. font-size: 12px;
  176. text-align: center;
  177. line-height: 18px;
  178. margin-left: 9px;
  179. font-weight: bold;
  180. vertical-align: 1px;
  181. }
  182. }
  183. }
  184. .reset-pwd {
  185. width: 98px;
  186. height: 36px;
  187. background: #f3920d;
  188. opacity: 1;
  189. border-radius: 4px;
  190. font-size: 16px;
  191. font-weight: 400;
  192. line-height: 36px;
  193. color: #ffffff;
  194. text-align: center;
  195. cursor: pointer;
  196. }
  197. }
  198. .line {
  199. height: 1px;
  200. background: #c2c2c2;
  201. margin: 32px 0;
  202. }
  203. }
  204. }
  205. @media screen and (max-width: 768px) {
  206. .page-top {
  207. height: 36vw;
  208. @include themify($themes) {
  209. background-image: themed('pc-banner-doc');
  210. }
  211. background-size: cover;
  212. background-position: center;
  213. .club-logo {
  214. width: 12.8vw;
  215. height: 12.8vw;
  216. img {
  217. display: block;
  218. width: 100%;
  219. height: 100%;
  220. border-radius: 50%;
  221. }
  222. }
  223. .club-mobile {
  224. margin: 0.8vw 0;
  225. }
  226. .club-mobile,
  227. .club-name {
  228. font-size: 3.4vw;
  229. color: #fff;
  230. }
  231. }
  232. .page-content {
  233. .section-title {
  234. font-size: 4.2vw;
  235. color: #666666;
  236. padding: 6.4vw 0 3.2vw;
  237. padding-left: 4vw;
  238. }
  239. .section-content {
  240. display: flex;
  241. justify-content: space-between;
  242. align-items: flex-start;
  243. padding: 0 4vw;
  244. .item {
  245. position: relative;
  246. width: 44.4vw;
  247. height: 30vw;
  248. background: #eee;
  249. box-sizing: border-box;
  250. padding-left: 3.6vw;
  251. cursor: pointer;
  252. display: flex;
  253. flex-direction: column;
  254. align-items: flex-start;
  255. justify-content: center;
  256. background-size: 44.4vw 30vw;
  257. background-position: center center;
  258. background-repeat: no-repeat;
  259. &.club {
  260. @include themify($themes) {
  261. background-image: themed('pc-icon-center-item-auth-club');
  262. }
  263. .icon {
  264. color: #f3920d;
  265. }
  266. }
  267. &.device {
  268. @include themify($themes) {
  269. background-image: themed('pc-icon-center-item-device');
  270. }
  271. .icon {
  272. color: #0a6eb1;
  273. }
  274. }
  275. .auth-icon {
  276. position: absolute;
  277. right: 1.6vw;
  278. top: 1.6vw;
  279. width: 12.8vw;
  280. height: 5.6vw;
  281. line-height: 5.6vw;
  282. text-align: center;
  283. font-size: 3vw;
  284. color: #fff;
  285. border-radius: 0.4vw;
  286. &.auth {
  287. background: #1890ff;
  288. }
  289. &.un-auth {
  290. background: #f94b4b;
  291. }
  292. }
  293. .tip {
  294. font-size: 4vw;
  295. color: #fff;
  296. margin-bottom: 1.2vw;
  297. }
  298. .btn {
  299. font-size: 3vw;
  300. color: #fff;
  301. .icon {
  302. display: inline-block;
  303. width: 3.4vw;
  304. height: 3.4vw;
  305. border-radius: 50%;
  306. background: #fff;
  307. font-size: 2.8vw;
  308. text-align: center;
  309. line-height: 3.4vw;
  310. margin-left: 0.8vw;
  311. font-weight: bold;
  312. vertical-align: 1px;
  313. }
  314. }
  315. }
  316. }
  317. .menu-list {
  318. padding: 0 4vw;
  319. padding-top: 2.4vw;
  320. .item {
  321. width: 100%;
  322. padding: 3vw 0;
  323. display: flex;
  324. justify-content: space-between;
  325. font-size: 3.4vw;
  326. border-bottom: 0.1vw solid #c2c2c2;
  327. .el-icon-arrow-right {
  328. font-size: 4vw;
  329. }
  330. }
  331. }
  332. .line {
  333. height: 1.6vw;
  334. background: #f7f7f7;
  335. margin-top: 6.4vw;
  336. }
  337. }
  338. }
  339. </style>