index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <template>
  2. <view class="index">
  3. <u-navbar
  4. :is-back="false"
  5. class="navbar"
  6. :border-bottom="false"
  7. title-color="#333333"
  8. back-icon-color="#ffffff"
  9. >
  10. <view class="slot-wrap">
  11. <view @click="openLeft()">
  12. {{ selObj.eName }}:{{ selObj.pName }}-{{ selObj.bName }}
  13. <image mode="widthFix" src="/static/arrow-back.png"></image>
  14. </view>
  15. </view>
  16. </u-navbar>
  17. <view class="swiper">
  18. <swiper
  19. :indicator-dots="false"
  20. indicator-color="#fff"
  21. indicator-active-color="#007AFF"
  22. :style="{ height: swiperHeight + 'rpx' }"
  23. @change="swiperChange"
  24. :interval="interval"
  25. :duration="duration"
  26. :autoplay="autoplay"
  27. :circular="true"
  28. >
  29. <swiper-item
  30. v-for="(swiper, index) in list"
  31. :key="index"
  32. @click="swiperClick(swiper)"
  33. >
  34. <image
  35. @load="imageLoad"
  36. :src="$method.splitImgHost(swiper.adverUrl, true)"
  37. mode="widthFix"
  38. ></image>
  39. </swiper-item>
  40. </swiper>
  41. <view class="dots">
  42. <view
  43. class="dot"
  44. :class="{ active: index == current }"
  45. v-for="(swiper, index) in list"
  46. :key="index"
  47. ></view>
  48. </view>
  49. </view>
  50. <view class="content">
  51. <view class="notice" v-if="infoNums">
  52. <view class="notice__content">
  53. <image src="/static/icon/msg_icon1.png" class="icon"></image>
  54. <view class="text"> 您有{{ infoNums }}条新的通知 </view>
  55. <view class="btn" @click="jumpPage">立即查看</view>
  56. </view>
  57. </view>
  58. <view class="my-list">
  59. <view class="my-list__item my-list__item--course" @click="go('course')">
  60. <image src="../../static/mycourse.png"></image>
  61. <text>我的网课</text>
  62. </view>
  63. <view class="my-list__item my-list__item--bank" @click="go('bank')">
  64. <image src="../../static/mybank.png"></image>
  65. <text>我的题库</text>
  66. </view>
  67. </view>
  68. <u-tabs
  69. class="tabs"
  70. :current="tabCurrent"
  71. @change="tab"
  72. :list="menu"
  73. :activeStyle="{ fontSize: '36rpx' }"
  74. :inactiveStyle="{ color: '#EAEEF1', fontSize: '30rpx' }"
  75. sticky
  76. ></u-tabs>
  77. <view class="menuSel" v-if="tabCurrent == 0">
  78. <picker
  79. class="picker"
  80. @change="cMenu"
  81. range-key="subjectName"
  82. :range="sList"
  83. >
  84. <view class="uni-input">{{ paramList[0].name }}</view>
  85. </picker>
  86. <u-icon name="arrow-down"></u-icon>
  87. </view>
  88. <view class="menuSel" v-if="tabCurrent == 1">
  89. <picker
  90. class="picker"
  91. @change="cMenu1"
  92. range-key="subjectName"
  93. :range="sList"
  94. >
  95. <view class="uni-input">{{ paramList[1].name }}</view>
  96. </picker>
  97. <u-icon name="arrow-down"></u-icon>
  98. </view>
  99. <view class="menuSel" v-if="tabCurrent == 2">
  100. <picker
  101. class="picker"
  102. @change="cMenu2"
  103. range-key="subjectName"
  104. :range="sList"
  105. >
  106. <view class="uni-input">{{ paramList[2].name }}</view>
  107. </picker>
  108. <u-icon name="arrow-down"></u-icon>
  109. </view>
  110. <view class="course-list" v-show="tabCurrent == 0">
  111. <navigator
  112. hover-class="none"
  113. class="item"
  114. v-for="(item, index) in list1"
  115. :key="index"
  116. :url="'/pages3/course/detail?id=' + item.goodsId"
  117. >
  118. <view class="img">
  119. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  120. <view class="time" v-if="item.year">{{
  121. item.year ? item.year : ""
  122. }}</view>
  123. </view>
  124. <view class="text">
  125. <view class="title">{{ item.goodsName }}</view>
  126. <view class="desc">
  127. <view class="left">
  128. {{ item.classHours || "-" }}
  129. <text>学时</text>
  130. </view>
  131. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  132. </view>
  133. </view>
  134. </navigator>
  135. </view>
  136. <view class="course-list" v-show="tabCurrent == 1">
  137. <navigator
  138. hover-class="none"
  139. class="item"
  140. v-for="(item, index) in list2"
  141. :key="index"
  142. :url="'/pages2/bank/detail?id=' + item.goodsId"
  143. >
  144. <view class="img">
  145. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  146. <view class="time" v-if="item.year">{{
  147. item.year ? item.year : ""
  148. }}</view>
  149. </view>
  150. <view class="text">
  151. <view class="title">{{ item.goodsName }}</view>
  152. <view class="desc">
  153. <view class="left" v-if="false">
  154. {{ item.classHours || "-" }}
  155. <text>学时</text>
  156. </view>
  157. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  158. </view>
  159. </view>
  160. </navigator>
  161. </view>
  162. <view class="course-list" v-show="tabCurrent == 2">
  163. <navigator
  164. hover-class="none"
  165. class="item"
  166. v-for="(item, index) in list3"
  167. :key="index"
  168. :url="'/pages2/bank/detail?id=' + item.goodsId"
  169. >
  170. <view class="img">
  171. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  172. <view class="time" v-if="item.year">{{
  173. item.year ? item.year : ""
  174. }}</view>
  175. </view>
  176. <view class="text">
  177. <view class="title">{{ item.goodsName }}</view>
  178. <view class="desc">
  179. <view class="left" v-if="false">
  180. {{ item.classHours || "-" }}
  181. <text>学时</text>
  182. </view>
  183. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  184. </view>
  185. </view>
  186. </navigator>
  187. </view>
  188. </view>
  189. <view v-show="show" class="popuBox">
  190. <view class="flex-d">
  191. <view class="contentZ">
  192. <view class="lzs">
  193. <view
  194. class="tylsz"
  195. v-for="(item, index) in eList"
  196. :key="index"
  197. @click="item.id === 0 ? activeAll(1) : active1(item)"
  198. :class="item.id === selObj.eId ? 'activeStys' : ''"
  199. >{{ item.educationName }}</view
  200. >
  201. </view>
  202. <view class="rzs">
  203. <view
  204. class="tylszB"
  205. v-for="(item, index) in bList"
  206. :key="index"
  207. @click="item.id === 0 ? activeAll(2) : active2(item)"
  208. :class="item.id === selObj.bId ? 'activeStys2' : ''"
  209. >{{ item.projectName }}-{{ item.businessName }}</view
  210. >
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </template>
  217. <script>
  218. import { mapGetters, mapActions } from "vuex";
  219. // import { websocket } from '@/common/socket.js';
  220. import { socket_url, version } from "@/common/request.js";
  221. export default {
  222. components: {},
  223. data() {
  224. return {
  225. infoNums: 0,
  226. show: false,
  227. list: [],
  228. tabCurrent: 0,
  229. current: 0,
  230. indicatorDots: true,
  231. autoplay: true,
  232. interval: 2000,
  233. duration: 500,
  234. swiperHeight: 0,
  235. menu: [
  236. {
  237. name: "网课",
  238. },
  239. {
  240. name: "题库通",
  241. },
  242. {
  243. name: "直播课",
  244. },
  245. ],
  246. goodsIndex: 0,
  247. goodsItem: 0,
  248. workList: [],
  249. workTextList: [],
  250. planGoodsList: [],
  251. menuIndex: 0,
  252. menuIndex1: 0,
  253. paramList: [
  254. {
  255. pageNum: 1,
  256. pageSize: 10,
  257. total: 0,
  258. showStatus: 0,
  259. goodsType: 1,
  260. subjectId: 0,
  261. name: "全部",
  262. },
  263. {
  264. pageNum: 1,
  265. pageSize: 10,
  266. total: 0,
  267. showStatus: 0,
  268. goodsType: 2,
  269. subjectId: 0,
  270. name: "全部",
  271. },
  272. {
  273. pageNum: 1,
  274. pageSize: 10,
  275. total: 0,
  276. showStatus: 0,
  277. goodsType: 6,
  278. subjectId: 0,
  279. name: "全部",
  280. },
  281. ],
  282. list1: [],
  283. list2: [],
  284. list3: [],
  285. eList: [],
  286. bList: [],
  287. sList: [],
  288. selObj: {
  289. eName: "",
  290. pName: "",
  291. bName: "",
  292. eId: 0,
  293. bId: 0,
  294. pId: 0,
  295. },
  296. isLogin: false,
  297. isOld: false,
  298. };
  299. },
  300. onPullDownRefresh() {
  301. let that = this;
  302. this.initList();
  303. setTimeout(function () {
  304. uni.stopPullDownRefresh();
  305. }, 500);
  306. },
  307. onReachBottom() {
  308. if (this.tabCurrent == 0) {
  309. if (this.list1.length < this.paramList[0].total) {
  310. this.paramList[0].pageNum++;
  311. this.courseList();
  312. }
  313. }
  314. if (this.tabCurrent == 1) {
  315. if (this.list2.length < this.paramList[1].total) {
  316. this.paramList[1].pageNum++;
  317. this.bankList();
  318. }
  319. }
  320. if (this.tabCurrent == 2) {
  321. if (this.list3.length < this.paramList[2].total) {
  322. this.paramList[2].pageNum++;
  323. this.liveList();
  324. }
  325. }
  326. },
  327. async onLoad(option) {
  328. let eduStr = uni.getStorageSync("eduObj");
  329. console.log(eduStr, 987);
  330. if (eduStr) {
  331. this.selObj = JSON.parse(eduStr);
  332. this.subjectList({
  333. businessId: this.selObj.bId,
  334. projectId: this.selObj.pId,
  335. educationId: this.selObj.eId,
  336. });
  337. this.mergeBusiness();
  338. } else {
  339. this.show = true;
  340. }
  341. this.initList();
  342. this.getAdvertising();
  343. if (this.$method.isLogin()) {
  344. try {
  345. await this.getUserInfo();
  346. // websocket.sokcet(socket_url+this.userInfo.userId+'-'+this.$method.getRandomString(6))
  347. // websocket.sokcet(socket_url+this.userInfo.userAccount)
  348. } catch (err) {}
  349. } else {
  350. if (uni.getStorageSync("needToLogin")) {
  351. uni.removeStorageSync("needToLogin");
  352. uni.navigateTo({
  353. url: "/pages4/login/login",
  354. });
  355. }
  356. }
  357. },
  358. onShow() {
  359. uni.removeStorageSync("goPath");
  360. if (uni.getStorageSync("updateHome")) {
  361. this.init();
  362. uni.removeStorageSync("updateHome"); //消费首页刷新事件
  363. }
  364. this.appCommonConfig({
  365. version,
  366. });
  367. if (this.$method.isLogin()) {
  368. this.$store.state.allowLoading = false;
  369. this.$api.getinfoAttached().then((res) => {
  370. if (res.data.code === 200) {
  371. this.infoNums = res.data.data.informSum;
  372. const nums =
  373. res.data.data.informSum +
  374. res.data.data.orderSum +
  375. res.data.data.periodSum +
  376. res.data.data.planSum +
  377. res.data.data.subscribeSum;
  378. this.$store.commit("tabNum", nums);
  379. }
  380. });
  381. this.$store.state.allowLoading = true;
  382. } else {
  383. this.$store.commit("tabNum", 0);
  384. }
  385. },
  386. onShareAppMessage(res) {
  387. var self = this;
  388. return {
  389. title: "中正",
  390. path:
  391. `/pages/index/index?inviteCode=` + userInfo == null
  392. ? ""
  393. : userInfo.userAccount,
  394. };
  395. },
  396. methods: {
  397. ...mapActions(["getUserInfo", "appCommonConfig"]),
  398. mergeBusiness() {
  399. this.paramList[0].educationTypeId = this.selObj.eId;
  400. this.paramList[0].businessId = this.selObj.bId;
  401. this.paramList[0].subjectId = 0;
  402. this.paramList[0].name = "全部";
  403. this.paramList[1].educationTypeId = this.selObj.eId;
  404. this.paramList[1].businessId = this.selObj.bId;
  405. this.paramList[1].name = "全部";
  406. this.paramList[2].educationTypeId = this.selObj.eId;
  407. this.paramList[2].businessId = this.selObj.bId;
  408. this.paramList[2].name = "全部";
  409. },
  410. subjectList(data) {
  411. var self = this;
  412. this.$api.subjectList(data).then((res) => {
  413. if (res.data.code == 200) {
  414. self.sList = res.data.rows;
  415. let allItem = { id: 0, subjectName: "全部" };
  416. self.sList.unshift(allItem);
  417. }
  418. });
  419. },
  420. active2(item) {
  421. this.selObj.bId = item.id;
  422. this.show = false;
  423. this.selObj.pId = item.projectId;
  424. this.selObj.bName = item.businessName;
  425. this.selObj.pName = item.projectName;
  426. uni.setStorageSync("eduObj", JSON.stringify(this.selObj));
  427. this.subjectList({
  428. businessId: item.id,
  429. projectId: item.projectId,
  430. educationId: this.selObj.eId,
  431. });
  432. this.mergeBusiness();
  433. //初始化
  434. this.initList();
  435. },
  436. businessList(data) {
  437. var self = this;
  438. this.$api.businessList(data).then((res) => {
  439. if (res.data.code == 200) {
  440. self.bList = res.data.rows;
  441. console.log(self.bList, 66);
  442. }
  443. });
  444. },
  445. active1(item) {
  446. this.selObj.eId = item.id;
  447. this.selObj.eName = item.educationName;
  448. this.businessList({ educationId: item.id });
  449. },
  450. openLeft() {
  451. this.show = true;
  452. },
  453. toFixed(number) {
  454. if (number > 0) {
  455. return number.toFixed(2);
  456. } else {
  457. return "0.00";
  458. }
  459. },
  460. /**
  461. * @param {Object} swiper
  462. * 点击轮播图
  463. */
  464. swiperClick(swiper) {
  465. if (swiper.jumpType == 1) {
  466. //无跳转
  467. return;
  468. } else if (swiper.jumpType == 2) {
  469. //url
  470. let url = encodeURIComponent(swiper.jumpUrl);
  471. uni.navigateTo({
  472. url: "/pages/webview/index?url=" + swiper.jumpUrl,
  473. });
  474. } else if (swiper.jumpType == 3) {
  475. //内部接口
  476. uni.navigateTo({
  477. url: swiper.jumpUrl,
  478. });
  479. } else if (swiper.jumpType == 4) {
  480. //外部接口
  481. uni.navigateToMiniProgram({
  482. appId: swiper.remarks,
  483. path: swiper.jumpUrl,
  484. extraData: {},
  485. success(res) {
  486. // 打开成功
  487. },
  488. fail(err) {
  489. console.log(err);
  490. // uni.showToast({
  491. // title:'无效的appId,'+err.errMsg,
  492. // icon:'none'
  493. // })
  494. },
  495. });
  496. }
  497. },
  498. /**
  499. * banner图片加载完成
  500. */
  501. imageLoad(e) {
  502. let winW = 750;
  503. let imgW = e.detail.width;
  504. let imgH = e.detail.height;
  505. this.swiperHeight = (750 * imgH) / imgW;
  506. },
  507. async getAdvertising() {
  508. await this.advertisingHomeLocation();
  509. await this.advertisingList();
  510. },
  511. advertisingHomeLocation() {
  512. return new Promise((resolve) => {
  513. this.$api.advertisingHomeLocation().then((res) => {
  514. this.interval = res.data.data.intervalTime * 1000;
  515. resolve();
  516. });
  517. });
  518. },
  519. advertisingList() {
  520. return new Promise((resolve) => {
  521. this.$api.advertisingList({ locationId: 1 }).then((res) => {
  522. this.list = res.data.rows;
  523. resolve();
  524. });
  525. });
  526. },
  527. jumpPage() {
  528. this.$navTo.togo("/pages4/msg/index");
  529. },
  530. go(type) {
  531. if (!this.$method.isLogin()) {
  532. if (type == "course") {
  533. uni.setStorageSync("goPath", "course");
  534. } else if (type == "bank") {
  535. uni.setStorageSync("goPath", "bank");
  536. }
  537. this.$navTo.togo("/pages4/login/login");
  538. } else {
  539. if (type == "course") {
  540. uni.navigateTo({
  541. url: "/pages2/wd/class",
  542. });
  543. } else if (type == "bank") {
  544. this.$api
  545. .lockLockStatus({
  546. action: "bank",
  547. })
  548. .then((res) => {
  549. if (res.data.code == 200) {
  550. //有其他端在操作,不能学习
  551. uni.showToast({
  552. icon: "none",
  553. title: res.data.msg,
  554. duration: 3000,
  555. });
  556. } else if (res.data.code == 500) {
  557. //可以学习
  558. uni.navigateTo({
  559. url: "/pages2/wd/question_bank",
  560. });
  561. }
  562. });
  563. }
  564. }
  565. },
  566. //课程
  567. courseList() {
  568. var self = this;
  569. var param = this.paramList[0];
  570. this.$api.goodsList(param).then((res) => {
  571. self.paramList[0].total = res.data.total;
  572. self.list1.push.apply(self.list1, res.data.rows);
  573. if (self.list1.length === res.data.total) {
  574. self.paramList[0].showStatus = true;
  575. }
  576. });
  577. },
  578. //题库
  579. bankList() {
  580. var self = this;
  581. var param = this.paramList[1];
  582. this.$api.goodsList(param).then((res) => {
  583. self.paramList[1].total = res.data.total;
  584. self.list2.push.apply(self.list2, res.data.rows);
  585. if (self.list2.length === res.data.total) {
  586. self.paramList[1].showStatus = true;
  587. }
  588. });
  589. },
  590. //直播
  591. liveList() {
  592. var self = this;
  593. var param = this.paramList[2];
  594. this.$api.goodsList(param).then((res) => {
  595. self.paramList[2].total = res.data.total;
  596. self.list3.push.apply(self.list3, res.data.rows);
  597. if (self.list3.length === res.data.total) {
  598. self.paramList[2].showStatus = true;
  599. }
  600. });
  601. },
  602. educationList() {
  603. var self = this;
  604. this.$api.educationTypeList().then((res) => {
  605. if (res.data.code == 200) {
  606. self.eList = res.data.rows;
  607. if (self.selObj.eId) {
  608. self.businessList({ educationId: self.selObj.eId });
  609. } else {
  610. this.active1(self.eList[0]);
  611. }
  612. }
  613. });
  614. },
  615. initList() {
  616. this.paramList[0].pageNum = 1;
  617. this.paramList[1].pageNum = 1;
  618. this.list1 = [];
  619. this.list2 = [];
  620. this.list3 = [];
  621. this.courseList();
  622. this.bankList();
  623. this.liveList();
  624. this.educationList();
  625. },
  626. cMenu(e) {
  627. this.paramList[0].pageNum = 1;
  628. this.paramList[0].subjectId = this.sList[e.detail.value].id;
  629. this.paramList[0].name = this.sList[e.detail.value].subjectName;
  630. this.list1 = [];
  631. // this.menuIndex
  632. this.courseList();
  633. },
  634. cMenu1(e) {
  635. this.paramList[1].pageNum = 1;
  636. this.paramList[1].subjectId = this.sList[e.detail.value].id;
  637. this.paramList[1].name = this.sList[e.detail.value].subjectName;
  638. this.list2 = [];
  639. // this.menuIndex1 = index;
  640. this.bankList();
  641. },
  642. cMenu2(e) {
  643. this.paramList[2].pageNum = 1;
  644. this.paramList[2].subjectId = this.sList[e.detail.value].id;
  645. this.paramList[2].name = this.sList[e.detail.value].subjectName;
  646. this.list3 = [];
  647. // this.menuIndex1 = index;
  648. this.liveList();
  649. },
  650. swiperChange(e) {
  651. this.current = e.detail.current;
  652. },
  653. tab(e) {
  654. this.tabCurrent = e;
  655. },
  656. },
  657. computed: { ...mapGetters(["userInfo"]) },
  658. };
  659. </script>
  660. <style>
  661. page {
  662. background: #eaeef1;
  663. font-size: 28rpx;
  664. }
  665. </style>
  666. <style lang="scss" scoped>
  667. .index {
  668. .navbar {
  669. /deep/ .u-navbar-inner {
  670. margin-right: 0 !important;
  671. }
  672. .slot-wrap {
  673. width: 100%;
  674. padding-left:32rpx;
  675. image {
  676. width:28rpx;
  677. }
  678. }
  679. }
  680. .swiper {
  681. width: 100%;
  682. position: relative;
  683. .dots {
  684. position: absolute;
  685. left: 0;
  686. bottom: 8rpx;
  687. width: 100%;
  688. display: flex;
  689. justify-content: center;
  690. .dot {
  691. width: 8rpx;
  692. height: 8rpx;
  693. background: #ffffff;
  694. border-radius: 50%;
  695. margin: 0 4rpx;
  696. transition: all 0.3s;
  697. &.active {
  698. width: 24rpx;
  699. height: 8rpx;
  700. background: #007aff;
  701. border-radius: 4rpx;
  702. }
  703. }
  704. }
  705. image {
  706. width: 100%;
  707. }
  708. }
  709. .content {
  710. overflow: hidden;
  711. padding: 0 16rpx 16rpx;
  712. background: rgba(234, 238, 241, 1);
  713. .notice {
  714. background: #fff;
  715. border-radius: 16rpx;
  716. margin-top: 32rpx;
  717. overflow: hidden;
  718. &__content {
  719. padding: 0 8rpx;
  720. height: 56rpx;
  721. background: linear-gradient(
  722. -90deg,
  723. rgba(255, 209, 0, 0.3),
  724. rgba(255, 255, 255, 0.3)
  725. );
  726. display: flex;
  727. align-items: center;
  728. }
  729. .icon {
  730. width: 40rpx;
  731. height: 40rpx;
  732. margin-right: 8rpx;
  733. }
  734. .text {
  735. flex: 1;
  736. font-size: 24rpx;
  737. color: #333333;
  738. position: relative;
  739. }
  740. .btn {
  741. font-size: 24rpx;
  742. color: #007aff;
  743. }
  744. }
  745. .tabs {
  746. /deep/ .u-tabs {
  747. background: none !important;
  748. }
  749. }
  750. .course-list {
  751. .item {
  752. background: #fff;
  753. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  754. padding: 24rpx 16rpx;
  755. border-radius: 16rpx;
  756. border-bottom: 1rpx solid #eeeeee;
  757. display: flex;
  758. margin-bottom: 20rpx;
  759. .img {
  760. position: relative;
  761. margin-right: 10rpx;
  762. border-radius: 16rpx;
  763. overflow: hidden;
  764. width: 320rpx;
  765. height: 180rpx;
  766. image {
  767. width: 100%;
  768. height: 100%;
  769. }
  770. .time {
  771. position: absolute;
  772. bottom: 0;
  773. right: 0;
  774. width: 80rpx;
  775. height: 32rpx;
  776. background: rgba(1, 25, 45, 0.4);
  777. color: #fff;
  778. text-align: center;
  779. line-height: 32rpx;
  780. font-size: 24rpx;
  781. border-radius: 10rpx 0px 10rpx 0px;
  782. }
  783. }
  784. .text {
  785. flex: 1;
  786. padding-right: 10rpx;
  787. position: relative;
  788. .title {
  789. font-size: 30rpx;
  790. color: #333333;
  791. }
  792. .desc {
  793. margin-top: 40rpx;
  794. display: flex;
  795. position: absolute;
  796. bottom: 0;
  797. width: 100%;
  798. .left {
  799. flex: 1;
  800. color: #333;
  801. font-size: 26rpx;
  802. text {
  803. font-size: 24rpx;
  804. color: #999;
  805. }
  806. }
  807. .right {
  808. font-size: 24rpx;
  809. font-weight: bold;
  810. color: #ff2d55;
  811. }
  812. }
  813. }
  814. }
  815. }
  816. }
  817. .my-list {
  818. margin: 32rpx 0;
  819. display: flex;
  820. justify-content: space-between;
  821. &__item {
  822. width: 351rpx;
  823. height: 96rpx;
  824. position: relative;
  825. padding: 25rpx 0 0 25rpx;
  826. font-size: 32rpx;
  827. &--bank {
  828. text {
  829. position: relative;
  830. z-index: 2;
  831. color: #00998a;
  832. }
  833. }
  834. &--course {
  835. text {
  836. position: relative;
  837. z-index: 2;
  838. color: #0062d9;
  839. }
  840. }
  841. image {
  842. width: 100%;
  843. height: 100%;
  844. left: 0;
  845. top: 0;
  846. position: absolute;
  847. z-index: 1;
  848. }
  849. }
  850. }
  851. }
  852. .popuBox {
  853. z-index: 99;
  854. top: 68px;
  855. width: 100%;
  856. bottom: 0;
  857. position: absolute;
  858. overflow-y: scroll;
  859. overflow-x: hidden;
  860. background-color: #ffffff;
  861. }
  862. .activeStys2 {
  863. background: #007aff !important;
  864. color: #ffffff;
  865. }
  866. .tylszB {
  867. text-align: center;
  868. padding: 20rpx 10rpx;
  869. background: #ffffff;
  870. border: 2rpx solid #eeeeee;
  871. border-radius: 16rpx;
  872. margin-top: 15rpx;
  873. font-size: 30rpx;
  874. overflow: hidden;
  875. white-space: nowrap;
  876. text-overflow: ellipsis;
  877. }
  878. .activeStys {
  879. background: linear-gradient(
  880. 90deg,
  881. rgba(1, 94, 234, 0.2),
  882. rgba(255, 255, 255, 0.6)
  883. );
  884. border-radius: 16rpx;
  885. font-weight: bold;
  886. color: #007aff !important;
  887. }
  888. .tylsz {
  889. color: #666;
  890. font-size: 30rpx;
  891. padding: 20rpx 10rpx;
  892. margin-top: 15rpx;
  893. white-space: nowrap;
  894. }
  895. .popup_t1 {
  896. padding-left: 35rpx;
  897. border-bottom: 1rpx solid #eee;
  898. height: 57rpx;
  899. margin-top: 86rpx;
  900. font-weight: bold;
  901. color: #007aff;
  902. font-size: 27rpx;
  903. }
  904. .flex-d {
  905. height: 100%;
  906. background-color: #ffffff;
  907. padding: 0 5%;
  908. font-size: 30rpx;
  909. }
  910. .contentZ {
  911. display: flex;
  912. height: 100%;
  913. padding: 10rpx;
  914. .lzs {
  915. width: 200rpx;
  916. height: 100%;
  917. overflow-y: scroll;
  918. }
  919. .rzs {
  920. margin-left: 40rpx;
  921. flex: 1;
  922. height: 100%;
  923. overflow-y: scroll;
  924. }
  925. }
  926. .contentZ::-webkit-scrollbar {
  927. display: none;
  928. }
  929. .menuSel {
  930. padding: 0 24rpx;
  931. margin: 24rpx 0;
  932. width: 100%;
  933. height: 70rpx;
  934. background: #fff;
  935. display: flex;
  936. align-items: center;
  937. background: #fff;
  938. border-radius: 16rpx;
  939. .picker {
  940. line-height: 70rpx;
  941. height: 70rpx;
  942. flex: 1;
  943. }
  944. }
  945. .r_sliper {
  946. padding: 0 20rpx;
  947. }
  948. .r_t1 {
  949. height: 48rpx;
  950. background: #007aff;
  951. border-radius: 16rpx;
  952. padding: 3rpx 8rpx;
  953. margin-top: 11rpx;
  954. color: #ffffff;
  955. }
  956. .r_t2 {
  957. height: 48rpx;
  958. background: #ffffff;
  959. border: 2rpx solid #eeeeee;
  960. border-radius: 16rpx;
  961. padding: 3rpx 8rpx;
  962. margin-top: 11rpx;
  963. color: #666666;
  964. font-size: 30rpx;
  965. }
  966. </style>