|
- <template>
- <div class="index-stop-box">
- <div class="width-stop"></div>
- <div class="stop-title">操作步骤</div>
- <div class="stop-list">
- <div v-for="(item, index) in stepData" :key="index" class="stop-item">
- <div class="stop-num">{{ item.stop }}</div>
- <div class="div-radius"></div>
- <div class="item-title">{{ item.title }}</div>
- <div class="item-content">{{ item.content }}</div>
- </div>
- </div>
- </div>
- </template>
-
-
-
- <script>
- export default {
- name: "page-step",
- data() {
- return {
- stepData: [
- {
- stop: 1,
- title: "成为开发者",
- content: "注册智莺库账号成为智莺开发者账户",
- },
- {
- stop: 2,
- title: "创建应用",
- content: "创建应用,获取所创建应用的APIkey",
- },
- {
- stop: 3,
- title: "开发测试",
- content: "模拟接口调用,测试调用效果,测试运行",
- },
- {
- stop: 4,
- title: "发布上线",
- content: "按开发接入文档规范进行接入并测试完成上线",
- },
- ],
- };
- },
- };
- </script>
-
-
- <style lang="scss" scoped>
- .index-stop-box {
- display: flex;
- justify-content: center;
- flex-flow: column; //垂直排列
- text-align: center;
- position: relative;
- .width-stop {
- position: absolute;
- width: 100vw;
- background: #1890ff;
- height: 1px;
- z-index: -1;
- top: 300px;
- }
-
- .stop-title {
- padding: 80px 0 58px;
- color: #333333;
- font-size: 26px;
- font-weight: bold;
- }
-
- .stop-list {
- width: 1200px;
- display: flex;
- justify-content: space-between;
- margin: 0 auto;
- .stop-item {
- width: 220px;
- flex-flow: column; //垂直排列
- display: flex;
- align-items: center;
- .stop-num {
- width: 77px;
- height: 77px;
- line-height: 77px;
- color: #fff;
- background: #1890ff;
- box-shadow: 0px 0px 20px 0px rgba(24, 144, 255, 0.4);
-
- border-radius: 50%;
- font-size: 30px;
- margin-bottom: 40px;
- }
- .div-radius {
- width: 20px;
- height: 20px;
- background: #1890ff;
- border-radius: 50%;
- margin-bottom: 30px;
- }
- .item-title {
- color: #333333;
- font-size: 26px;
- margin-bottom: 18px;
- }
- .item-content {
- color: #999999;
- font-size: 16px;
- line-height: 30px;
- }
- }
- }
- }
- </style>
|