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

内容替换

上级 f1d4e880
...@@ -33,6 +33,6 @@ module.exports = { ...@@ -33,6 +33,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
projectId: '1009' projectId: '1011'
} }
} }
...@@ -14,6 +14,6 @@ module.exports = { ...@@ -14,6 +14,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
projectId: '1009' projectId: '1011'
} }
} }
...@@ -15,6 +15,6 @@ module.exports = { ...@@ -15,6 +15,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
projectId: '1009' projectId: '1011'
} }
} }
...@@ -14,7 +14,7 @@ export function queryInformation(param) { ...@@ -14,7 +14,7 @@ export function queryInformation(param) {
// url: host.main + path.queryInformation, // url: host.main + path.queryInformation,
url: '/api/zws/v1/enrollment/submissions', url: '/api/zws/v1/enrollment/submissions',
params: { params: {
project_id: 1009, project_id: 1011,
name: 'hhahah' name: 'hhahah'
} }
}) })
...@@ -30,7 +30,7 @@ export function introduction(params) { ...@@ -30,7 +30,7 @@ export function introduction(params) {
// 获取所有介绍内容 // 获取所有介绍内容
return ax({ return ax({
method: 'GET', method: 'GET',
url: '/api/zws/v1/cms/projects/1009/contents/' + params.tag url: '/api/zws/v1/cms/projects/1011/contents/' + params.tag
}) })
.then(function(response) { .then(function(response) {
params.cb(response.data[0].content) params.cb(response.data[0].content)
...@@ -47,7 +47,7 @@ export function getNews(params) { ...@@ -47,7 +47,7 @@ export function getNews(params) {
// url: host.main + path.news, // url: host.main + path.news,
url: '/api/zws/v1/cms/news', url: '/api/zws/v1/cms/news',
params: { params: {
project_id: 1009 project_id: 1011
} }
}) })
.then(function(response) { .then(function(response) {
......
...@@ -6,7 +6,7 @@ export default class ScoreAPI extends BaseAPI { ...@@ -6,7 +6,7 @@ export default class ScoreAPI extends BaseAPI {
*/ */
getContent = name => getContent = name =>
this.get( this.get(
`/v1/cms/projects/1009/contents/${encodeURIComponent(decodeURIComponent(name))}?sites=seg-shms.ezijing.com`, `/v1/cms/projects/1011/contents/${encodeURIComponent(decodeURIComponent(name))}?sites=seg-him.ezijing.com`,
{ {
addhost: 'zws-api.ezijing.com', addhost: 'zws-api.ezijing.com',
Host: 'zws-api.ezijing.com' Host: 'zws-api.ezijing.com'
......
...@@ -7,7 +7,7 @@ export default class ScoreAPI extends BaseAPI { ...@@ -7,7 +7,7 @@ export default class ScoreAPI extends BaseAPI {
*/ */
getContent = name => getContent = name =>
this.get( this.get(
`zws/v1/cms/projects/1009/contents/${encodeURIComponent(decodeURIComponent(name))}?sites=seg-shms.ezijing.com`, `zws/v1/cms/projects/1011/contents/${encodeURIComponent(decodeURIComponent(name))}?sites=seg-him.ezijing.com`,
{} {}
) )
/** /**
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<h3>联系我们</h3> <h3>联系我们</h3>
<p> <p>
Swiss Education Group<br /> Swiss Education Group<br />
SHMS瑞士酒店管理大学<br /> HIM瑞士蒙特勒酒店工商管理大学<br />
<!-- 电话:010-62793909<br /> <!-- 电话:010-62793909<br />
E-mail:chinafflg@ezijing.com<br /> --> E-mail:chinafflg@ezijing.com<br /> -->
地址:北京市海淀区中关村东路1号院7号楼5层<br /> 地址:北京市海淀区中关村东路1号院7号楼5层<br />
...@@ -30,28 +30,37 @@ ...@@ -30,28 +30,37 @@
</div> </div>
</div> </div>
</div> </div>
<div class="copyright" style="height: 40px;line-height: 40px;color: #fff;background: #ccc;"> <div class="copyright" style="height: 40px; line-height: 40px; color: #fff; background: #ccc">
<div class="inner" style="width: 100%;justify-content: center;display: flex;"> <div class="inner" style="width: 100%; justify-content: center; display: flex">
<p style="font-size: 12px;">Copyright © 2017 Zijing Education. All rights reserved. 清控紫荆(北京)教育科技股份有限公司</p> <p style="font-size: 12px">
<a target="_blank" href="https://tsm.miit.gov.cn/dxxzsp/" style="color: #fff;text-decoration:none;margin-left: 10px;"> Copyright © 2017 Zijing Education. All rights reserved. 清控紫荆(北京)教育科技股份有限公司
<p style="font-size: 12px;">京ICP证150431号</p> </p>
<a
target="_blank"
href="https://tsm.miit.gov.cn/dxxzsp/"
style="color: #fff; text-decoration: none; margin-left: 10px"
>
<p style="font-size: 12px">京ICP证150431号</p>
</a> </a>
<a target="_blank" class="record" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802023681" style=" <a
color: #fff; target="_blank"
text-decoration:none; class="record"
align-items: center; href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802023681"
display: flex; style="color: #fff; text-decoration: none; align-items: center; display: flex; margin-right: 5px"
margin-right: 5px;"> >
<img src="https://zws-imgs-pub.ezijing.com/e0a0ec47dfdfc1e0797b1d5254021d00.png" alt="" style=" <img
width: 20px; src="https://zws-imgs-pub.ezijing.com/e0a0ec47dfdfc1e0797b1d5254021d00.png"
height: 20px; alt=""
margin: 0 6px; style="width: 20px; height: 20px; margin: 0 6px; display: block"
display: block; />
"> <p style="font-size: 12px">安备 11010802023681号</p>
<p style="font-size: 12px;">安备 11010802023681号</p>
</a> </a>
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index" style="color: #fff;text-decoration:none;"> <a
<p style="font-size: 12px;">京ICP备15016866号-1</p> target="_blank"
href="https://beian.miit.gov.cn/#/Integrated/index"
style="color: #fff; text-decoration: none"
>
<p style="font-size: 12px">京ICP备15016866号-1</p>
</a> </a>
</div> </div>
</div> </div>
...@@ -65,7 +74,7 @@ export default { ...@@ -65,7 +74,7 @@ export default {
menuList: [ menuList: [
{ title: '中国教育部', href: 'http://www.moe.gov.cn/' }, { title: '中国教育部', href: 'http://www.moe.gov.cn/' },
{ title: '中国涉外教育监管网', href: 'http://jsj.moe.gov.cn/' }, { title: '中国涉外教育监管网', href: 'http://jsj.moe.gov.cn/' },
{ title: 'SHMS瑞士酒店管理大学', href: 'www.shms.com' }, { title: 'HIM瑞士蒙特勒酒店工商管理大学', href: 'www.shms.com' },
{ title: 'Swiss Education Group ', href: 'www.swisseducation.com' } { title: 'Swiss Education Group ', href: 'www.swisseducation.com' }
] ]
} }
...@@ -74,7 +83,7 @@ export default { ...@@ -74,7 +83,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.logo{ .logo {
width: 60px; width: 60px;
} }
.app-footer { .app-footer {
...@@ -133,18 +142,18 @@ export default { ...@@ -133,18 +142,18 @@ export default {
line-height: 40px; line-height: 40px;
color: #fff; color: #fff;
background: #ccc; background: #ccc;
.inner{ .inner {
width: 100%; width: 100%;
justify-content: center; justify-content: center;
display: flex; display: flex;
p{ p {
font-size: 12px; font-size: 12px;
} }
.record{ .record {
align-items: center; align-items: center;
display: flex; display: flex;
margin-right: 5px; margin-right: 5px;
img{ img {
width: 20px; width: 20px;
height: 20px; height: 20px;
margin: 0 6px; margin: 0 6px;
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<section class="app-header-main"> <section class="app-header-main">
<div class="hd"> <div class="hd">
<div class="hd-left"> <div class="hd-left">
<a href="/"><img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/seg-logo.png" class="logo" /></a> <a href="/"
><img src="http://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/static/ezijing/logo/seg-logo.png" class="logo"
/></a>
<h1 class="title">{{ title }}</h1> <h1 class="title">{{ title }}</h1>
</div> </div>
<!-- <div class="hd-right"> <!-- <div class="hd-right">
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
export default { export default {
data() { data() {
return { return {
title: 'SHMS瑞士酒店管理大学', title: 'HIM瑞士蒙特勒酒店工商管理大学',
navList: [ navList: [
{ title: '首页', path: '/index' }, { title: '首页', path: '/index' },
{ title: '项目介绍', path: '/project' }, { title: '项目介绍', path: '/project' },
......
...@@ -4,17 +4,13 @@ ...@@ -4,17 +4,13 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="origin" name="referrer" /> <meta content="origin" name="referrer" />
<title>SHMS瑞士酒店管理大学</title> <title>HIM瑞士蒙特勒酒店工商管理大学</title>
<!-- <meta <!-- <meta
name="viewport" name="viewport"
id="viewport" id="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"
/> --> /> -->
<meta <meta name="viewport" id="viewport" content="initial-scale=-1,maximum-scale=1,shrink-to-fit=no" />
name="viewport"
id="viewport"
content="initial-scale=-1,maximum-scale=1,shrink-to-fit=no"
/>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
...@@ -37,13 +33,13 @@ ...@@ -37,13 +33,13 @@
src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/common/runtime.js" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/common/runtime.js"
></script> ></script>
<script> <script>
var _hmt = _hmt || []; var _hmt = _hmt || []
(function() { ;(function() {
var hm = document.createElement("script"); var hm = document.createElement('script')
hm.src = "https://hm.baidu.com/hm.js?45ff88cfcd1cf031f43e64eb9650315d"; hm.src = 'https://hm.baidu.com/hm.js?45ff88cfcd1cf031f43e64eb9650315d'
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s)
})(); })()
</script> </script>
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
......
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
<div class="cont-mian center97"> <div class="cont-mian center97">
<div class="module" v-if="activeIndex == 0"> <div class="module" v-if="activeIndex == 0">
<div class="left-txt" v-html="content"></div> <div class="left-txt" v-html="content"></div>
<img src="https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png" alt="" class="exh" /> <img
src="https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png"
alt=""
class="exh"
/>
</div> </div>
<div class="module" v-if="activeIndex == 1"> <div class="module" v-if="activeIndex == 1">
<div> <div>
...@@ -31,7 +35,11 @@ ...@@ -31,7 +35,11 @@
<li :key="index" @click="goPage(item.source)">{{ item.title }}</li> <li :key="index" @click="goPage(item.source)">{{ item.title }}</li>
</template> </template>
</ul> </ul>
<img src="https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png" alt="" class="exh" /> <img
src="https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png"
alt=""
class="exh"
/>
</div> </div>
</div> </div>
</div> </div>
...@@ -58,7 +66,7 @@ export default { ...@@ -58,7 +66,7 @@ export default {
page: 1, page: 1,
per_page: 100, per_page: 100,
type: 59, type: 59,
project_id: 1009 project_id: 1011
}, },
M1listData: [], M1listData: [],
M2listData: [] M2listData: []
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</li> </li>
<li> <li>
<img src="https://zws-imgs-pub.ezijing.com/static/public/f35e8152f2c7174e75bf4c2e70188893.png" alt="" /> <img src="https://zws-imgs-pub.ezijing.com/static/public/f35e8152f2c7174e75bf4c2e70188893.png" alt="" />
<div class="p">国际教育环境<br />强大校友资源</div> <div class="p">国际教育环境<br />强大校友资源</div>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<ul> <ul>
<li> <li>
<div class="logo"> <div class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/public/c39c258f69002addb701d6a828eaa29f.png" alt=""> <img src="https://zws-imgs-pub.ezijing.com/static/public/c39c258f69002addb701d6a828eaa29f.png" alt="" />
</div> </div>
<div class="text"> <div class="text">
<div>中国教育部</div> <div>中国教育部</div>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</li> </li>
<li> <li>
<div class="logo"> <div class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/public/bcf861182fd1e5c3632b0d1e97378c63.png" alt=""> <img src="https://zws-imgs-pub.ezijing.com/static/public/bcf861182fd1e5c3632b0d1e97378c63.png" alt="" />
</div> </div>
<div class="text"> <div class="text">
<div>美国教育部</div> <div>美国教育部</div>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</li> </li>
<li> <li>
<div class="logo"> <div class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/public/1f73853b05e01507b24567d14c34f164.png" alt=""> <img src="https://zws-imgs-pub.ezijing.com/static/public/1f73853b05e01507b24567d14c34f164.png" alt="" />
</div> </div>
<div class="text"> <div class="text">
<div>美国加州</div> <div>美国加州</div>
...@@ -109,17 +109,17 @@ ...@@ -109,17 +109,17 @@
</li> </li>
<li> <li>
<div class="logo"> <div class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/public/6bf5efe5efec06738318cedccc7cd03c.png" alt=""> <img src="https://zws-imgs-pub.ezijing.com/static/public/6bf5efe5efec06738318cedccc7cd03c.png" alt="" />
</div> </div>
<div class="text"> <div class="text">
<div>美国高等教育</div> <div>美国高等教育</div>
<div>认证委员会(CHEA)</div> <div>认证委员会(CHEA)</div>
<div class="t">认证大学</div> <div class="t">认证大学</div>
</div> </div>
</li> </li>
<li> <li>
<div class="logo"> <div class="logo">
<img src="https://zws-imgs-pub.ezijing.com/static/public/4c0f67116fac2d0b267457f20852abfa.png" alt=""> <img src="https://zws-imgs-pub.ezijing.com/static/public/4c0f67116fac2d0b267457f20852abfa.png" alt="" />
</div> </div>
<div class="text"> <div class="text">
<div>美国</div> <div>美国</div>
...@@ -168,17 +168,10 @@ ...@@ -168,17 +168,10 @@
</swiper> </swiper>
<div class="written"> <div class="written">
<div class="btn">项目介绍</div> <div class="btn">项目介绍</div>
<div class="txt">SHMS瑞士酒店管理大学 | 酒店与旅游方向工商管理硕士(MBA)</div> <div class="txt">HIM瑞士蒙特勒酒店工商管理大学 | 酒店与旅游方向工商管理硕士(MBA)</div>
</div> </div>
</div> </div>
<div <div class="swiper-mian float-r" @click="goPreview('https://mp.weixin.qq.com/s/PDSmXXkw1AE0qXGDBsvuhQ')">
class="swiper-mian float-r"
@click="
goPreview(
'https://mp.weixin.qq.com/s/PDSmXXkw1AE0qXGDBsvuhQ'
)
"
>
<swiper :options="swiperOptions2" ref="mySwiper2" class="item-swiper"> <swiper :options="swiperOptions2" ref="mySwiper2" class="item-swiper">
<swiper-slide> <swiper-slide>
<img src="https://zws-imgs-pub.ezijing.com/static/public/c5db6f01b15492a2197f945407a5bdc9.jpg" alt="" /> <img src="https://zws-imgs-pub.ezijing.com/static/public/c5db6f01b15492a2197f945407a5bdc9.jpg" alt="" />
...@@ -187,7 +180,7 @@ ...@@ -187,7 +180,7 @@
</swiper> </swiper>
<div class="written"> <div class="written">
<div class="btn color">新闻活动</div> <div class="btn color">新闻活动</div>
<div class="txt">SHMS瑞士酒店管理大学 新年线下活动都分享了哪些干货?</div> <div class="txt">HIM瑞士蒙特勒酒店工商管理大学 新年线下活动都分享了哪些干货?</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -650,7 +643,7 @@ export default { ...@@ -650,7 +643,7 @@ export default {
color: #222222; color: #222222;
line-height: 25px; line-height: 25px;
margin-top: 10px; margin-top: 10px;
&.p2{ &.p2 {
margin-top: 20px; margin-top: 20px;
} }
} }
...@@ -663,70 +656,70 @@ export default { ...@@ -663,70 +656,70 @@ export default {
// background: #A4000F; // background: #A4000F;
background: url(https://zws-imgs-pub.ezijing.com/static/public/521a97768110ae52ce07f07757c79238.png); background: url(https://zws-imgs-pub.ezijing.com/static/public/521a97768110ae52ce07f07757c79238.png);
background-size: cover; background-size: cover;
.title{ .title {
font-size: 36px; font-size: 36px;
font-weight: bold; font-weight: bold;
color: #FFFFFF; color: #ffffff;
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
padding: 62px 0 58px; padding: 62px 0 58px;
} }
ul{ ul {
display: flex; display: flex;
justify-content: center; justify-content: center;
li{ li {
width: 172px; width: 172px;
height: 207px; height: 207px;
background: #fff; background: #fff;
border-radius: 10px; border-radius: 10px;
margin-right: 30px; margin-right: 30px;
&:nth-child(1){ &:nth-child(1) {
.logo{ .logo {
width: 73px; width: 73px;
} }
} }
&:nth-child(2){ &:nth-child(2) {
.logo{ .logo {
width: 93px; width: 93px;
} }
} }
&:nth-child(3){ &:nth-child(3) {
.logo{ .logo {
width: 82px; width: 82px;
} }
} }
&:nth-child(4){ &:nth-child(4) {
.logo{ .logo {
width: 124px; width: 124px;
} }
} }
&:nth-child(5){ &:nth-child(5) {
margin-right: 0; margin-right: 0;
.logo{ .logo {
width: 124px; width: 124px;
} }
} }
.logo{ .logo {
margin: 30px auto 0 auto; margin: 30px auto 0 auto;
height: 80px; height: 80px;
display: flex; display: flex;
align-items: center; align-items: center;
img{ img {
width: 100%; width: 100%;
display: block; display: block;
} }
} }
.text{ .text {
padding-top: 17px; padding-top: 17px;
text-align: center; text-align: center;
div{ div {
line-height: 100%; line-height: 100%;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 15px; font-size: 15px;
color: #96203A; color: #96203a;
font-weight: bold; font-weight: bold;
} }
.t{ .t {
font-weight: normal; font-weight: normal;
} }
} }
......
...@@ -30,12 +30,12 @@ export default { ...@@ -30,12 +30,12 @@ export default {
page: 1, page: 1,
per_page: 100, per_page: 100,
type: 58, type: 58,
project_id: 1009 project_id: 1011
}, },
listData: { listData: {
0: [], 0: [],
1: [] 1: []
}, }
} }
}, },
mounted() { mounted() {
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
if (n === 1) { if (n === 1) {
requestType = [ requestType = [
{ {
name: 'SHMS介绍', name: 'HIM介绍',
image: 'https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png' image: 'https://zws-imgs-pub.ezijing.com/static/public/b9045c3182307689d0371bece5b2bf3a.png'
}, },
{ {
...@@ -464,4 +464,4 @@ export default { ...@@ -464,4 +464,4 @@ export default {
.zs-cont{ .zs-cont{
padding-top: 60px; padding-top: 60px;
} }
</style> </style>
\ No newline at end of file
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
page: 1, page: 1,
per_page: 100, per_page: 100,
type: 55, type: 55,
project_id: 1009 project_id: 1011
}, },
allList: { allList: {
55: [], 55: [],
...@@ -76,15 +76,21 @@ export default { ...@@ -76,15 +76,21 @@ export default {
}) })
}, },
request(item, index) { request(item, index) {
cAction.reportAction.getContent(item.name).then(json => { cAction.reportAction
this.newsData.push({ .getContent(item.name)
id: index, .then(json => {
title: item.name, this.newsData.push({
content: json === null ? '' : json[0].content, id: index,
image: item.image title: item.name,
content: json === null ? '' : json[0].content,
image: item.image
})
this.newsData = this.newsData.sort((a, b) => a.id - b.id)
}) })
this.newsData = this.newsData.sort((a, b) => a.id - b.id) .catch(e => {
}).catch(e => { this.$message.error(e.message) }).finally(() => {}) this.$message.error(e.message)
})
.finally(() => {})
}, },
// request(item, index) { // request(item, index) {
// this.requestParam.type = item.type // this.requestParam.type = item.type
...@@ -122,7 +128,7 @@ export default { ...@@ -122,7 +128,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.list-box{ .list-box {
width: 100%; width: 100%;
} }
.cont-mian { .cont-mian {
......
...@@ -42,8 +42,7 @@ export default { ...@@ -42,8 +42,7 @@ export default {
menu: ['项目介绍', '宣传片', '教授采访', '学生风采'], menu: ['项目介绍', '宣传片', '教授采访', '学生风采'],
imgUrl: 'https://zws-imgs-pub.ezijing.com/static/public/24c97bb61b77949b415adcb06c7e43b1.png' imgUrl: 'https://zws-imgs-pub.ezijing.com/static/public/24c97bb61b77949b415adcb06c7e43b1.png'
}, },
newsData: [ newsData: [],
],
activeIndex: 0, activeIndex: 0,
tabMenu: ['宣讲会实录', '项目介绍'], tabMenu: ['宣讲会实录', '项目介绍'],
childActiveIndex: 0, childActiveIndex: 0,
...@@ -51,7 +50,7 @@ export default { ...@@ -51,7 +50,7 @@ export default {
page: 1, page: 1,
per_page: 100, per_page: 100,
type: 52, type: 52,
project_id: 1009 project_id: 1011
} }
} }
}, },
...@@ -87,15 +86,21 @@ export default { ...@@ -87,15 +86,21 @@ export default {
}) })
}, },
request(item, index) { request(item, index) {
cAction.reportAction.getContent(item.name).then(json => { cAction.reportAction
this.newsData.push({ .getContent(item.name)
id: index, .then(json => {
title: item.name, this.newsData.push({
content: json === null ? '' : json[0].content, id: index,
image: item.image title: item.name,
content: json === null ? '' : json[0].content,
image: item.image
})
this.newsData = this.newsData.sort((a, b) => a.id - b.id)
})
.catch(e => {
this.$message.error(e.message)
}) })
this.newsData = this.newsData.sort((a, b) => a.id - b.id) .finally(() => {})
}).catch(e => { this.$message.error(e.message) }).finally(() => {})
}, },
requestList(n) { requestList(n) {
cAction.reportAction cAction.reportAction
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论