<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">
              <p class="f14 tl" style="color: #999999;">
                提示：当APP已经连接了鞋子，但您需要连接另一双鞋子时，可使用更换设备功能
              </p>
              <img class="a1 mt16" src="@/assets/guide/replace-1@2x.png" />
            </div>
            <p class="mt35 tc">1. 点击查看详情</p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">更换设备</h3>
            <div class="mt35">
              <img class="a2" src="@/assets/guide/replace-2@2x.png" />
            </div>
            <p class="mt35 tc">
              2. 点击更换设备
            </p>
          </div>
        </van-swipe-item>
        <van-swipe-item>
          <div class="tc pl30 pr30 pt16 pb30">
            <h3 class="f22 fw">更换设备</h3>
            <div class="mt35">
              <img class="a3" src="@/assets/guide/replace-3@2x.png" />
            </div>
            <p class="mt35 tl">
              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: 100vw;
  min-height: 100vh;
  background-color: white;
  overflow-x: hidden;
  .block {
    width: 100%;
    height: 399px;
    border-radius: 8px;
  }
  p {
    line-height: 1.5;
  }
  .f14 {
    line-height: 1.5;
  }

  .a1 {
    width: 310px;
    height: 344px;
  }
  .a2,
  .a3 {
    width: 312px;
    height: 399px;
  }

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