index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. <template>
  2. <common-header/>
  3. <div class="banner-box pr">
  4. <div class="banner"
  5. :style="{'background': 'url('+curMenu.img+') top no-repeat','background-size': 'cover'}"></div>
  6. <!-- 新增浮动图表 -->
  7. <div class="fixed-chart"
  8. @click="toAi"
  9. @mouseenter="isHovering = true"
  10. @mouseleave="isHovering = false">
  11. <div class="chart-content">
  12. <img src="/images/home/fixedAi.png" alt="动态图表">
  13. </div>
  14. </div>
  15. </div>
  16. <div class="content-bg pt10 pb80">
  17. <div class="main pt50">
  18. <h3 class="title-img m-0"><img src="/images/home/zbkt.png?v=20221024" alt=""></h3>
  19. <div class="zbkt">
  20. <img src="/images/home/zb.png" class="w100" alt="">
  21. <div class="zb-link left hand" @click="toLive(2)"></div>
  22. <div class="zb-link middle hand" @click="toLive(1)"></div>
  23. <div class="zb-link right hand" @click="toLive(3)"></div>
  24. </div>
  25. <h3 class="title-img m-0">
  26. <img src="/images/home/kczy.png?v=20221024" alt="">
  27. </h3>
  28. <div class="d-flex flex-between mt20 mb30">
  29. <div class="w-610px hand" @click="toLive(9)"><img src="/images/home/jbkc.png" class="w100" alt=""></div>
  30. <div class="w-608px hand" @click="toLive(10)"><img src="/images/home/tskc.png" class="w100" alt=""></div>
  31. </div>
  32. <h3 class="title-img m-0">
  33. <img src="/images/home/zhjy.png?v=20221024" alt="">
  34. </h3>
  35. <div class="mt25 pr h-315px">
  36. <div class="w-439px pa -left-25px hand" @click="toLive(4)"><img src="/images/home/zxxx.png" class="w100" alt=""></div>
  37. <div class="w-439px pa left-380px hand" @click="toLive(5)"><img src="/images/home/xtbk.png" class="w100" alt=""></div>
  38. <div class="w-439px pa left-786px hand" @click="toLive(6)"><img src="/images/home/tbjy.png" class="w100" alt=""></div>
  39. </div>
  40. <div class="pr">
  41. <h3 class="title-img m-0">
  42. <img src="/images/home/yscg.png" alt="">
  43. </h3>
  44. </div>
  45. <div class="d-flex flex-between mt20 mb30">
  46. <div class="w-608px hand" @click="toLive(7)"><img src="/images/home/ysgc.png" class="w100" alt=""></div>
  47. <div class="w-608px hand" @click="toLive(8)"><img src="/images/home/szmsg.png" class="w100" alt=""></div>
  48. </div>
  49. <!-- <ul class="mt20 work-list d-flex">-->
  50. <!-- <li class="pr30" v-for="item in zpList" @click="lookDetail(item.yz_id)">-->
  51. <!-- <div class="work-img"><img :src="item.yz_img" alt=""></div>-->
  52. <!-- <div class="p15">-->
  53. <!-- <h3 class="font-size-20 text-overflow">{{item.yz_name}}</h3>-->
  54. <!-- <div class="mt15 pt15 work-info d-flex flex-between">-->
  55. <!-- <h3 class="font-size-16 text-hex-5B8BEC">-->
  56. <!-- <span class="d-in-block v-mid">详情</span>-->
  57. <!-- <span class="d-in-block v-mid arrow ml5"></span>-->
  58. <!-- </h3>-->
  59. <!-- </div>-->
  60. <!-- </div>-->
  61. <!-- </li>-->
  62. <!-- </ul>-->
  63. </div>
  64. </div>
  65. <common-footer/>
  66. </template>
  67. <script>
  68. import CommonHeader from "@/components/CommonHeader/index.vue";
  69. import CommonFooter from "@/components/CommonFooter/index.vue";
  70. import {user} from "@/store/user.js";
  71. import {getFullUrl} from '@/utils/helper';
  72. import img1 from "/images/home/live-1.png";
  73. import img2 from "/images/home/live2.png";
  74. import img3 from "/images/home/live3.png";
  75. import bgImg1 from "/images/home/live-2.png";
  76. import bgImg2 from "/images/home/live-3.png";
  77. import fixedAi from "/images/home/fixedAi.png";
  78. import 'swiper/css/swiper.css';
  79. import Swiper from 'swiper';
  80. import {ElMessage} from "element-plus";
  81. export default {
  82. components: {
  83. CommonHeader,
  84. CommonFooter
  85. },
  86. data() {
  87. return {
  88. menuList: [{
  89. id: 1,
  90. title: '八骏奔腾展宏图',
  91. img: '/images/home/banner-6.jpg'
  92. }],
  93. curMenu: {
  94. id: 1,
  95. title: '八骏奔腾展宏图',
  96. img: '/images/home/banner-6.jpg'
  97. },
  98. value: '4',
  99. xsyxzy: [{
  100. id: '1',
  101. img: '/images/home/1.png',
  102. title: '野天鹅',
  103. rate: 5,
  104. prove: '10w+',
  105. favor: '14w+'
  106. }, {
  107. id: '2',
  108. img: '/images/home/2.png',
  109. title: '安徒生世界插画',
  110. rate: 4,
  111. prove: '9w+',
  112. favor: '14w+'
  113. }, {
  114. id: '3',
  115. img: '/images/home/3.png',
  116. title: '传送门',
  117. rate: 4,
  118. prove: '10w+',
  119. favor: '14w+'
  120. }, {
  121. id: '4',
  122. img: '/images/home/4.png',
  123. title: '拇指姑娘',
  124. rate: 4,
  125. prove: '10w+',
  126. favor: '14w+'
  127. }],
  128. xsSwiper: null,
  129. jsxyzp: [{
  130. id: '1',
  131. img: '/images/home/1.png',
  132. title: '野天鹅',
  133. rate: 5,
  134. prove: '10w+',
  135. favor: '14w+'
  136. }, {
  137. id: '2',
  138. img: '/images/home/2.png',
  139. title: '安徒生世界插画',
  140. rate: 4,
  141. prove: '9w+',
  142. favor: '14w+'
  143. }, {
  144. id: '3',
  145. img: '/images/home/3.png',
  146. title: '传送门',
  147. rate: 4,
  148. prove: '10w+',
  149. favor: '14w+'
  150. }],
  151. jsSwiper: null,
  152. liveData: [
  153. {
  154. name: "全景课堂",
  155. pro1: "轻松便捷的快速构建教学",
  156. pro2: "超强的抗弱网能力,优秀的网络自适应策略保证优质观看效果",
  157. pro3: "满足大规模教师、学生同时接入",
  158. img: img1,
  159. bgImg: bgImg1
  160. },
  161. {
  162. name: "名师优课",
  163. pro1: "支持音频/视频实景上课,音频、动作等实时传递,呈现真实课堂的教学环境",
  164. pro2: "老师在线发布测验题,学生端进行答题检测,老师可查看测验结果,检查教室内学员是否认真听课",
  165. pro3: "",
  166. img: img2,
  167. bgImg: bgImg1
  168. },
  169. {
  170. name: "艺术现场",
  171. pro1: "支持云端录制和本地录制,生成直播录制视频及云端回放链接",
  172. pro2: "完全重现直播时的场景,便于学习复习及教学内容再次传播",
  173. pro3: "",
  174. img: img3,
  175. bgImg: bgImg2
  176. }
  177. ],
  178. activeLive: 0,
  179. imgList:[{
  180. id:1,
  181. img:'/images/home/z-1.png'
  182. },{
  183. id:3,
  184. img:'/images/home/z-2.png'
  185. },{
  186. id:2,
  187. img:'/images/home/z-3.png'
  188. }],
  189. isTeacher:false,
  190. zpList:[],
  191. // 新增漂浮动画相关数据
  192. floatPosition: { x: 0, y: 0 }, // 漂浮位置偏移量
  193. floatVelocity: { x: 1, y: 1 }, // 漂浮速度
  194. isHovering: false, // 是否鼠标悬停
  195. animationFrameId: null, // 动画帧ID
  196. }
  197. },
  198. methods: {
  199. toAi() {
  200. //跳转到新页面 https://yuanbao.tencent.com/chat/1TegzXiYHGAu/8e6e3263-f8de-4039-84b7-94c2654f70df
  201. window.open('https://yuanbao.tencent.com/chat/1TegzXiYHGAu/8e6e3263-f8de-4039-84b7-94c2654f70df');
  202. },
  203. switchImg(item) {
  204. this.curMenu = item;
  205. },
  206. toTeacher() {
  207. if (!user) {
  208. ElMessage.warning(`请先登录!`);
  209. } else {
  210. this.$router.push({name: 'resource'});
  211. }
  212. // localStorage.setItem('curNav', 'resource');
  213. },
  214. toLive(type) {
  215. if (!user) {
  216. ElMessage.warning(`请先登录!`);
  217. } else {
  218. switch (type) {
  219. case 1:
  220. if (user.user_role_id < 76) {
  221. this.$router.push({name: 'ssys', params: { status:"1" }});
  222. } else {
  223. ElMessage.warning(`您暂无权限!`);
  224. }
  225. // localStorage.setItem('curNav', 'zbkt');
  226. break;
  227. case 2:
  228. this.$router.push({name: 'wlzb'});
  229. // localStorage.setItem('curNav', 'zbkt');
  230. break;
  231. case 3:
  232. this.$router.push({name: 'ztzb'});
  233. // localStorage.setItem('curNav', 'zbkt');
  234. break;
  235. case 4:
  236. if (user.user_role_id < 76) {
  237. this.$router.push({name: 'zhjy_zhjyzxxx'});
  238. } else {
  239. ElMessage.warning(`您暂无权限!`);
  240. }
  241. // localStorage.setItem('curNav', 'zhjy');
  242. break;
  243. case 5:
  244. if (user.user_role_id < 76) {
  245. this.$router.push({name: 'zhjy_zhjyxtbk'});
  246. } else {
  247. ElMessage.warning(`您暂无权限!`);
  248. }
  249. // localStorage.setItem('curNav', 'zbkt');
  250. break;
  251. case 6:
  252. if (user.user_role_id < 76) {
  253. this.$router.push({name: 'zhjy_zhjytbjy'});
  254. } else {
  255. ElMessage.warning(`您暂无权限!`);
  256. }
  257. // localStorage.setItem('curNav', 'zbkt');
  258. break;
  259. case 7:
  260. this.$router.push({name: 'ysgc'});
  261. // localStorage.setItem('curNav', 'zbkt');
  262. break;
  263. case 8:
  264. this.$router.push({name: 'szmsg'});
  265. // localStorage.setItem('curNav', 'zbkt');
  266. break;
  267. case 9:
  268. this.$router.push({
  269. path: '/resourceAll',
  270. query: {
  271. kcName: '基础课程',
  272. kcId:1
  273. }
  274. });
  275. break;
  276. case 10:
  277. this.$router.push({
  278. path: '/resourceAll',
  279. query: {
  280. kcName: '特色课程',
  281. kcId: 5
  282. }
  283. });
  284. break;
  285. }
  286. }
  287. },
  288. lookDetail(id) {
  289. if (!user) {
  290. ElMessage.warning(`请先登录!`);
  291. } else {
  292. if (!this.isTeacher) {
  293. this.$router.push({name: "ysgc_stuDetail", params: {id: id}});
  294. } else {
  295. this.$router.push({name: "ysgc_jsDetail", params: {id: id}});
  296. }
  297. }
  298. },
  299. initXSData() {
  300. request({
  301. url: '/ysgc/zp/index',
  302. data: {
  303. yz_type: 1,
  304. }
  305. }).then(res => {
  306. if (res.code == 1) {
  307. this.xsyxzy = res.data.page_data;
  308. }
  309. })
  310. },
  311. initJSData() {
  312. request({
  313. url: '/ysgc/zp/index',
  314. data: {
  315. yz_type: 2,
  316. }
  317. }).then(res => {
  318. if (res.code == 1) {
  319. this.jsxyzp = res.data.page_data;
  320. }
  321. })
  322. },
  323. initZpData(type){
  324. request({
  325. url: '/ysgc/zp/index',
  326. data: {
  327. yz_type: type,
  328. }
  329. }).then(res => {
  330. if (res.code == 1) {
  331. this.zpList = res.data.page_data.splice(0,3);
  332. }
  333. })
  334. },
  335. switchZpType() {
  336. if(this.isTeacher) {
  337. this.isTeacher = false;
  338. this.initZpData(1)
  339. } else {
  340. this.isTeacher = true;
  341. this.initZpData(2);
  342. }
  343. },
  344. handleHover(index) {
  345. this.activeLive = index;
  346. if (index == 1) {
  347. this.liveData[1].bgImg = bgImg1;
  348. } else if (index == 2) {
  349. this.liveData[1].bgImg = bgImg2;
  350. }
  351. },
  352. // 漂浮动画方法
  353. startFloating() {
  354. const floatElement = document.querySelector('.fixed-chart');
  355. // 初始化位置为元素当前位置
  356. const initialRect = floatElement.getBoundingClientRect();
  357. this.floatPosition = {
  358. x: initialRect.left,
  359. y: initialRect.top
  360. };
  361. const updatePosition = () => {
  362. if (!this.isHovering && !this.dragging) {
  363. // 获取窗口尺寸和元素尺寸
  364. const windowWidth = window.innerWidth;
  365. const windowHeight = window.innerHeight;
  366. const elementRect = floatElement.getBoundingClientRect();
  367. // 更新位置
  368. this.floatPosition.x += this.floatVelocity.x;
  369. this.floatPosition.y += this.floatVelocity.y;
  370. // 检测边界碰撞并反弹 - 修正边界检测逻辑
  371. if (this.floatPosition.x <= 0 || this.floatPosition.x >= windowWidth - elementRect.width) {
  372. this.floatVelocity.x = -this.floatVelocity.x;
  373. // 确保不会卡在边界
  374. if (this.floatPosition.x <= 0) {
  375. this.floatPosition.x = 1;
  376. } else {
  377. this.floatPosition.x = windowWidth - elementRect.width - 1;
  378. }
  379. // 添加一点随机性使运动更自然
  380. this.floatVelocity.x += (Math.random() - 0.5) * 0.2;
  381. }
  382. if (this.floatPosition.y <= 0 || this.floatPosition.y >= windowHeight - elementRect.height) {
  383. this.floatVelocity.y = -this.floatVelocity.y;
  384. // 确保不会卡在边界
  385. if (this.floatPosition.y <= 0) {
  386. this.floatPosition.y = 1;
  387. } else {
  388. this.floatPosition.y = windowHeight - elementRect.height - 1;
  389. }
  390. // 添加一点随机性使运动更自然
  391. this.floatVelocity.y += (Math.random() - 0.5) * 0.2;
  392. }
  393. // 控制速度在合理范围内
  394. this.floatVelocity.x = Math.max(-1.5, Math.min(1.5, this.floatVelocity.x));
  395. this.floatVelocity.y = Math.max(-1.5, Math.min(1.5, this.floatVelocity.y));
  396. // 应用位置 - 使用绝对定位而不是transform
  397. floatElement.style.left = `${this.floatPosition.x}px`;
  398. floatElement.style.top = `${this.floatPosition.y}px`;
  399. floatElement.style.bottom = 'auto';
  400. floatElement.style.right = 'auto';
  401. }
  402. this.animationFrameId = requestAnimationFrame(updatePosition);
  403. };
  404. // 设置初始样式
  405. floatElement.style.transition = 'left 0.05s linear, top 0.05s linear';
  406. updatePosition();
  407. },
  408. stopFloating() {
  409. if (this.animationFrameId) {
  410. cancelAnimationFrame(this.animationFrameId);
  411. this.animationFrameId = null;
  412. }
  413. }
  414. },
  415. mounted() {
  416. this.initZpData(1);
  417. // 启动漂浮动画
  418. this.startFloating();
  419. },
  420. beforeUnmount() {
  421. // 清理动画
  422. this.stopFloating();
  423. },
  424. }
  425. </script>
  426. <style lang="scss" scoped>
  427. @import "@/styles/mixin.scss";
  428. </style>
  429. <style lang="scss" scoped>
  430. :deep(.el-carousel__mask){
  431. opacity: 0!important;
  432. }
  433. .fixed-chart {
  434. position: fixed; /* 保持fixed定位,但位置将由JS控制 */
  435. bottom: auto; /* 初始值,会被JS覆盖 */
  436. right: auto; /* 初始值,会被JS覆盖 */
  437. z-index: 1000;
  438. width: 200px !important;
  439. text-align: left;
  440. cursor: pointer;
  441. user-select: none;
  442. touch-action: none;
  443. transition: left 0.05s linear, top 0.05s linear; /* 修改过渡效果 */
  444. .chart-content {
  445. margin-left: auto;
  446. cursor: pointer;
  447. img {
  448. width: 100%;
  449. height: auto;
  450. }
  451. }
  452. &:hover {
  453. transition-duration: 0.2s; /* 悬停时过渡效果更明显 */
  454. }
  455. }
  456. .main {
  457. width: 1200px;
  458. margin: 0 auto;
  459. }
  460. .banner-box {
  461. width: 100%;
  462. height: 533px;
  463. .banner {
  464. width: 100%;
  465. height: 100%;
  466. }
  467. .mask {
  468. position: absolute;
  469. left: 0;
  470. top: 0;
  471. z-index: 50;
  472. width: 100%;
  473. height: 100%;
  474. background: radial-gradient(
  475. rgba(255, 255, 255, 0),
  476. rgba(160, 221, 255, 0),
  477. rgba(74, 190, 255, 0.54),
  478. rgba(0, 163, 255, 0.86)
  479. );
  480. }
  481. .right-menu {
  482. position: absolute;
  483. left: 50%;
  484. top: 0;
  485. z-index: 60;
  486. margin-left: 505px;
  487. width: 318px;
  488. height: 560px;
  489. background: linear-gradient(
  490. 270deg,
  491. rgba(0, 163, 255, 0.41),
  492. rgba(0, 208, 255, 0.16)
  493. );
  494. display: flex;
  495. justify-content: right;
  496. ul {
  497. padding-top: 60px;
  498. padding-right: 10px;
  499. li {
  500. font-size: 16px;
  501. color: #fff;
  502. position: relative;
  503. text-align: right;
  504. height: 30px;
  505. line-height: 30px;
  506. cursor: pointer;
  507. &.selected,
  508. &:hover {
  509. font-size: 28px;
  510. }
  511. & + li {
  512. margin-top: 18px;
  513. }
  514. }
  515. }
  516. }
  517. }
  518. .content-bg {
  519. width: 100%;
  520. background: #f6f8fa;
  521. }
  522. .title-img {
  523. width: 320px;
  524. height: 77px;
  525. margin: 0 auto 30px;
  526. img {
  527. width: 100%;
  528. }
  529. }
  530. .course-box {
  531. position: relative;
  532. z-index: 80;
  533. margin-top: -48px;
  534. align-items: center;
  535. .arrow {
  536. width: 20px;
  537. height: 20px;
  538. &.prev {
  539. background: url("/images/home/arr-left.png") center no-repeat;
  540. background-size: 20px 20px;
  541. &:hover {
  542. background: url("/images/home/arr-left-hover.png") center no-repeat;
  543. background-size: 20px 20px;
  544. }
  545. }
  546. &.next {
  547. background: url("/images/home/arr-right.png") center no-repeat;
  548. background-size: 20px 20px;
  549. &:hover {
  550. background: url("/images/home/arr-right-hover.png") center no-repeat;
  551. background-size: 20px 20px;
  552. }
  553. }
  554. }
  555. .swiper-container-horizontal:deep {
  556. .swiper-button-prev:after,
  557. .swiper-container-rtl .swiper-button-next:after {
  558. display: none;
  559. }
  560. .swiper-button-next:after,
  561. .swiper-container-rtl .swiper-button-prev:after {
  562. display: none;
  563. }
  564. .swiper-button-prev,
  565. .swiper-button-next,
  566. .swiper-button-prev1,
  567. .swiper-button-next1 {
  568. position: sticky;
  569. left: unset;
  570. right: unset;
  571. }
  572. }
  573. .course-list {
  574. width: 100%;
  575. display: flex;
  576. li,
  577. .swiperContent {
  578. cursor: pointer;
  579. // min-width: 223px;
  580. // width: 223px;
  581. border-radius: 12px;
  582. background: #fff;
  583. // + li {
  584. // margin-left: 14px;
  585. // }
  586. }
  587. .course-img {
  588. width: 100%;
  589. height: 131px;
  590. border-radius: 12px 12px 0 0;
  591. overflow: hidden;
  592. img {
  593. width: 100%;
  594. }
  595. .tag-info {
  596. position: absolute;
  597. right: 0;
  598. top: 0;
  599. z-index: 30;
  600. width: 145px;
  601. height: 27px;
  602. background: rgba(0, 0, 0, 0.59);
  603. border-radius: 0 10px 0 10px;
  604. .tag-icon {
  605. width: 20px;
  606. height: 20px;
  607. &.prove {
  608. background: url("/images/home/icon-prove.png") center no-repeat;
  609. background-size: 14px 14px;
  610. }
  611. &.favor {
  612. background: url("/images/home/icon-favor.png") center no-repeat;
  613. background-size: 15px 13px;
  614. }
  615. }
  616. }
  617. }
  618. .course-info {
  619. width: 100%;
  620. padding: 8px 6px;
  621. }
  622. }
  623. }
  624. .title {
  625. width: 241px;
  626. height: 50px;
  627. background: url("/images/home/title-bg.png") center no-repeat;
  628. font-size: 34px;
  629. color: #000;
  630. text-align: center;
  631. line-height: 50px;
  632. }
  633. .res-list {
  634. display: flex;
  635. a {
  636. width: 251px;
  637. height: 390px;
  638. border-radius: 12px;
  639. background: #fff;
  640. padding-top: 56px;
  641. margin-left: 18px;
  642. &:hover {
  643. position: relative;
  644. z-index: 30;
  645. border: 2px solid #00a3ff;
  646. box-shadow: 0 0 6px rgba(0, 78, 255, 0.79);
  647. transform: scale(1.2);
  648. }
  649. .res-icon {
  650. width: 89px;
  651. height: 89px;
  652. img {
  653. width: 100%;
  654. }
  655. }
  656. }
  657. }
  658. .live-list {
  659. padding-left: 100px;
  660. a {
  661. height: 391px;
  662. .list {
  663. height: 100%;
  664. width: 300px;
  665. cursor: pointer;
  666. display: flex;
  667. align-items: center;
  668. justify-content: center;
  669. transition: width linear 0.05s;
  670. }
  671. .activeLive {
  672. margin-top: -15px;
  673. margin-right: -25px;
  674. width: 885px;
  675. height: 439px;
  676. cursor: pointer;
  677. display: block;
  678. }
  679. }
  680. }
  681. .wit-list {
  682. display: flex;
  683. li {
  684. width: 500px;
  685. height: 381px;
  686. background: #ffffff;
  687. border-radius: 12px;
  688. box-shadow: 0 10px 24px rgba(153, 162, 168, 0.18);
  689. img {
  690. display: block;
  691. margin: -60px auto 40px;
  692. max-width: 100%;
  693. }
  694. & + li {
  695. margin-left: 50px;
  696. }
  697. }
  698. }
  699. .arrow-right {
  700. width: 20px;
  701. height: 20px;
  702. background: url("/images/home/arrow-right.png") center no-repeat;
  703. background-size: 20px 20px;
  704. &.blue {
  705. background: url("/images/home/arrow-right-blue.png") center no-repeat;
  706. background-size: 20px 20px;
  707. }
  708. }
  709. .m-box {
  710. width: 833px;
  711. height: 277px;
  712. padding: 41px 0 0 81px;
  713. &:first-child {
  714. background: url("/images/home/m-1.png") center no-repeat;
  715. }
  716. &:nth-child(2) {
  717. background: url("/images/home/m-2.png") center no-repeat;
  718. }
  719. }
  720. .switch-right {
  721. position: absolute;
  722. right: 0;
  723. bottom: 35px;
  724. width: 162px;
  725. font-size: 24px;
  726. color: #000;
  727. text-align: left;
  728. padding-left: 15px;
  729. .tag {
  730. position: absolute;
  731. left: 0;
  732. bottom: -3px;
  733. width: 100%;
  734. height: 18px;
  735. background: url("/images/home/tag.png") center no-repeat;
  736. background-size: 162px 18px;
  737. }
  738. .arrow {
  739. position: absolute;
  740. right: 10px;
  741. top: 50%;
  742. margin-top: -7px;
  743. width: 10px;
  744. height: 14px;
  745. background: url("/images/home/icon-arrow-new.png") center no-repeat;
  746. background-size: 10px 14px;
  747. }
  748. }
  749. .work-list {
  750. li {
  751. width: 380px;
  752. height: 380px;
  753. background: #ffffff;
  754. border-radius: 10px;
  755. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  756. cursor: pointer;
  757. &+li{
  758. margin-left: 30px;
  759. }
  760. }
  761. .work-img {
  762. width: 350px;
  763. height: 227px;
  764. border-radius: 10px;
  765. overflow: hidden;
  766. img {
  767. width: 100%;
  768. }
  769. }
  770. .work-info{
  771. width: 100%;
  772. border-top: 1px dashed rgba(112,112,112,.25);
  773. .arrow{
  774. width: 15px;
  775. height: 8px;
  776. background: url("/images/home/icon.png") center no-repeat;
  777. background-size: 15px 8px;
  778. }
  779. }
  780. }
  781. .zbkt{
  782. position: relative;
  783. width: 1272px;
  784. height: 432px;
  785. left: -36px;
  786. .zb-link{
  787. position: absolute;
  788. z-index: 20;
  789. &.left{
  790. top: 50px;
  791. left: 35px;
  792. width: 255px;
  793. height: 310px;
  794. }
  795. &.middle{
  796. top: 25px;
  797. left: 297px;
  798. width: 678px;
  799. height: 360px;
  800. }
  801. &.right{
  802. top: 50px;
  803. right: 35px;
  804. width: 255px;
  805. height: 310px;
  806. }
  807. }
  808. }
  809. </style>