提交 b4343e5a authored 作者: 王鹏飞's avatar 王鹏飞

修改项目ID

上级 941dcda9
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head>
{{ HEAD }}
<script>
;(function(win, doc) {
function resizeRoot() {
var wWidth =
screen.width > 0
? win.innerWidth >= screen.width || win.innerWidth == 0
? screen.width
: win.innerWidth
: win.innerWidth,
wFsize
wFsize = ((wWidth > 750 ? 750 : wWidth) / 375) * 100
doc.documentElement.style.fontSize = wFsize + 'px'
}
resizeRoot()
win.addEventListener('resize', resizeRoot, false)
})(window, document)
</script>
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
<script>
var _hmt = _hmt || []
;(function() {
var hm = document.createElement('script')
hm.src = 'https://hm.baidu.com/hm.js?92a61ce587aaf0da717895531ea8591c'
var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s)
})()
</script>
</body>
</html>
......@@ -42,8 +42,7 @@ export default {
},
async fetch() {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.type,
page: this.currentPaeg,
limit: 10
......@@ -59,8 +58,7 @@ export default {
},
initData(num) {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.$route.query.type || 'article_news',
page: num,
limit: 10
......
......@@ -9,18 +9,22 @@
查看更多+
</div>
</div>
<div :class="isScale ? 'small-tit max-width scale' : 'small-tit max-width'">You are What you together,结识6000+ 同样优秀的人!</div>
<div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div :class="isScale ? 'small-tit max-width scale' : 'small-tit max-width'">
You are What you together,结识6000+ 同样优秀的人!
</div>
<div class="swiper-content" @mouseenter="swiperStop" @mouseleave="swiperStart">
<div v-swiper:mySwiper="swiperOption" ref="mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<app-link :item="{
news: {
data: item,
path: '/alumnus/sharing'
}
}">
<img :src="item.web_img_uri">
<app-link
:item="{
news: {
data: item,
path: '/alumnus/sharing'
}
}"
>
<img :src="item.web_img_uri" />
<div class="text">{{ item.title }}</div>
</app-link>
</div>
......@@ -35,7 +39,7 @@ export default {
components: {
appLink
},
data () {
data() {
const _this = this
return {
isScale: false,
......@@ -49,7 +53,7 @@ export default {
loop: true,
slidesPerView: 'auto',
centeredSlides: true,
spaceBetween: 20,
spaceBetween: 20
// on: {
// init() {
// _this.swiper.slideNext()
......@@ -60,8 +64,7 @@ export default {
},
async fetch() {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: 'article_alumni'
}
this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
......@@ -71,7 +74,7 @@ export default {
},
computed: {
swiper() {
return this.$refs.mySwiper.swiper;
return this.$refs.mySwiper.swiper
}
},
methods: {
......@@ -97,23 +100,23 @@ export default {
}
</script>
<style lang="scss" scoped>
.max-width{
.max-width {
width: 1200px;
margin: 0 auto;
}
.alumni-content{
.alumni-content {
min-width: 1200px;
padding-top: 89px;
.title-content{
.title-content {
display: flex;
.left-title{
.left-title {
display: flex;
.line{
.line {
width: 6px;
height: 34px;
background: #AA1941;
background: #aa1941;
}
.text{
.text {
font-size: 34px;
font-weight: bold;
line-height: 34px;
......@@ -121,49 +124,49 @@ export default {
margin-left: 9px;
}
}
.right-text{
.right-text {
margin-left: auto;
margin-top: 18px;
font-size: 16px;
font-weight: 300;
line-height: 34px;
color: #9B9B9B;
color: #9b9b9b;
cursor: pointer;
}
}
.small-tit{
.small-tit {
font-size: 24px;
font-weight: bold;
line-height: 34px;
color: #424242;
margin-top: 12px;
}
.swiper-content{
.swiper-content {
padding-top: 37px;
// overflow: auto;
// width: 100%;
.swiper-slide{
.swiper-slide {
position: relative;
width: 388px;
height: 244px;
margin-top: 10px;
.text{
.text {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
line-height: 40px;
background: rgba(0,0,0,0.5);
background: rgba(0, 0, 0, 0.5);
padding: 0 20px;
box-sizing: border-box;
font-size: 20px;
color: #FEFEFE;
color: #fefefe;
overflow: hidden;
text-overflow:ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
img{
img {
width: 100%;
}
}
......@@ -171,7 +174,7 @@ export default {
width: 423px;
height: 266px;
margin-top: 0;
img{
img {
width: 100%;
height: 100%;
display: block;
......@@ -179,7 +182,7 @@ export default {
}
}
}
.scale{
.scale {
transform: scale(0.85);
}
</style>
......@@ -41,7 +41,6 @@ export default {
async fetch() {
const params = { project_id: process.env.newProjectId, type_tag: 'ad_banner' }
this.list = await this.$axios.get('/api/cms/api/v1/advertisements', { params }).then(res => res.data.data)
},
computed: {
swiper() {
......@@ -103,4 +102,4 @@ export default {
cursor: pointer;
}
}
</style>
\ No newline at end of file
</style>
......@@ -5,7 +5,10 @@
<div class="line"></div>
<div class="text">校长寄语</div>
</div>
<div class="right-text" @click="$router.push({ path: '/about-ezijing/message', query: { type: 'img_text_school' } })">
<div
class="right-text"
@click="$router.push({ path: '/about-ezijing/message', query: { type: 'img_text_school' } })"
>
查看更多+
</div>
</div>
......@@ -14,7 +17,7 @@
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item, index) in listData" :key="index">
<app-link :item="{ news: { data: item, path: '/about/message' } }">
<img :src="item.web_img_uri">
<img :src="item.web_img_uri" />
</app-link>
</div>
</div>
......@@ -54,15 +57,14 @@ export default {
},
async fetch() {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: 'img_text_school'
}
this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
this.isShowSwiper = false
setTimeout(() => {
this.isShowSwiper = true
},300)
}, 300)
return res.data.data
})
},
......@@ -75,7 +77,7 @@ export default {
this.isShowSwiper = false
setTimeout(() => {
this.isShowSwiper = true
},300)
}, 300)
},
methods: {
handleSlideTo(index) {
......@@ -85,20 +87,20 @@ export default {
}
</script>
<style lang="scss" scoped>
.msg-content{
.msg-content {
padding-top: 90px;
width: 1200px;
margin: 0 auto;
.title-content{
.title-content {
display: flex;
.left-title{
.left-title {
display: flex;
.line{
.line {
width: 6px;
height: 34px;
background: #AA1941;
background: #aa1941;
}
.text{
.text {
font-size: 34px;
font-weight: bold;
line-height: 34px;
......@@ -106,30 +108,30 @@ export default {
margin-left: 9px;
}
}
.right-text{
.right-text {
margin-left: auto;
margin-top: 18px;
font-size: 16px;
font-weight: 300;
line-height: 34px;
color: #9B9B9B;
color: #9b9b9b;
cursor: pointer;
}
}
.swiper-content{
.swiper-content {
height: 500px;
margin-top: 15px;
overflow: hidden;
img{
img {
width: 100%;
height: 520px;
display: block;
}
::v-deep{
.swiper-pagination-bullets{
::v-deep {
.swiper-pagination-bullets {
right: 34px !important;
}
.swiper-pagination-bullet{
.swiper-pagination-bullet {
width: 6px;
height: 6px;
border-radius: 100%;
......@@ -139,7 +141,7 @@ export default {
opacity: 1;
margin: 10px 0;
}
.swiper-pagination-bullet-active{
.swiper-pagination-bullet-active {
width: 6px;
height: 31px;
border-radius: 25px;
......@@ -148,4 +150,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -7,7 +7,7 @@ if (process.env.NODE_ENV === 'production') {
config = {
env: {
projectId: '1012',
newProjectId: '6805762100502200320',
newProjectId: '9946887509442560',
baseURL: 'https://project-api.ezijing.com',
loginURL: 'https://login.ezijing.com/auth'
},
......@@ -17,7 +17,7 @@ if (process.env.NODE_ENV === 'production') {
config = {
env: {
projectId: '1012',
newProjectId: '6805762100502200320',
newProjectId: '9946887509442560',
baseURL: 'https://project-api.ezijing.com',
loginURL: 'https://login.ezijing.com/auth'
},
......@@ -36,7 +36,7 @@ export default {
ssr: false,
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: '玛丽伍德大学-在线MBA-综合管理方向MBA-清华控股旗下在线教育品牌',
title: '在线MBA-综合管理方向MBA-清华控股旗下在线教育品牌',
htmlAttrs: {
lang: 'en'
},
......
差异被折叠。
......@@ -45,7 +45,7 @@ export default {
return res.data
})
const params = {
project_id: process.env.projectId,
project_id: process.env.newProjectId,
type_tag: 'article_publish_class',
is_recommend: 1,
page: 1,
......
......@@ -45,8 +45,7 @@ export default {
},
async fetch() {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.$route.query.type || 'article_publish_class',
page: this.currentPaeg,
limit: 10
......@@ -62,8 +61,7 @@ export default {
},
initData(num) {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.$route.query.type || 'article_publish_class',
page: num,
limit: 10
......
......@@ -45,8 +45,7 @@ export default {
return res.data
})
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: 'img_text_school',
is_recommend: 1,
page: 1,
......
......@@ -45,8 +45,7 @@ export default {
},
async fetch() {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.$route.query.type || 'img_text_school',
page: this.currentPaeg,
limit: 10
......@@ -62,8 +61,7 @@ export default {
},
initData(num) {
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: this.$route.query.type || 'img_text_school',
page: num,
limit: 10
......
......@@ -45,8 +45,7 @@ export default {
return res.data
})
const params = {
// project_id: process.env.projectId,
project_id: '6800242743894343680',
project_id: process.env.newProjectId,
type_tag: 'article_news',
is_recommend: 1,
page: 1,
......
......@@ -3,9 +3,9 @@
<!-- 轮播图 -->
<banner />
<!-- 校长寄语 -->
<headmaster-msg/>
<headmaster-msg />
<!-- 校友故事 -->
<alumni-stories/>
<alumni-stories />
<!-- 最新动态 -->
<news />
<!-- 右侧功能栏 -->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论