RightContent.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <template>
  2. <div class="OneContent">
  3. <cart-item title="要素效益">
  4. <title-card7 :icon="require('@/assets/images/bj/icon-2.png')" title="宏观经济" color="#299DF6" style="margin-top: 5px"/>
  5. <div class="main-box">
  6. <div class="item" :class="{selected:currentActive=='czhl'}">
  7. <div class="item-top">GDP</div>
  8. <div class="item-bottom">
  9. <span>{{ 2467.9 }}</span>亿
  10. </div>
  11. </div>
  12. <div class="item" :class="{selected:currentActive=='gdpzs'}">
  13. <div class="item-top">GDP增速</div>
  14. <div class="item-bottom">
  15. <span>{{ 8.0 }}</span>%
  16. </div>
  17. </div>
  18. <div class="item" :class="{selected:currentActive=='gdzctzzs'}">
  19. <div class="item-top">固定资产投资增速</div>
  20. <div class="item-bottom">
  21. <span>{{ 5 }}</span>%
  22. </div>
  23. </div>
  24. <div class="item" :class="{selected:currentActive=='gmysgyzjzzs'}">
  25. <div class="item-top">规上工业增加值增速</div>
  26. <div class="item-bottom">
  27. <span>{{ 7 }}</span>%
  28. </div>
  29. </div>
  30. <div class="item" :class="{selected:currentActive=='zzyzz'}">
  31. <div class="item-top">制造业投资增长</div>
  32. <div class="item-bottom">
  33. <span>{{7.4}}</span>%
  34. </div>
  35. </div>
  36. <div class="item" :class="{selected:currentActive=='gxjscy'}">
  37. <div class="item-top">高新技术产业投资增长</div>
  38. <div class="item-bottom">
  39. <span>{{ 17.6 }}</span>%
  40. </div>
  41. </div>
  42. </div>
  43. <title-card7 :icon="require('@/assets/images/bj/icon-1.png')" title="行业效益" color="#299DF6" style="margin-top: 10px"/>
  44. <div class="main-box-1">
  45. <div class="hy-top">
  46. <div class="hy-item">
  47. <div class="title-box">
  48. 第一产业
  49. </div>
  50. <div class="content-box">
  51. <span class="val">0.5</span>亿元
  52. </div>
  53. </div>
  54. <div class="hy-item">
  55. <div class="title-box">
  56. 第二产业
  57. </div>
  58. <div class="content-box">
  59. <span class="val">849</span>亿元
  60. </div>
  61. </div>
  62. <div class="hy-item">
  63. <div class="title-box">
  64. 第三产业
  65. </div>
  66. <div class="content-box">
  67. <span class="val">1335.3</span>亿元
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <title-card7 :icon="require('@/assets/images/bj/icon-2.png')" title="园区效益" color="#299DF6" style="margin-top: 10px"/>
  73. <div class="main-box-2">
  74. <div class="item" @click="yqxq()">
  75. <div class="item-left">
  76. <div class="left">
  77. <div class="title">国家级园区</div>
  78. </div>
  79. <div class="right">
  80. <div class="num" >
  81. 1
  82. </div>
  83. <div class="unit">个</div>
  84. </div>
  85. </div>
  86. <div class="item-right">
  87. <div class="name">税收</div>
  88. <div class="num">231.56</div>
  89. <div class="unit">亿元</div>
  90. </div>
  91. </div>
  92. </div>
  93. <title-card7 :icon="require('@/assets/images/bj/icon-1.png')" title="小镇效益" color="#299DF6" style="margin-top: 10px"/>
  94. <div class="main-box-3">
  95. <div class="item" @click="showLayer()">
  96. <div class="item-left">
  97. <div class="left">
  98. <div class="title">小镇数量</div>
  99. </div>
  100. <div class="right">
  101. <div class="num">5</div>
  102. <div class="unit">个</div>
  103. <div class="unit"></div>
  104. </div>
  105. </div>
  106. <div class="item-right">
  107. <div class="name">税收</div>
  108. <div class="num">492</div>
  109. <div class="unit">亿元</div>
  110. </div>
  111. </div>
  112. <transition enter-active-class="rollIn" leave-active-class="rollOut">
  113. <div v-show="xzShow">
  114. <div class="lineBox" v-for="(item, idx) in xzs" :key="idx+'xz'" @click="xzLocation(item)">
  115. <div class="line-top">
  116. <span class="icon"></span>
  117. <span class="title">{{ item.name }}</span>
  118. <span class="unit" @click.stop="showDetail(item)">详情</span>
  119. </div>
  120. </div>
  121. </div>
  122. </transition>
  123. <div class="item" @click="showLayer()">
  124. <div class="item-left">
  125. <div class="left">
  126. <div class="title">小镇面积</div>
  127. </div>
  128. <div class="right">
  129. <div class="num" v-for="(item, idx) in '2.8'.toString()" :key="'mj'+idx">{{ item }}</div>
  130. <div class="unit">万亩</div>
  131. </div>
  132. </div>
  133. <div class="item-right">
  134. <div class="name">亩均税收</div>
  135. <div class="num">176 <span>万元/亩</span> </div>
  136. </div>
  137. </div>
  138. </div>
  139. </cart-item>
  140. </div>
  141. </template>
  142. <script>
  143. import CartItem from "@/views/components/CartItem.vue";
  144. import {mapState, mapGetters} from "vuex";
  145. import ItemCardBox from "@/views/components/ItemCardBox";
  146. import TitleCard7 from "@/views/components/TitleCard7.vue";
  147. export default {
  148. name: "RightContent",
  149. components: {CartItem,ItemCardBox,TitleCard7},
  150. data(){
  151. return{
  152. gdpzs:0,
  153. czhl:0,
  154. gdzctzzs:0,
  155. gmysgyzjzzs:0,
  156. zzyzz:0,
  157. gxjscy:0,
  158. currentActive:'',
  159. gjNum:0,
  160. gjSs:0,
  161. sjNum:0,
  162. sjSs:0,
  163. xzs: [],
  164. xzShow: false
  165. }
  166. },
  167. computed: {
  168. ...mapState({
  169. xzqName: state => state.BaseData.xzqState
  170. }),
  171. ...mapGetters({
  172. xzqdm: "BaseData/xzqCodeGetter",
  173. currentYear: "BaseData/yearGetter",
  174. })
  175. },
  176. watch: {
  177. currentYear(val) {
  178. }
  179. },
  180. mounted() {
  181. this.initData()
  182. },
  183. methods:{
  184. initData(){
  185. this.queryJjxyTotal()
  186. },
  187. queryJjxyTotal(){
  188. const urlApi = `/api/ybz/getJjxyTotal`;
  189. this.$ajax.post(urlApi, null, this, false).then(result=>{
  190. const {gdpzs,czhl,gdzctzzs,gmysgyzjzzs,zzyzz,gxjscy} = result.data
  191. this.gdpzs =gdpzs
  192. this.czhl =czhl
  193. this.gdzctzzs =gdzctzzs
  194. this.gmysgyzjzzs =gmysgyzjzzs
  195. this.zzyzz =zzyzz
  196. this.gxjscy =gxjscy
  197. })
  198. },
  199. yqxq() {
  200. this.$parent.yqShow = true
  201. this.$parent.yqData = {"fid":"93","kfqsp":"2","gljx":100,"kfqs_1":"国务院","kfqgl":"杭州高新技术产业开发区管委会","tdlyzk":70.47,"kfqg_1":"杭州市滨江区江南大道100号","kfqsz":"江北区块:东至莫干山路,南至天目山路,西至古翠路、丰潭路,北至余杭塘河。下沙区块:东至杭州绕城高速,南至12号大街南,西至5号大街,北至8号大街。江南区块:东至江虹路,南至浙赣铁路,西至东信大道,北至江南大道。","kfqyf":1212,"tdkfl":99.93,"gyydjzxs":39.44,"xzqmc":"杭州市","ydjgzk":42.29,"jzmd":28.04,"kfqpj_1":"工业主导型","zhydxy":0,"tdgyl":96.5,"kfqsl":"199103","kfqmc":"杭州国家高新技术产业开发区管委会(滨江区)","kfqpj":1211.63,"cyydtrccxy":90.05,"rkmd":0,"tdlyjgxy":100,"tddjl":0,"gyydl":37.14,"tdxzl":0,"sort":1,"kfqdm":"G332019","xzqdm":"3301","zhrjl":1.25,"gyydgdzctrqd":10181.46,"tdjcl":96.49,"kfqzd":"信息技术、生命健康、节能环保","jyd":76.95,"ydxy":90.05,"tdlyqd":71.57,"gyyddjss":2182.84,"tdlycd":97.32,"gyydzhrjl":1.59,"kfqjb":"国家级","tbmj":12116320.08,"pm":"18","objectid":"94"}
  202. },
  203. showLayer() {
  204. this.xzShow = !this.xzShow
  205. if (!this.xzs.length) {
  206. const urlApi = `/api/ybz-bj/tsxzBJ`;
  207. this.$ajax.get(urlApi, {}, this, false).then(resp => {
  208. let { data, success } = resp
  209. this.xzs = data
  210. })
  211. }
  212. this.$vm.$emit("setGdDetailType", 25);
  213. this.$vm.$emit("setVisibleLayerIdEvent", 'bj-xz')
  214. setTimeout(()=>{
  215. this.$vm.$emit("switchLayerShow", true);
  216. },100)
  217. },
  218. xzLocation(item) {
  219. this.$vm.$emit("setGdDetailType", 25);
  220. this.$vm.$emit("location-feature-where", { layerId: 'bj-xz', where: `name = '${item.name}'`, setting: {outFields: 'town_code,sde.sde.特色小镇.area,name,sqs,qx,sssr,cylx,describe'} })
  221. },
  222. showDetail(item) {
  223. this.$parent.townShow = true
  224. this.$parent.townData = item
  225. }
  226. }
  227. }
  228. </script>
  229. <style scoped lang="scss">
  230. .OneContent {
  231. height: 100%;
  232. position: relative;
  233. .main-box {
  234. width: 100%;
  235. display: flex;
  236. flex-wrap: wrap;
  237. .item{
  238. width: 49.5%;
  239. min-height: 90px;
  240. margin-bottom: 1%;
  241. background: rgba(22,56,123,0.3);
  242. border: 1px solid #356DD1;
  243. cursor: pointer;
  244. &:nth-child(odd) {
  245. margin-right: 1%;
  246. }
  247. &:hover{
  248. background: linear-gradient(90deg,#0e66bf,#0c2b68);
  249. }
  250. &.selected{
  251. background: linear-gradient(90deg,#0e66bf,#0c2b68);
  252. }
  253. .item-top{
  254. height: 50%;
  255. text-align: center;
  256. font-size: 20px;
  257. font-family: AlibabaPuHuiTiR;
  258. font-weight: bold;
  259. color: #4ADEFF;
  260. padding-top: 5px;
  261. }
  262. .item-bottom{
  263. height: 50%;
  264. text-align: center;
  265. font-size: 18px;
  266. font-family: AlibabaPuHuiTiR;
  267. font-weight: 400;
  268. color: #FFFFFF;
  269. span{
  270. font-size: 20px;
  271. font-family: AlibabaPuHuiTiR;
  272. font-weight: bold;
  273. margin-right: 2px;
  274. }
  275. }
  276. &:nth-child(3){
  277. .item-top{
  278. color: #FFE383;
  279. }
  280. }
  281. &:nth-child(4){
  282. .item-top{
  283. color: #FFE383;
  284. }
  285. }
  286. &:nth-child(5){
  287. .item-top{
  288. color: #36FFB6;
  289. }
  290. }
  291. &:nth-child(6){
  292. .item-top{
  293. color: #36FFB6;
  294. }
  295. }
  296. }
  297. }
  298. .main-box-1 {
  299. .hy-top{
  300. height: 100px;
  301. display: flex;
  302. // padding-right: 4px;
  303. .hy-item{
  304. height: 100%;
  305. flex: 1;
  306. background: rgba(22,56,123,0.3);
  307. border: 1px solid #3269CC;
  308. display: flex;
  309. flex-direction: column;
  310. align-items: center;
  311. cursor: pointer;
  312. &:not(:last-child) {
  313. margin-right: 5px;
  314. }
  315. &:nth-child(3){
  316. margin-right: 0;
  317. }
  318. &:hover{
  319. background: linear-gradient(90deg, #2470DF 0%, #143B89 100%);
  320. .title-box{
  321. color: #4AFDFF;
  322. }
  323. }
  324. &.selected{
  325. background: linear-gradient(90deg, #2470DF 0%, #143B89 100%);
  326. .title-box{
  327. color: #4AFDFF;
  328. }
  329. }
  330. .title-box{
  331. flex: 1;
  332. align-items: center;
  333. display: flex;
  334. font-family: AlibabaPuHuiTIR;
  335. font-weight: bold;
  336. color: #BDDCFF;
  337. font-size: 18px;
  338. }
  339. .content-box{
  340. flex: 1;
  341. align-items: center;
  342. display: flex;
  343. font-size: 16px;
  344. font-family: AlibabaPuHuiTIR;
  345. font-weight: 400;
  346. color: #FFFFFF;
  347. .val{
  348. font-size: 20px;
  349. font-weight: 700;
  350. margin-right: 5px;
  351. }
  352. }
  353. }
  354. }
  355. .hy-content{
  356. margin-top: 10px;
  357. height: calc(100% - 80px);
  358. overflow-y: auto;
  359. .hy-box{
  360. height: 68px;
  361. margin-bottom: 10px;
  362. background: rgba(22,56,123,0.3);
  363. border: 1px solid #3269CC;
  364. display: flex;
  365. padding-top: 6px;
  366. cursor: pointer;
  367. &:hover{
  368. background: linear-gradient(90deg, #2470DF 0%, #143B89 100%);
  369. }
  370. &.selected{
  371. background: linear-gradient(90deg, #2470DF 0%, #143B89 100%);
  372. }
  373. .circle{
  374. width: 35px;
  375. text-align: center;
  376. i{
  377. display: inline-block;
  378. width: 12px;
  379. height: 12px;
  380. border-radius: 50%;
  381. vertical-align: middle;
  382. }
  383. }
  384. .title{
  385. width: 200px;
  386. font-size: 16px;
  387. font-family: AlibabaPuHuiTIR;
  388. font-weight: 700;
  389. }
  390. .text{
  391. flex: 1;
  392. .text-top{
  393. font-size: 16px;
  394. font-family: AlibabaPuHuiTIR;
  395. font-weight: 500;
  396. color: #8CC2FF;
  397. text-align: center;
  398. }
  399. .text-bottom{
  400. font-size: 16px;
  401. font-family: Alibaba PuHuiTi;
  402. font-weight: 500;
  403. color: #FFFFFF;
  404. text-align: center;
  405. padding-top: 6px;
  406. .val{
  407. font-size: 18px;
  408. margin-right: 4px;
  409. }
  410. }
  411. }
  412. .percent{
  413. flex: 1;
  414. }
  415. }
  416. }
  417. }
  418. .main-box-2 {
  419. display: flex;
  420. flex-direction: column;
  421. .item {
  422. width: 100%;
  423. height: 60px;
  424. // margin-bottom: 2%;
  425. background: #16387B;
  426. display: flex;
  427. justify-content: space-between;
  428. cursor: pointer;
  429. &:hover {
  430. background: linear-gradient(90deg, #0e66bf, #0c2b68);
  431. }
  432. .item-left {
  433. flex: 2;
  434. display: flex;
  435. align-items: center;
  436. justify-content: space-between;
  437. .left {
  438. .title {
  439. font-size: 20px;
  440. font-family: AlibabaPuHuiTiR;
  441. font-weight: bold;
  442. color: #4ADEFF;
  443. margin-left: 15px;
  444. margin-right: 10px;
  445. }
  446. }
  447. .right {
  448. display: flex;
  449. align-items: center;
  450. .num {
  451. width: 30px;
  452. height: 34px;
  453. line-height: 34px;
  454. text-align: center;
  455. background: rgba(114, 248, 252, 0);
  456. border: 1px solid #4ADEFF;
  457. border-radius: 4px;
  458. font-size: 22px;
  459. font-family: AlibabaPuHuiTiR;
  460. font-weight: bold;
  461. color: #4ADEFF;
  462. margin-right: 5px;
  463. }
  464. .unit {
  465. font-size: 18px;
  466. font-family: AlibabaPuHuiTiR;
  467. font-weight: 400;
  468. color: #4ADEFF;
  469. margin-right: 20px;
  470. }
  471. }
  472. }
  473. .item-right {
  474. flex: 1.5;
  475. display: flex;
  476. align-items: center;
  477. .name {
  478. font-size: 20px;
  479. font-family: AlibabaPuHuiTiR;
  480. font-weight: bold;
  481. color: #FFFFFF;
  482. margin-right: 10px;
  483. }
  484. .num {
  485. font-size: 22px;
  486. font-family: AlibabaPuHuiTiR;
  487. font-weight: bold;
  488. color: #4ADEFF;
  489. margin-right: 10px;
  490. }
  491. .unit {
  492. font-size: 18px;
  493. font-family: AlibabaPuHuiTiR;
  494. font-weight: 400;
  495. color: #4ADEFF;
  496. margin-right: 10px;
  497. }
  498. }
  499. }
  500. .item:nth-child(2) {
  501. .item-left {
  502. .title {
  503. color: #FFE383;
  504. }
  505. .num {
  506. border: 1px solid #FFE383;
  507. color: #FFE383;
  508. }
  509. .unit {
  510. color: #FFE383;
  511. }
  512. }
  513. .item-right {
  514. .num {
  515. color: #FFE383;
  516. }
  517. .unit {
  518. color: #FFE383;
  519. }
  520. }
  521. }
  522. .item:nth-child(3) {
  523. .item-left {
  524. .title {
  525. color: #36FFB6;
  526. }
  527. .num {
  528. border: 1px solid #36FFB6;
  529. color: #36FFB6;
  530. }
  531. .unit {
  532. color: #36FFB6;
  533. }
  534. }
  535. .item-right {
  536. .num {
  537. color: #36FFB6;
  538. }
  539. .unit {
  540. color: #36FFB6;
  541. }
  542. }
  543. }
  544. }
  545. .main-box-3 {
  546. display: flex;
  547. flex-direction: column;
  548. .item {
  549. width: 100%;
  550. height: 60px;
  551. background: #16387B;
  552. display: flex;
  553. justify-content: space-between;
  554. cursor: pointer;
  555. margin-bottom: 10px;
  556. &:hover {
  557. background: linear-gradient(90deg, #0e66bf, #0c2b68);
  558. }
  559. .item-left {
  560. flex: 1;
  561. display: flex;
  562. align-items: center;
  563. justify-content: space-between;
  564. .left {
  565. .title {
  566. font-size: 20px;
  567. font-family: AlibabaPuHuiTiR;
  568. font-weight: bold;
  569. color: #4ADEFF;
  570. margin-left: 15px;
  571. // margin-right: 5px;
  572. }
  573. }
  574. .right {
  575. display: flex;
  576. align-items: center;
  577. .num {
  578. width: 30px;
  579. height: 34px;
  580. line-height: 34px;
  581. text-align: center;
  582. background: rgba(114, 248, 252, 0);
  583. border: 1px solid #4ADEFF;
  584. border-radius: 4px;
  585. font-size: 22px;
  586. font-family: AlibabaPuHuiTiR;
  587. font-weight: bold;
  588. color: #4ADEFF;
  589. margin-right: 5px;
  590. }
  591. .unit {
  592. font-size: 18px;
  593. font-family: AlibabaPuHuiTiR;
  594. font-weight: 400;
  595. color: #4ADEFF;
  596. margin-right: 5px;
  597. }
  598. }
  599. }
  600. .item-right {
  601. width: 200px;
  602. display: flex;
  603. align-items: center;
  604. .name {
  605. font-size: 20px;
  606. font-family: AlibabaPuHuiTiR;
  607. font-weight: bold;
  608. color: #FFFFFF;
  609. margin-right: 2px;
  610. }
  611. .num {
  612. font-size: 22px;
  613. font-family: AlibabaPuHuiTiR;
  614. font-weight: bold;
  615. color: #4ADEFF;
  616. margin-right: 10px;
  617. span {
  618. font-weight: normal;
  619. font-size: 18px;
  620. }
  621. }
  622. .unit {
  623. font-size: 18px;
  624. font-family: AlibabaPuHuiTiR;
  625. font-weight: 400;
  626. color: #4ADEFF;
  627. margin-right: 10px;
  628. }
  629. }
  630. }
  631. .item:last-child {
  632. .item-left {
  633. .title {
  634. color: #FFE383;
  635. }
  636. .num {
  637. border: 1px solid #FFE383;
  638. color: #FFE383;
  639. }
  640. .unit {
  641. color: #FFE383;
  642. }
  643. }
  644. .item-right {
  645. .num {
  646. color: #FFE383;
  647. }
  648. .unit {
  649. color: #FFE383;
  650. }
  651. }
  652. }
  653. .lineBox {
  654. height: 35px;
  655. margin-bottom: 10px;
  656. padding-left: 30px;
  657. cursor: pointer;
  658. &:hover {
  659. background: linear-gradient(90deg, #0e66bf, #0c2b68);
  660. }
  661. .line-top {
  662. height: 30px;
  663. line-height: 30px;
  664. .icon {
  665. display: inline-block;
  666. width: 4px;
  667. height: 18px;
  668. background: #03FFEB;
  669. border-radius: 2px;
  670. margin-right: 10px;
  671. transform: translateY(2px);
  672. }
  673. .title {
  674. font-size: 18px;
  675. font-family: AlibabaPuHuiTiR;
  676. font-weight: bold;
  677. color: #FFFFFF;
  678. }
  679. .val {
  680. font-size: 24px;
  681. font-family: Alibaba PuHuiTi;
  682. font-weight: bold;
  683. color: #03FFEB;
  684. float: right;
  685. margin-right: 5px;
  686. }
  687. .unit {
  688. font-size: 16px;
  689. font-family: Alibaba PuHuiTi;
  690. font-weight: 500;
  691. color: #03FFEB;
  692. float: right;
  693. margin-right: 5px;
  694. }
  695. }
  696. &:nth-child(4) {
  697. .icon {
  698. background: #49DEFF;
  699. }
  700. .val {
  701. color: #49DEFF;
  702. }
  703. .unit {
  704. color: #49DEFF;
  705. }
  706. .process{
  707. .bgColor {
  708. background: linear-gradient(90deg, #b7ebf6 0%, #49DEFF 100%);
  709. }
  710. .line {
  711. background: #49DEFF;
  712. }
  713. }
  714. }
  715. }
  716. @keyframes rollIn {
  717. 0% {
  718. opacity: 0;
  719. height: 0;
  720. transform: translateY(-100%);
  721. }
  722. 100% {
  723. opacity: 1;
  724. height: 128px;
  725. transform: translateY(0);
  726. }
  727. }
  728. @keyframes rollOut {
  729. 0% {
  730. height: 128px;
  731. opacity: 1;
  732. transform: translateY(0);
  733. }
  734. 100% {
  735. opacity: 0;
  736. height: 0;
  737. transform: translateY(-100%);
  738. }
  739. }
  740. /*滚入——从上侧*/
  741. .rollIn {
  742. animation: rollIn 0.3s;
  743. }
  744. /*滚出——从上侧*/
  745. .rollOut {
  746. animation: rollOut 0.3s;
  747. }
  748. }
  749. }
  750. </style>