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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<template>
<div>
<div class="guide" v-if="show" @click="show=false">
<div class="radius-block">
<div class="radius"></div>
<div class="radius"></div>
<div class="radius"></div>
</div>
<img class="toUntil" :src="goDownUrl"/>
<div class="until-test">
点击<span class="color-red">切换课程模块</span>
</div>
<img class="i-know" :src="iKnowUrl" @click="show=false"/>
</div>
</div>
</template>
<script>
import {getGuideApi,setGuideApi} from "../../service/api";
import iKnowUrl from '../../assets/guide/iKnow.png'
import goUrl from '../../assets/guide/go.png'
import goDownUrl from '../../assets/guide/go-down.png'
import starUrl from '../../assets/guide/star.png'
export default {
name: "guide",
data(){
return{
iKnowUrl:iKnowUrl,
goDownUrl:goDownUrl,
goUrl:goUrl,
starUrl:starUrl,
show:false
}
},
mounted(){
let json = {
page_name:'look'
};
getGuideApi(json).then(res=>{
if(res == 0){
this.show=true;
}
});
}
}
</script>
<style scoped lang="less">
@import "../../util/public";
.off{
position: absolute;
top: 9*@toVw;
z-index: 99999;
right: 20*@toVw;
font-size:12*@toVw;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
}
.guide{
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
color: white;
background:rgba(0,0,0,0.8);
z-index: 9999;
.radius-block{
padding: 10*@toVw;
&:after{
content: '';
display: block;
clear: both;
}
.radius{
margin-right: 5*@toVw;
float: right;
width:96*@toVw;
height:40*@toVw;
border-radius:20*@toVw;
border:1*@toVw solid rgba(255,255,255,1);
}
}
.i-know{
position: absolute;
width: 129*@toVw;
left: 123*@toVw;
bottom: 160*@toVw;
}
.color-red{
color: #FF6477;
}
.toUntil{
width: 50*@toVw;
position: absolute;
left: 80*@toVw;
top: 60*@toVw;
transform: rotate(20deg);
}
.until-test{
width:158*@toVw;
position: absolute;
left: 139*@toVw;
top: 80*@toVw;
height:26*@toVw;
border-radius:8*@toVw;
border:1*@toVw solid rgba(255,255,255,1);
font-size:14*@toVw;
font-family:PingFang-SC-Medium;
font-weight:500;
line-height: 26*@toVw;
text-align: center;
color:rgba(255,255,255,1);
}
}
</style>