teacher.vue 1.86 KB
<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>