index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <template>
  2. <div class="container">
  3. <template v-if="notWebgl">
  4. <div class="css-animation" >
  5. <div class="blue-bg">
  6. <span class="phone"></span>
  7. <span class="goods"></span>
  8. <span class="nut"></span>
  9. <span class="people"></span>
  10. <span class="flower">
  11. <span class="leaf_2"></span>
  12. <span class="leaf_1"></span>
  13. <span class="leaf_4"></span>
  14. <span class="leaf_3"></span>
  15. <span class="flowerpot"></span>
  16. </span>
  17. <span class="fengche"></span>
  18. </div>
  19. </div>
  20. </template>
  21. <template v-else>
  22. <canvas id="output"></canvas>
  23. </template>
  24. <div class="wrapper">
  25. <div class="header">
  26. <span class="logo">NUTUI
  27. <s></s>
  28. </span>
  29. <search/>
  30. <div class="menu">
  31. <ul>
  32. <li>
  33. <a href="#/doc">指南</a>
  34. </li>
  35. <li>
  36. <a href="#/ActionSheet">组件</a>
  37. </li>
  38. <li>
  39. <a href="/demo.html#/index" class="qrcode top-qr" target="_blank">示例
  40. <a>
  41. <span>请使用手机扫码体验</span>
  42. <img
  43. src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
  44. alt
  45. >
  46. </a>
  47. </a>
  48. </li>
  49. </ul>
  50. <select @change="openwindow">
  51. <option value="2">2.X</option>
  52. <option value="1">1.X</option>
  53. </select>
  54. <a href="https://github.com/jdf2e/nutui" title="Github" target="_blank" class="github-icon">github</a>
  55. </div>
  56. </div>
  57. <div class="content">
  58. <div class="mouseDiv" id="mouseDiv"></div>
  59. <p class="title">NutUI</p>
  60. <p class="sub-title">一套轻量级移动端Vue / 微信小程序组件库</p>
  61. <a href="#/doc" class="blue-btn">开始使用</a>
  62. <a href="javascript:;" class="qrcode btn">
  63. 扫码体验
  64. <a>
  65. <span>请使用手机扫码体验</span>
  66. <img
  67. src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
  68. alt
  69. >
  70. </a>
  71. </a>
  72. </div>
  73. </div>
  74. </div>
  75. </template>
  76. <script>
  77. // import * as THREE from "three";
  78. // import TWEEN from "@tweenjs/tween.js";
  79. // import Detector from "./asset/js/Detector.js";
  80. import search from './search.vue';
  81. export default {
  82. name: "frontCover",
  83. data() {
  84. return {
  85. timer: null,
  86. notWebgl: true,
  87. isSmall:false
  88. };
  89. },
  90. components:{
  91. search
  92. },
  93. methods: {
  94. openwindow(val) {
  95. if (val.target.value == 1) {
  96. window.location.href = " http://nutui.jd.com/1x/";
  97. }
  98. },
  99. // threeAnimation() {
  100. // this.timer = setTimeout(() => {
  101. // //获取视窗宽高
  102. // var mouseX = 0,
  103. // mouseY = 0;
  104. // var SCREEN_HEIGHT = window.innerHeight;
  105. // var SCREEN_WIDTH = window.innerWidth;
  106. // var tween;
  107. // var planeObj = {
  108. // x: 450,
  109. // y: 80
  110. // };
  111. // //渲染器(render)
  112. // var renderer = new THREE.WebGLRenderer({
  113. // canvas: document.getElementById("output")
  114. // });
  115. // //设置背景颜色
  116. // renderer.setClearColor(0xffffff, 1.0);
  117. // renderer.setPixelRatio(window.devicePixelRatio);
  118. // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
  119. // //场景(Scene)
  120. // var scene = new THREE.Scene();
  121. // //透视投影相机
  122. // var camera = new THREE.PerspectiveCamera(
  123. // 45,
  124. // SCREEN_WIDTH / SCREEN_HEIGHT,
  125. // 1,
  126. // 10000
  127. // );
  128. // camera.position.set(0, 0, 1300);
  129. // camera.lookAt(scene.position);
  130. // scene.add(camera);
  131. // //光源
  132. // var ambientLight = new THREE.AmbientLight("#468be8");
  133. // scene.add(ambientLight);
  134. // ambientLight.color.setHex(0xffffff);
  135. // //背景蓝色
  136. // var texture = new THREE.TextureLoader().load(
  137. // "//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png"
  138. // );
  139. // var material = new THREE.MeshBasicMaterial({
  140. // map: texture,
  141. // transparent: true
  142. // });
  143. // var geometry = new THREE.PlaneBufferGeometry(1174, 923);
  144. // //货物箱
  145. // var texture1 = new THREE.TextureLoader().load(
  146. // "//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png"
  147. // );
  148. // var material1 = new THREE.MeshBasicMaterial({
  149. // map: texture1,
  150. // transparent: true
  151. // });
  152. // var geometry1 = new THREE.PlaneBufferGeometry(146, 206);
  153. // //人物
  154. // var texture2 = new THREE.TextureLoader().load(
  155. // "//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png"
  156. // );
  157. // var material2 = new THREE.MeshBasicMaterial({
  158. // map: texture2,
  159. // transparent: true
  160. // });
  161. // var geometry2 = new THREE.PlaneBufferGeometry(230, 417);
  162. // //phone
  163. // var texture3 = new THREE.TextureLoader().load(
  164. // "//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png"
  165. // );
  166. // var material3 = new THREE.MeshBasicMaterial({
  167. // map: texture3,
  168. // transparent: true
  169. // });
  170. // var geometry3 = new THREE.PlaneBufferGeometry(284, 524);
  171. // //flower
  172. // var texture4 = new THREE.TextureLoader().load(
  173. // "//img13.360buyimg.com/uba/jfs/t1/20972/11/3212/7155/5c24a45aE356f126d/2649726673daddc8.png"
  174. // );
  175. // var material4 = new THREE.MeshBasicMaterial({
  176. // map: texture4,
  177. // transparent: true
  178. // });
  179. // var geometry4 = new THREE.PlaneBufferGeometry(257, 193);
  180. // //nut
  181. // var texture5 = new THREE.TextureLoader().load(
  182. // "//img14.360buyimg.com/uba/jfs/t1/21247/15/3196/859/5c24a472E1e9853ab/6bec8c6940288bc3.png"
  183. // );
  184. // var material5 = new THREE.MeshPhongMaterial({
  185. // map: texture5,
  186. // transparent: true,
  187. // opacity: 1
  188. // });
  189. // var geometry5 = new THREE.PlaneBufferGeometry(57, 57);
  190. // //fly
  191. // var texture6 = new THREE.TextureLoader().load(
  192. // "//img14.360buyimg.com/uba/jfs/t1/7300/6/10801/16348/5c24a487E98a8139b/27b70ff5b4ddaf1f.png"
  193. // );
  194. // var material6 = new THREE.MeshBasicMaterial({
  195. // map: texture6,
  196. // transparent: true,
  197. // opacity: 0
  198. // });
  199. // var geometry6 = new THREE.PlaneBufferGeometry(851, 597);
  200. // //flyContents
  201. // var fly_texture_1_1 = new THREE.TextureLoader().load(
  202. // "//img14.360buyimg.com/uba/jfs/t1/24669/35/3260/1611/5c24a4a9E4e0941ab/65a238650812a7a9.png"
  203. // );
  204. // var fly_materila_1_1 = new THREE.MeshBasicMaterial({
  205. // map: fly_texture_1_1,
  206. // transparent: true,
  207. // opacity: 0
  208. // });
  209. // fly_materila_1_1.side = THREE.DoubleSide;
  210. // var fly_geometry_1_1 = new THREE.PlaneBufferGeometry(77, 77);
  211. // var fly_texture_1_2 = new THREE.TextureLoader().load(
  212. // "//img10.360buyimg.com/uba/jfs/t1/16477/11/3111/645/5c24a4beE3668b9c1/f7f0b074baab071c.png"
  213. // );
  214. // var fly_materila_1_2 = new THREE.MeshBasicMaterial({
  215. // map: fly_texture_1_2,
  216. // transparent: true,
  217. // opacity: 0
  218. // });
  219. // fly_materila_1_2.side = THREE.DoubleSide;
  220. // var fly_geometry_1_2 = new THREE.PlaneBufferGeometry(54, 45);
  221. // var fly_texture_2_1 = new THREE.TextureLoader().load(
  222. // "//img12.360buyimg.com/uba/jfs/t1/8267/36/10934/1385/5c24a4d2E036f7ef1/d88f41ccd8d8f409.png"
  223. // );
  224. // var fly_materila_2_1 = new THREE.MeshBasicMaterial({
  225. // map: fly_texture_2_1,
  226. // transparent: true,
  227. // opacity: 0
  228. // });
  229. // fly_materila_2_1.side = THREE.DoubleSide;
  230. // var fly_geometry_2_1 = new THREE.PlaneBufferGeometry(103, 74);
  231. // var fly_texture_2_2 = new THREE.TextureLoader().load(
  232. // "//img20.360buyimg.com/uba/jfs/t1/9695/33/10662/1607/5c24a4e4Ee2f9bab1/18c829d3e46efc4e.png"
  233. // );
  234. // var fly_materila_2_2 = new THREE.MeshBasicMaterial({
  235. // map: fly_texture_2_2,
  236. // transparent: true,
  237. // opacity: 0
  238. // });
  239. // fly_materila_2_2.side = THREE.DoubleSide;
  240. // var fly_geometry_2_2 = new THREE.PlaneBufferGeometry(69, 79);
  241. // var fly_texture_3_1 = new THREE.TextureLoader().load(
  242. // "//img12.360buyimg.com/uba/jfs/t1/27128/26/3128/1206/5c24a4faEb2c39e88/825abcfc5fc19761.png"
  243. // );
  244. // var fly_materila_3_1 = new THREE.MeshBasicMaterial({
  245. // map: fly_texture_3_1,
  246. // transparent: true,
  247. // opacity: 0
  248. // });
  249. // fly_materila_3_1.side = THREE.DoubleSide;
  250. // var fly_geometry_3_1 = new THREE.PlaneBufferGeometry(52, 53);
  251. // var fly_texture_3_2 = new THREE.TextureLoader().load(
  252. // "//img12.360buyimg.com/uba/jfs/t1/29872/1/3250/1154/5c24a50eE15e06d48/2412d3d556bf7463.png"
  253. // );
  254. // var fly_materila_3_2 = new THREE.MeshBasicMaterial({
  255. // map: fly_texture_3_2,
  256. // transparent: true,
  257. // opacity: 0
  258. // });
  259. // fly_materila_3_2.side = THREE.DoubleSide;
  260. // var fly_geometry_3_2 = new THREE.PlaneBufferGeometry(73, 73);
  261. // var plane = new THREE.Mesh(geometry, material);
  262. // plane.position.x = 450;
  263. // plane.position.y = 80;
  264. // scene.add(plane);
  265. // var plane1 = new THREE.Mesh(geometry1, material1);
  266. // plane1.position.x = 220;
  267. // plane1.position.y = -170;
  268. // scene.add(plane1);
  269. // var plane3 = new THREE.Mesh(geometry3, material3);
  270. // plane3.position.x = 570;
  271. // plane3.position.y = -12;
  272. // scene.add(plane3);
  273. // var plane5 = new THREE.Mesh(geometry5, material5);
  274. // plane5.position.x = 505;
  275. // plane5.position.y = 147;
  276. // scene.add(plane5);
  277. // var plane2 = new THREE.Mesh(geometry2, material2);
  278. // plane2.position.x = 420;
  279. // plane2.position.y = -65;
  280. // scene.add(plane2);
  281. // var plane4 = new THREE.Mesh(geometry4, material4);
  282. // plane4.position.x = 770;
  283. // plane4.position.y = -175;
  284. // scene.add(plane4);
  285. // var plane6 = new THREE.Mesh(geometry6, material6);
  286. // plane6.position.x = 498;
  287. // plane6.position.y = 23;
  288. // scene.add(plane6);
  289. // var planeFly_1_1 = new THREE.Mesh(fly_geometry_1_1, fly_materila_1_1);
  290. // planeFly_1_1.position.x = 305;
  291. // planeFly_1_1.position.y = 220;
  292. // scene.add(planeFly_1_1);
  293. // var planeFly_1_2 = new THREE.Mesh(fly_geometry_1_2, fly_materila_1_2);
  294. // planeFly_1_2.position.x = 385;
  295. // planeFly_1_2.position.y = 225;
  296. // scene.add(planeFly_1_2);
  297. // var planeFly_2_1 = new THREE.Mesh(fly_geometry_2_1, fly_materila_2_1);
  298. // planeFly_2_1.position.x = 770;
  299. // planeFly_2_1.position.y = 20;
  300. // scene.add(planeFly_2_1);
  301. // var planeFly_2_2 = new THREE.Mesh(fly_geometry_2_2, fly_materila_2_2);
  302. // planeFly_2_2.position.x = 820;
  303. // planeFly_2_2.position.y = 90;
  304. // scene.add(planeFly_2_2);
  305. // var planeFly_3_1 = new THREE.Mesh(fly_geometry_3_1, fly_materila_3_1);
  306. // planeFly_3_1.position.x = 500;
  307. // planeFly_3_1.position.y = -130;
  308. // scene.add(planeFly_3_1);
  309. // var planeFly_3_2 = new THREE.Mesh(fly_geometry_3_2, fly_materila_3_2);
  310. // planeFly_3_2.position.x = 350;
  311. // planeFly_3_2.position.y = -200;
  312. // scene.add(planeFly_3_2);
  313. // var flyTweenParams = {
  314. // x: 565,
  315. // y: 147,
  316. // op: 0,
  317. // r: 70,
  318. // g: 139,
  319. // b: 232
  320. // };
  321. // var flyTween = new TWEEN.Tween(flyTweenParams)
  322. // .easing(TWEEN.Easing.Quadratic.Out)
  323. // .to({ x: 505, y: 147, op: 1, r: 255, g: 255, b: 255 }, 3000)
  324. // .onUpdate(function(p) {
  325. // plane5.position.x = p.x;
  326. // plane5.position.y = p.y;
  327. // material5.opacity = p.op;
  328. // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
  329. // })
  330. // .start();
  331. // var flyTweenBack = new TWEEN.Tween(flyTweenParams)
  332. // .easing(TWEEN.Easing.Quadratic.Out)
  333. // .to({ x: 565, y: 147, op: 0, r: 70, g: 139, b: 232 }, 3000)
  334. // .onUpdate(function(p) {
  335. // plane5.position.x = p.x;
  336. // plane5.position.y = p.y;
  337. // material5.opacity = p.op;
  338. // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
  339. // });
  340. // var flyContentsOp = {
  341. // op: 0
  342. // };
  343. // var flyContentTween = new TWEEN.Tween(flyContentsOp)
  344. // .easing(TWEEN.Easing.Quadratic.Out)
  345. // .to({ op: 1 }, 2500)
  346. // .onUpdate(function(p) {
  347. // fly_materila_1_1.opacity = fly_materila_1_2.opacity = fly_materila_2_1.opacity = fly_materila_2_2.opacity = fly_materila_3_1.opacity = fly_materila_3_2.opacity = material6.opacity =
  348. // p.op;
  349. // });
  350. // var flyContentTweenBack = new TWEEN.Tween(flyContentsOp)
  351. // .easing(TWEEN.Easing.Quadratic.Out)
  352. // .to({ op: 0 }, 2000)
  353. // .onUpdate(function(p) {
  354. // fly_materila_1_1.opacity = fly_materila_1_2.opacity = fly_materila_2_1.opacity = fly_materila_2_2.opacity = fly_materila_3_1.opacity = fly_materila_3_2.opacity = material6.opacity =
  355. // p.op;
  356. // });
  357. // flyTween.chain(flyContentTween);
  358. // //flyContentTween.chain(flyTween);
  359. // flyContentTween.chain(flyContentTweenBack);
  360. // flyContentTweenBack.chain(flyTweenBack);
  361. // flyTweenBack.chain(flyTween);
  362. // //flyContentTweenBack.chain(flyContentTween);
  363. // //监听事件
  364. // document
  365. // .querySelector("#mouseDiv")
  366. // .addEventListener("mousemove", onDocumentMouseMove, false);
  367. // window.addEventListener("resize", onWindowResize, false);
  368. // var timer = null;
  369. // function onWindowResize(event) {
  370. // SCREEN_HEIGHT = window.innerHeight;
  371. // SCREEN_WIDTH = window.innerWidth;
  372. // camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
  373. // camera.updateProjectionMatrix();
  374. // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
  375. // }
  376. // function onDocumentMouseMove(event) {
  377. // clearTimeout(timer);
  378. // timer = setTimeout(function() {
  379. // if (tween) {
  380. // tween.stop();
  381. // }
  382. // if (event.clientX - mouseX > 100) {
  383. // tween = new TWEEN.Tween(planeObj)
  384. // .easing(TWEEN.Easing.Quadratic.Out)
  385. // .to({ x: 520, y: 150 }, 1000)
  386. // .onUpdate(function(p) {
  387. // plane.position.x = p.x;
  388. // plane.position.y = p.y;
  389. // })
  390. // .start();
  391. // } else if (event.clientX - mouseX < -100) {
  392. // tween = new TWEEN.Tween(planeObj)
  393. // .easing(TWEEN.Easing.Quadratic.Out)
  394. // .to({ x: 450, y: 80 }, 1000)
  395. // .onUpdate(function(p) {
  396. // plane.position.x = p.x;
  397. // plane.position.y = p.y;
  398. // })
  399. // .start();
  400. // }
  401. // tween.start();
  402. // mouseX = event.clientX;
  403. // mouseY = event.clientY;
  404. // }, 100);
  405. // }
  406. // function render() {
  407. // var timer = Date.now() * 0.0001;
  408. // requestAnimationFrame(render);
  409. // TWEEN.update();
  410. // //渲染,输出
  411. // renderer.render(scene, camera);
  412. // }
  413. // render();
  414. // });
  415. // }
  416. },
  417. watch: {},
  418. computed: {},
  419. created() {},
  420. mounted() {
  421. this.$nextTick(() => {
  422. //获取浏览器宽度
  423. let windowWidth = document.body.clientWidth;
  424. if(windowWidth<=990){
  425. this.isSmall = true;
  426. }
  427. this.notWebgl = true;
  428. // if (!Detector.webgl) {
  429. // //Detector.addGetWebGLMessage();
  430. // } else {
  431. // this.notWebgl = false;
  432. // this.threeAnimation();
  433. // }
  434. });
  435. },
  436. destroyed() {}
  437. };
  438. </script>
  439. <style lang="scss" scoped>
  440. @keyframes fadeInLeft {
  441. from {
  442. opacity: 0;
  443. transform: translate3d(-100%,0,0);
  444. }
  445. to{
  446. opacity: 1;
  447. transform: translate3d(0,0,0);
  448. }
  449. }
  450. @keyframes leafShake {
  451. form,to{
  452. transform:rotate(0);
  453. transform-origin: bottom;
  454. }
  455. 20%,
  456. 60%{
  457. transform: rotate(2deg);
  458. transform-origin: bottom;
  459. }
  460. 40%,
  461. 80%{
  462. transform: rotate(-2deg);
  463. transform-origin: bottom;
  464. }
  465. }
  466. @keyframes fadeInRight {
  467. from {
  468. opacity: 0;
  469. transform: translate3d(100%,0,0);
  470. }
  471. to{
  472. opacity: 1;
  473. transform: translate3d(0,0,0);
  474. }
  475. }
  476. @keyframes fadeIn{
  477. from {
  478. opacity: 0;
  479. }
  480. to {
  481. opacity: 1;
  482. }
  483. }
  484. .container{
  485. position: relative;
  486. min-width:1210px;
  487. }
  488. .wrapper {
  489. position: absolute;
  490. top: 0;
  491. right: 0;
  492. bottom: 0;
  493. left: 0;
  494. .header {
  495. top: 0;
  496. min-width: 990px;
  497. width: 100%;
  498. height: 64px;
  499. display: flex;
  500. align-items:center;
  501. position: relative;
  502. }
  503. .menu {
  504. position: absolute;
  505. top: 0;
  506. right: 14%;
  507. width: 376px;
  508. font-size: 12px;
  509. li {
  510. float: left;
  511. width: 70px;
  512. text-align: center;
  513. height: 64px;
  514. line-height: 64px;
  515. cursor: pointer;
  516. color: #fff;
  517. & > a{
  518. display:block;
  519. height:100%;
  520. line-height: 64px;
  521. }
  522. a {
  523. color: #fff;
  524. text-decoration: none;
  525. }
  526. }
  527. select {
  528. width: 74px;
  529. height: 28px;
  530. margin-top: 18px;
  531. margin-left: 20px;
  532. font-size: 12px;
  533. }
  534. li:hover {
  535. border-bottom: 2px solid #fff;
  536. }
  537. .github-icon {
  538. display: inline-block;
  539. height: 26px;
  540. width: 26px;
  541. font-size: 0;
  542. background: url("./asset/css/i/github.png") 0 0 no-repeat;
  543. vertical-align: middle;
  544. position: relative;
  545. top: -1px;
  546. margin-left: 35px;
  547. cursor: pointer;
  548. }
  549. }
  550. .logo {
  551. height: 100%;
  552. line-height: 64px;
  553. float: left;
  554. width: 245px;
  555. font-size: 0;
  556. position: relative;
  557. s {
  558. background: url(./asset/css/i/nut.png) 0 0 no-repeat;
  559. background-size:contain;
  560. height: 46px;
  561. width: 120px;
  562. display: inline-block;
  563. position: absolute;
  564. top: 50%;
  565. left: 50px;
  566. margin-top: -23px;
  567. }
  568. }
  569. .search {
  570. margin: 20px 0;
  571. display: inline-block;
  572. border-left: 1px solid #d8d8d8;
  573. padding-left: 84px;
  574. position: relative;
  575. &:before {
  576. content: "";
  577. display: inline-block;
  578. background: url(./asset/css/i/search.png) 0 0 no-repeat;
  579. height: 22px;
  580. width: 22px;
  581. position: absolute;
  582. top: 50%;
  583. margin-top: -11px;
  584. left: 40px;
  585. }
  586. .search-input {
  587. border: none;
  588. height: 24px;
  589. line-height: 24px;
  590. font-size: 12px;
  591. outline: none;
  592. width: 200px;
  593. background: transparent;
  594. }
  595. }
  596. .content {
  597. padding:15% 0 0 8.8%;
  598. z-index: 999;
  599. position: relative;
  600. .mouseDiv {
  601. height: 300px;
  602. width: 500px;
  603. //background:#ccc;
  604. position: absolute;
  605. top: 50%;
  606. left: 50%;
  607. margin-left: -250px;
  608. margin-top: -50px;
  609. }
  610. .title{
  611. font-size: 42px;
  612. color:#333;
  613. font-weight: bold;
  614. animation: fadeInLeft 1s both;
  615. }
  616. .sub-title{
  617. font-size:24px;
  618. color:#333;
  619. padding-top:30px;
  620. padding-bottom:100px;
  621. animation: fadeInLeft 1s both 0.5s;
  622. }
  623. .btn,.blue-btn{
  624. border:1px solid #5396ff;
  625. background:#fff;
  626. color:#5396ff;
  627. width:130px;
  628. height:40px;
  629. line-height:40px;
  630. text-align: center;
  631. display: inline-block;
  632. font-size:14px;
  633. text-decoration: none;
  634. border-radius: 20px;
  635. animation: fadeInLeft 1s both 1.2s;
  636. }
  637. .blue-btn {
  638. color: #fff;
  639. background: #5396ff;
  640. margin-right: 40px;
  641. }
  642. }
  643. .qrcode {
  644. background: none;
  645. width: auto;
  646. margin: 0;
  647. opacity: 1;
  648. &.top-qr {
  649. a {
  650. left: -65px;
  651. top:60px;
  652. }
  653. }
  654. a {
  655. position: absolute; //display: none;
  656. top: 44px;
  657. width: 200px;
  658. height: 240px;
  659. transform: scale(0.5);
  660. transform-origin: 50% top 0;
  661. transition: all 100ms ease-in-out 50ms;
  662. background: url("./asset/css/i/kuang.png") no-repeat;
  663. background-size: 200px;
  664. text-decoration: none;
  665. font-style: normal;
  666. text-align: center;
  667. left: -35px;
  668. overflow: hidden;
  669. pointer-events: none;
  670. span {
  671. display: block;
  672. overflow: hidden;
  673. color: #666;
  674. font-size: 14px;
  675. text-align: center;
  676. height: 45px;
  677. width: 100%;
  678. line-height: 60px;
  679. }
  680. img {
  681. opacity: 0.8;
  682. width: 166px;
  683. height: 166px;
  684. }
  685. }
  686. &:hover {
  687. opacity: 1;
  688. a {
  689. display: inline-block;
  690. opacity: 1;
  691. transform: scale(1);
  692. }
  693. }
  694. }
  695. }
  696. .css-animation{
  697. position: absolute;
  698. top:0;
  699. right:0;
  700. transform: scale3d(1.06,1.06,1.06);
  701. .blue-bg{
  702. background:url('//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png') 0 0 no-repeat;
  703. height:757px;
  704. width:963px;
  705. background-size:100% 100%;
  706. position: absolute;
  707. right:0;
  708. top:0;
  709. .phone{
  710. background:url('//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png') 0 0 no-repeat;
  711. height:419px;
  712. width:227px;
  713. background-size:100% 100%;
  714. position:absolute;
  715. right:350px;
  716. top:250px;
  717. display: inline-block;
  718. }
  719. .goods{
  720. background:url('//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png') 0 0 no-repeat;
  721. height:165px;
  722. width:117px;
  723. background-size:100% 100%;
  724. position:absolute;
  725. display:inline-block;
  726. top:500px;
  727. right:710px;
  728. }
  729. .people{
  730. background:url('//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png');
  731. width:184px;
  732. height:334px;
  733. background-size:100% 100%;
  734. position:absolute;
  735. top:334px;
  736. right:500px;
  737. }
  738. .flower{
  739. position: absolute;
  740. right:195px;
  741. top:510px;
  742. height:160px;
  743. width:208px;
  744. .leaf_1{
  745. position: absolute;
  746. background:url(./asset/css/i/leaf_1.png) 0 0 no-repeat;
  747. height:113px;
  748. width:60px;
  749. background-size:100% 100%;
  750. bottom:36px;
  751. right:79px;
  752. animation:leafShake 8s infinite ;
  753. }
  754. .leaf_2{
  755. position: absolute;
  756. background:url(./asset/css/i/leaf_2.png) 0 0 no-repeat;
  757. height:64px;
  758. width:66px;
  759. background-size:100% 100%;
  760. bottom:36px;
  761. right:35px;
  762. animation:leafShake 8s infinite 0.6s;
  763. }
  764. .leaf_3{
  765. position: absolute;
  766. background:url(./asset/css/i/leaf_3.png) 0 0 no-repeat;
  767. height:28px;
  768. width:64px;
  769. background-size:100% 100%;
  770. bottom:38px;
  771. right:42px;
  772. //animation:leafShake 3s infinite 0.5s;
  773. }
  774. .leaf_4{
  775. position: absolute;
  776. background:url(./asset/css/i/leaf_4.png) 0 0 no-repeat;
  777. height:113px;
  778. width:99px;
  779. background-size:100% 100%;
  780. bottom:38px;
  781. left:2px;
  782. //animation:leafShake 3s infinite 0.2s;
  783. }
  784. .flowerpot{
  785. position: absolute;
  786. background:url(./asset/css/i/flowerpot.png) 0 0 no-repeat;
  787. height:42px;
  788. width:130px;
  789. bottom:0;
  790. right:5px;
  791. background-size:100% 100%;
  792. }
  793. }
  794. .nut{
  795. position: absolute;
  796. height:46px;
  797. width:46px;
  798. background:url(./asset/css/i/nut-icon.png) 0 0 no-repeat;
  799. background-size:100% 100%;
  800. top:308px;
  801. right:493px;
  802. animation:fadeInRight 2s both;
  803. }
  804. .fengche{
  805. position:absolute;
  806. background:url(./asset/css/i/fengche.png) 0 0 no-repeat;
  807. background-size:100% 100%;
  808. width:679px;
  809. height:476px;
  810. top:195px;
  811. right:180px;
  812. animation: fadeIn 1s both 2s;
  813. }
  814. }
  815. }
  816. </style>