Home.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. <template>
  2. <div class="home" v-cloak>
  3. <swiperr :message="messageParent" class="wheelPicture"></swiperr>
  4. <div id="content">
  5. <div class="box1">
  6. <h4>每个项目,我们从认真做原型开始</h4>
  7. <h5>深入了解行业背景,深度沟通用户需求,规划出最合适的产品</h5>
  8. <div class="picture">
  9. <div class="first" @mouseover="mouseOver" @mouseleave="mouseLeave" @touchstart="mouseOver" @touchend="mouseLeave">
  10. <div class="bg" :class="{paddingMargin:activeFlag}">
  11. <p class="line"></p>
  12. <h6 v-bind:class="{titleMargin:activeFlag}">面对老板和客户</h6>
  13. <transition name="fade">
  14. <ul v-show="activeFlag">
  15. <li v-for="(box11Arr,index) in box11Arrs" :key="index">
  16. <p><span>· </span>{{box11Arr}}</p>
  17. </li>
  18. </ul>
  19. </transition>
  20. </div>
  21. <!--<transition name="fade">-->
  22. <img src="./images/1@2x.png" alt="加载失败">
  23. <!--</transition>-->
  24. <transition name="fade">
  25. <img src="./images/shadow-left.png" alt="加载失败" v-show="activeFlag" style="top:210px;height:50px">
  26. </transition>
  27. </div>
  28. <div class="second" @mouseover="mouseOverTeam" @mouseleave="mouseLeaveTeam" @touchstart="mouseOverTeam" @touchend="mouseLeaveTeam">
  29. <div class="bg" :class="{paddingMargin:activeTeamFlag}">
  30. <p class="line"></p>
  31. <h6 :class="{titleMargin:activeTeamFlag}">面对团队内部</h6>
  32. <transition name="fade">
  33. <ul v-show="activeTeamFlag">
  34. <li v-for="(box12Arr,index) in box12Arrs" :key="index">
  35. <p><span>· </span>{{box12Arr}}</p>
  36. </li>
  37. </ul>
  38. </transition>
  39. </div>
  40. <!--<transition name="fade">-->
  41. <img src="./images/2@2x.png" alt="加载失败">
  42. <!--</transition>-->
  43. <transition name="fade">
  44. <img src="./images/shadow-right.png" alt="加载失败" style="height: 65px;top:210px">
  45. </transition>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="box">
  50. <div class="box2">
  51. <div class="left">
  52. <h4>项目开发流程,选择更灵活</h4>
  53. <h5>一流的团队,规范的流程,完善的评价体系共同保障您的项目的高质量产出</h5>
  54. <div class="picture">
  55. <img src="./images/3@2x.png" alt="加载失败">
  56. </div>
  57. </div>
  58. <div class="right">
  59. <h4>原型规划</h4>
  60. <div class="text">
  61. <p>原型阶段只需您预付2W项目资金,我们根据需求完成最合适的产品原型,原型按芝麻开发模式计费,项目资金多退少不补。完成后交付原型相关的所有文件,后续的开发阶段,由您自主选择合作方式。</p>
  62. <img src="./images/home_right.png" alt="插画">
  63. </div>
  64. </div>
  65. </div>
  66. <div class="box3">
  67. <h4>项目开发</h4>
  68. <p><span>芝麻开发模式:</span>
  69. 该模式下我们按项目人员填写的实际工作时长和工作进度计费,只需您按月支付项目费用。省去了估价环节,需求变更、设计、会议等所有环节收费透明,项目成本一目了然。
  70. </p>
  71. <p><span>传统开发模式:</span>
  72. 我们支持对项目按传统模式开发计费,根据原型进行详细评估,给出整体项目报价,报价更精准。签订合同后客户支付50%预付款,开发完成交付后支付剩余50%尾款。
  73. </p>
  74. </div>
  75. <div class="box4">
  76. <h4>致力于互联网创新技术服务</h4>
  77. <h5>技术更跨界、创意更自由、服务更贴心</h5>
  78. <div class="img">
  79. <ul class="devote flex-wrap-footer-box">
  80. <li v-for="(devoteArr,index) in devoteArrs" :key="index">
  81. <div class="upBox">
  82. <div>
  83. <img :src="devoteArr.img" alt="加载失败">
  84. <p>{{devoteArr.title}}</p>
  85. </div>
  86. </div>
  87. <div class="downBox">
  88. <ul>
  89. <li v-for="(content,inde) in devoteArr.content" :key="inde">
  90. <span>·</span><p>{{content}}</p>
  91. </li>
  92. </ul>
  93. </div>
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <img src="./images/4-BG@2x.png" alt="加载失败" class="background">
  101. <home-footer></home-footer>
  102. </div>
  103. </template>
  104. <style scoped>
  105. *{
  106. margin: 0;
  107. padding: 0;
  108. list-style-type: none;
  109. font-family: 'PingFangSC-Medium';
  110. text-align: left;
  111. }
  112. h4{
  113. color: #566784;
  114. font-size: 32px;
  115. letter-spacing: 0;
  116. line-height: 45px;
  117. }
  118. h5{
  119. color:#677897;
  120. font-size: 18px;
  121. letter-spacing: 0.2px;
  122. line-height: 22px;
  123. margin-top: 12px;
  124. }
  125. /*新首页样式开始*/
  126. #content{
  127. width: 1440px;
  128. padding: 0 120px;
  129. margin: 0 auto;
  130. margin-top: 80px;
  131. position: relative;
  132. }
  133. .background{ /*原型规划的样式*/
  134. width: 788px;
  135. height: 1388px;
  136. position: absolute;
  137. top: 1368px;
  138. right: 0px;
  139. z-index: -999;
  140. }
  141. #content .box1 .picture{ /*XXXXXX*/
  142. margin-top: 60px;
  143. display: flex;
  144. flex-direction: row;
  145. justify-content: space-between;
  146. }
  147. #content .box1 .picture .first{
  148. width: 42.83%;
  149. height: 230px;
  150. border-radius: 20px;
  151. position: relative;
  152. /* background: url('./images/1@2x.png') no-repeat; */
  153. /* background-size: 100% 100%; */
  154. }
  155. #content .box1 .picture .second img,
  156. #content .box1 .picture .first img {
  157. position: absolute;
  158. width: 100%;
  159. height: 230px;
  160. top: 0;
  161. left: 0;
  162. z-index: -1;
  163. }
  164. .bg{
  165. height: 230px;
  166. padding-top: 70px;
  167. }
  168. #content .box1 .picture .second{
  169. position: relative;
  170. width: 42.83%;
  171. height: 230px;
  172. border-radius: 20px;
  173. }
  174. .box1 .first .line{
  175. margin-left: 40px;
  176. width: 30px;
  177. border-top: 2px solid #677897;
  178. }
  179. .box1 .second .line{
  180. margin-left: 40px;
  181. width: 30px;
  182. border-top: 2px solid #FF8464;
  183. }
  184. .box1 h6{
  185. margin-top: 30px;
  186. margin-left: 40px;
  187. font-size: 20px;
  188. color: #566784;
  189. letter-spacing: 0.22px;
  190. }
  191. .second h6{
  192. color: #FF8464
  193. }
  194. .bg ul{
  195. margin-top: 10px;
  196. margin-left: 40px;
  197. }
  198. .bg ul li{
  199. font-size: 16px;
  200. letter-spacing: 0.18px;
  201. line-height: 22px;
  202. color: #566784
  203. }
  204. .second .bg ul li{
  205. color: #FF8464
  206. }
  207. .bg ul li span{
  208. font-weight: 600;
  209. }
  210. #content .box{
  211. width: 100%;
  212. display: flex;
  213. flex-direction: column;
  214. margin-top: 110px;
  215. }
  216. .left{
  217. width: 612px;
  218. }
  219. .left .picture {
  220. width: 100%;
  221. }
  222. #content .left .picture{
  223. margin-top: 60px;
  224. height: 498px;
  225. }
  226. #content .left .picture img{
  227. width:100%;
  228. height: auto;
  229. }
  230. #content .box3 h4{
  231. font-size: 28px;
  232. line-height: 40px;
  233. margin-top: 80px;
  234. margin-bottom: 40px;
  235. }
  236. #content .box3 span{
  237. font-weight: 600;
  238. }
  239. #content .box3 p{
  240. width: 460px;
  241. font-size: 18px;
  242. color: #677897;
  243. text-align: justify;
  244. line-height: 30px;
  245. margin-bottom: 50px;
  246. }
  247. .box4{
  248. margin-top: 116px;
  249. }
  250. .box4 .img .devote{
  251. margin-top: 60px;
  252. display: flex;
  253. }
  254. .box4 .img .devote li{
  255. width: 280px;
  256. /*margin-right: 26px;*/
  257. }
  258. .upBox{
  259. width: 280px;
  260. height: 150px;
  261. background: #EAEFFF;
  262. display: flex;
  263. justify-content: center;
  264. align-items: center;
  265. }
  266. .upBox div{
  267. display: flex;
  268. flex-direction: column;
  269. align-items: center;
  270. }
  271. .upBox img{
  272. width: 44px;
  273. height: 44px;
  274. }
  275. .upBox p{
  276. margin-top: 20px;
  277. font-size: 20px;
  278. line-height: 28px;
  279. color: #566784;
  280. letter-spacing: 0;
  281. }
  282. .downBox{
  283. height: 146px;
  284. border: 1px solid #EAEFFF;
  285. margin-bottom: 100px;
  286. }
  287. .downBox ul{
  288. display: flex;
  289. flex-direction: column;
  290. width: 224px;
  291. margin: 20px 0px 0px 28px;
  292. }
  293. .downBox ul li{
  294. display: flex;
  295. width: 224px;
  296. }
  297. .downBox ul li span{
  298. width: 10px;
  299. font-weight: 600;
  300. height: 26px;
  301. line-height: 26px;
  302. }
  303. .downBox ul li p{
  304. width: 214px;
  305. font-size: 16px;
  306. line-height: 26px;
  307. color: #677897;
  308. letter-spacing: 0;
  309. text-align: justify;
  310. word-wrap: break-word;
  311. word-break:normal;
  312. }
  313. .box2{
  314. height: 637px;
  315. display: flex;
  316. justify-content: space-between;
  317. }
  318. .right{
  319. width: 490px;
  320. /* height: 637px; */
  321. }
  322. .right h4{
  323. /* margin-left: 178px; */
  324. margin-top: 256px;
  325. font-size: 28px;
  326. color: #677897;
  327. }
  328. .right p{
  329. margin-top: 40px;
  330. width: 100%;
  331. font-size: 18px;
  332. line-height: 30px;
  333. color: #677897;
  334. }
  335. .right .text{
  336. width:100%;
  337. height: 1318px;
  338. position: relative;
  339. }
  340. .right img{
  341. position: absolute;
  342. top: 436px;
  343. right:6.9%;
  344. }
  345. .titleMargin{
  346. margin-top: 30px!important
  347. }
  348. /*.mouseoverBackgroung1{*/
  349. /*background: url('./images/点击态.png')!important;*/
  350. /*width: 42.83%!important;*/
  351. /*height: 100%!important;*/
  352. /*border-radius: 20px;*/
  353. /*background-size: 100% 100%;*/
  354. /*}*/
  355. /* #content .box1 .picture .first:hover{
  356. background: url('./images/点击态.png')!important;
  357. width: 42.83%!important;
  358. height: 230px!important;
  359. border-radius: 20px;
  360. background-size: 100% 100%;
  361. } */
  362. /* #content .box1 .picture .second:hover {
  363. background: url('./images/点击状态.png')!important;
  364. width: 42.83%!important;
  365. height: 230px!important;
  366. border-radius: 20px;
  367. background-size: 100% 100%;
  368. } */
  369. .paddingMargin{
  370. padding-top: 50px!important
  371. }
  372. @media screen and (max-width: 1440px){
  373. #content{
  374. width: 100%!important;
  375. padding: 0 8.3%!important;
  376. }
  377. .background{
  378. width: 42.5%;
  379. }
  380. .picture{
  381. /* height: auto; */
  382. margin-top: 50px!important;
  383. }
  384. .left{
  385. width: 51%!important;
  386. }
  387. .bg{
  388. height: auto;
  389. padding-top: 60px!important;
  390. }
  391. .box{
  392. width: 100%!important;
  393. margin-top: 100px!important;
  394. }
  395. .left h4{
  396. font-size: 30px!important;
  397. }
  398. .left h5{
  399. font-size: 16px!important;
  400. }
  401. .right{
  402. width: 41%;
  403. }
  404. .box3{
  405. width: 32%;
  406. }
  407. #content .box3 p{
  408. width: 100%;
  409. font-size: 18px;
  410. color: #677897;
  411. text-align: justify;
  412. line-height: 30px;
  413. margin-bottom: 50px;
  414. }
  415. .box4{
  416. width: 100%!important;
  417. }
  418. .paddingMargin{
  419. padding-top: 40px!important
  420. }
  421. }
  422. @media screen and (max-width: 1250px) {
  423. .right h4{
  424. font-size: 26px;
  425. }
  426. .right p{
  427. font-size: 16px;
  428. }
  429. #content{
  430. margin-top: 50px;
  431. }
  432. .box1 h4{
  433. font-size: 28px;
  434. }
  435. .box1 h5{
  436. margin-top: 8px;
  437. font-size: 17px;
  438. }
  439. .box1 .picture{
  440. margin-top: 40px!important;
  441. }
  442. #content .box1 .picture .first,
  443. #content .box1 .picture .second{
  444. height: 200px!important
  445. }
  446. #content .box1 .picture .first img,
  447. #content .box1 .picture .second img{
  448. height: 200px!important
  449. }
  450. #content .box1 .picture .first img:hover,
  451. #content .box1 .picture .second img:hover{
  452. height: 200px!important;
  453. transition: all 1s linear;
  454. }
  455. .bg{
  456. padding:40px 0!important
  457. }
  458. .paddingMargin{
  459. padding: 30px 0!important
  460. }
  461. .box1 .line{
  462. margin-left: 30px!important;
  463. }
  464. .box1 h6{
  465. margin-top: 20px!important;
  466. margin-left: 30px;
  467. font-size: 18px;
  468. }
  469. .bg ul{
  470. margin-top: 15px;
  471. margin-left: 30px;
  472. }
  473. .bg ul li{
  474. font-size: 14px;
  475. letter-spacing: 0.18px;
  476. line-height: 22px;
  477. color: #566784
  478. }
  479. .box{
  480. margin-top: 80px!important;
  481. }
  482. .box2{
  483. height: 572px
  484. }
  485. .box2 img{
  486. width: 100%;
  487. }
  488. .left h4{
  489. font-size: 28px!important;
  490. }
  491. .left h5{
  492. margin-top:10px!important;
  493. }
  494. .right h4{
  495. margin-top: 100px!important;
  496. }
  497. .background{ /*原型规划的样式*/
  498. top: 1070px!important;
  499. right: 0px;
  500. z-index: -999;
  501. }
  502. .right img{
  503. top: 420px!important;
  504. }
  505. .box3 h4{
  506. margin:35px 0px!important;
  507. font-size: 26px!important;
  508. }
  509. .box3 p{
  510. margin:35px 0px!important;
  511. font-size: 16px!important;
  512. }
  513. .box4{
  514. margin-top: 60px!important;
  515. }
  516. .box4 h4{
  517. font-size: 26px!important;
  518. }
  519. .box4 h5{
  520. margin-top: 10px;
  521. font-size: 16px;
  522. }
  523. .box4 .img .devote{
  524. /* border: 1px solid black; */
  525. margin-top: 30px!important;
  526. }
  527. .downBox{
  528. margin-bottom: 10px!important;
  529. }
  530. .background{ /*原型规划的样式*/
  531. width: 54%;
  532. }
  533. }
  534. @media screen and (max-width: 1150px) {
  535. .right img{
  536. top: 490px!important;
  537. }
  538. }
  539. @media screen and (max-width: 1000px) {
  540. .background{
  541. top: 950px!important;
  542. }
  543. .right img{
  544. top: 450px!important;
  545. }
  546. .left h4{
  547. font-size: 24px!important;
  548. }
  549. .left h5{
  550. font-size: 14px!important;
  551. }
  552. .box2{
  553. height: 500px
  554. }
  555. .box3 h4{
  556. margin: 20px 0!important
  557. }
  558. .box4 h4{
  559. font-size: 24px!important;
  560. }
  561. .box4 h5{
  562. font-size: 15px;
  563. }
  564. #content .box1 .picture .first img,
  565. #content .box1 .picture .second img{
  566. height: 180px!important
  567. }
  568. #content .box1 .picture .first img:hover,
  569. #content .box1 .picture .second img:hover{
  570. height: 180px!important
  571. }
  572. .bg{
  573. padding:20px 0!important
  574. }
  575. .paddingMargin{
  576. padding: 20px 0!important
  577. }
  578. .box1 .line{
  579. margin-left: 20px!important;
  580. background: #FF8464;
  581. }
  582. .box1 h6{
  583. margin-top: 20px!important;
  584. margin-left: 15px;
  585. font-size: 16px;
  586. }
  587. .bg ul{
  588. margin-top: 15px;
  589. margin-left: 15px;
  590. }
  591. .bg ul li{
  592. font-size: 12px;
  593. letter-spacing: 0.18px;
  594. line-height: 22px;
  595. color: #566784
  596. }
  597. }
  598. @media screen and (max-width: 800px) {
  599. .box{
  600. margin-top: 20px!important
  601. }
  602. .box1 h4{
  603. font-size: 22px!important;
  604. }
  605. .box1 h5{
  606. font-size: 16px!important
  607. }
  608. .box2 h4{
  609. font-size: 22px!important;
  610. }
  611. .box3 h4{
  612. font-size: 22px!important
  613. }
  614. .background{
  615. top: 750px!important;
  616. }
  617. .box3 h4{
  618. margin-top: 50px!important;
  619. }
  620. .box3 p{
  621. margin-top: 0px!important;
  622. font-size: 15px!important;
  623. }
  624. .box4{
  625. margin-top: 0px!important;
  626. }
  627. #content .box1 .picture .first,
  628. #content .box1 .picture .second{
  629. height: 150px!important
  630. }
  631. #content .box1 .picture .first img,
  632. #content .box1 .picture .second img{
  633. height: 150px!important
  634. }
  635. .box1 .line{
  636. margin-top: 12px!important;
  637. margin-left: 10px!important;
  638. }
  639. .paddingMargin{
  640. padding: 10px 0 0 10px!important;
  641. }
  642. .box1 h6{
  643. margin-top: 10px!important;
  644. margin-left: 10px;
  645. font-size: 14px;
  646. }
  647. .bg ul{
  648. margin-top: 12px;
  649. margin-left: 10px;
  650. }
  651. .bg ul li{
  652. font-size: 12px;
  653. letter-spacing: 0.18px;
  654. line-height: 22px;
  655. color: #566784
  656. }
  657. .downBox ul li span{
  658. width: 20px;
  659. }
  660. }
  661. @media screen and (max-width: 661px) {
  662. .box1 .picture{
  663. flex-direction: column!important;
  664. }
  665. .box1 .picture .first,.box1 .picture .second{
  666. width: 100%!important;
  667. margin-bottom: 20px;
  668. }
  669. .box2{
  670. flex-direction: column;
  671. height: auto;
  672. }
  673. .left{
  674. width: 100%!important;
  675. height: auto!important;
  676. }
  677. .left .picture{
  678. margin-top: 1px!important;
  679. height: auto!important;
  680. }
  681. .right{
  682. width: 100%;
  683. height: auto!important;
  684. }
  685. .right .text{
  686. height: auto
  687. }
  688. .right h4{
  689. margin-top: 10px!important
  690. }
  691. .right p{
  692. margin-top: 10px!important
  693. }
  694. .background{
  695. width: 100%!important;
  696. }
  697. .box2 .right .text{
  698. height: auto!important;
  699. }
  700. .box2 .right img{
  701. top: 10px!important;
  702. position: relative;
  703. }
  704. .box3{
  705. width: 100%!important;
  706. margin-top: 35px!important;
  707. }
  708. .box3 h4{
  709. font-size: 22px!important;
  710. margin: 20px 10px 10px 0px!important;
  711. }
  712. .box3 p{
  713. margin: 10px 0!important
  714. }
  715. .box4{
  716. margin-top: 20px!important
  717. }
  718. .box h4{
  719. font-size: 22px!important;
  720. }
  721. .box4 .devote{
  722. justify-content: center!important;
  723. }
  724. .box4 .devote>li{
  725. margin-bottom: 25px!important;
  726. }
  727. .box4 .downBox ul li p{
  728. font-size: 14px!important;
  729. }
  730. }
  731. .flex-wrap-footer-box {
  732. width: 100%;
  733. display: flex;
  734. flex-wrap: wrap;
  735. justify-content: space-between;
  736. align-items: center;
  737. }
  738. .fade-enter,.fade-leave-to{
  739. opacity:0;
  740. }
  741. .fade-enter-active,.fade-leave-active{
  742. transition:opacity 1.5s;
  743. }
  744. </style>
  745. <script>
  746. /* eslint-disable */
  747. // @ is an alias to /src
  748. import HomeFooter from "../components/footer.vue";
  749. import Swiperr from "@/components/swiperr.vue";
  750. import animated from "animate.css";
  751. import wheel from "./images/banner.png";
  752. import devoteImg1 from './images/1.png';
  753. import devoteImg2 from './images/2.png';
  754. import devoteImg3 from './images/3.png';
  755. import devoteImg4 from './images/4.png';
  756. import global_api_address from "./global.vue";
  757. import Qs from "qs";
  758. export default {
  759. name: "home",
  760. components: {
  761. HomeFooter,
  762. Swiperr
  763. },
  764. data() {
  765. return {
  766. api_address: global_api_address.api_address, //请求接口的地址
  767. //轮播图数据
  768. messageParent: [wheel],
  769. box11Arrs:['真实感受产品','方便沟通,言之有物'],
  770. box12Arrs:['展示明确需求','提高团队整体效率'],
  771. devoteArrs:[
  772. {
  773. img:devoteImg1,
  774. title:'助力新零售',
  775. content:["结合优秀硬件团队",'利用互联网优势','完成基于物联网技术的新零售体系建立或推广']
  776. },
  777. {
  778. img:devoteImg2,
  779. title:'政府信息化建设',
  780. content:['以精湛的互联网技术','推动政府信息化建设','提高行政效能']
  781. },
  782. {
  783. title:'传统互联网转型',
  784. img:devoteImg3,
  785. content:['深入了解传统行业','打破只做网络营销的传统思维','设计开发全新业务模式','依托传统产业原有资源']
  786. },
  787. {
  788. img:devoteImg4,
  789. title:'自由产品',
  790. content:['股票自动交易系统','汽车行业互联网监控系统']
  791. }
  792. ],
  793. activeFlag:false,
  794. activeTeamFlag:false,
  795. // saleArray: [],
  796. // saleArray2: [],
  797. // trainPicArry: [],
  798. // box12Arry: [],
  799. // box13Arry: [],
  800. // clientArry: [],
  801. api2: "api_get_picture",
  802. time: new Date().getTime() + ""
  803. };
  804. },
  805. //点击切换图片
  806. methods: {
  807. sortBy: function(attr, rev) {
  808. //第二个参数没有传递 默认升序排列
  809. if (rev == undefined) {
  810. rev = 1;
  811. } else {
  812. rev = rev ? 1 : -1;
  813. }
  814. return function(a, b) {
  815. a = a[attr];
  816. b = b[attr];
  817. if (a < b) {
  818. return rev * -1;
  819. }
  820. if (a > b) {
  821. return rev * 1;
  822. }
  823. return 0;
  824. };
  825. },
  826. getSwiperRequest: function() {
  827. let md5Str1 = this.$md5(this.api2 + this.time); //验证用的md5函数
  828. let sendParam = {
  829. timestamp: this.time,
  830. method: this.api2,
  831. sign: md5Str1
  832. };
  833. this.axios
  834. .post(this.api_address + "/api/api.php", Qs.stringify(sendParam))
  835. .then(res => {
  836. res.data.data.sort(this.sortBy("order", true));
  837. for (let i = 0; i < res.data.data.length; i++) {
  838. this.messageParent.push({
  839. src: this.api_address + "/" + res.data.data[i].url
  840. });
  841. }
  842. })
  843. .catch(error => {});
  844. },
  845. mouseOver(){
  846. this.activeFlag = true
  847. },
  848. mouseLeave(){
  849. this.activeFlag = false
  850. },
  851. mouseOverTeam(){
  852. this.activeTeamFlag = true
  853. },
  854. mouseLeaveTeam(){
  855. this.activeTeamFlag = false
  856. }
  857. }
  858. // mounted() {
  859. // this.getSwiperRequest();
  860. // console.log(this.messageParent)
  861. // }
  862. };
  863. </script>