Zhongqiu.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. <template>
  2. <div class="banner" v-if="isClose">
  3. <div class="banner-modal">
  4. <div class="banner-img">
  5. <img src="/images/zhongqiu/zq1.png" />
  6. <img src="/images/zhongqiu/zq2.png" />
  7. <img src="/images/zhongqiu/zq3.png" />
  8. <img src="/images/zhongqiu/zq4.png" />
  9. <img src="/images/zhongqiu/zq5.png" />
  10. <img src="/images/zhongqiu/zq6.png" />
  11. <img src="/images/zhongqiu/zq7.png" />
  12. <img src="/images/zhongqiu/zq8.png" />
  13. <img src="/images/zhongqiu/zq9.png" />
  14. <img src="/images/zhongqiu/zq10.png" />
  15. <img src="/images/zhongqiu/zq11.png" />
  16. <img src="/images/zhongqiu/zq12.png" />
  17. <img src="/images/zhongqiu/zq13.png" />
  18. <a @click="isOpendZq" href="javascript:void(0)">×</a>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'zhongqiu',
  26. data () {
  27. return {
  28. isClose: false
  29. }
  30. },
  31. beforeMount () {
  32. var self = this
  33. setTimeout(getTotelNumber, 10000)
  34. function getTotelNumber () {
  35. self.isOpendZq()
  36. }
  37. getTotelNumber()
  38. },
  39. mounted () {
  40. const endTime = window.localStorage.getItem('endTime')
  41. const overTime = new Date('2017/10/9 00:00:00').getTime()
  42. if (overTime - (new Date().getTime()) > 0) {
  43. if (endTime) {
  44. if (new Date().getTime() - endTime >= 4 * 3600000) {
  45. this.isClose = true
  46. window.localStorage.setItem('endTime', new Date().getTime())
  47. } else {
  48. this.isClose = false
  49. }
  50. } else {
  51. this.isClose = true
  52. window.localStorage.setItem('endTime', new Date().getTime())
  53. }
  54. }
  55. },
  56. methods: {
  57. isOpendZq () {
  58. this.isClose = false
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped>
  64. .banner{
  65. width:100%;
  66. height:100%;
  67. top: 0;
  68. left: 0;
  69. position:fixed;
  70. z-index:3000;
  71. }
  72. .banner-modal{
  73. background: rgba(0,0,0,.6);
  74. width:2000px;
  75. height:1100px;
  76. }
  77. .banner-img{
  78. position:absolute;
  79. top:10%;
  80. left:50%;
  81. width:900px;
  82. margin-left:-450px;
  83. }
  84. .banner-img img{
  85. display:block;
  86. width:900px;
  87. position:absolute;
  88. top:0;
  89. left:0;
  90. }
  91. .banner-img a{
  92. display:block;
  93. width:30px;
  94. height:30px;
  95. line-height:30px;
  96. font-size:20px;
  97. background: #ffffff;
  98. border-radius:50%;
  99. text-align: center;
  100. color:#d8d4d4;
  101. position:absolute;
  102. top:0;
  103. right:0;
  104. z-index:5000;
  105. }
  106. .banner-img a:hover{
  107. cursor:pointer;
  108. }
  109. img:nth-child(1){
  110. z-index:120;
  111. -webkit-transform-origin: 200px 100px;
  112. -moz--transform-origin: 200px 100px;
  113. -ms--transform-origin: 200px 100px;
  114. -o--transform-origin: 200px 100px;
  115. transform-origin:130px 150px;
  116. -webkit-animation: animation1 8s linear;
  117. -moz-animation: animation1 8s linear;
  118. -ms-animation: animation1 8s linear;
  119. -o-animation: animation1 8s linear;
  120. animation: animation1 8s linear;
  121. }
  122. img:nth-child(2){
  123. z-index:110;
  124. -webkit-animation: animation2 8s linear;
  125. -moz-animation: animation2 8s linear;
  126. -ms-animation: animation2 8s linear;
  127. -o-animation: animation2 8s linear;
  128. animation: animation2 8s linear;
  129. }
  130. img:nth-child(3){z-index:20;
  131. -webkit-animation: animation3 8s linear;
  132. -moz-animation: animation3 8s linear;
  133. -ms-animation: animation3 8s linear;
  134. -o-animation: animation3 8s linear;
  135. animation: animation3 8s linear;
  136. }
  137. img:nth-child(4){z-index:30;
  138. -webkit-animation: animation4 8s linear;
  139. -moz-animation: animation4 8s linear;
  140. -ms-animation: animation4 8s linear;
  141. -o-animation: animation4 8s linear;
  142. animation: animation4 8s linear;
  143. }
  144. img:nth-child(5){
  145. z-index:100;
  146. -webkit-animation: animation5 8s linear;
  147. -moz-animation: animation5 8s linear;
  148. -ms-animation: animation5 8s linear;
  149. -o-animation: animation5 8s linear;
  150. animation: animation5 8s linear;
  151. }
  152. img:nth-child(6){z-index:90;
  153. -webkit-animation: animation6 8s linear;
  154. -moz-animation: animation6 8s linear;
  155. -ms-animation: animation6 8s linear;
  156. -o-animation: animation6 8s linear;
  157. animation: animation6 8s linear;
  158. }
  159. img:nth-child(7){z-index:10;
  160. -webkit-transform-origin: 270px 450px;
  161. -moz--transform-origin: 270px 450px;
  162. -ms--transform-origin: 270px 450px;
  163. -o--transform-origin: 270px 450px;
  164. transform-origin:270px 500px;
  165. -webkit-animation: animation7 8s linear;
  166. -moz-animation: animation7 8s linear;
  167. -ms-animation: animation7 8s linear;
  168. -o-animation: animation7 8s linear;
  169. animation: animation7 8s linear;
  170. }
  171. img:nth-child(8){z-index:130;
  172. -webkit-animation: animation8 8s linear;
  173. -moz-animation: animation8 8s linear;
  174. -ms-animation: animation8 8s linear;
  175. -o-animation: animation8 8s linear;
  176. animation: animation8 8s linear;
  177. }
  178. img:nth-child(9){z-index:40;
  179. -webkit-transform-origin: 200px 500px;
  180. -moz--transform-origin: 200px 500px;
  181. -ms--transform-origin: 200px 500px;
  182. -o--transform-origin: 200px 500px;
  183. transform-origin:200px 500px;
  184. -webkit-animation: animation9 8s linear;
  185. -moz-animation: animation9 8s linear;''
  186. -ms-animation: animation9 8s linear;
  187. -o-animation: animation9 8s linear;
  188. animation: animation9 8s linear;
  189. }
  190. img:nth-child(10){z-index:50;
  191. -webkit-transform-origin: 240px 500px;
  192. -moz--transform-origin: 240px 500px;
  193. -ms--transform-origin: 240px 500px;
  194. -o--transform-origin: 240px 500px;
  195. transform-origin:240px 500px;
  196. -webkit-animation: animation10 8s linear;
  197. -moz-animation: animation10 8s linear;
  198. -ms-animation: animation10 8s linear;
  199. -o-animation: animation10 8s linear;
  200. animation: animation10 8s linear;
  201. }
  202. img:nth-child(11){z-index:60;
  203. -webkit-transform-origin: 300px 500px;
  204. -moz--transform-origin: 300px 500px;
  205. -ms--transform-origin: 300px 500px;
  206. -o--transform-origin: 300px 500px;
  207. transform-origin:300px 500px;
  208. -webkit-animation: animation11 8s linear;
  209. -moz-animation: animation11 8s linear;
  210. -ms-animation: animation11 8s linear;
  211. -o-animation: animation11 8s linear;
  212. animation: animation11 8s linear;
  213. }
  214. img:nth-child(12){z-index:70;
  215. -webkit-transform-origin: 650px 500px;
  216. -moz--transform-origin: 650px 500px;
  217. -ms--transform-origin: 650px 500px;
  218. -o--transform-origin: 650px 500px;
  219. transform-origin:650px 500px;
  220. -webkit-animation: animation12 8s linear;
  221. -moz-animation: animation12 8s linear;
  222. -ms-animation: animation12 8s linear;
  223. -o-animation: animation12 8s linear;
  224. animation: animation12 8s linear;
  225. }
  226. img:nth-child(13){z-index:80;
  227. -webkit-transform-origin: 700px 500px;
  228. -moz--transform-origin: 700px 500px;
  229. -ms--transform-origin: 700px 500px;
  230. -o--transform-origin: 700px 500px;
  231. transform-origin:700px 500px;
  232. -webkit-animation: animation13 8s linear;
  233. -moz-animation: animation13 8s linear;
  234. -ms-animation: animation13 8s linear;
  235. -o-animation: animation13 8s linear;
  236. animation: animation13 8s linear;
  237. }
  238. @keyframes animation1{
  239. 0%{ opacity:0 ;
  240. -webkit-transform: rotate(60deg);
  241. -moz-transform: rotate(60deg);
  242. -ms-transform: rotate(60deg);
  243. -o-transform: rotate(60deg);
  244. transform: rotate(60deg)
  245. }
  246. 5%{ opacity:1;
  247. -webkit-transform: rotate(0deg);
  248. -moz-transform: rotate(0deg);
  249. -ms-transform: rotate(0deg);
  250. -o-transform: rotate(0deg);
  251. transform: rotate(0deg)
  252. }
  253. 100%{ opacity:1; }
  254. }
  255. @keyframes animation2{
  256. 0%{ opacity:0 ;
  257. }
  258. 5%{ opacity:0 ;
  259. }
  260. 10%{ opacity:1 ;
  261. }
  262. 100%{ opacity:1;
  263. }
  264. }
  265. @keyframes animation3{
  266. 0%{ opacity:0 ;
  267. }
  268. 5%{ opacity:0 ;
  269. -webkit-transform: scale(.5);
  270. -moz-transform: scale(.5);
  271. -ms-transform: scale(.5);
  272. -o-transform: scale(.5);
  273. transform: scale(.5)
  274. }
  275. 50%{ opacity:1 ;
  276. -webkit-transform: scale(1);
  277. -moz-transform: scale(1);
  278. -ms-transform: scale(1);
  279. -o-transform: scale(1);
  280. transform: scale(1);
  281. -webkit-transform: rotate(45deg);
  282. -moz-transform: rotate(45deg);
  283. -ms-transform: rotate(45deg);
  284. -o-transform: rotate(45deg);
  285. transform: rotate(45deg)
  286. }
  287. 100%{ opacity:1;
  288. -webkit-transform: rotate(0deg);
  289. -moz-transform: rotate(0deg);
  290. -ms-transform: rotate(0deg);
  291. -o-transform: rotate(0deg);
  292. transform: rotate(0deg)
  293. }
  294. }
  295. @keyframes animation4{
  296. 0%{ opacity:0 ;
  297. }
  298. 5%{ opacity:0 ;
  299. -webkit-transform: scale(.5);
  300. -moz-transform: scale(.5);
  301. -ms-transform: scale(.5);
  302. -o-transform: scale(.5);
  303. transform: scale(.5)
  304. }
  305. 50%{ opacity:1 ;
  306. -webkit-transform: scale(1);
  307. -moz-transform: scale(1);
  308. -ms-transform: scale(1);
  309. -o-transform: scale(1);
  310. transform: scale(1);
  311. -webkit-transform: rotate(-60deg);
  312. -moz-transform: rotate(-60deg);
  313. -ms-transform: rotate(-60deg);
  314. -o-transform: rotate(-60deg);
  315. transform: rotate(-60deg)
  316. }
  317. 100%{ opacity:1;
  318. -webkit-transform: rotate(0deg);
  319. -moz-transform: rotate(0deg);
  320. -ms-transform: rotate(0deg);
  321. -o-transform: rotate(0deg);
  322. transform: rotate(0deg)
  323. }
  324. }
  325. @keyframes animation5{
  326. 0%{ opacity:0 ;
  327. }
  328. 7%{ opacity:0 ;
  329. }
  330. 13%{ opacity:1 ;
  331. }
  332. 100%{ opacity:1;
  333. }
  334. }
  335. @keyframes animation6{
  336. 0%{ opacity:0 ;
  337. }
  338. 10%{ opacity:0 ;
  339. -webkit-transform: scale(.5);
  340. -moz-transform: scale(.5);
  341. -ms-transform: scale(.5);
  342. -o-transform: scale(.5);
  343. transform: scale(.5)
  344. }
  345. 40%{ opacity:1 ;
  346. -webkit-transform: scale(1);
  347. -moz-transform: scale(1);
  348. -ms-transform: scale(1);
  349. -o-transform: scale(1);
  350. transform: scale(1);
  351. -webkit-transform: rotate(60deg);
  352. -moz-transform: rotate(60deg);
  353. -ms-transform: rotate(60deg);
  354. -o-transform: rotate(60deg);
  355. transform: rotate(60deg)
  356. }
  357. 100%{ opacity:1;
  358. -webkit-transform: rotate(0deg);
  359. -moz-transform: rotate(0deg);
  360. -ms-transform: rotate(0deg);
  361. -o-transform: rotate(0deg);
  362. transform: rotate(0deg)
  363. }
  364. }
  365. @keyframes animation7{
  366. 0%{ opacity:0 ;
  367. }
  368. 30%{ opacity:0 ;
  369. }
  370. 45%{ opacity:1 ;
  371. -webkit-transform: rotate(-20deg);
  372. -moz-transform: rotate(-20deg);
  373. -ms-transform: rotate(-20deg);
  374. -o-transform: rotate(-20deg);
  375. transform: rotate(-20deg)
  376. }
  377. 60%{ opacity:1 ;
  378. -webkit-transform: rotate(20deg);
  379. -moz-transform: rotate(20deg);
  380. -ms-transform: rotate(20deg);
  381. -o-transform: rotate(20deg);
  382. transform: rotate(20deg)
  383. }
  384. 70%{ opacity:1 ;
  385. -webkit-transform: rotate(0deg);
  386. -moz-transform: rotate(0deg);
  387. -ms-transform: rotate(0deg);
  388. -o-transform: rotate(0deg);
  389. transform: rotate(0deg)
  390. }
  391. 100%{ opacity:1;
  392. }
  393. }
  394. @keyframes animation8{
  395. 0%{
  396. opacity:0;
  397. }
  398. 13%{ opacity:0 ;
  399. -webkit-transform:translateY(300px);
  400. -moz-transform:translateY(300px);
  401. -ms-transform:translateY(300px);
  402. -o-transform:translateY(300px);
  403. transform:translateY(300px);
  404. }
  405. 35%{ opacity:1 ;
  406. -webkit-transform:translateY(0px);
  407. -moz-transform:translateY(0px);
  408. -ms-transform:translateY(0px);
  409. -o-transform:translateY(0px);
  410. transform:translateY(0px);
  411. }
  412. 100%{ opacity:1;
  413. }
  414. }
  415. @keyframes animation9{
  416. 0%{ opacity:0 ;
  417. }
  418. 30%{ opacity:0 ;
  419. -webkit-transform: scale(0);
  420. -moz-transform: scale(0);
  421. -ms-transform: scale(0);
  422. -o-transform: scale(0);
  423. transform: scale(0);
  424. }
  425. 55%{ opacity:1 ;
  426. -webkit-transform: scale(.9);
  427. -moz-transform: scale(.9);
  428. -ms-transform: scale(.9);
  429. -o-transform: scale(.9);
  430. transform: scale(.9);
  431. }
  432. 60%{ opacity:1 ;
  433. -webkit-transform: scale(.7);
  434. -moz-transform: scale(.7);
  435. -ms-transform: scale(.7);
  436. -o-transform: scale(.7);
  437. transform: scale(.7);
  438. }
  439. 80%{ opacity:1 ;
  440. -webkit-transform: scale(1);
  441. -moz-transform: scale(1);
  442. -ms-transform: scale(1);
  443. -o-transform: scale(1);
  444. transform: scale(1);
  445. }
  446. 100%{ opacity:1;
  447. }
  448. }
  449. @keyframes animation10{
  450. 0%{ opacity:0 ;
  451. }
  452. 30%{ opacity:0 ;
  453. -webkit-transform: scale(0);
  454. -moz-transform: scale(0);
  455. -ms-transform: scale(0);
  456. -o-transform: scale(0);
  457. transform: scale(0);
  458. }
  459. 55%{ opacity:1 ;
  460. -webkit-transform: scale(.9);
  461. -moz-transform: scale(.9);
  462. -ms-transform: scale(.9);
  463. -o-transform: scale(.9);
  464. transform: scale(.9);
  465. }
  466. 60%{ opacity:1 ;
  467. -webkit-transform: scale(.7);
  468. -moz-transform: scale(.7);
  469. -ms-transform: scale(.7);
  470. -o-transform: scale(.7);
  471. transform: scale(.7);
  472. }
  473. 80%{ opacity:1 ;
  474. -webkit-transform: scale(1);
  475. -moz-transform: scale(1);
  476. -ms-transform: scale(1);
  477. -o-transform: scale(1);
  478. transform: scale(1);
  479. }
  480. 100%{ opacity:1;
  481. }
  482. }
  483. @keyframes animation11{
  484. 0%{ opacity:0 ;
  485. }
  486. 30%{ opacity:0 ;
  487. -webkit-transform: scale(0);
  488. -moz-transform: scale(0);
  489. -ms-transform: scale(0);
  490. -o-transform: scale(0);
  491. transform: scale(0);
  492. }
  493. 55%{ opacity:1 ;
  494. -webkit-transform: scale(.9);
  495. -moz-transform: scale(.9);
  496. -ms-transform: scale(.9);
  497. -o-transform: scale(.9);
  498. transform: scale(.9);
  499. }
  500. 60%{ opacity:1 ;
  501. -webkit-transform: scale(.7);
  502. -moz-transform: scale(.7);
  503. -ms-transform: scale(.7);
  504. -o-transform: scale(.7);
  505. transform: scale(.7);
  506. }
  507. 80%{ opacity:1 ;
  508. -webkit-transform: scale(1);
  509. -moz-transform: scale(1);
  510. -ms-transform: scale(1);
  511. -o-transform: scale(1);
  512. transform: scale(1);
  513. }
  514. 100%{ opacity:1;
  515. }
  516. }
  517. @keyframes animation12{
  518. 0%{ opacity:0 ;
  519. }
  520. 30%{ opacity:0 ;
  521. -webkit-transform: scale(0);
  522. -moz-transform: scale(0);
  523. -ms-transform: scale(0);
  524. -o-transform: scale(0);
  525. transform: scale(0);
  526. }
  527. 55%{ opacity:1 ;
  528. -webkit-transform: scale(.9);
  529. -moz-transform: scale(.9);
  530. -ms-transform: scale(.9);
  531. -o-transform: scale(.9);
  532. transform: scale(.9);
  533. }
  534. 60%{ opacity:1 ;
  535. -webkit-transform: scale(.7);
  536. -moz-transform: scale(.7);
  537. -ms-transform: scale(.7);
  538. -o-transform: scale(.7);
  539. transform: scale(.7);
  540. }
  541. 80%{ opacity:1 ;
  542. -webkit-transform: scale(1);
  543. -moz-transform: scale(1);
  544. -ms-transform: scale(1);
  545. -o-transform: scale(1);
  546. transform: scale(1);
  547. }
  548. 100%{ opacity:1;
  549. }
  550. }
  551. @keyframes animation13{
  552. 0%{ opacity:0 ;
  553. }
  554. 30%{ opacity:0 ;
  555. -webkit-transform: scale(0);
  556. -moz-transform: scale(0);
  557. -ms-transform: scale(0);
  558. -o-transform: scale(0);
  559. transform: scale(0);
  560. }
  561. 55%{ opacity:1 ;
  562. -webkit-transform: scale(.9);
  563. -moz-transform: scale(.9);
  564. -ms-transform: scale(.9);
  565. -o-transform: scale(.9);
  566. transform: scale(.9);
  567. }
  568. 60%{ opacity:1 ;
  569. -webkit-transform: scale(.7);
  570. -moz-transform: scale(.7);
  571. -ms-transform: scale(.7);
  572. -o-transform: scale(.7);
  573. transform: scale(.7);
  574. }
  575. 80%{ opacity:1 ;
  576. -webkit-transform: scale(1);
  577. -moz-transform: scale(1);
  578. -ms-transform: scale(1);
  579. -o-transform: scale(1);
  580. transform: scale(1);
  581. }
  582. 100%{ opacity:1;
  583. }
  584. }
  585. </style>