IntroductionAllianceOverview.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <template>
  2. <div>
  3. <!-- -->
  4. <div style="margin: 0 20px; margin-top: 15px;border-bottom: 1px solid #eeeeee;padding-top: 10px;" class="continents">
  5. <ul >
  6. <li v-for="(item,index) in initData"
  7. :key="'item'+index" class="cursor continentsItem"
  8. :class="bigIndex!==null ?index===bigIndex ? 'big':'min':''"
  9. @click="mouseOver($event,index)"
  10. :style="{backgroundImage: 'url('+getIconUrls(background_img[index])+')',backgroundSize: '100% 100%'}"
  11. >
  12. <div style="height: 285px;position: relative;">
  13. <img style="position: absolute;left: 0;right: 0;width: 100%;height: 285px;"
  14. :src="getIconUrl(background_img[index])" alt="" v-if="bigIndex==null && bigIndex!==index">
  15. <img style="position: absolute;left: 0;right: 0;width: 100%;height: 285px;"
  16. :src="getIconUrl(background_img2[index])" alt="" v-if="bigIndex!==null && bigIndex==index">
  17. </div>
  18. <div style="margin-top: 0px;color: #333333;padding: 40px 20px 0 20px;
  19. background:linear-gradient(#DAEAFF,#FFFFFF);" :style="bigIndex==null?'height: 370px':bigIndex!==index?'height:115px;overflow:hidden':'height: 383px'">
  20. <div style="width: 100%;text-align: center;padding-bottom: 15px;" class="background_img border">
  21. <div>
  22. <img :src="getIconUrl(item.img)" alt="" style="width: 62px;height: 62px;">
  23. </div>
  24. <div style="margin-top: 5px;">{{$t(item.lable)}}</div>
  25. </div>
  26. <div style="font-size: 14px;margin-top: 15px;overflow: hidden;
  27. text-overflow: ellipsis;white-space: wrap;line-height: 20px;"
  28. v-if="bigIndex==null">
  29. {{$t(item.establishment)}}
  30. </div>
  31. <div style="line-height: 30px;color: #666;font-size: 20px;margin-top: 10px; " v-if="bigIndex!==null && bigIndex==index">
  32. <div style="width:100%">
  33. <div style="display: inline-block;">
  34. <img :src="getIconImg2(backgroundImg)" alt="" style="width: 300px;height: 185px;">
  35. </div>
  36. <div style="display: inline-block;padding:0 0px; width: 54%;
  37. vertical-align: top; color: #333333;font-size: 14px;line-height: 24px;
  38. margin-left: 15px;"v-show="item.show">
  39. <span style="text-indent: 30px;display: inline-block;">{{$t(Details.label)}}</span>
  40. <span style="text-indent: 30px;display: inline-block;margin-top: 20px;
  41. color: #666;font-weight: 400;
  42. border: 1px solid #2C558A;padding: 10px;position: relative;">
  43. <div style="width: 150px;height: 5px;position: absolute;left: 110px;top: -4px;z-index: 99;background-color: #f1f7ff;"></div>
  44. <div style="width: 150px;height: 5px;position: absolute;left: 50px;bottom: -4px;z-index: 99;background-color: #fff;"></div>
  45. <div style="height: 72px; -webkit-box-orient: vertical;
  46. position:relative;
  47. line-height:1.4em;
  48. overflow: hidden;
  49. height:7em" class="plate">
  50. {{$t(Details.value)}}
  51. </div>
  52. </span>
  53. </div>
  54. <div style="display: inline-block;padding:0 20px;width: 54%;color: #333333;font-size: 14px;line-height: 24px;margin-left: 15px;">
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div style="height: 269px;" v-if="bigIndex!==null && bigIndex!==index">
  60. </div>
  61. <div class="apply">
  62. <span style="font-size: 14px;cursor: pointer;display: inline-block;width: 100%;height: 60px;
  63. border-radius: 0 0 12px 12px;line-height: 60px;text-align: center;color: #fff;"
  64. @click="goToView(index)" class="span">
  65. {{$t('common.EntertheAlliance')}}
  66. </span>
  67. </div>
  68. </li>
  69. </ul>
  70. </div>
  71. <div style="margin: 0 100px;position: relative;height: 80px;":style="bigIndex==null?'margin-top: 0':'margin-top: 100px'">
  72. <el-button type="primary" style="position: absolute;left: 50%;top: 20px;transform: translateX(-50%);
  73. background-color: #0E4891;width: 160px;height: 50px;"
  74. @click="nextChange"
  75. >{{$t('common.ApplyToJoin')}}</el-button>
  76. </div>
  77. <el-dialog
  78. :title="$i18n.locale=='zh'?'提示':'Reminder'"
  79. :visible.sync="toViewLogin"
  80. :width="$i18n.locale=='zh'?'500px':'750px'"
  81. :height="$i18n.locale=='zh'?'300px':'386px'"
  82. :before-close="toViewLoginChange"
  83. >
  84. <div style="width: 100%;height: 100%;">
  85. <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
  86. <div style="float: right;margin-right: 20px;" :style="$i18n.locale=='zh'?'width: 49%;margin-top: 10px;':'width: 453px;margin-top: -25px;'">
  87. <div style="font-size: 20px;font-weight: normal;color: #333333;
  88. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  89. line-height: 40px;">
  90. {{$t('common.ReminderFirst')}}
  91. </div>
  92. <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  93. font-weight: normal;color: #666666;line-height: 30px;">
  94. {{$t('common.ReminderSecond')}} <span style="color: #0091FF;font-size: 18px;">{{num}}</span> {{$t('common.ReminderThird')}}
  95. </div>
  96. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  97. font-weight: normal;color: #666666;line-height: 30px;">
  98. {{$t('common.ReminderForth')}}
  99. </div>
  100. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  101. height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
  102. <span style="margin-left: 40px;" class="cursor" @click="toViewLoginCh('login')">
  103. {{$t('common.ReminderFifth')}}
  104. </span>
  105. <span style="margin-left: 10px;" class="cursor" @click="toViewLoginCh('Register')">
  106. {{$t('common.ReminderSixth')}}
  107. </span>
  108. </div>
  109. </div>
  110. </div>
  111. </el-dialog>
  112. </div>
  113. </template>
  114. <script>
  115. export default {
  116. name: 'IntroductionMembershipApplication',
  117. data () {
  118. return {
  119. enterpriseDetails:'',
  120. toViewLogin:false,
  121. loop:false,
  122. timer:'',
  123. Details: {},
  124. time:undefined,
  125. bigIndex:null,
  126. num:0,
  127. show:false,
  128. background_img:[
  129. 'daxue.png',
  130. 'ziku.png',
  131. 'jinrong.png',
  132. 'zhuangbei.png'
  133. ],
  134. background_img2:[
  135. 'daxueIcon2.png',
  136. 'zikuIcon2.png',
  137. 'jinrongIcon2.png',
  138. 'zhuangbeiIcon2.png'
  139. ],
  140. backgroundImg:'university.png',
  141. initData:[{
  142. lable:'common.UniversityAlliance',
  143. img:'daxueIcon.png',
  144. establishment:'common.Universityestablishment',
  145. purpose:'common.Universitypurpose',
  146. Alliance:'common.UniversityAlliances',
  147. show:false
  148. },{
  149. lable:'common.ThinkTankAlliance',
  150. img:'zikuIcon.png',
  151. establishment:'common.ThinkTankestablishment',
  152. purpose:'common.ThinkTankpurpose',
  153. Alliance:'common.ThinkTankAlliances',
  154. show:false
  155. },{
  156. lable:'common.FinancialAlliance',
  157. img:'jinrongIcon.png',
  158. establishment:'common.Financialestablishment',
  159. purpose:'common.Financialpurpose',
  160. Alliance:'common.FinancialAlliances',
  161. show:false
  162. },{
  163. lable:'common.EquipmentAlliance',
  164. img:'zhuangbeiIcon.png',
  165. establishment:'common.Equipmentestablishment',
  166. purpose:'common.Equipmentpurpose',
  167. Alliance:'common.EquipmentAlliances',
  168. show:false
  169. }]
  170. }
  171. },
  172. created(){
  173. this.enterpriseDetails=this.$route.params.key
  174. },
  175. mounted(){
  176. },
  177. updated() {
  178. this.Swiper();
  179. },
  180. watch:{
  181. toViewLogin() {
  182. if (this.toViewLogin == true) {
  183. this.loginTipsChange();
  184. }
  185. },
  186. },
  187. methods:{
  188. mouseOver($event,index){
  189. const that =this;
  190. if(that.bigIndex==index){
  191. that.bigIndex=null;
  192. }else {
  193. that.bigIndex=index;
  194. }
  195. this.initData.forEach(element => {
  196. element.show=false;
  197. });
  198. setTimeout(() => {
  199. this.initData[index].show=!this.initData[index].show;
  200. },300)
  201. // $event.currentTarget.className = 'big';
  202. if (index == 0) {
  203. this.Details = {
  204. label: "common.GoalUniversitylabel",
  205. value: 'common.GoalUniversityvalue',
  206. establishment:'common.Universityestablishment',
  207. purpose:'common.Universitypurpose',
  208. Alliance:'common.UniversityAlliances',
  209. }
  210. this.backgroundImg = 'university.png';
  211. this.img = 'IntroductionUniversity.png';
  212. } else if (index == 1) {
  213. this.Details = {
  214. label: "common.GoalThinkTanklabel",
  215. value: 'common.GoalThinkTankvalue',
  216. establishment:'common.ThinkTankestablishment',
  217. purpose:'common.ThinkTankpurpose',
  218. Alliance:'common.ThinkTankAlliances',
  219. }
  220. this.backgroundImg = 'Thinkanks.png'
  221. this.img = 'IntroductionThinkTanks.png';
  222. } else if (index == 2) {
  223. this.Details = {
  224. label: "common.GoalFinanciallabel",
  225. value: 'common.GoalFinancialvalue',
  226. establishment:'common.Financialestablishment',
  227. purpose:'common.Financialpurpose',
  228. Alliance:'common.FinancialAlliances',
  229. }
  230. this.backgroundImg = 'finances.png'
  231. this.img = 'IntroductionFinance.png';
  232. } else if (index == 3) {
  233. this.Details = {
  234. label: "common.GoalEquipmentlabel",
  235. value: 'common.GoalEquipmentvalue',
  236. establishment:'common.Equipmentestablishment',
  237. purpose:'common.Equipmentpurpose',
  238. Alliance:'common.EquipmentAlliances',
  239. }
  240. this.backgroundImg = 'equipments.png'
  241. this.img = 'IntroductioneEuipment.png';
  242. }
  243. },
  244. mouseout(e,index){
  245. const that =this;
  246. that.bigIndex=null;
  247. },
  248. getIconImg2(url) {
  249. return require("@/assets/img/introductionCooperation/" + this.backgroundImg);
  250. },
  251. Swiper(){
  252. var swiper = new Swiper('.swiper-container', {
  253. slidesPerView: 3,
  254. spaceBetween: 30,
  255. centeredSlides: true,
  256. loop: true,
  257. pagination: {
  258. el: '.swiper-pagination',
  259. clickable: true,
  260. },
  261. });
  262. },
  263. goToView(index){
  264. this.toView('IntroductionEquipmentAlliance',index)
  265. // if(index==0){
  266. // this.toView('IntroductionUniversityAlliance','') //大学联盟
  267. // }else if(index==1){
  268. // this.toView('IntroductionThinkTankAlliance','')//智库联盟
  269. // }else if(index==2){
  270. // this.toView('IntroductionFinancialUnion','')//金融联盟
  271. // }else {
  272. // this.toView('IntroductionEquipmentAlliance','')//装备联盟
  273. // }
  274. },
  275. //跳转登录
  276. toViewLoginCh(router){
  277. clearInterval(this.timer);
  278. this.$router.push(router);
  279. },
  280. loginTipsChange() {
  281. const that = this;
  282. this.num = 10;
  283. clearInterval(that.timer);
  284. this.timer = setInterval(function () {
  285. if (that.num > 0) {
  286. that.num--;
  287. console.log(that.num)
  288. } else {
  289. if (that.toViewLogin == true) {
  290. clearInterval(that.timer);
  291. that.toViewLoginCh("login");
  292. } else {
  293. clearInterval(that.timer);
  294. }
  295. }
  296. }, 1000);
  297. },
  298. // 判断未登录跳转是否关闭
  299. toViewLoginChange(done){
  300. this.toViewLogin=false;
  301. this.num=10;
  302. clearInterval(this.timer);
  303. },
  304. nextChange(){
  305. if (!this.$Cookies.get('token')) {
  306. this.toViewLogin=true;
  307. } else {
  308. this.toView('IntroductionApplicationMembership')
  309. }
  310. },
  311. getIconUrl(url){
  312. return require("@/assets/img/introductionCooperation/"+url);
  313. // @/assets/imgin/troductionCooperation/jinrong.png
  314. },
  315. getIconUrls(url){
  316. return require("@/assets/img/introductionCooperation/"+url);
  317. // @/assets/imgin/troductionCooperation/jinrong.png
  318. },
  319. toView(router,json){
  320. this.$router.push({name:router,query:{id:json}})
  321. },
  322. screenBack(data){
  323. console.log(data,'screenBackscreenBackscreenBackscreenBack')
  324. },
  325. screen(i){
  326. this.index=i
  327. }
  328. }
  329. }
  330. </script>
  331. <!-- Add "scoped" attribute to limit CSS to this component only -->
  332. <style scoped>
  333. .box {
  334. margin-top: 10px;
  335. background: #fff;
  336. /* height: 500px; */
  337. padding: 20px 0;
  338. }
  339. .crumbs {
  340. margin-left: 20px;
  341. }
  342. body {
  343. margin: 0;
  344. }
  345. .continents ul {
  346. text-align: top;
  347. display: flex;
  348. display: -webkit-flex; /* Safari */
  349. justify-content:space-between;
  350. flex-wrap:wrap;
  351. }
  352. .continents ul li {
  353. width: 275px;
  354. background: #fff;
  355. color: #999;
  356. }
  357. /* .background_img {
  358. background: url('@/ass');
  359. } */
  360. .continents ul li:nth-of-type(1) .border{
  361. border-bottom: 2px solid #07a9fc;
  362. }
  363. .continents ul li:nth-of-type(3) .border{
  364. border-bottom: 2px solid #f7b500;
  365. }
  366. .continents ul li:nth-of-type(2) .border{
  367. border-bottom: 2px solid #6dd400;
  368. }
  369. .continents ul li:nth-of-type(4) .border{
  370. border-bottom: 2px solid #43d7b5;
  371. }
  372. .continents ul li .button {
  373. position:absolute;
  374. left:50%;
  375. bottom:0;
  376. transform:translate(-50%,0);
  377. width: 100px;
  378. height: 30px;
  379. text-align: center;
  380. line-height: 30px;
  381. border: 1px solid #bcbcbc;
  382. font-size: 14px;
  383. border-radius: 5px;
  384. box-shadow:5px 5px 5px #f1f1f1 ;
  385. }
  386. .continents ul li:nth-of-type(1) .span{
  387. background-color: #60A0F4;
  388. }
  389. .continents ul li:nth-of-type(2) .span{
  390. background-color: #5DB724;
  391. }
  392. .continents ul li:nth-of-type(3) .span{
  393. background-color: #FFC001;
  394. }
  395. .continents ul li:nth-of-type(4) .span{
  396. background-color: #44D7B6;
  397. }
  398. .el-carousel__item h3 {
  399. color: #475669;
  400. font-size: 14px;
  401. opacity: 0.75;
  402. line-height: 200px;
  403. margin: 0;
  404. }
  405. /* .continentsLi {
  406. border: 1px solid #000;
  407. } */
  408. .continentsLi:nth-child(1) {
  409. background: url('../../assets/img/introductionCooperation/IntroductionUniversity.png') 100% 100% no-repeat;
  410. }
  411. .el-carousel__item {
  412. background-color: #99a9bf;
  413. width: 120px;
  414. }
  415. .el-carousel__item:nth-child(2n+1) {
  416. background-color: #d3dce6;
  417. }
  418. .swiper-container {
  419. width: 100%;
  420. height: 100%;
  421. }
  422. .swiper-slide {
  423. text-align: center;
  424. font-size: 18px;
  425. background: #fff;
  426. /* Center slide text vertically */
  427. display: -webkit-box;
  428. display: -ms-flexbox;
  429. display: -webkit-flex;
  430. display: flex;
  431. -webkit-box-pack: center;
  432. -ms-flex-pack: center;
  433. -webkit-justify-content: center;
  434. justify-content: center;
  435. -webkit-box-align: center;
  436. -ms-flex-align: center;
  437. -webkit-align-items: center;
  438. align-items: center;
  439. transition: 300ms;
  440. transform: scale(0.8);
  441. }
  442. .big{
  443. width: 750px !important;
  444. height: 700px;
  445. transition:all 300ms;
  446. -webkit-backface-visibility: hidden;
  447. -webkit-transform-style: preserve-3d;
  448. }
  449. .min{
  450. width: 120px !important;
  451. height: 718px;
  452. transition:all 300ms;
  453. -webkit-backface-visibility: hidden;
  454. -webkit-transform-style: preserve-3d;
  455. }
  456. .el-carousel__item--card.is-active {
  457. transform:translateX(0)!important;
  458. height:735px;
  459. width:779px;
  460. }
  461. </style>