major.vue
1.39 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
<template>
<div class="finish-wrap">
<div class="obox">
<div class="banner_img"
:style="{backgroundImage: 'url(' + this.zyjs.imgurl + ') ', backgroundRepeat:'no-repeat', backgroundPosition:'center center', backgroundSize: '100% 100%'}"
></div>
<div class="major_title">
<h3 class="box_h3"><img :src="zyjs.minicon" alt="" class="circular"><span class="circular_title">{{zyjs.title}}</span></h3>
<p>{{zyjs.info}}</p>
</div>
</div>
</div>
</template>
<script>
import list from '@/assets/json/homecenter.json';
import { hostname } from 'os';
export default {
name: 'major',
components: {},
data(){
return {
homelist: [],
zyjs:{}
}
},
methods: {
},
mounted() {
document.querySelector('body').setAttribute('style', 'background-color:#F5F9FC;')
},
created() {
this.$share.initWx('/master')
this.homelist = list.homecenter.home;
var index = this.$route.query.index;
this.zyjs = this.homelist[index].zyjs;
}
}
</script>
<style lang="" scoped>
.banner_img{padding-bottom:62%;margin-top:-.4rem;}
.major_title{width:90%;background:#fff;border-radius:.1rem;margin:-.5rem auto 0 auto;box-shadow: 1px 0px 8px 1px rgba(0,0,0,.2);padding-top:.36rem;}
p{text-indent: 25px;letter-spacing: .02rem;line-height:.5rem;font-size:.27rem;padding: 0 .31rem .44rem .3rem;}
</style>