<template>
  <div class="guidelines">
    <div class="zhiying" v-if="micromessenger == 0">
      <img :src="zhiying" alt="">
    </div>
  </div>
</template>

<script>
  import common   from '../../util/common'
  import zhiying  from "../../assets/punchTheClock/zhiying.png"
  import zhufubao from "../../assets/punchTheClock/zhifubaotup.png"

  export default {
    name: "guidelines",
    data() {
      return {
        micromessenger: 0,  // 判断在微信里还是在浏览器里
        zhiying: zhiying,   // 图片
        zhufubao: zhufubao
      }
    },
    mounted() {
      // 0 -> 微信 1 -> 支付宝
      this.micromessenger = common.isWeixinBrowser()
      // 到浏览器里支付宝支付
      if (this.micromessenger == 1) {
        location.href = this.$route.query.pay_url
      }
    }
  }
</script>

<style scoped lang="less">
  @import "../../util/public";

  .guidelines {
    width: 100%;
    height: 100%;
    padding-top: 3 * @toVw;
    background: #F3F2F7;
    text-align: center;

    .zhiying {
      width: 244 * @toVw;
      height: 361 * @toVw;
      margin-left: 112 * @toVw;
      box-sizing: border-box;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }

</style>
