teacher.vue
1.86 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
58
59
60
61
62
<template>
<div >
<div class="finish-wrap">
<h3 class="box_h3"><img :src="szjs.minicon" alt="" class="circular"><span class="circular_title">{{szjs.title}}</span></h3>
<div class="major_box" v-for="(item,index) of szjs.itemarr" :key="index">
<div class="major_title">
<img :src="item.icon" alt="">
<div>
<p class="names">{{item.name}}</p>
<p class="names_bottom">{{item.subtitle}}</p>
</div>
</div>
<div class="float_both">
<span class="float_weight">{{item.subinfos}}</span>
<span>{{item.subinfo}}</span>
</div>
</div>
</div>
</div>
</template>
<script>
import list from '@/assets/json/homecenter.json';
export default {
name: 'teacher',
components: {},
data(){
return {
homelist: [],
szjs:{}
}
},
methods: {
},
created() {
this.homelist = list.homecenter.home;
var index = this.$route.query.index;
this.szjs = this.homelist[index].szjs;
this.$share.initWx('/master')
},
mounted() {
document.querySelector('body').setAttribute('style', 'background-color:#F5F9FC;')
}
}
</script>
<style lang="" scoped>
body{background:#F5F9FC;}
.banner_img{width:100%;}
.major_box{background:#fff;border-left:.1rem solid #02B5B2;width:90%;margin:.32rem auto;border-radius: .1rem;padding:.3rem .2rem;box-sizing: border-box;}
.major_title{overflow: hidden;margin-bottom:.1rem;}
.major_title img{width:1rem;height:1rem;float:left;margin-right:.2rem;}
.major_title div{float:left;padding-top:.1rem;line-height:.4rem;width:76%;}
.float_both{clear:both;font-size: .24rem;line-height:.36rem;letter-spacing: .02rem;}
.float_weight{font-weight:600;}
.names{font-weight:600;font-size:.32rem;}
h3.box_h3{padding-top:5%;}
.major_title .names_bottom{font-weight:600;font-size:.25rem;}
</style>