开放平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

index.vue 2.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <div class="registration-box">
  3. <div class="registration-head">
  4. <span>实名认证</span>
  5. </div>
  6. <div class="select-box">
  7. <div
  8. class="select-div select-1"
  9. :class="{ selectLabel: selectLabel === '1' }"
  10. @click="selectLabel = '1'"
  11. >
  12. <img src="@/static/icons/svg/shenfenzheng.svg" alt="" />
  13. <div>个人认证</div>
  14. </div>
  15. <div
  16. class="select-div select-2"
  17. :class="{ selectLabel: selectLabel === '2' }"
  18. @click="selectLabel = '2'"
  19. >
  20. <img src="@/static/icons/svg/yinyezhizhao.svg" alt="" />
  21. <div>企业认证</div>
  22. </div>
  23. </div>
  24. <div class="nextStep" @click="tapNextStep">
  25. <div class="primary-button">确认选择,下一步</div>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. export default {
  31. meta: { title: "实名认证" },
  32. data() {
  33. return {
  34. selectLabel: "",
  35. };
  36. },
  37. methods: {
  38. tapNextStep: function () {
  39. if (this.selectLabel === "") {
  40. this.$message.warning("请先选择认证方式");
  41. return;
  42. }
  43. this.$router.push("/domain/control/registration/from");
  44. },
  45. },
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. .registration-box {
  50. width: 100%;
  51. background: #fff;
  52. padding: 20px 20px 30px 20px;
  53. border-radius: 14px;
  54. box-sizing: border-box;
  55. overflow: hidden;
  56. .registration-head {
  57. height: 26px;
  58. font-size: 20px;
  59. color: #333333;
  60. display: flex;
  61. align-items: center;
  62. margin-bottom: 35px;
  63. span {
  64. height: 20px;
  65. line-height: 20px;
  66. padding-left: 20px;
  67. border-left: 4px solid #1890ff;
  68. }
  69. }
  70. .select-box {
  71. display: flex;
  72. justify-content: center;
  73. .select-div {
  74. width: 200px;
  75. height: 192px;
  76. background: #ffffff;
  77. border-radius: 12px;
  78. border: 1px solid #dddddd;
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. flex-direction: column;
  83. color: #333333;
  84. font-size: 16px;
  85. img {
  86. margin-bottom: 15px;
  87. }
  88. }
  89. .select-2 {
  90. margin-left: 20px;
  91. }
  92. .selectLabel {
  93. border: 1px solid #1890ff;
  94. }
  95. }
  96. .nextStep {
  97. width: 160px;
  98. font-size: 16px;
  99. height: 40px;
  100. margin: 40px auto 0;
  101. }
  102. }
  103. </style>