优化代码

dependabot/pip/fir_ser/django-3.2.4
youngS 4 years ago
parent 5bac330551
commit 5835b4d6e1
  1. 32
      fir_client/src/components/index/FirIndexBody.vue
  2. 10
      fir_client/vue.config.js

@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<el-container id="contactUs"> <el-container id="contactUs" :style="{background:`url(${contact_images.bg}) 0 0 no-repeat`}">
<el-main class="contactUs-container"> <el-main class="contactUs-container">
<div class="content">您身边的应用托管分发专家</div> <div class="content">您身边的应用托管分发专家</div>
<div class="content">7x24小时提供出色的不间断服务</div> <div class="content">7x24小时提供出色的不间断服务</div>
@ -51,9 +51,9 @@
>联系我们 >联系我们
</el-button> </el-button>
<div class="contactUs-contactWay"> <div class="contactUs-contactWay">
<span/> <img v-lazy="contact_images.weixin"/>
<span/> <img v-lazy="contact_images.weibo"/>
<span/> <img v-lazy="contact_images.twitter"/>
</div> </div>
</el-main> </el-main>
</el-container> </el-container>
@ -66,6 +66,12 @@
name: "FirIndex", name: "FirIndex",
data() { data() {
return { return {
contact_images: {
bg: require("@/assets/imgs/contact_us_bg.jpg"),
weixin: require("@/assets/imgs/weixin.png"),
weibo: require("@/assets/imgs/weibo.png"),
twitter: require("@/assets/imgs/twitter.png"),
},
swiperList: [ swiperList: [
{ {
img: require("@/assets/imgs/banner2.jpg"), img: require("@/assets/imgs/banner2.jpg"),
@ -186,7 +192,6 @@
color: #fff; color: #fff;
height: 400px; height: 400px;
text-align: center; text-align: center;
background: url("../../assets/imgs/contact_us_bg.jpg") 0 0 no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
transition: all ease 0.6s; transition: all ease 0.6s;
} }
@ -201,28 +206,13 @@
margin-top: 40px; margin-top: 40px;
} }
#contactUs .contactUs-container .contactUs-contactWay span { #contactUs .contactUs-container .contactUs-contactWay img {
display: inline-block; display: inline-block;
width: 48px; width: 48px;
height: 48px; height: 48px;
margin: 30px; margin: 30px;
} }
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(1) {
background: url("../../assets/imgs/weixin.png") 0 0 no-repeat;
background-size: 100% 100%;
}
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(2) {
background: url("../../assets/imgs/weibo.png") 0 0 no-repeat;
background-size: 100% 100%;
}
#contactUs .contactUs-container .contactUs-contactWay span:nth-of-type(3) {
background: url("../../assets/imgs/twitter.png") 0 0 no-repeat;
background-size: 100% 100%;
}
/* 为什么选择我们 */ /* 为什么选择我们 */
#whyChooseUs { #whyChooseUs {
padding: 100px; padding: 100px;

@ -95,11 +95,11 @@ const dev_base_env = {
}; };
let base_evn = dev_base_env; let base_evn = dev_base_env;
// if (IS_PROD) { if (IS_PROD) {
// base_evn = pro_base_env base_evn = pro_base_env
// } else { } else {
// base_evn = dev_base_env base_evn = dev_base_env
// } }
function get_public_path(pages) { function get_public_path(pages) {
if (!IS_PROD) { if (!IS_PROD) {

Loading…
Cancel
Save