index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997
  1. <template>
  2. <view class="index">
  3. <u-navbar
  4. class="navbar"
  5. :is-back="false"
  6. :border-bottom="false"
  7. title-color="#333333"
  8. back-icon-color="#ffffff"
  9. >
  10. <view class="slot-wrap">
  11. <image @click="openLeft()" src="/static/logo2.png"></image>
  12. </view>
  13. </u-navbar>
  14. <view class="swiper">
  15. <swiper
  16. :indicator-dots="false"
  17. indicator-color="#fff"
  18. indicator-active-color="#007AFF"
  19. :style="{ height: swiperHeight + 'rpx' }"
  20. @change="swiperChange"
  21. :interval="interval"
  22. :duration="duration"
  23. :autoplay="autoplay"
  24. :circular="true"
  25. >
  26. <swiper-item
  27. v-for="(swiper, index) in list"
  28. :key="index"
  29. @click="swiperClick(swiper)"
  30. >
  31. <image
  32. @load="imageLoad"
  33. :src="$method.splitImgHost(swiper.adverUrl, true)"
  34. mode="widthFix"
  35. ></image>
  36. </swiper-item>
  37. </swiper>
  38. <view class="dots">
  39. <view
  40. class="dot"
  41. :class="{ active: index == current }"
  42. v-for="(swiper, index) in list"
  43. :key="index"
  44. ></view>
  45. </view>
  46. </view>
  47. <view class="content">
  48. <view class="notice" v-if="infoNums">
  49. <view class="notice__content">
  50. <image src="/static/icon/msg_icon1.png" class="icon"></image>
  51. <view class="text"> 您有{{ infoNums }}条新的通知 </view>
  52. <view class="btn" @click="jumpPage">立即查看</view>
  53. </view>
  54. </view>
  55. <view class="my-list">
  56. <view class="my-list__item my-list__item--course" @click="go('course')">
  57. <image src="../../static/mycourse.png"></image>
  58. <text>我的网课</text>
  59. </view>
  60. <view class="my-list__item my-list__item--bank" @click="go('bank')">
  61. <image src="../../static/mybank.png"></image>
  62. <text>我的题库</text>
  63. </view>
  64. </view>
  65. <u-tabs
  66. class="tabs"
  67. :current="tabCurrent"
  68. @change="tab"
  69. :list="menu"
  70. :activeStyle="{ fontSize: '36rpx' }"
  71. :inactiveStyle="{ color: '#EAEEF1', fontSize: '30rpx' }"
  72. sticky
  73. ></u-tabs>
  74. <view class="menuSel" v-if="tabCurrent == 0">
  75. <picker
  76. class="picker"
  77. @change="cMenu"
  78. range-key="subjectName"
  79. :range="sList"
  80. >
  81. <view class="uni-input">{{ paramList[0].name }}</view>
  82. </picker>
  83. <u-icon name="arrow-down"></u-icon>
  84. </view>
  85. <view class="menuSel" v-if="tabCurrent == 1">
  86. <picker
  87. class="picker"
  88. @change="cMenu1"
  89. range-key="subjectName"
  90. :range="sList"
  91. >
  92. <view class="uni-input">{{ paramList[1].name }}</view>
  93. </picker>
  94. <u-icon name="arrow-down"></u-icon>
  95. </view>
  96. <view class="menuSel" v-if="tabCurrent == 2">
  97. <picker
  98. class="picker"
  99. @change="cMenu2"
  100. range-key="subjectName"
  101. :range="sList"
  102. >
  103. <view class="uni-input">{{ paramList[2].name }}</view>
  104. </picker>
  105. <u-icon name="arrow-down"></u-icon>
  106. </view>
  107. <view class="course-list" v-show="tabCurrent == 0">
  108. <navigator
  109. hover-class="none"
  110. class="item"
  111. v-for="(item, index) in list1"
  112. :key="index"
  113. :url="'/pages3/course/detail?id=' + item.goodsId"
  114. >
  115. <view class="img">
  116. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  117. <view class="time" v-if="item.year">{{
  118. item.year ? item.year : ""
  119. }}</view>
  120. </view>
  121. <view class="text">
  122. <view class="title">{{ item.goodsName }}</view>
  123. <view class="desc">
  124. <view class="left">
  125. {{ item.classHours || "-" }}
  126. <text>学时</text>
  127. </view>
  128. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  129. </view>
  130. </view>
  131. </navigator>
  132. </view>
  133. <view class="course-list" v-show="tabCurrent == 1">
  134. <navigator
  135. hover-class="none"
  136. class="item"
  137. v-for="(item, index) in list2"
  138. :key="index"
  139. :url="'/pages2/bank/detail?id=' + item.goodsId"
  140. >
  141. <view class="img">
  142. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  143. <view class="time" v-if="item.year">{{
  144. item.year ? item.year : ""
  145. }}</view>
  146. </view>
  147. <view class="text">
  148. <view class="title">{{ item.goodsName }}</view>
  149. <view class="desc">
  150. <view class="left" v-if="false">
  151. {{ item.classHours || "-" }}
  152. <text>学时</text>
  153. </view>
  154. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  155. </view>
  156. </view>
  157. </navigator>
  158. </view>
  159. <view class="course-list" v-show="tabCurrent == 2">
  160. <navigator
  161. hover-class="none"
  162. class="item"
  163. v-for="(item, index) in list3"
  164. :key="index"
  165. :url="'/pages2/bank/detail?id=' + item.goodsId"
  166. >
  167. <view class="img">
  168. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  169. <view class="time" v-if="item.year">{{
  170. item.year ? item.year : ""
  171. }}</view>
  172. </view>
  173. <view class="text">
  174. <view class="title">{{ item.goodsName }}</view>
  175. <view class="desc">
  176. <view class="left" v-if="false">
  177. {{ item.classHours || "-" }}
  178. <text>学时</text>
  179. </view>
  180. <view class="right">¥ {{ toFixed(item.standPrice) }}</view>
  181. </view>
  182. </view>
  183. </navigator>
  184. </view>
  185. </view>
  186. <view v-show="show" class="popuBox">
  187. <view class="flex-d">
  188. <view class="contentZ">
  189. <view class="lzs">
  190. <view
  191. class="tylsz"
  192. v-for="(item, index) in eList"
  193. :key="index"
  194. @click="item.id === 0 ? activeAll(1) : active1(item)"
  195. :class="item.id === selObj.eId ? 'activeStys' : ''"
  196. >{{ item.educationName }}</view
  197. >
  198. </view>
  199. <view class="rzs">
  200. <view
  201. class="tylszB"
  202. v-for="(item, index) in bList"
  203. :key="index"
  204. @click="item.id === 0 ? activeAll(2) : active2(item)"
  205. :class="item.id === selObj.bId ? 'activeStys2' : ''"
  206. >{{ item.projectName }}-{{ item.businessName }}</view
  207. >
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </template>
  214. <script>
  215. import { mapGetters, mapActions } from "vuex";
  216. // import { websocket } from '@/common/socket.js';
  217. import { socket_url, version } from "@/common/request.js";
  218. export default {
  219. components: {},
  220. data() {
  221. return {
  222. infoNums: 0,
  223. show: false,
  224. list: [],
  225. tabCurrent: 0,
  226. current: 0,
  227. indicatorDots: true,
  228. autoplay: true,
  229. interval: 2000,
  230. duration: 500,
  231. swiperHeight: 0,
  232. menu: [
  233. {
  234. name: "网课",
  235. },
  236. {
  237. name: "题库通",
  238. },
  239. {
  240. name: "直播课",
  241. },
  242. ],
  243. goodsIndex: 0,
  244. goodsItem: 0,
  245. workList: [],
  246. workTextList: [],
  247. planGoodsList: [],
  248. menuIndex: 0,
  249. menuIndex1: 0,
  250. paramList: [
  251. {
  252. pageNum: 1,
  253. pageSize: 10,
  254. total: 0,
  255. showStatus: 0,
  256. goodsType: 1,
  257. subjectId: 0,
  258. name: "全部",
  259. },
  260. {
  261. pageNum: 1,
  262. pageSize: 10,
  263. total: 0,
  264. showStatus: 0,
  265. goodsType: 2,
  266. subjectId: 0,
  267. name: "全部",
  268. },
  269. {
  270. pageNum: 1,
  271. pageSize: 10,
  272. total: 0,
  273. showStatus: 0,
  274. goodsType: 6,
  275. subjectId: 0,
  276. name: "全部",
  277. },
  278. ],
  279. list1: [],
  280. list2: [],
  281. list3: [],
  282. eList: [],
  283. bList: [],
  284. sList: [],
  285. selObj: {
  286. eName: "",
  287. pName: "",
  288. bName: "",
  289. eId: 0,
  290. bId: 0,
  291. pId: 0,
  292. },
  293. isLogin: false,
  294. isOld: false,
  295. };
  296. },
  297. onPullDownRefresh() {
  298. let that = this;
  299. this.initList();
  300. setTimeout(function () {
  301. uni.stopPullDownRefresh();
  302. }, 500);
  303. },
  304. onReachBottom() {
  305. if (this.tabCurrent == 0) {
  306. if (this.list1.length < this.paramList[0].total) {
  307. this.paramList[0].pageNum++;
  308. this.courseList();
  309. }
  310. }
  311. if (this.tabCurrent == 1) {
  312. if (this.list2.length < this.paramList[1].total) {
  313. this.paramList[1].pageNum++;
  314. this.bankList();
  315. }
  316. }
  317. if (this.tabCurrent == 2) {
  318. if (this.list3.length < this.paramList[2].total) {
  319. this.paramList[2].pageNum++;
  320. this.liveList();
  321. }
  322. }
  323. },
  324. async onLoad(option) {
  325. let eduStr = uni.getStorageSync("eduObj");
  326. console.log(eduStr, 987);
  327. if (eduStr) {
  328. this.selObj = JSON.parse(eduStr);
  329. this.subjectList({
  330. businessId: this.selObj.bId,
  331. projectId: this.selObj.pId,
  332. educationId: this.selObj.eId,
  333. });
  334. this.mergeBusiness();
  335. } else {
  336. this.show = true;
  337. }
  338. this.initList();
  339. this.getAdvertising();
  340. if (this.$method.isLogin()) {
  341. try {
  342. await this.getUserInfo();
  343. // websocket.sokcet(socket_url+this.userInfo.userId+'-'+this.$method.getRandomString(6))
  344. // websocket.sokcet(socket_url+this.userInfo.userAccount)
  345. } catch (err) {}
  346. } else {
  347. if (uni.getStorageSync("needToLogin")) {
  348. uni.removeStorageSync("needToLogin");
  349. uni.navigateTo({
  350. url: "/pages4/login/login",
  351. });
  352. }
  353. }
  354. },
  355. onShow() {
  356. uni.removeStorageSync("goPath");
  357. if (uni.getStorageSync("updateHome")) {
  358. this.init();
  359. uni.removeStorageSync("updateHome"); //消费首页刷新事件
  360. }
  361. this.appCommonConfig({
  362. version,
  363. });
  364. if (this.$method.isLogin()) {
  365. this.$store.state.allowLoading = false;
  366. this.$api.getinfoAttached().then((res) => {
  367. if (res.data.code === 200) {
  368. this.infoNums = res.data.data.informSum;
  369. const nums =
  370. res.data.data.informSum +
  371. res.data.data.orderSum +
  372. res.data.data.periodSum +
  373. res.data.data.planSum +
  374. res.data.data.subscribeSum;
  375. this.$store.commit("tabNum", nums);
  376. }
  377. });
  378. this.$store.state.allowLoading = true;
  379. } else {
  380. this.$store.commit("tabNum", 0);
  381. }
  382. },
  383. onShareAppMessage(res) {
  384. var self = this;
  385. return {
  386. title: "中正",
  387. path:
  388. `/pages/index/index?inviteCode=` + userInfo == null
  389. ? ""
  390. : userInfo.userAccount,
  391. };
  392. },
  393. methods: {
  394. ...mapActions(["getUserInfo", "appCommonConfig"]),
  395. mergeBusiness() {
  396. this.paramList[0].educationTypeId = this.selObj.eId;
  397. this.paramList[0].businessId = this.selObj.bId;
  398. this.paramList[0].subjectId = 0;
  399. this.paramList[0].name = "全部";
  400. this.paramList[1].educationTypeId = this.selObj.eId;
  401. this.paramList[1].businessId = this.selObj.bId;
  402. this.paramList[1].name = "全部";
  403. this.paramList[2].educationTypeId = this.selObj.eId;
  404. this.paramList[2].businessId = this.selObj.bId;
  405. this.paramList[2].name = "全部";
  406. },
  407. subjectList(data) {
  408. var self = this;
  409. this.$api.subjectList(data).then((res) => {
  410. if (res.data.code == 200) {
  411. self.sList = res.data.rows;
  412. let allItem = { id: 0, subjectName: "全部" };
  413. self.sList.unshift(allItem);
  414. }
  415. });
  416. },
  417. active2(item) {
  418. this.selObj.bId = item.id;
  419. this.show = false;
  420. this.selObj.pId = item.projectId;
  421. this.selObj.bName = item.businessName;
  422. this.selObj.pName = item.projectName;
  423. uni.setStorageSync("eduObj", JSON.stringify(this.selObj));
  424. this.subjectList({
  425. businessId: item.id,
  426. projectId: item.projectId,
  427. educationId: this.selObj.eId,
  428. });
  429. this.mergeBusiness();
  430. //初始化
  431. this.initList();
  432. },
  433. businessList(data) {
  434. var self = this;
  435. this.$api.businessList(data).then((res) => {
  436. if (res.data.code == 200) {
  437. self.bList = res.data.rows;
  438. console.log(self.bList, 66);
  439. }
  440. });
  441. },
  442. active1(item) {
  443. this.selObj.eId = item.id;
  444. this.selObj.eName = item.educationName;
  445. this.businessList({ educationId: item.id });
  446. },
  447. openLeft() {
  448. this.show = true;
  449. },
  450. toFixed(number) {
  451. if (number > 0) {
  452. return number.toFixed(2);
  453. } else {
  454. return "0.00";
  455. }
  456. },
  457. /**
  458. * @param {Object} swiper
  459. * 点击轮播图
  460. */
  461. swiperClick(swiper) {
  462. if (swiper.jumpType == 1) {
  463. //无跳转
  464. return;
  465. } else if (swiper.jumpType == 2) {
  466. //url
  467. let url = encodeURIComponent(swiper.jumpUrl);
  468. uni.navigateTo({
  469. url: "/pages/webview/index?url=" + swiper.jumpUrl,
  470. });
  471. } else if (swiper.jumpType == 3) {
  472. //内部接口
  473. uni.navigateTo({
  474. url: swiper.jumpUrl,
  475. });
  476. } else if (swiper.jumpType == 4) {
  477. //外部接口
  478. uni.navigateToMiniProgram({
  479. appId: swiper.remarks,
  480. path: swiper.jumpUrl,
  481. extraData: {},
  482. success(res) {
  483. // 打开成功
  484. },
  485. fail(err) {
  486. console.log(err);
  487. // uni.showToast({
  488. // title:'无效的appId,'+err.errMsg,
  489. // icon:'none'
  490. // })
  491. },
  492. });
  493. }
  494. },
  495. /**
  496. * banner图片加载完成
  497. */
  498. imageLoad(e) {
  499. let winW = 750;
  500. let imgW = e.detail.width;
  501. let imgH = e.detail.height;
  502. this.swiperHeight = (750 * imgH) / imgW;
  503. },
  504. async getAdvertising() {
  505. await this.advertisingHomeLocation();
  506. await this.advertisingList();
  507. },
  508. advertisingHomeLocation() {
  509. return new Promise((resolve) => {
  510. this.$api.advertisingHomeLocation().then((res) => {
  511. this.interval = res.data.data.intervalTime * 1000;
  512. resolve();
  513. });
  514. });
  515. },
  516. advertisingList() {
  517. return new Promise((resolve) => {
  518. this.$api.advertisingList({ locationId: 1 }).then((res) => {
  519. this.list = res.data.rows;
  520. resolve();
  521. });
  522. });
  523. },
  524. jumpPage() {
  525. this.$navTo.togo("/pages4/msg/index");
  526. },
  527. go(type) {
  528. if (!this.$method.isLogin()) {
  529. if (type == "course") {
  530. uni.setStorageSync("goPath", "course");
  531. } else if (type == "bank") {
  532. uni.setStorageSync("goPath", "bank");
  533. }
  534. this.$navTo.togo("/pages4/login/login");
  535. } else {
  536. if (type == "course") {
  537. uni.navigateTo({
  538. url: "/pages2/wd/class",
  539. });
  540. } else if (type == "bank") {
  541. this.$api
  542. .lockLockStatus({
  543. action: "bank",
  544. })
  545. .then((res) => {
  546. if (res.data.code == 200) {
  547. //有其他端在操作,不能学习
  548. uni.showToast({
  549. icon: "none",
  550. title: res.data.msg,
  551. duration: 3000,
  552. });
  553. } else if (res.data.code == 500) {
  554. //可以学习
  555. uni.navigateTo({
  556. url: "/pages2/wd/question_bank",
  557. });
  558. }
  559. });
  560. }
  561. }
  562. },
  563. //课程
  564. courseList() {
  565. var self = this;
  566. var param = this.paramList[0];
  567. this.$api.goodsList(param).then((res) => {
  568. self.paramList[0].total = res.data.total;
  569. self.list1.push.apply(self.list1, res.data.rows);
  570. if (self.list1.length === res.data.total) {
  571. self.paramList[0].showStatus = true;
  572. }
  573. });
  574. },
  575. //题库
  576. bankList() {
  577. var self = this;
  578. var param = this.paramList[1];
  579. this.$api.goodsList(param).then((res) => {
  580. self.paramList[1].total = res.data.total;
  581. self.list2.push.apply(self.list2, res.data.rows);
  582. if (self.list2.length === res.data.total) {
  583. self.paramList[1].showStatus = true;
  584. }
  585. });
  586. },
  587. //直播
  588. liveList() {
  589. var self = this;
  590. var param = this.paramList[2];
  591. this.$api.goodsList(param).then((res) => {
  592. self.paramList[2].total = res.data.total;
  593. self.list3.push.apply(self.list3, res.data.rows);
  594. if (self.list3.length === res.data.total) {
  595. self.paramList[2].showStatus = true;
  596. }
  597. });
  598. },
  599. educationList() {
  600. var self = this;
  601. this.$api.educationTypeList().then((res) => {
  602. if (res.data.code == 200) {
  603. self.eList = res.data.rows;
  604. if (self.selObj.eId) {
  605. self.businessList({ educationId: self.selObj.eId });
  606. } else {
  607. this.active1(self.eList[0]);
  608. }
  609. }
  610. });
  611. },
  612. initList() {
  613. this.paramList[0].pageNum = 1;
  614. this.paramList[1].pageNum = 1;
  615. this.list1 = [];
  616. this.list2 = [];
  617. this.list3 = [];
  618. this.courseList();
  619. this.bankList();
  620. this.liveList();
  621. this.educationList();
  622. },
  623. cMenu(e) {
  624. this.paramList[0].pageNum = 1;
  625. this.paramList[0].subjectId = this.sList[e.detail.value].id;
  626. this.paramList[0].name = this.sList[e.detail.value].subjectName;
  627. this.list1 = [];
  628. // this.menuIndex
  629. this.courseList();
  630. },
  631. cMenu1(e) {
  632. this.paramList[1].pageNum = 1;
  633. this.paramList[1].subjectId = this.sList[e.detail.value].id;
  634. this.paramList[1].name = this.sList[e.detail.value].subjectName;
  635. this.list2 = [];
  636. // this.menuIndex1 = index;
  637. this.bankList();
  638. },
  639. cMenu2(e) {
  640. this.paramList[2].pageNum = 1;
  641. this.paramList[2].subjectId = this.sList[e.detail.value].id;
  642. this.paramList[2].name = this.sList[e.detail.value].subjectName;
  643. this.list3 = [];
  644. // this.menuIndex1 = index;
  645. this.liveList();
  646. },
  647. swiperChange(e) {
  648. this.current = e.detail.current;
  649. },
  650. tab(e) {
  651. this.tabCurrent = e;
  652. },
  653. },
  654. computed: { ...mapGetters(["userInfo"]) },
  655. };
  656. </script>
  657. <style>
  658. page {
  659. background: #eaeef1;
  660. font-size: 28rpx;
  661. }
  662. </style>
  663. <style lang="scss" scoped>
  664. .index {
  665. .navbar {
  666. /deep/ .u-navbar-inner {
  667. margin-right: 0 !important;
  668. }
  669. .slot-wrap {
  670. width: 100%;
  671. display: flex;
  672. align-items: center;
  673. justify-content: center;
  674. image {
  675. width: 178rpx;
  676. height: 31rpx;
  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. flex: 1;
  941. }
  942. }
  943. .r_sliper {
  944. padding: 0 20rpx;
  945. }
  946. .r_t1 {
  947. height: 48rpx;
  948. background: #007aff;
  949. border-radius: 16rpx;
  950. padding: 3rpx 8rpx;
  951. margin-top: 11rpx;
  952. color: #ffffff;
  953. }
  954. .r_t2 {
  955. height: 48rpx;
  956. background: #ffffff;
  957. border: 2rpx solid #eeeeee;
  958. border-radius: 16rpx;
  959. padding: 3rpx 8rpx;
  960. margin-top: 11rpx;
  961. color: #666666;
  962. font-size: 30rpx;
  963. }
  964. </style>