<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 ai-c">
              <img class="a1" src="@/assets/guide/power-1@2x.png" />
            </div>
            <p class="mt35 tl">
              方式一：穿鞋状态下脚尖着地维持踮脚动作 3 s 可查看电量
            </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 pr mt35">
              <img class="a2" src="@/assets/guide/power-2@2x.png" />
              <div class="tips pa tl f14">
                <div>
                  <i class="dot" style="background-color: #67D23C;"></i
                  ><span class="ml6">绿灯：电量充足</span>
                </div>
                <div class="mt8">
                  <i class="dot" style="background-color: #FB5353;"></i
                  ><span class="ml6">红灯：需要及时充电</span>
                </div>
                <div class="line pa"></div>
              </div>
            </div>
            <p class="mt35 tl">
              方式二：空鞋状态下翻转鞋子使鞋底朝上 3s 可查看电量
            </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/power-3@2x.png" />
            </div>
            <p class="mt35 tl">
              方式三：连接APP查看详细电量
            </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.64rem * 2;
    height: 2.88rem * 2;
  }
  .a2 {
    width: 2.9rem * 2;
    height: 2.9rem * 2;
  }
  .a3 {
    width: 3.12rem * 2;
    height: 3.99rem * 2;
  }
  .tips {
    background-color: white;
    padding: 0.12rem * 2;
    border-radius: 0.06rem * 2;
    top: 0.2rem * 2;
    left: 0.2rem * 2;
    .dot {
      display: inline-block;
      width: 0.1rem * 2;
      height: 0.1rem * 2;
      border-radius: 0.1rem * 2;
    }
    .line {
      width: 0.02rem * 2;
      height: 0.42rem * 2;
      bottom: -0.42rem * 2;
      left: 0.62rem * 2;
      border-left: 0.022rem * 2 dashed #c1c1c1;
    }
  }

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