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