|
@@ -0,0 +1,69 @@
|
|
|
|
+<template>
|
|
|
|
+ <div>
|
|
|
|
+ <div class="mainBg" ref="mainBg" :style="{'height':mainHeight+'px'}">
|
|
|
|
+ <img src="../../assets/img/choose_title.png" class="mainTitle" :style="{'margin-top':mainHeight*0.36+'px'}"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="boxIcon">
|
|
|
|
+ <img src="../../assets/img/icon0.png" class="mainIcon" :style="{'margin-top':-mainHeight*0.2+'px'}"/>
|
|
|
|
+ <img src="../../assets/img/icon1.png" class="mainIcon" :style="{'margin-top':-mainHeight*0.2+'px'}"/>
|
|
|
|
+ <img src="../../assets/img/icon2.png" class="mainIcon" :style="{'margin-top':-mainHeight*0.2+'px'}"/>
|
|
|
|
+ <img src="../../assets/img/icon3.png" class="mainIcon" :style="{'margin-top':-mainHeight*0.2+'px'}"/>
|
|
|
|
+ <img src="../../assets/img/icon4.png" class="mainIcon" :style="{'margin-top':-mainHeight*0.2+'px'}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ export default {
|
|
|
|
+ name: "choose",
|
|
|
|
+ components: {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ mainHeight:0
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ onload(){
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ //立即执行
|
|
|
|
+ window.onresize = () => {
|
|
|
|
+ return (() => {
|
|
|
|
+ this.resizeWin();
|
|
|
|
+ })();
|
|
|
|
+ };
|
|
|
|
+ this.resizeWin();
|
|
|
|
+ },
|
|
|
|
+ methods:{
|
|
|
|
+ resizeWin(){
|
|
|
|
+ const mainWidth = this.$refs.mainBg.clientWidth;
|
|
|
|
+ this.mainHeight=mainWidth*0.28125
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style scoped>
|
|
|
|
+ .mainBg {
|
|
|
|
+ width: 100%;
|
|
|
|
+ background-image: url("../../assets/img/choose_bg.png");
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: center center;
|
|
|
|
+ }
|
|
|
|
+ .mainTitle {
|
|
|
|
+ width: 32%;
|
|
|
|
+ margin-left:34%;
|
|
|
|
+ }
|
|
|
|
+ .mainIcon{
|
|
|
|
+ width: 12%;
|
|
|
|
+ margin-left: 6.4%;
|
|
|
|
+ }
|
|
|
|
+ .boxIcon{
|
|
|
|
+ width:100%;
|
|
|
|
+ }
|
|
|
|
+</style>
|