|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <div class="registration-box">
- <div class="registration-head">
- <span>实名认证</span>
- </div>
-
- <div class="select-box">
- <div
- class="select-div select-1"
- :class="{ selectLabel: selectLabel === '1' }"
- @click="selectLabel = '1'"
- >
- <img src="@/static/icons/svg/shenfenzheng.svg" alt="" />
- <div>个人认证</div>
- </div>
- <div
- class="select-div select-2"
- :class="{ selectLabel: selectLabel === '2' }"
- @click="selectLabel = '2'"
- >
- <img src="@/static/icons/svg/yinyezhizhao.svg" alt="" />
- <div>企业认证</div>
- </div>
- </div>
-
- <div class="nextStep" @click="tapNextStep">
- <div class="primary-button">确认选择,下一步</div>
- </div>
- </div>
- </template>
-
-
- <script>
- export default {
- meta: { title: "实名认证" },
- data() {
- return {
- selectLabel: "",
- };
- },
- methods: {
- tapNextStep: function () {
- if (this.selectLabel === "") {
- this.$message.warning("请先选择认证方式");
- return;
- }
- this.$router.push("/domain/control/registration/from");
- },
- },
- };
- </script>
-
- <style lang="scss" scoped>
- .registration-box {
- width: 100%;
- background: #fff;
- padding: 20px 20px 30px 20px;
- border-radius: 14px;
- box-sizing: border-box;
- overflow: hidden;
- .registration-head {
- height: 26px;
- font-size: 20px;
- color: #333333;
- display: flex;
- align-items: center;
- margin-bottom: 35px;
- span {
- height: 20px;
- line-height: 20px;
- padding-left: 20px;
- border-left: 4px solid #1890ff;
- }
- }
- .select-box {
- display: flex;
- justify-content: center;
- .select-div {
- width: 200px;
- height: 192px;
- background: #ffffff;
- border-radius: 12px;
- border: 1px solid #dddddd;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- color: #333333;
- font-size: 16px;
- img {
- margin-bottom: 15px;
- }
- }
- .select-2 {
- margin-left: 20px;
- }
- .selectLabel {
- border: 1px solid #1890ff;
- }
- }
- .nextStep {
- width: 160px;
- font-size: 16px;
- height: 40px;
- margin: 40px auto 0;
- }
- }
- </style>
|