go-enter.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <!-- 首页:流程概览 -->
  3. <div v-if="currentStep === 0" class="home-entry">
  4. <h3 class="title">免费入驻店铺</h3>
  5. <div class="steps-container">
  6. <el-steps align-center>
  7. <el-step>
  8. <template #title>
  9. <div class="step-title-wrapper">
  10. <span class="step-title">个人实名</span>
  11. <span class="step-time">约3分钟</span>
  12. </div>
  13. </template>
  14. <template #description>
  15. <div class="step-desc">填写店铺经营者姓名、身份证号等</div>
  16. </template>
  17. </el-step>
  18. <el-step>
  19. <template #title>
  20. <div class="step-title-wrapper">
  21. <span class="step-title">填写信息</span>
  22. <span class="step-time">约30分钟</span>
  23. </div>
  24. </template>
  25. <template #description>
  26. <div class="step-desc">上传营业执照及填写店铺信息等</div>
  27. </template>
  28. </el-step>
  29. <el-step>
  30. <template #title>
  31. <div class="step-title-wrapper">
  32. <span class="step-title">等待审核</span>
  33. <span class="step-time">约1-3个工作日</span>
  34. </div>
  35. </template>
  36. <template #description>
  37. <div class="step-desc">平台进行资质审核</div>
  38. </template>
  39. </el-step>
  40. <el-step>
  41. <template #title>
  42. <div class="step-title-wrapper">
  43. <span class="step-title">入驻成功</span>
  44. </div>
  45. </template>
  46. <template #description>
  47. <div class="step-desc">入驻成功后即可管理您的店铺</div>
  48. </template>
  49. </el-step>
  50. </el-steps>
  51. </div>
  52. <div class="button-container">
  53. <el-button type="primary" size="large" class="register-btn" @click="handleRegister"> 去入驻 </el-button>
  54. </div>
  55. </div>
  56. </template>
  57. <script setup lang="ts">
  58. const props = defineProps({
  59. currentStep: {
  60. type: Number,
  61. default: 0
  62. }
  63. });
  64. const emit = defineEmits(["update:currentStep"]);
  65. // 处理入驻按钮
  66. const handleRegister = () => {
  67. emit("update:currentStep", 1);
  68. };
  69. </script>
  70. <style scoped lang="scss">
  71. // 首页样式
  72. .home-entry {
  73. padding: 30px 40px;
  74. background: #ffffff;
  75. border: 1px solid #e4e7ed;
  76. border-radius: 8px;
  77. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  78. .title {
  79. margin: 0 0 30px;
  80. font-size: 20px;
  81. font-weight: 600;
  82. color: #333333;
  83. text-align: center;
  84. }
  85. .steps-container {
  86. margin-bottom: 40px;
  87. :deep(.el-steps) {
  88. .el-step__head {
  89. .el-step__icon {
  90. width: 30px;
  91. height: 30px;
  92. font-size: 16px;
  93. font-weight: 600;
  94. }
  95. }
  96. .el-step__title {
  97. .step-title-wrapper {
  98. display: flex;
  99. flex-direction: column;
  100. gap: 8px;
  101. align-items: center;
  102. .step-title {
  103. font-size: 16px;
  104. font-weight: 600;
  105. line-height: 1.5;
  106. color: #303133;
  107. }
  108. .step-time {
  109. display: inline-block;
  110. padding: 4px 12px;
  111. font-size: 12px;
  112. color: #909399;
  113. white-space: nowrap;
  114. background: #f5f7fa;
  115. border-radius: 12px;
  116. }
  117. }
  118. }
  119. .el-step__description {
  120. .step-desc {
  121. margin-top: 8px;
  122. font-size: 14px;
  123. line-height: 1.5;
  124. color: #606266;
  125. }
  126. }
  127. }
  128. }
  129. .button-container {
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. .register-btn {
  134. width: 200px;
  135. height: 44px;
  136. font-size: 16px;
  137. font-weight: 500;
  138. border-radius: 4px;
  139. }
  140. }
  141. }
  142. </style>