openapp.vue 1.07 KB
<template>
<div class="bg" v-if="image">
  <div class="guide"></div>
  <a class="btn" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"></a>
</div>
</template>

<script>
export default {
  name: 'openByBrowser',
  title: 'Yoho!Buy有货|年轻人潮流购物中心 ',
  mounted() {
    if (!(this.$yoho.isWechat || this.$yoho.isMobileQQ)) {
      this.$nextTick().then(() => {
        this.$openApp();
      });
    }
  },
  computed: {
    image() {
      return this.$yoho.isWechat || this.$yoho.isMobileQQ;
    }
  }
};
</script>

<style lang="scss" scoped>
.bg {
  background-color: white;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.guide {
  width: 610px;
  height: 852px;
  margin: 50px 60px 0 92px;
  background-image: url("~statics/image/openapp/guide.png");
  background-size: cover;
}

.btn {
  display: block;
  width: 440px;
  height: 88px;
  margin-left: 92px;
  margin-top: 30px;
  background-image: url("~statics/image/openapp/download.png");
  background-size: cover;
}
</style>