index.vue 21 KB

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