<template>
  <div class="container df fdc">
    <navbar v-if="!is" />
    <div class="flex-1 df ai-c jc-c">
      <van-swipe :loop="false">
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">鞋子充电</h3>
            <div class="block mt35 df fdc">
              <p class="f14 tl pl20 pt30 pr20" style="color:#999999">
                提示：电脑USB端口输出功率不够，请勿将接口接入电脑USB端口充电。
              </p>
              <div class="flex-1 df ai-c jc-c">
                <img class="a1 mt16" src="@/assets/guide/recharge-1@2x.png" />
              </div>
            </div>
            <p class="mt35 tl">
              1. 将充电线的两端连接到两只鞋子的充电口上并接通电源
            </p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">鞋子充电</h3>
            <div class="block df ai-c jc-c mt35">
              <img class="a2" src="@/assets/guide/recharge-2@2x.png" />
            </div>
            <p class="mt35">
              2. 红灯表明正在充电
            </p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">鞋子充电</h3>
            <div class="block df ai-c jc-c mt35">
              <img class="a3" src="@/assets/guide/recharge-3@2x.png" />
            </div>
            <p class="mt35">
              3. 绿灯表明充电已完成
            </p>
          </div>
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";
import { useRoute } from "vue-router";
export default defineComponent({
  setup() {
    const route = useRoute();
    const is = ref(route.query.is);
    return { is };
  }
});
</script>
<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  background-color: white;
  overflow-x: hidden;
  .block {
    width: 100%;
    height: 3.99rem * 2;
    background-color: #f5f3f3;
    border-radius: 0.08rem * 2;
  }
  p {
    line-height: 1.5;
  }
  .f14 {
    line-height: 1.5;
  }
  .a1 {
    width: 2.92rem * 2;
    height: 2.92rem * 2;
  }
  .a2,
  .a3 {
    width: 300rem * 2;
    height: 2.99rem * 2;
  }

  ::v-deep .van-swipe__indicator {
    background-color: #dcdcdc;
    opacity: 0.8;
  }
  ::v-deep .van-swipe__indicator--active {
    background-color: #ffc400;
  }
}
</style>
