<template>
  <div class="go-xcx-page">
    <Title @goback="goback" show_back="true" arrowColor="black"></Title>
    <div class="page-banner">
      <img class="bg" src="../images/GoXCX/bg_code.jpg">
      <div class="qrcode-container">
        <img class="qrcode" src="../images/GoXCX/qrcode_img.jpg">
      </div>
    </div>
    <div class="tip-title">如何完成打卡？</div>
    <div class="tip-content">1、识别上方二维码，打开「运动打卡」小程序</div>
    <div class="tip-content">2、在小程序中授权获取每日微信运动步数</div>
    <div class="tip-content">3、退出小程序中，返回打卡页面</div>
    <div class="tip-content">4、成功获取每日微信运动步数，打卡成功</div>
  </div>
</template>

<script>
  import Title from "@/components/Title.vue";
  export default {
    name: "GoXCX",
    components: {
      Title,
    },
    data() {
      return {
      };
    },
    methods: {
      goback() {
        history.go(-1);
      },
    }
  }
</script>
<style lang="less" scoped>
  .go-xcx-page {
    width: 100%;
    min-height: 100vh;
    background: #F2F2F2;
    .page-banner {
      width: 100%;
      height: 6.4rem;
      position: relative;
      .bg {
        width: 100%;
        height: 6.4rem;
        display: block;
      }
      .qrcode-container {
        width: 3.36rem;
        height: 3.36rem;
        position: absolute;
        top: 1.82rem;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border-radius: 50%;
        overflow: hidden;
        padding: .16rem;
        box-sizing: border-box;
        .qrcode {
          width: 100%;
          height: 100%;
        }
      }
    }
    .tip-title {
      padding: 0 .4rem;
      margin: .7rem 0 .32rem;
      font-size: .3rem;
      line-height: 1;
      color: #333;
    }
    .tip-content {
      padding: 0 .4rem;
      font-size: .26rem;
      line-height: .44rem;
      color: #888;
    }
  }
</style>