<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">连接APP</h3>
            <div class="block mt35 df fdc">
              <p class="f14 tl pl20 pt30 pr20" style="color:#999999">
                提示：手机通过蓝牙连接鞋子，使用前请确保手机蓝牙配置已打开
              </p>
              <div class="flex-1 df ai-c jc-c">
                <img class="connect-1" src="@/assets/guide/connect-1@2x.png" />
              </div>
            </div>
            <p class="mt35">1.扫码下载并安装趣动APP</p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">连接APP</h3>
            <div class="mt35">
              <img class="connect-2" src="@/assets/guide/connect-2@2x.png" />
            </div>
            <p class="mt35 tl">
              2. 先确保手机蓝牙功能已开启，再运行APP在APP首页顶部点击连接鞋子
            </p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">连接APP</h3>
            <div class="mt35">
              <img class="connect-3" src="@/assets/guide/connect-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;
  }
  .connect-1 {
    width: 2rem * 2;
    height: 2rem * 2;
  }
  .connect-2,
  .connect-3 {
    width: 3.12rem * 2;
    height: 3.99rem * 2;
  }

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