Browse Source

修改首页样式

master
chutingting 4 years ago
parent
commit
7bb7384469
6 changed files with 17 additions and 11 deletions
  1. +1
    -1
      public/index.html
  2. +1
    -1
      src/api/request.js
  3. BIN
      src/assets/img/bg/bg.jpg
  4. +10
    -6
      src/components/headTail/head.vue
  5. +1
    -0
      src/components/sidebar/sidebar.vue
  6. +4
    -3
      src/page/home/home.vue

+ 1
- 1
public/index.html View File

@@ -7,7 +7,7 @@
<meta name="keywords" content="礼仪培训师资格证,线上礼仪培训班,礼仪培训网课,形象礼仪培训师在线考证" />
<meta name="description" content="瑜璟缘国际形象礼仪主营:礼仪培训,礼仪培训师,商务礼仪培训,社交礼仪培训,服务礼仪培训,企业礼仪培训,职场礼仪培训,礼仪培训班,政务礼仪培训的培训团队。电话:13121112777欢迎您来电咨询!" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>瑜璟缘国际形象礼仪,国际礼仪培训机构,企业培训机构,形象礼仪,形象礼仪培训师</title>
</head>
<body>
<noscript>


+ 1
- 1
src/api/request.js View File

@@ -4,7 +4,7 @@ import { Message } from "element-ui"

const service = axios.create({
baseURL: '/C/',
//baseURL: 'https://www.yjyculture.com/C/',
// baseURL: 'https://www.yjyculture.com/C/',
timeout: 60000 // 请求超时时间
})



BIN
src/assets/img/bg/bg.jpg View File

Before After
Width: 1900  |  Height: 160  |  Size: 49 KiB

+ 10
- 6
src/components/headTail/head.vue View File

@@ -1,16 +1,17 @@
<template>
<div class="bgBox">
<div class="Box">
<img src="../../assets/img/bg/bg.jpg" class="topImg" alt="">
<!-- <div class="Box">
<div class="backImg">
<!-- <div class="logoBox">
<div class="logoBox">
<div class="logo_img">
<img src="../../assets/img/logo/logo1.png" alt />
</div>
<div class="title_Box">
<p>瑜璟缘国际文化礼仪培训</p>
</div> -->
</div>
</div>
</div>
</div> -->
<div class="nav">
<el-dropdown>
@@ -101,10 +102,13 @@ export default {
.bgBox {
width: 100%;
background-image: url("../../assets/img/bg/2165324.png");
/* background-image: url("../../assets/img/bg/2165324.png");
//background-attachment: fixed;
background-repeat: repeat-x;
background-size: 100% 160px;
background-size: 100% 160px; */
.topImg{
width: 100%;
}
.nav {
width: 1200px;
margin: 20px auto;


+ 1
- 0
src/components/sidebar/sidebar.vue View File

@@ -77,6 +77,7 @@ export default {
homeService.getNewsList(data).then(res => {
res.list.forEach(ele => {
ele.publishDate = moment(ele.publishDate).format("YYYY-MM-DD")
ele.content = ele.content.replace(/<img\b[^>]*>/, "");
});
this.newsList = res.list
})


+ 4
- 3
src/page/home/home.vue View File

@@ -52,7 +52,7 @@
<img class="logo" :src="item.mainPicRealPath" alt />
<div class="journalismText">
<h3>{{item.title}}</h3>
<span v-html="item.content"></span>
<span class="journalismText-content" v-html="item.content"></span>
<div class="time">{{item.publishDate}} <span class="el-icon-view"> {{item.view}}</span></div>
</div>
</div>
@@ -115,6 +115,7 @@ export default {
homeService.getNewsList(data).then(res => {
res.list.forEach(ele => {
ele.publishDate = moment(ele.publishDate).format("YYYY-MM-DD")
ele.content = ele.content.replace(/<img\b[^>]*>/, "");
});
this.newsList = res.list
})
@@ -329,8 +330,8 @@ export default {
margin: 5px 0;
font-size: 16px;
}
span {
height: 60px;
span.journalismText-content {
min-height: 60px;
overflow: hidden;
line-height: 19px;
color: #999;


Loading…
Cancel
Save