| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <template>
- <!-- 首页:流程概览 -->
- <div v-if="currentStep === 0" class="home-entry">
- <h3 class="title">免费入驻店铺</h3>
- <div class="steps-container">
- <el-steps align-center>
- <el-step>
- <template #title>
- <div class="step-title-wrapper">
- <span class="step-title">个人实名</span>
- <span class="step-time">约3分钟</span>
- </div>
- </template>
- <template #description>
- <div class="step-desc">填写店铺经营者姓名、身份证号等</div>
- </template>
- </el-step>
- <el-step>
- <template #title>
- <div class="step-title-wrapper">
- <span class="step-title">填写信息</span>
- <span class="step-time">约30分钟</span>
- </div>
- </template>
- <template #description>
- <div class="step-desc">上传营业执照及填写店铺信息等</div>
- </template>
- </el-step>
- <el-step>
- <template #title>
- <div class="step-title-wrapper">
- <span class="step-title">等待审核</span>
- <span class="step-time">约1-3个工作日</span>
- </div>
- </template>
- <template #description>
- <div class="step-desc">平台进行资质审核</div>
- </template>
- </el-step>
- <el-step>
- <template #title>
- <div class="step-title-wrapper">
- <span class="step-title">入驻成功</span>
- </div>
- </template>
- <template #description>
- <div class="step-desc">入驻成功后即可管理您的店铺</div>
- </template>
- </el-step>
- </el-steps>
- </div>
- <div class="button-container">
- <el-button type="primary" size="large" class="register-btn" @click="handleRegister"> 去入驻 </el-button>
- </div>
- </div>
- </template>
- <script setup lang="ts">
- const props = defineProps({
- currentStep: {
- type: Number,
- default: 0
- }
- });
- const emit = defineEmits(["update:currentStep"]);
- // 处理入驻按钮
- const handleRegister = () => {
- emit("update:currentStep", 1);
- };
- </script>
- <style scoped lang="scss">
- // 首页样式
- .home-entry {
- padding: 30px 40px;
- background: #ffffff;
- border: 1px solid #e4e7ed;
- border-radius: 8px;
- box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
- .title {
- margin: 0 0 30px;
- font-size: 20px;
- font-weight: 600;
- color: #333333;
- text-align: center;
- }
- .steps-container {
- margin-bottom: 40px;
- :deep(.el-steps) {
- .el-step__head {
- .el-step__icon {
- width: 30px;
- height: 30px;
- font-size: 16px;
- font-weight: 600;
- }
- }
- .el-step__title {
- .step-title-wrapper {
- display: flex;
- flex-direction: column;
- gap: 8px;
- align-items: center;
- .step-title {
- font-size: 16px;
- font-weight: 600;
- line-height: 1.5;
- color: #303133;
- }
- .step-time {
- display: inline-block;
- padding: 4px 12px;
- font-size: 12px;
- color: #909399;
- white-space: nowrap;
- background: #f5f7fa;
- border-radius: 12px;
- }
- }
- }
- .el-step__description {
- .step-desc {
- margin-top: 8px;
- font-size: 14px;
- line-height: 1.5;
- color: #606266;
- }
- }
- }
- }
- .button-container {
- display: flex;
- align-items: center;
- justify-content: center;
- .register-btn {
- width: 200px;
- height: 44px;
- font-size: 16px;
- font-weight: 500;
- border-radius: 4px;
- }
- }
- }
- </style>
|