home.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. <template>
  2. <div class="home" :class="userType != 22&&initPage == 'true' ? 'home-class' : ''" >
  3. <home-navbar />
  4. <div class="max-big-home-box" v-if="userType != 22&&initPage == 'true'">
  5. <homeSubPageKYDXNH v-if="versionField() === 'kuangYeDaXue_nanHu'"></homeSubPageKYDXNH>
  6. <homeSubPagePublic v-else></homeSubPagePublic>
  7. </div>
  8. <backAnimation v-if="userType != '22'&&initPage == 'true'"></backAnimation>
  9. </div>
  10. </template>
  11. <script>
  12. import backAnimation from "@/components/backAnimation/backAnimation"
  13. import homeNavbar from './homeNavbar.vue'
  14. import homeSubPagePublic from './differenceComponent/homeSubPagePublic.vue'
  15. import homeSubPageKYDXNH from './differenceComponent/homeSubPageKYDXNH.vue'
  16. export default {
  17. name: "home",
  18. components: {
  19. homeNavbar,
  20. backAnimation,
  21. homeSubPagePublic,
  22. homeSubPageKYDXNH
  23. },
  24. data() {
  25. return {
  26. userType:localStorage.getItem('userType'),
  27. initPage:localStorage.getItem('initPage'),
  28. };
  29. },
  30. created(){
  31. },
  32. mounted(){
  33. let self =this
  34. this.routeData = JSON.parse(localStorage.getItem("routeData"))
  35. if(localStorage.getItem('initPage') == 'true'){
  36. if(localStorage.getItem('userType') == '22'){
  37. for(let i=0;i<self.routeData.length;i++){
  38. if(!self.routeData[i].hidden&&self.routeData[i].name != 'Https://www.sxitdlc.com'){
  39. if (self.routeData[i].children){
  40. for(let o=0;o<self.routeData[i].children.length;o++){
  41. if(!self.routeData[i].children[o].alwaysShow&&!self.routeData[i].children[o].hidden){
  42. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path;
  43. this.$router.push({ path: urlText });
  44. return
  45. }else{
  46. if(self.routeData[i].children[o].children){
  47. for(let x=0;x<self.routeData[i].children[o].children.length;x++){
  48. if(!self.routeData[i].children[o].children[x].alwaysShow&&!self.routeData[i].children[o].children[x].hidden){
  49. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path + '/' + self.routeData[i].children[o].children[x].path;
  50. this.$router.push({ path: urlText });
  51. return
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. }else{
  62. for(let i=0;i<self.routeData.length;i++){
  63. if(!self.routeData[i].hidden&&self.routeData[i].name != 'Https://www.sxitdlc.com'){
  64. if (self.routeData[i].children){
  65. for(let o=0;o<self.routeData[i].children.length;o++){
  66. if(!self.routeData[i].children[o].alwaysShow&&!self.routeData[i].children[o].hidden){
  67. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path;
  68. this.$router.push({ path: urlText });
  69. return
  70. }else{
  71. if(self.routeData[i].children[o].children){
  72. for(let x=0;x<self.routeData[i].children[o].children.length;x++){
  73. if(!self.routeData[i].children[o].children[x].alwaysShow&&!self.routeData[i].children[o].children[x].hidden){
  74. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path + '/' + self.routeData[i].children[o].children[x].path;
  75. this.$router.push({ path: urlText });
  76. return
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. },
  87. methods: {
  88. //跳转按钮
  89. goPage(type,title){
  90. let self = this;
  91. if(type == 'null'){
  92. this.$alert(title+'暂未开放', {
  93. confirmButtonText: '确定',
  94. callback: action => {}
  95. });
  96. return
  97. }
  98. if(type == 'Https://www.sxitdlc.com'){
  99. for(let i=0;i<self.routeData.length;i++){
  100. if(type == self.routeData[i].name){
  101. window.open(localStorage.getItem('screenUrl') + '?identity=' + localStorage.getItem('identity'));
  102. return
  103. }
  104. }
  105. this.$alert('没有"'+title+'"系统权限,如有疑问,请联系管理员', {
  106. confirmButtonText: '确定',
  107. callback: action => {}
  108. });
  109. }
  110. //寻找跳转目标路由
  111. let num = 0;
  112. for(let i=0;i<self.routeData.length;i++){
  113. if(type == self.routeData[i].name){
  114. num++
  115. if(!self.routeData[i].alwaysShow&&!self.routeData[i].hidden){
  116. let urlText = self.routeData[i].path;
  117. this.$router.push({ path: urlText });
  118. return
  119. }else if (self.routeData[i].children){
  120. for(let o=0;o<self.routeData[i].children.length;o++){
  121. if(!self.routeData[i].children[o].alwaysShow&&!self.routeData[i].children[o].hidden){
  122. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path;
  123. this.$router.push({ path: urlText });
  124. return
  125. }else{
  126. if(self.routeData[i].children[o].children){
  127. for(let x=0;x<self.routeData[i].children[o].children.length;x++){
  128. if(!self.routeData[i].children[o].children[x].alwaysShow&&!self.routeData[i].children[o].children[x].hidden){
  129. let urlText = self.routeData[i].path + '/' + self.routeData[i].children[o].path + '/' + self.routeData[i].children[o].children[x].path;
  130. this.$router.push({ path: urlText });
  131. return
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. if(num == 0){
  141. this.$alert('没有"'+title+'"系统权限,如有疑问,请联系管理员', {
  142. confirmButtonText: '确定',
  143. callback: action => {}
  144. });
  145. }
  146. },
  147. },
  148. };
  149. </script>
  150. <style scoped lang="scss">
  151. /*@media screen and (min-height:10px){*/
  152. /*.display-none-one{*/
  153. /*display: none;*/
  154. /*}*/
  155. /*.max-bottom-box{*/
  156. /*.top-button-box{*/
  157. /*.top-margin{*/
  158. /*margin-top:20px!important;*/
  159. /*}*/
  160. /*}*/
  161. /*}*/
  162. /*}*/
  163. /*@media screen and (min-height:850px){*/
  164. /*.max-bottom-box{*/
  165. /*.top-button-box{*/
  166. /*.top-margin{*/
  167. /*margin-top:50px!important;*/
  168. /*}*/
  169. /*}*/
  170. /*}*/
  171. /*}*/
  172. /*@media screen and (min-height:900px){*/
  173. /*.max-bottom-box{*/
  174. /*.top-button-box{*/
  175. /*.top-margin{*/
  176. /*margin-top:100px!important;*/
  177. /*}*/
  178. /*}*/
  179. /*}*/
  180. /*}*/
  181. /*@media screen and (min-height:1000px){*/
  182. /*.display-none-one{*/
  183. /*display: block!important;*/
  184. /*}*/
  185. /*}*/
  186. @-webkit-keyframes centerButtonMover {
  187. 0% {
  188. transform:scale(1);
  189. }
  190. 30% {
  191. transform: rotate(0deg) scale(0.9);
  192. }
  193. 40% {
  194. transform: rotate(-5deg) scale(1);
  195. }
  196. 50% {
  197. transform: rotate(5deg) scale(1);
  198. }
  199. 60% {
  200. transform: rotate(-5deg) scale(1.1);
  201. }
  202. 70% {
  203. transform: rotate(0deg) scale(1.2);
  204. }
  205. 100% {
  206. transform: rotate(0deg) scale(1);
  207. }
  208. }
  209. @-webkit-keyframes centerMover {
  210. 0% {
  211. -webkit-transform: translateY(0);
  212. /*transform:scale(0.5px;*/
  213. }
  214. 50% {
  215. -webkit-transform: translateY(20px);
  216. /*transform:scale(0.5px;*/
  217. }
  218. 100% {
  219. -webkit-transform: translateY(0);
  220. /*transform:scale(0.6px;/*/
  221. }
  222. }
  223. @-webkit-keyframes ringMove {
  224. 0% {
  225. -webkit-transform: translateY(0px);
  226. /*transform:scale(0.5px;*/
  227. opacity:1;
  228. }
  229. 50% {
  230. -webkit-transform: translateY(20px);
  231. /*transform:scale(0.5px;*/
  232. opacity:0;
  233. }
  234. 100% {
  235. -webkit-transform: translateY(0);
  236. /*transform:scale(0.6px;/*/
  237. opacity:0;
  238. }
  239. }
  240. @-webkit-keyframes buttonMove{
  241. 50%{
  242. -webkit-transform:scale(0.8);
  243. transform:scale(0.8);
  244. -webkit-filter:brightness(90%)
  245. }
  246. 100%{
  247. -webkit-transform:scale(1);
  248. transform:scale(1);
  249. /*css3滤镜亮度百分比*/
  250. -webkit-filter:brightness(100%)
  251. }
  252. }
  253. .home-class{
  254. background-color: #004d8c;
  255. background-image:url("../assets/ZDimages/home/img_tydlpt_bg.png")!important;
  256. -webkit-background-size: 100%;
  257. background-size: 100%;
  258. }
  259. .home {
  260. height:100%;
  261. width:100%;
  262. flex:1;
  263. display: flex;
  264. flex-direction: column;
  265. overflow: hidden;
  266. position: relative;
  267. *{
  268. margin:0;
  269. }
  270. .max-big-home-box{
  271. position: relative;
  272. flex:1;
  273. overflow: hidden;
  274. .max-home-button-box{
  275. /*width:1462px;*/
  276. width:1300px;
  277. /*height:848px;*/
  278. height:760px;
  279. top:50%;
  280. left:50%;
  281. margin-top:-380px;
  282. margin-left:-650px;
  283. position: absolute;
  284. .max-home-box{
  285. /*background: #E65D6E;*/
  286. /*width:1462px;*/
  287. width:1300px;
  288. /*height:848px;*/
  289. height:760px;
  290. position: relative;
  291. display: flex;
  292. flex-direction: column;
  293. .img-1{
  294. position: absolute;
  295. /*width:863px;*/
  296. width:690px;
  297. /*height:504px;*/
  298. height:403px;
  299. top:191px;
  300. left:50%;
  301. margin-left:- 345px;
  302. -webkit-animation-name: centerMover;
  303. -webkit-animation-duration: 4s;
  304. -webkit-animation-iteration-count: infinite;
  305. -webkit-animation-delay: 0s;
  306. }
  307. .img-2{
  308. position: absolute;
  309. /*width:463px;*/
  310. width:370px;
  311. /*height:106px;*/
  312. height:84px;
  313. top:391px;
  314. left:50%;
  315. margin-left:- 185px;
  316. -webkit-animation-name: ringMove;
  317. -webkit-animation-duration: 2s;
  318. -webkit-animation-iteration-count: infinite;
  319. -webkit-animation-delay: 0s;
  320. }
  321. .img-3{
  322. position: absolute;
  323. /*width:493px;*/
  324. width:394px;
  325. /*height:107px;*/
  326. height:85px;
  327. top:319px;
  328. left:50%;
  329. margin-left:- 197px;
  330. -webkit-animation-name: ringMove;
  331. -webkit-animation-duration: 2s;
  332. -webkit-animation-iteration-count: infinite;
  333. -webkit-animation-delay: 0.2s;
  334. }
  335. .img-4{
  336. position: absolute;
  337. /*width:554px;*/
  338. width:443px;
  339. /*height:118px;*/
  340. height:94px;
  341. top:231px;
  342. left:50%;
  343. margin-left:- 221px;
  344. -webkit-animation-name: ringMove;
  345. -webkit-animation-duration: 2s;
  346. -webkit-animation-iteration-count: infinite;
  347. -webkit-animation-delay: 0.4s;
  348. }
  349. .img-5{
  350. position: absolute;
  351. width:394px;
  352. /*width:493px;*/
  353. /*height:107px;*/
  354. height:85px;
  355. /*width:644px;*/
  356. /*height:118px;*/
  357. top:141px;
  358. left:50%;
  359. //margin-left:-322px;
  360. margin-left:- 197px;
  361. -webkit-animation-name: ringMove;
  362. -webkit-animation-duration: 2s;
  363. -webkit-animation-iteration-count: infinite;
  364. -webkit-animation-delay: 0.6s;
  365. }
  366. .img-6{
  367. position: absolute;
  368. width:354px;
  369. /*width:443px;*/
  370. /*height:106px;*/
  371. height:84px;
  372. /*width:734px;*/
  373. /*height:118px;*/
  374. top:051px;
  375. left:50%;
  376. //margin-left:-367px;
  377. margin-left:- 177px;
  378. -webkit-animation-name: ringMove;
  379. -webkit-animation-duration: 2s;
  380. -webkit-animation-iteration-count: infinite;
  381. -webkit-animation-delay: 0.8s;
  382. }
  383. .max-bottom-box{
  384. width:1300px;
  385. margin:0 auto;
  386. flex:1;
  387. display: flex;
  388. flex-direction: column;
  389. .top-button-box{
  390. display: flex;
  391. .left-box{
  392. .position-button{
  393. width:297px;
  394. height:136px;
  395. cursor: pointer;
  396. position: relative;
  397. z-index:5;
  398. img{
  399. width:297px;
  400. height:136px;
  401. }
  402. p{
  403. position: absolute;
  404. top:43px;
  405. left:142px;
  406. text-align: center;
  407. font-size:18px;
  408. line-height:18px;
  409. background: linear-gradient(to top, #06F6F7 , #FFFFFF );
  410. -webkit-background-clip: text;
  411. color: transparent;
  412. }
  413. }
  414. .position-button:nth-child(1){
  415. margin-top:0;
  416. }
  417. .position-button:nth-child(2){
  418. margin:55px 0 0 40px;
  419. }
  420. .position-button:nth-child(3){
  421. margin:55px 0 0 80px;
  422. }
  423. }
  424. .center-box{
  425. flex:1;
  426. .position-button{
  427. width:147px;
  428. height:105px;
  429. cursor: pointer;
  430. position: relative;
  431. z-index:5;
  432. margin:0 auto 0;
  433. -webkit-animation-name: centerButtonMover;
  434. -webkit-animation-duration: 3s;
  435. -webkit-animation-iteration-count: infinite;
  436. -webkit-animation-delay: 0s;
  437. img{
  438. width:147px;
  439. height:105px;
  440. }
  441. p{
  442. position: absolute;
  443. top:66px;
  444. left:30px;
  445. text-align: center;
  446. font-size:18px;
  447. line-height:18px;
  448. background: linear-gradient(to top, #06F6F7 , #FFFFFF );
  449. -webkit-background-clip: text;
  450. color: transparent;
  451. }
  452. }
  453. }
  454. .right-box{
  455. .position-button{
  456. width:297px;
  457. height:136px;
  458. cursor: pointer;
  459. z-index:5;
  460. position: relative;
  461. img{
  462. width:297px;
  463. height:136px;
  464. }
  465. p{
  466. position: absolute;
  467. top:43px;
  468. left:56px;
  469. text-align: center;
  470. font-size:18px;
  471. line-height:18px;
  472. background: linear-gradient(to top, #06F6F7 , #FFFFFF );
  473. -webkit-background-clip: text;
  474. color: transparent;
  475. }
  476. }
  477. .position-button:nth-child(1){
  478. margin:0 0 0 80px;
  479. }
  480. .position-button:nth-child(2){
  481. margin:55px 0 0 40px;
  482. }
  483. .position-button:nth-child(3){
  484. margin-top:55px;
  485. }
  486. }
  487. }
  488. .center-button-box{
  489. flex:1;
  490. }
  491. .bottom-button-box{
  492. display: flex;
  493. .null-button{
  494. flex:1;
  495. }
  496. .position-button{
  497. width:140px;
  498. height:200px;
  499. cursor: pointer;
  500. z-index:5;
  501. position: relative;
  502. img{
  503. width:140px;
  504. height:230px;
  505. }
  506. p{
  507. position: absolute;
  508. top:154px;
  509. /*left:34px;*/
  510. width:140px;
  511. text-align: center;
  512. font-size:18px;
  513. line-height:18px;
  514. background: linear-gradient(to top, #06F6F7 , #FFFFFF );
  515. -webkit-background-clip: text;
  516. color: transparent;
  517. }
  518. }
  519. .position-button:nth-child(2),
  520. .position-button:nth-child(3),
  521. .position-button:nth-child(4),
  522. .position-button:nth-child(5){
  523. margin-right:95px;
  524. }
  525. }
  526. .position-button:hover{
  527. -webkit-animation-name: buttonMove;
  528. -webkit-animation-duration: 1.5s;
  529. -webkit-animation-iteration-count: infinite;
  530. -webkit-animation-delay: 0s;
  531. }
  532. }
  533. }
  534. }
  535. }
  536. .bottom-null-box{
  537. height:60px;
  538. }
  539. }
  540. </style>