login.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. <template>
  2. <div style="overflow:hidden;width:100%">
  3. <div style="background: #fff6e8;">
  4. <div style="max-width:1400px;margin:0 auto">
  5. <top v-if="topLoadin" @userNavTo="userTo"></top>
  6. </div>
  7. </div>
  8. <div style="min-width: 1400px;background: #fff6e8;overflow:hidden;width:100%">
  9. <div style=" position:absolute;width:100%;z-index: 999;">
  10. <div style="max-width:1400px;margin:0 auto;padding: 30px; ">
  11. <el-row :gutter="24">
  12. <el-col :span="9" :xs="24">
  13. <img src="@/assets/images/login_img_logo.png" />
  14. <div style="width: 400px; background: #fff; padding: 30px; margin: 100px auto;">
  15. <img style="width: 60%;margin-left:20%;" src="@/assets/images/login_logo.png" />
  16. <div style="color: #47C6A2;text-align: center; margin-top: 20px;font-size: 18px;font-weight: bold;letter-spacing: 10px;margin-bottom: 40px;">WELCOME</div>
  17. <el-form v-if="!isLogin" ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" style="width: auto;">
  18. <el-form-item prop="username">
  19. <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
  20. <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
  21. </el-input>
  22. </el-form-item>
  23. <el-form-item prop="password">
  24. <el-input
  25. v-model="loginForm.password"
  26. type="password"
  27. auto-complete="off"
  28. placeholder="密码"
  29. @keyup.enter.native="handleLogin"
  30. >
  31. <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
  32. </el-input>
  33. </el-form-item>
  34. <!-- <el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox> -->
  35. <div class="mx-forget-pwd">
  36. <label @click="forgetDialogVisiable=true">忘记密码?</label>
  37. </div>
  38. <el-form-item style="width:100%;">
  39. <el-button :loading="loading" size="medium" type="primary" style="width:100%;" @click.native.prevent="handleLogin">
  40. <span v-if="!loading">登 录</span>
  41. <span v-else>登 录 中...</span>
  42. </el-button>
  43. </el-form-item>
  44. </el-form>
  45. <div v-if="isLogin">
  46. <div class="text-center">
  47. <div class="user-info-head">
  48. <img src="@/assets/images/profile.jpg" tclass="img-circle img-lg" style="border-radius:50%;width:80px;" />
  49. </div>
  50. </div>
  51. <div style="padding-bottom:10px;">
  52. <div class="text-center" style="font-weight:both;margin-top:20px;margin-bottom:10px">{{currentUser.userName}}</div>
  53. <p class="text-center" style="color:#999;font-size:14px">
  54. <span>{{currentUser.nickName}} {{currentSchoolName}}</span>
  55. </p>
  56. </div>
  57. <div class="list-group-item" style="margin-top:20px;border:none">
  58. <span style="display:inline-block;width:33%;text-align:center;cursor:pointer">
  59. <img style="width: 16px;position: relative;top: 2px;margin-right: 5px;" src="@/assets/images/icon_jifen.png" alt />
  60. {{currentUser.points || 0}}积分
  61. </span>
  62. <span @click="userTo()" style="display:inline-block;width:33%;text-align:center;color:#4055F7;cursor:pointer">
  63. <img style="width: 16px;position: relative;top: 2px;margin-right: 5px;" src="@/assets/images/icon_user.png" alt />个人中心
  64. </span>
  65. <span @click="logout" style="display:inline-block;width:33%;text-align:center;color:#C93C3C;cursor:pointer">
  66. <img style="width: 16px;position: relative;top: 2px;margin-right: 5px;" src="@/assets/images/icon_back.png" alt />退出
  67. </span>
  68. </div>
  69. </div>
  70. </div>
  71. </el-col>
  72. <el-col :span="15" :xs="24">
  73. <div>
  74. <div v-for="(item,idx) in visibleRouters" :key="idx" style="float:left;margin-right:40px;line-height: 50px;">
  75. <el-link @click="to(item)" style="color:#fff;font-size: 16px;">
  76. <svg-icon :icon-class="item.meta.icon" style="margin-right:5px" />
  77. {{item.meta.title}}
  78. </el-link>
  79. </div>
  80. <!-- <div style="float:left;margin-right:50px; ">
  81. <el-link @click="to('/user/profile')"
  82. style="color:#fff;font-size: 16px;border-radius:24px;border:1px solid #fff;padding:5px 20px; margin-top: 7px;">
  83. <i class="el-icon-user-solid" style="magin-right:5px"></i>个人中心
  84. </el-link>
  85. </div>-->
  86. </div>
  87. </el-col>
  88. </el-row>
  89. </div>
  90. </div>
  91. <!-- <img style="width: 100%;" src="@/assets/images/home_banner.png"/>-->
  92. <img style="width: 100%;" src="https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/mingxueMainImgs/home_banner.png" />
  93. <div class="special-class-container hidden-course percent-count">
  94. <div class="text-center" style="margin:70px;font-size:52px;font-weight: bold;">名学助力 金榜提名</div>
  95. <ul>
  96. <li>
  97. <div class="transition-box">
  98. <div class="gifts-icon">
  99. <span class="start-bg"></span>
  100. <em class="main-bg"></em>
  101. </div>
  102. <span class="gifts-title">优质师资</span>
  103. <p class="gifts-desc">专业教师主讲</p>
  104. </div>
  105. </li>
  106. <li>
  107. <div class="transition-box">
  108. <div class="gifts-icon">
  109. <span class="start-bg"></span>
  110. <em class="main-bg"></em>
  111. </div>
  112. <span class="gifts-title">单题微课</span>
  113. <p class="gifts-desc">实时录制 精准教学</p>
  114. </div>
  115. </li>
  116. <li>
  117. <div class="transition-box">
  118. <div class="gifts-icon">
  119. <span class="start-bg"></span>
  120. <em class="main-bg"></em>
  121. </div>
  122. <span class="gifts-title">三库联动</span>
  123. <p class="gifts-desc">发现最合适的资源</p>
  124. </div>
  125. </li>
  126. <li>
  127. <div class="transition-box">
  128. <div class="gifts-icon">
  129. <span class="start-bg"></span>
  130. <em class="main-bg"></em>
  131. </div>
  132. <span class="gifts-title">学乐园</span>
  133. <p class="gifts-desc">快乐学习 快乐提升</p>
  134. </div>
  135. </li>
  136. </ul>
  137. <!-- <div class="text-center" style="margin-top:70px;font-size:28px;font-weight: bold;">在线答题 实时阅卷</div> -->
  138. <div>
  139. <!-- <img src="@/assets/images/wdpc.png" style="width:100%;display:block" alt="">-->
  140. <!-- <img src="@/assets/images/zxdt.png" style="width:100%;display:block" alt="">-->
  141. <!-- <img src="@/assets/images/dwdbb.png" style="width:100%;display:block" alt="">-->
  142. <!-- <img src="@/assets/images/skld.png" style="width:100%;display:block" alt="">-->
  143. <img src="https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/mingxueMainImgs/wdpc.png" style="width:100%;display:block" alt />
  144. <img src="https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/mingxueMainImgs/zxdt.png" style="width:100%;display:block" alt />
  145. <img src="https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/mingxueMainImgs/dwdbb.png" style="width:100%;display:block" alt />
  146. <img src="https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/mingxueMainImgs/skld.png" style="width:100%;display:block" alt />
  147. </div>
  148. <div style="clear:both"></div>
  149. </div>
  150. <!-- <img :src="topImg" style="width: 30px;height: 30px;" alt=""> -->
  151. </div>
  152. <el-dialog v-if="dialogVisible" title :visible.sync="dialogVisible" width="850px">
  153. <complete-profile @completed="handleProfileCompleted" style="margin-left:250px; padding:0 30px"></complete-profile>
  154. </el-dialog>
  155. <el-dialog v-if="forgetDialogVisiable" :visible.sync="forgetDialogVisiable" title="忘记密码" width="650px" style="height:600px">
  156. <forget-password @resetPwdSuccess="forgetDialogVisiable=false"></forget-password>
  157. </el-dialog>
  158. <bottom-p></bottom-p>
  159. </div>
  160. </template>
  161. <script>
  162. import store from "@/store";
  163. import router from "@/router";
  164. import { mapGetters, mapActions } from "vuex";
  165. import auth from "@/utils/auth";
  166. import {
  167. getUserInfoByAgentcode,
  168. getFrontInitialRouters,
  169. } from "@/api/system/user";
  170. import * as gradeAxios from "@/api/webApi/grade";
  171. import * as loginAxios from "@/api/login";
  172. import * as system from "@/api/webApi/system";
  173. import forgetPassword from "./components/forget-pwd.vue";
  174. import CompleteProfile from "./components/complete-profile.vue";
  175. export default {
  176. components: {
  177. forgetPassword,
  178. CompleteProfile,
  179. },
  180. data() {
  181. return {
  182. forgetDialogVisiable: false,
  183. topLoadin: true,
  184. isLogin: auth.getToken(),
  185. loginObj: {},
  186. loading: false,
  187. gradeLoading: false,
  188. navList: [],
  189. loginForm: {
  190. username: "",
  191. password: "",
  192. // rememberMe: false,
  193. // code: "",
  194. // uuid: "",
  195. relation: 1,
  196. grade: 2,
  197. year: "",
  198. },
  199. loginRules: {
  200. relation: [
  201. {
  202. required: true,
  203. trigger: "blur",
  204. message: "请选择学生端或者老师端",
  205. },
  206. ],
  207. grade: [
  208. {
  209. required: true,
  210. trigger: "blur",
  211. message: "请选择学校类别",
  212. },
  213. ],
  214. username: [
  215. {
  216. required: true,
  217. trigger: "blur",
  218. message: "用户名不能为空",
  219. },
  220. ],
  221. password: [
  222. {
  223. required: true,
  224. trigger: "blur",
  225. message: "密码不能为空",
  226. },
  227. ],
  228. code: [
  229. {
  230. required: true,
  231. trigger: "change",
  232. message: "验证码不能为空",
  233. },
  234. ],
  235. },
  236. options: {
  237. img: store.getters.avatar, //裁剪图片的地址
  238. },
  239. submitLoading: false,
  240. schoolData: [],
  241. gradeData: [],
  242. classData: [],
  243. areaSchoolAndYears: {},
  244. isSecd: false,
  245. times: 120,
  246. form: {
  247. username: "",
  248. phoneNumber: "",
  249. code: "",
  250. schoolId: "",
  251. gradeId: [],
  252. clazzId: [],
  253. },
  254. subjectData: [],
  255. dialogVisible: false,
  256. id: 0,
  257. props: {
  258. lazy: true,
  259. lazyLoad(node, resolve) {
  260. const { level } = node;
  261. setTimeout(() => {
  262. const nodes = Array.from({
  263. length: level + 1,
  264. }).map((item) => {
  265. let a = "";
  266. if (level == "0") {
  267. a = "省";
  268. } else if (level == "1") {
  269. a = "市";
  270. } else {
  271. a = "区";
  272. }
  273. return {
  274. value: 1212,
  275. label: `选项${a} `,
  276. leaf: level >= 2,
  277. };
  278. });
  279. // 通过调用resolve将子节点数据返回,通知组件数据加载完成
  280. resolve(nodes);
  281. }, 1000);
  282. },
  283. },
  284. };
  285. },
  286. computed: {
  287. ...mapGetters([
  288. "isFrontStudent",
  289. "isFrontTeacher",
  290. "isFrontMaster",
  291. "currentUser",
  292. ]),
  293. visibleRouters() {
  294. return this.navList.filter((r) => r.meta?.title && !r.hidden);
  295. },
  296. currentSchoolName() {
  297. return this.currentUser.busiSchool?.first()?.schoolName;
  298. },
  299. },
  300. created() {
  301. let u = navigator.userAgent;
  302. let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1;
  303. if (isAndroid) {
  304. let url = this.$route.fullPath.split("?")[1];
  305. if (url && !this.isLogin) {
  306. let urlData = url.split("&");
  307. for (let i = 0; i < urlData.length; i++) {
  308. this.loginObj[urlData[i].split("=")[0]] =
  309. urlData[i].split("=")[1];
  310. }
  311. if (this.loginObj.username && this.loginObj.password) {
  312. // 直接发起登录
  313. this.loading = true;
  314. this.Login(this.loginObj)
  315. .then(() => {
  316. this.isLogin = true;
  317. this.loading = false;
  318. this.getUser();
  319. this.getNav();
  320. // this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
  321. })
  322. .catch(() => {
  323. this.loading = false;
  324. });
  325. }
  326. }
  327. } else {
  328. this.getUser();
  329. this.getNav();
  330. }
  331. },
  332. methods: {
  333. ...mapActions(["GenerateRoutes", "Login", "LogOut", "GetInfo"]),
  334. getNav() {
  335. console.log(
  336. "getNav called",
  337. "real menu=" + !!(this.islogin && this.currentUser.isBind),
  338. this.currentUser,
  339. this.isLogin
  340. );
  341. if (this.isLogin) {
  342. this.GenerateRoutes().then((accessRoutes) => {
  343. console.log("GenerateRoutes accessRoutes", accessRoutes);
  344. router.addRoutes(accessRoutes); // 动态添加可访问路由表
  345. this.navList = JSON.parse(
  346. JSON.stringify(
  347. this.$store.state.permission.topbarRouters
  348. )
  349. );
  350. });
  351. } else {
  352. getFrontInitialRouters().then((res) => {
  353. this.navList = res.data.map((r) => ({
  354. path: r.path,
  355. meta: r.meta,
  356. }));
  357. });
  358. }
  359. },
  360. gouAction(data) {
  361. if (data && data.length > 0) {
  362. if (data[0].children && data[0].children.length > 0) {
  363. if (
  364. data[0].children[0].children &&
  365. data[0].children[0].children.length > 0
  366. ) {
  367. return data[0].children[0].children.path;
  368. } else {
  369. return data[0].path + "/" + data[0].children[0].path;
  370. }
  371. } else {
  372. return data[0].path;
  373. }
  374. } else {
  375. return "";
  376. }
  377. },
  378. handleClick(data) {
  379. let item = JSON.parse(JSON.stringify(data));
  380. let routes = []; //三级菜单
  381. let second = []; //二级
  382. let routesTo = [];
  383. if (item.children) {
  384. //有二级菜单
  385. item.children.forEach((item2) => {
  386. if (item2.children) {
  387. item2.children.forEach((item3) => {
  388. item3.path =
  389. item.path + "/" + item2.path + "/" + item3.path;
  390. });
  391. if (routes.length == 0 && item2.children.length) {
  392. //一级菜单下面第一个有3个菜单的二级菜单
  393. routes = item2.children;
  394. routesTo = item2.children;
  395. }
  396. } else {
  397. routesTo = item.children;
  398. }
  399. item2.path = item.path + "/" + item2.path;
  400. item2.level = 2;
  401. second.push(item2);
  402. });
  403. let fal = false;
  404. second.forEach((item) => {
  405. if (!fal && item.children && item.children.length > 0) {
  406. auth.setActiveMenu(item.path);
  407. fal = true;
  408. }
  409. });
  410. auth.setMenuTab(second);
  411. this.three = true;
  412. this.$store.commit("SET_SIDEBAR_ROUTERS", routes);
  413. } else {
  414. //没有二级菜单
  415. this.$store.commit("SET_SIDEBAR_ROUTERS", []);
  416. this.$router.push({
  417. path: item.path,
  418. });
  419. }
  420. let path = this.gouAction(routesTo);
  421. if (path) {
  422. this.$router.push({
  423. path: path,
  424. });
  425. auth.setMenuListAction(path);
  426. } else {
  427. }
  428. auth.setMenuList(routes);
  429. },
  430. logout() {
  431. this.$confirm("确定注销并退出系统吗?", "提示", {
  432. confirmButtonText: "确定",
  433. cancelButtonText: "取消",
  434. type: "warning",
  435. }).then(() => {
  436. this.LogOut().then(() => {
  437. this.isLogin = false;
  438. this.getNav();
  439. this.topLoadin = false;
  440. this.loginObj = {};
  441. setTimeout(() => {
  442. this.topLoadin = true;
  443. this.$router.push({ path: "/login" });
  444. }, 10);
  445. });
  446. });
  447. },
  448. getUser() {
  449. if (!this.isLogin) return;
  450. this.GetInfo().then((response) => {
  451. this.dialogVisible = !this.currentUser.isBind;
  452. this.topLoadin = false;
  453. setTimeout(() => {
  454. this.topLoadin = true;
  455. }, 10);
  456. });
  457. },
  458. userTo() {
  459. //跳转至个人中心
  460. if (this.isLogin && !this.currentUser.isBind) {
  461. this.dialogVisible = true;
  462. this.$message.error("请先完善信息!");
  463. return;
  464. }
  465. const pcRouter = this.navList.find((r) => r.path == "/user");
  466. if (pcRouter) this.to(pcRouter);
  467. },
  468. to(url) {
  469. console.log("will go to", url);
  470. auth.removeMenuTab();
  471. auth.removeMenuList();
  472. if (this.isLogin && this.currentUser.isBind) {
  473. if (url == "/login") {
  474. window.location.reload();
  475. return;
  476. }
  477. if (
  478. url ==
  479. "/index?type=http://8.134.76.179/index.php?m=login&token=94c750ea0f7f41d7753327792e937589"
  480. ) {
  481. window.open(
  482. "http://8.134.76.179/index.php?m=login&token=" +
  483. this.currentUser.code
  484. );
  485. } else if (url == "/user/profile") {
  486. this.$router.push({
  487. path: url,
  488. });
  489. } else {
  490. this.handleClick(url);
  491. }
  492. } else if (this.isLogin && this.currentUser.isBind) {
  493. this.dialogVisible = true;
  494. this.$message.error("请先完善信息!");
  495. } else {
  496. this.$message.error("请先登陆!");
  497. }
  498. },
  499. handleLogin() {
  500. this.$refs.loginForm.validate((valid) => {
  501. if (valid) {
  502. this.loading = true;
  503. this.Login(this.loginForm)
  504. .then(() => {
  505. this.isLogin = true;
  506. this.loading = false;
  507. this.getUser();
  508. this.getNav();
  509. // this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
  510. })
  511. .catch(() => {
  512. this.loading = false;
  513. });
  514. }
  515. });
  516. },
  517. handleProfileCompleted() {
  518. this.dialogVisible = !this.currentUser.isBind;
  519. this.getNav(); //重新获取菜单
  520. },
  521. },
  522. };
  523. </script>
  524. <style scoped>
  525. .mx-forget-pwd {
  526. display: flex;
  527. justify-content: flex-end;
  528. color: #999999;
  529. font-size: 14px;
  530. margin-bottom: 20px;
  531. }
  532. .mx-forget-pwd label {
  533. cursor: pointer;
  534. }
  535. /deep/.el-input-group__append button.el-button {
  536. background: #e6a23c;
  537. color: #fff;
  538. }
  539. /deep/.el-dialog {
  540. background: url("../assets/images/img_bg1.png") no-repeat;
  541. /* background-size: 100% 100%;
  542. height: 580px; */
  543. max-height: 520px;
  544. width: 800px;
  545. }
  546. /deep/.el-card__body {
  547. padding: 0;
  548. }
  549. /deep/.el-form-item {
  550. margin-bottom: 15px;
  551. }
  552. .header-h {
  553. background: #47c6a2;
  554. }
  555. /deep/.el-dialog__close {
  556. color: #999999;
  557. }
  558. p {
  559. margin: 0;
  560. }
  561. .special-class-container {
  562. background: #fff6e8;
  563. }
  564. .special-class-container .title,
  565. .special-class-container ul {
  566. display: -webkit-box;
  567. display: -webkit-flex;
  568. display: -ms-flexbox;
  569. display: flex;
  570. }
  571. .title-info-container {
  572. display: -webkit-box;
  573. display: -webkit-flex;
  574. display: -ms-flexbox;
  575. display: flex;
  576. -webkit-box-align: center;
  577. -webkit-align-items: center;
  578. -ms-flex-align: center;
  579. align-items: center;
  580. color: #333;
  581. font-size: 40px;
  582. line-height: 56px;
  583. font-weight: 700;
  584. }
  585. .special-class-container ul {
  586. margin: 0 auto;
  587. width: 1400px;
  588. height: 215px;
  589. -webkit-box-align: center;
  590. -webkit-align-items: center;
  591. -ms-flex-align: center;
  592. align-items: center;
  593. -webkit-justify-content: space-around;
  594. -ms-flex-pack: distribute;
  595. justify-content: space-around;
  596. }
  597. .special-class-container ul li {
  598. position: relative;
  599. width: 260px;
  600. height: 215px;
  601. -webkit-border-radius: 6px 20px 6px 20px;
  602. border-radius: 6px 20px 6px 20px;
  603. list-style-type: none;
  604. }
  605. .special-class-container ul li .transition-box {
  606. position: absolute;
  607. left: 0;
  608. top: 0;
  609. display: -webkit-box;
  610. display: -webkit-flex;
  611. display: -ms-flexbox;
  612. display: flex;
  613. -webkit-box-orient: vertical;
  614. -webkit-box-direction: normal;
  615. -webkit-flex-direction: column;
  616. -ms-flex-direction: column;
  617. flex-direction: column;
  618. -webkit-box-align: center;
  619. -webkit-align-items: center;
  620. -ms-flex-align: center;
  621. align-items: center;
  622. width: 260px;
  623. height: 215px;
  624. background: #fff;
  625. -webkit-border-radius: 6px 20px 6px 20px;
  626. border-radius: 6px 20px 6px 20px;
  627. -webkit-transition: all 0.3s ease-in-out;
  628. -o-transition: all 0.3s ease-in-out;
  629. transition: all 0.3s ease-in-out;
  630. }
  631. .special-class-container ul li .gifts-icon {
  632. position: relative;
  633. margin-top: 40px;
  634. width: 52px;
  635. height: 52px;
  636. -webkit-border-radius: 6px 20px 6px 20px;
  637. border-radius: 6px 20px 6px 20px;
  638. background: -o-linear-gradient(
  639. 225deg,
  640. rgba(94, 232, 193, 0.2) 0,
  641. rgba(71, 198, 162, 0.2) 100%
  642. );
  643. background: linear-gradient(
  644. 225deg,
  645. rgba(94, 232, 193, 0.2),
  646. rgba(71, 198, 162, 0.2)
  647. );
  648. }
  649. .special-class-container ul li .start-bg {
  650. top: -5px;
  651. left: 21px;
  652. width: 10px;
  653. height: 20px;
  654. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAABqCAYAAAAsnso2AAANOElEQVR4Xu2dW2xUxxnH/3PO2ZvttY1jY2yuwRAuNibY3C9pUqWtUqlqHxpXTatGCbm8RWoVcEgegIcmgVat1JcqCTSNlPRi+tY2UdNKoQ3FQIBifMHGNoGYGION47t3vXtmqrOwu2ftXXt2bXzO4m8RD7DfzPfN7/vvnJk5c+Yw2PizX+xX/tk+nB8YUgt0JryqgzmNcPWAGFMFG3Rk6d3fKMnsOcgOchs3g0KbAQJsBuq4J1Xsat1X4B8NrNAVxT2ZA5Vzn8vjaPt05Rvd9yQQqtQWBGwnVCEE2964r2QMfHEyhJxQOk6WvtHOGBPJlCPb9CBgO6Fua3hlRbIiDaM2xFpb9mZbeqCnKJMhYCuhGpf7Eb9eNr4BmWqgpygzOFKQPRoai3YPeJQbw1rGsO7IH2+b4VIbaBiQjATSw9Y2QjUmTh/VD28xj0kZxFhJtq9r8V2BjkfaMeBR2gfcCwTuTLKMjzFmfWJd5mmaYKWHAGWjtI1Qt7e9PN/vU0rNga/IHv0ikUjDdoZY2wY8S8zlXG7eeHLFL2/JQiA7+xOwjVA3Xagu5ZqYH0ZmXO43Fw0OySA8c8ObZR4GKEF267OHDzXKlCWb9CBgG6FW1O3dylR4wthketNEvarQMXp+/eFT6ZECilKGgG2Euqmp+hHOhRoOetui3quTLqCaWucDUHs9b1n4vxSF6Z+tPfQfGQBkkx4ESKjpkac5H6VthEqX/jmvxUkB2EaoNJkioU5GwDZCpeUpEmpaCJUW/EmoaSFUI0i6hUpiTUTANpf+yLIUbUohtcYhYDuh0jY/0mk8ArYTajhI2jhNgjUTsK1QjSDpURQSa5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QEWpNjVD/FcQ2XUcpJr5j7Q4CHVBVND6uobaqihmvXKEPEZgVAiGhGiL9RxDfBlAs6bXzWxo+JLFK0iKzaRMICfWFP4idOlCaTG0q0Pj2U+xEMmXIlgikSoAZY1L48WTM5V5ghCto13QYL6tCUIVD4aEXs2ZEHBkXfheO0Zg1VfRULhkC7Pk/iu1cYF2kkMCIUHApXiWMY41ZrApD/Ts/ZCeTcUi2RCAVAuy598UPhILIW345Qz1D/JdUCcCpmETNOPqO/Jj9ORXHVIYIJEOAPfuB2M0YjHdThz4Kx3ldjb4n3VyZqoNxBRXh/xMCwd/9iB1NxiHZEoFUCJBQU6FGZWadAF36Zx05OUyFAE2mUqFGZWadAC1PzTpycpgKAVrwT4UalZl1AnQLddaRk8NUCNCmlFSoUZlZJ0Db/GYdOTlMhcD/AY6j6qfMM6akAAAAAElFTkSuQmCC)
  655. no-repeat 50%;
  656. background-size: contain;
  657. }
  658. .special-class-container ul li .main-bg,
  659. .special-class-container ul li .start-bg {
  660. position: absolute;
  661. display: inline-block;
  662. -webkit-transition: all 0.3s ease-in-out;
  663. -o-transition: all 0.3s ease-in-out;
  664. transition: all 0.3s ease-in-out;
  665. }
  666. .special-class-container ul li .main-bg,
  667. .special-class-container ul li .start-bg {
  668. position: absolute;
  669. display: inline-block;
  670. -webkit-transition: all 0.3s ease-in-out;
  671. -o-transition: all 0.3s ease-in-out;
  672. transition: all 0.3s ease-in-out;
  673. }
  674. .special-class-container ul li .main-bg {
  675. right: 0;
  676. top: 0;
  677. }
  678. .special-class-container ul li:first-of-type .main-bg {
  679. width: 35px;
  680. height: 41px;
  681. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABSCAYAAADpaaIJAAAKDUlEQVR4Xu2ceXAT1x3H960lrW7LlmzJuizb8n3hkOBwBYZJYzqlbUoS2lBDEoak06SdNp0MLW0aCnSaDO2UdmiSacIAwTTJkIamLZ0CzXg4GoNJHBnwiSVb1uVLsnXLK8m7nSfixjbC1kq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u7J7GdAnpl3Doa2unXVs7lS190fEtGv8Dj4axIfcsdnwAAAAASUVORK5CYII=)
  682. no-repeat 50%;
  683. background-size: 100% 100%;
  684. }
  685. .special-class-container.hidden-course ul li:first-of-type .main-bg {
  686. background: url("../assets/images/icon_zhinengceping.png") no-repeat 50%;
  687. background-size: 100% 100%;
  688. height: 39px;
  689. right: -2px;
  690. }
  691. .special-class-container.hidden-course ul li:nth-of-type(2) .main-bg {
  692. width: 38px;
  693. height: 44px;
  694. background-size: 100% 100%;
  695. background: url("../assets/images/icon_dantiweike.png") no-repeat 50%;
  696. }
  697. .special-class-container ul li:nth-of-type(3) .main-bg {
  698. width: 38px;
  699. height: 44px;
  700. background: url("../assets/images/icon_sankuliandong.png") no-repeat 50%;
  701. background-size: 100% 100%;
  702. }
  703. .special-class-container ul li:nth-of-type(4) .main-bg {
  704. width: 42px;
  705. height: 42px;
  706. background: url("../assets/images/icon_kuailejinsai.png") no-repeat 50%;
  707. background-size: 100% 100%;
  708. }
  709. .special-class-container ul li .gifts-title {
  710. color: #333;
  711. font-size: 28px;
  712. line-height: 40px;
  713. font-weight: 700;
  714. margin: 19px 0 6px;
  715. -webkit-transition: color forwards 2s;
  716. -o-transition: color 2s forwards;
  717. transition: color forwards 2s;
  718. }
  719. .special-class-container ul li .gifts-desc {
  720. color: #666;
  721. font-size: 14px;
  722. line-height: 20px;
  723. }
  724. .special-class-container ul li:hover .transition-box {
  725. top: -10px;
  726. -webkit-box-shadow: 0 8px 18px 0 #ffefd7;
  727. box-shadow: 0 8px 18px 0 #ffefd7;
  728. }
  729. .special-class-container ul li:hover .gifts-icon {
  730. -webkit-transition: all 0.5s ease-in-out;
  731. -o-transition: all 0.5s ease-in-out;
  732. transition: all 0.5s ease-in-out;
  733. background: -o-linear-gradient(225deg, #5ee8c1 0, #47c6a2 100%);
  734. background: linear-gradient(225deg, #5ee8c1, #47c6a2);
  735. }
  736. .special-class-container ul li:hover .start-bg {
  737. width: 87px;
  738. height: 53px;
  739. top: -28px;
  740. left: -16px;
  741. }
  742. .special-class-container.hidden-course ul li:hover:first-of-type .main-bg {
  743. right: 6px;
  744. }
  745. .special-class-container ul li:hover .gifts-title {
  746. color: #47c6a2;
  747. -webkit-transition: color forwards 2s;
  748. -o-transition: color 2s forwards;
  749. transition: color forwards 2s;
  750. }
  751. </style>