开放平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

116 рядки
2.5 KiB

  1. <template>
  2. <div class="index-stop-box">
  3. <div class="width-stop"></div>
  4. <div class="stop-title">操作步骤</div>
  5. <div class="stop-list">
  6. <div v-for="(item, index) in stepData" :key="index" class="stop-item">
  7. <div class="stop-num">{{ item.stop }}</div>
  8. <div class="div-radius"></div>
  9. <div class="item-title">{{ item.title }}</div>
  10. <div class="item-content">{{ item.content }}</div>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: "page-step",
  18. data() {
  19. return {
  20. stepData: [
  21. {
  22. stop: 1,
  23. title: "成为开发者",
  24. content: "注册智莺库账号成为智莺开发者账户",
  25. },
  26. {
  27. stop: 2,
  28. title: "创建应用",
  29. content: "创建应用,获取所创建应用的APIkey",
  30. },
  31. {
  32. stop: 3,
  33. title: "开发测试",
  34. content: "模拟接口调用,测试调用效果,测试运行",
  35. },
  36. {
  37. stop: 4,
  38. title: "发布上线",
  39. content: "按开发接入文档规范进行接入并测试完成上线",
  40. },
  41. ],
  42. };
  43. },
  44. };
  45. </script>
  46. <style lang="scss" scoped>
  47. .index-stop-box {
  48. display: flex;
  49. justify-content: center;
  50. flex-flow: column; //垂直排列
  51. text-align: center;
  52. position: relative;
  53. .width-stop {
  54. position: absolute;
  55. width: 100vw;
  56. background: #1890ff;
  57. height: 1px;
  58. z-index: -1;
  59. top: 300px;
  60. }
  61. .stop-title {
  62. padding: 80px 0 58px;
  63. color: #333333;
  64. font-size: 26px;
  65. font-weight: bold;
  66. }
  67. .stop-list {
  68. width: 1200px;
  69. display: flex;
  70. justify-content: space-between;
  71. margin: 0 auto;
  72. .stop-item {
  73. width: 220px;
  74. flex-flow: column; //垂直排列
  75. display: flex;
  76. align-items: center;
  77. .stop-num {
  78. width: 77px;
  79. height: 77px;
  80. line-height: 77px;
  81. color: #fff;
  82. background: #1890ff;
  83. box-shadow: 0px 0px 20px 0px rgba(24, 144, 255, 0.4);
  84. border-radius: 50%;
  85. font-size: 30px;
  86. margin-bottom: 40px;
  87. }
  88. .div-radius {
  89. width: 20px;
  90. height: 20px;
  91. background: #1890ff;
  92. border-radius: 50%;
  93. margin-bottom: 30px;
  94. }
  95. .item-title {
  96. color: #333333;
  97. font-size: 26px;
  98. margin-bottom: 18px;
  99. }
  100. .item-content {
  101. color: #999999;
  102. font-size: 16px;
  103. line-height: 30px;
  104. }
  105. }
  106. }
  107. }
  108. </style>