openapp.vue
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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>