login.vue 33 KB

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