ConferenceDetail.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <template>
  2. <div class="autoBox container-box">
  3. <div class="bread-crumb">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item :to="{ path: 'home' }">{{lang=='en'? 'Home': '首页'}}</el-breadcrumb-item>
  6. <el-breadcrumb-item :to="{ path: 'ConferenceServices'}">{{lang=='en'? 'Conferences': '会议'}}</el-breadcrumb-item>
  7. <el-breadcrumb-item>{{lang=='en'? detailData.meetingNameEn: detailData.meetingName}}</el-breadcrumb-item>
  8. </el-breadcrumb>
  9. </div>
  10. <div class="content-box">
  11. <div style="display: flex; padding-bottom: 30px">
  12. <div class="section-left">
  13. <div class="conference-detail-info">
  14. <div>
  15. <p class="title">{{lang=='en'? detailData.meetingNameEn: detailData.meetingName}}</p>
  16. <!-- <p>
  17. <span>{{lang=='en'? 'Sponsor': '主办方'}}:</span><span class="sponsor">{{lang=='en'? detailData.meetingSponsorEn: detailData.meetingSponsor}}</span>
  18. </p> -->
  19. <div style="display: flex; justify-content: space-between;margin-top: 50px">
  20. <div>
  21. <span
  22. class="time"
  23. v-if="detailData.meetingStartDate"
  24. >{{formatDate(detailData.meetingStartDate)}}-{{formatDate(detailData.meetingEndDate)}}</span>
  25. <span class="place">{{lang=='en'?detailData.meetingPlaceEn: detailData.meetingPlace}}</span>
  26. </div>
  27. <!-- <div class="share">
  28. <span><i class="el-icon-star-off"></i> {{lang=='en'? 'Attention': '关注'}}</span>
  29. <span><i class="el-icon-share"></i> {{lang=='en'? 'Share': '分享'}}</span>
  30. </div> -->
  31. </div>
  32. <p class="introduction">{{lang=='en'? detailData.meetingIntroductionEn: detailData.meetingIntroduction}}</p>
  33. </div>
  34. </div>
  35. <div class="conference-detail-other">
  36. <div class="confrence-item" v-if="detailData.meetingYichengEn || detailData.meetingYicheng">
  37. <!-- <div class="confrence-item-header" >{{lang=='en'? 'Agenda': '议程'}}</div> -->
  38. <div class="confrence-item-body">
  39. <div v-html="lang=='en'? detailData.meetingYichengEn: detailData.meetingYicheng"></div>
  40. </div>
  41. </div>
  42. <div class="confrence-item" style="display: flex; justify-content: space-between;margin-top: 30px">
  43. <!-- <div class="confrence-item"> -->
  44. <div>
  45. <a :href="'./api/file/pub/'+agendaData" target="_blank" class="agenda-title" v-if="agendaData">{{lang=='en'? 'View the Meeting agenda': '查看会议议程'}} <i class="el-icon-view"></i></a>
  46. </div>
  47. </div>
  48. <div class="confrence-item" style="display: flex; justify-content: space-around;">
  49. <div style="width: 100%" v-if="detailData.meetingIsShow=='01' && !isMeetingOver(detailData.meetingEndDate)">
  50. <div class="sign-up-btn" v-if="detailData.meetingMainFormDict=='01'">
  51. <p v-if="lang=='zh' && detailData.isShowZhOnsite=='Yes'">如您希望到现场({{detailData.meetingPlace}})参加我们的大会,<span class="link" @click="enroll('MeetingApplyForm', detailData.id)">请点击此处报名</span>。</p>
  52. <p v-if="lang=='en' && detailData.isShowEnOnsite=='Yes'">If you want to attend the conference on-site in {{detailData.meetingPlaceEn}}, <span class="link" @click="enroll('MeetingApplyForm', detailData.id)">please click here to register</span>.</p>
  53. </div>
  54. <div class="sign-up-btn" v-else-if="detailData.meetingMainFormDict=='02'">
  55. <p v-if="lang=='zh' && detailData.isShowZhOnline=='Yes'">如您希望通过网络会议系统参加我们的大会,<span class="link" @click="enroll('ConferenceNetwork', detailData.id)">请点击此处报名</span>。</p>
  56. <p v-if="lang=='en' && detailData.isShowEnOnline=='Yes'">If you want to attend our conference online, <span class="link" @click="enroll('ConferenceNetwork', detailData.id)">please click here to register</span>.</p>
  57. </div>
  58. <div v-else-if="detailData.meetingMainFormDict=='03'">
  59. <div v-if="lang=='zh'" class="sign-up-btn">
  60. <p v-if="detailData.isShowZhOnline=='Yes'">如您希望通过网络会议系统参加我们的大会,<span class="link" @click="enroll('ConferenceNetwork', detailData.id)">请点击此处报名</span>。</p>
  61. <p v-if="detailData.isShowZhOnsite=='Yes'">如您希望到现场({{detailData.meetingPlace}})参加我们的大会,<span class="link" @click="enroll('MeetingApplyForm', detailData.id)">请点击此处报名</span>。</p>
  62. </div>
  63. <div v-else class="sign-up-btn">
  64. <p v-if="detailData.isShowEnOnline=='Yes'">If you want to attend our conference online, <span class="link" @click="enroll('ConferenceNetwork', detailData.id)">please click here to register</span>.</p>
  65. <p v-if="detailData.isShowEnOnsite=='Yes'">If you want to attend the conference on-site in {{detailData.meetingPlaceEn}}, <span class="link" @click="enroll('MeetingApplyForm', detailData.id)">please click here to register</span>.</p>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="section-right">
  73. <div class="conference-recommend" v-if="recommendData.length">
  74. <p class="title">{{lang=='en'? 'Upcoming Events': '近期会议'}}</p>
  75. <ul class="conference-recommend-list">
  76. <li v-for="(item, i) in recommendData" :key="i" @click="toView('ConferenceDetail', item.id)">
  77. <!-- <li v-for="(item, i) in recommendData" :key="i" @click="toView('ConferenceBlank', item.id)"> -->
  78. <div class="conference-recommend-top">
  79. <span class="time">{{formatDate(item.meetingStartDate)}}</span>
  80. <span class="step"></span>
  81. <span class="title">{{lang=='en'?item.meetingNameEn: item.meetingName}}</span>
  82. </div>
  83. <div class="conference-recommend-body">
  84. <span class="place">{{lang=='en'? item.meetingPlaceEn: item.meetingPlace}}</span>
  85. <p class="introduction plate">{{lang=='en'? item.meetingIntroductionEn: item.meetingIntroduction}}</p>
  86. <!-- <p class="sponsor">{{lang=='en'? item.meetingSponsorEn: item.meetingSponsor}}</p> -->
  87. </div>
  88. </li>
  89. </ul>
  90. <div class="no-data" v-if="recommendData.length < 4">{{lang=='en'? 'Coming Soon': '敬请期待'}}</div>
  91. <!-- <span class="more">{{lang=='en'? 'MORE': '更多'}}</span> -->
  92. </div>
  93. <div v-else class="recommend-no-data">
  94. <img v-if="lang=='en'" width="150" height="150" src="@/assets/img/conference/no-data-en.png" alt="">
  95. <img v-else width="150" height="150" src="@/assets/img/conference/no-data-zh.png" alt="">
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <LoginReminder ref="loginReminder"></LoginReminder>
  101. </div>
  102. </template>
  103. <script>
  104. import { getConfrences, getAllNews, meetingParamConfigs} from "@/api/meeting/meetingOutInfo";
  105. import LoginReminder from './LoginReminder'
  106. export default {
  107. components:{
  108. LoginReminder
  109. },
  110. inject:['reload'],
  111. data(){
  112. return {
  113. recommendData: [],
  114. detailData: {},
  115. agendaData: '',
  116. newsData: [],
  117. lang: '',
  118. currentMeeting: '',
  119. postData: {
  120. id: this.$route.query.key,
  121. // id: window.localStorage.getItem('conferenceId'),
  122. page: 1,
  123. size: 5,
  124. },
  125. // 参会意向配置
  126. intentions: {},
  127. //meetingConfigs:{},
  128. }
  129. },
  130. created(){
  131. this.lang = this.$i18n.locale;
  132. },
  133. watch: {
  134. '$i18n.locale'(val){
  135. this.lang = val;
  136. },
  137. '$route.query.key'(val){
  138. this.reload();
  139. }
  140. },
  141. mounted(){
  142. this.getData();
  143. },
  144. methods: {
  145. getData(){
  146. getAllNews(this.postData).then(res=>{
  147. console.log('全部数据', res)
  148. this.detailData = res.data.basicInfo;
  149. this.intentions = {
  150. isShowZhOnsiteIntention: this.detailData.isShowZhOnsiteIntention,//是否显示中文(现场)参会意向入口
  151. isShowZhOnlineIntention: this.detailData.isShowZhOnlineIntention,//是否显示中文(网络)参会意向入口
  152. isShowEnOnsiteIntention: this.detailData.isShowEnOnsiteIntention,//是否显示英文(现场)参会意向入口
  153. isShowEnOnlineIntention: this.detailData.isShowEnOnlineIntention,//是否显示英文(网络)参会意向入口
  154. };
  155. console.log('this.intentions',this.intentions);
  156. if(res.data.meetingOutInfo.image.length){
  157. let filterdFile = [];
  158. res.data.meetingOutInfo.image.forEach((item) => {
  159. if(item.photoType == "meeting_yicheng"){
  160. filterdFile.push(item);
  161. }
  162. });
  163. this.agendaData = filterdFile[0].list[0].attachmentSavePath;
  164. }else{
  165. this.agendaData = '';
  166. }
  167. this.currentMeeting = res.data.basicInfo.id;
  168. // this.newsData = res.data.meetingOutInfo.news;
  169. // console.log('全部数据', this.detailData)
  170. // console.log('新闻数据', this.newsData)
  171. getConfrences().then(res=>{
  172. this.recommendData = [];
  173. res.data.meetingBasicInfos.forEach(item=>{
  174. if(!this.isMeetingOver(item.meetingEndDate) && item.meetingIsShow=="01" && item.meetingIsEnroll=="01" && item.id != this.currentMeeting){
  175. this.recommendData.push(item)
  176. }
  177. })
  178. // console.log('会议', this.recommendData)
  179. })
  180. })
  181. /**
  182. * 会议参数配置
  183. */
  184. // meetingParamConfigs('apply_online_link_en,apply_onsite_link_en,apply_onsite_link_zh,apply_online_link_zh').then(res=>{
  185. // console.log('res:', res)
  186. // this.meetingConfigs = res.data.meetingParamConfigs
  187. // })
  188. },
  189. toView(path, id){
  190. // localStorage.setItem('conferenceId', id);
  191. this.$router.push({ path: path, query: { key: id} });
  192. },
  193. enroll(path, id){
  194. let rpath = { path: path, query: { key: id, intentions: this.intentions}};
  195. sessionStorage.setItem('pathReminder', JSON.stringify(rpath));
  196. this.$refs.loginReminder.activeChange(path, id);
  197. },
  198. formatDate(t) {
  199. if(!t){
  200. return ''
  201. }else{
  202. var original = new Date(t);
  203. var year=original.getFullYear();
  204. var month=original.getMonth()+1;
  205. var date=original.getDate();
  206. var hour=original.getHours();
  207. var minute=original.getMinutes();
  208. var second=original.getSeconds();
  209. // return year+"-"+month+"-"+date+" "+hour+":"+minute+":"+second;
  210. return year+"/"+month+"/"+date;
  211. }
  212. },
  213. isMeetingOver(t){
  214. var ct = Date.parse(new Date());
  215. if(ct-t > 0){
  216. return true;
  217. }else{
  218. return false;
  219. }
  220. },
  221. }
  222. }
  223. </script>
  224. <style scoped>
  225. * {
  226. box-sizing: border-box;
  227. }
  228. .container-box {
  229. margin: 10px auto;
  230. min-height: calc( 100vh - 420px );
  231. background: #fff;
  232. }
  233. .bread-crumb {
  234. background: #fff;
  235. padding: 10px 20px;
  236. }
  237. .content-box{
  238. position: relative;
  239. padding: 0 20px;
  240. padding-bottom: 40px;
  241. }
  242. .section-left{
  243. width: 70%;
  244. padding-right: 40px;
  245. border-right: 4px solid #f2f2f2;
  246. }
  247. .section-right{
  248. width: 30%;
  249. }
  250. .conference-detail-info{
  251. }
  252. .conference-detail-info p{
  253. margin: 0;
  254. font-size: 16px;
  255. }
  256. .conference-detail-info p span{
  257. line-height: 48px;
  258. color: #797979;
  259. }
  260. .conference-detail-info .title{
  261. font-size: 36px;
  262. margin: 20px 0;
  263. }
  264. .conference-detail-info .sponsor{
  265. line-height: 48px;
  266. color: #797979;
  267. }
  268. .conference-detail-info .introduction{
  269. line-height: 35px;
  270. margin-top: 20px;
  271. color: #2c3e50;
  272. }
  273. .share span{
  274. cursor: pointer;
  275. margin-left: 30px;
  276. }
  277. .share span:hover{
  278. color: #168dbf;
  279. }
  280. .conference-recommend{
  281. position: relative;
  282. padding-bottom: 40px;
  283. padding-left: 20px;
  284. }
  285. .conference-recommend .no-data{
  286. color: #555;
  287. line-height: 26px;
  288. background: #f2f2f2;
  289. padding: 0 6px;
  290. font-size: 14px;
  291. text-align: center;
  292. }
  293. .conference-recommend .more{
  294. font-size: 20px;
  295. position: absolute;
  296. line-height: 27px;
  297. bottom: 10px;
  298. right: 10px;
  299. }
  300. .conference-recommend > .title{
  301. font-size: 18px;
  302. line-height: 18px;
  303. font-weight: bold;
  304. margin-top: 20px;
  305. margin-bottom: 20px;
  306. border-left: 8px solid #02a7f0;
  307. padding-left: 10px;
  308. }
  309. .conference-recommend-list{
  310. background: #fff;
  311. }
  312. .conference-recommend-top{
  313. background: #f2f2f2;
  314. line-height: 20px;
  315. font-size: 14px;
  316. display: flex;
  317. padding: 3px 6px;
  318. }
  319. .conference-recommend-top .step{
  320. display: block;
  321. width: 10px;
  322. position: relative;
  323. margin: 0 14px;
  324. }
  325. .conference-recommend-top .step::after{
  326. content: '';
  327. display: block;
  328. width: 9px;
  329. height: 9px;
  330. border: 1px solid #02a7f0;
  331. border-radius: 50%;
  332. position: absolute;
  333. top: 5px;
  334. left: 0px;
  335. }
  336. .conference-recommend-top .title{
  337. flex: 1;
  338. color: #02a7f0;
  339. }
  340. .time{
  341. width: 76px;
  342. color: #555;
  343. position: relative;
  344. padding-right: 15px;
  345. margin-right: 15px;
  346. }
  347. .time::after{
  348. width: 1px;
  349. height: 12px;
  350. background: #555;
  351. content: '';
  352. display: block;
  353. position: absolute;
  354. top: 5px;
  355. right: 0;
  356. }
  357. .conference-recommend .time{
  358. margin-right: 0;
  359. }
  360. .conference-recommend .time::after{
  361. width: 0px;
  362. }
  363. .conference-recommend-body{
  364. display: flex;
  365. color: #aaa;
  366. padding: 12px 0;
  367. }
  368. .conference-recommend-body .place{
  369. font-size: 12px;
  370. width: 100px;
  371. border-right: 1px dotted #f2f2f2;
  372. text-align: right;
  373. line-height: 24px;
  374. padding: 0 12px;
  375. }
  376. .conference-recommend .introduction{
  377. font-size: 12px;
  378. -webkit-box-flex: 1;
  379. -ms-flex: 1;
  380. flex: 1;
  381. margin: 0 10px;
  382. position: relative;
  383. line-height: 20px;
  384. overflow: hidden;
  385. height: 84px;
  386. }
  387. .conference-recommend-list li{
  388. margin-bottom: 30px;
  389. cursor: pointer;
  390. }
  391. .conference-recommend-list li img{
  392. width: 100%;
  393. }
  394. .conference-recommend-list li p{
  395. margin: 20px 0;
  396. }
  397. .conference-recommend-list li:hover p{
  398. color: #2c558a;
  399. }
  400. .conference-detail-other{
  401. margin-top: 40px;
  402. position: relative;
  403. }
  404. .el-button{
  405. font-size: 24px;
  406. }
  407. .confrence-item-header{
  408. font-size: 18px;
  409. line-height: 18px;
  410. font-weight: bold;
  411. margin-top: 20px;
  412. margin-bottom: 20px;
  413. border-left: 8px solid #02a7f0;
  414. padding-left: 10px;
  415. }
  416. .conference-news-box{
  417. padding: 0 50px;
  418. }
  419. .conference-news-list li{
  420. display: flex;
  421. padding: 20px 0;
  422. color: #666;
  423. cursor: pointer;
  424. border-bottom: 1px solid #999;
  425. }
  426. .conference-news-list li p{
  427. flex: 1;
  428. margin: 0;
  429. /* width: 100%;
  430. overflow: hidden;
  431. text-overflow: ellipsis;
  432. white-space: nowrap; */
  433. font-size: 16px;
  434. }
  435. .conference-news-list li:hover p{
  436. color: #dd511b;
  437. }
  438. .conference-news-list li span{
  439. width: 100px;
  440. text-align: right;
  441. font-size: 16px;
  442. }
  443. /deep/ .el-carousel{
  444. height: 800px;
  445. width: 600px;
  446. margin: 0 auto;
  447. }
  448. /deep/ .el-carousel__container{
  449. height: 800px;
  450. }
  451. /deep/ .el-carousel__item{
  452. height: 800px;
  453. }
  454. /deep/ .el-carousel__item img{
  455. max-width: 100%;
  456. max-height: 100%;
  457. }
  458. /deep/ .el-carousel__indicator--horizontal {
  459. padding: 0 3px;
  460. }
  461. /deep/ .el-carousel__button {
  462. width: 8px;
  463. height: 8px;
  464. background-color: #999;
  465. border-radius: 100%;
  466. }
  467. /deep/ .is-active .el-carousel__button{
  468. background: #3a8ee6;
  469. }
  470. .agenda-title{
  471. font-size: 20px;
  472. line-height: 42px;
  473. height: 42px;
  474. cursor: pointer;
  475. color: #02a7f0;
  476. font-weight: bold;
  477. text-decoration: none;
  478. border-bottom: 2px solid #02a7f0;
  479. font-style: italic;
  480. }
  481. .agenda-title:hover{
  482. color: #d55421;
  483. border-bottom-color: #d55421;
  484. }
  485. .recommend-no-data{
  486. width: 100%;
  487. height: 100%;
  488. }
  489. .recommend-no-data img{
  490. margin-top: 50%;
  491. margin-left: 50%;
  492. transform: translate(-50%, -50%);
  493. }
  494. .sign-up-btn /deep/ .el-button{
  495. background-color: #1b3c85;
  496. border-color: #1b3c85;
  497. color: #fff;
  498. }
  499. .sign-up-btn /deep/ .el-button:hover{
  500. opacity: 0.9;
  501. }
  502. .sign-up-btn .link{
  503. color: #209bd3;
  504. border-bottom: 1px solid #209bd3;
  505. cursor: pointer;
  506. }
  507. .sign-up-btn .link:hover{
  508. color: #d85221;
  509. border-color: #d85221;
  510. }
  511. </style>