index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522
  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 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)" 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. <!-- 日历-->
  39. <!-- <view>
  40. <view class="calendar_card">
  41. <view class="card_box">
  42. <u-row gutter="16">
  43. <u-col span="10" >
  44. <view style="height:60rpx;">
  45. <text class="t1" v-if="nearByDay !== '' && nearByDay !== null">距离最近一次考试还剩{{nearByDay}}天</text>
  46. </view>
  47. </u-col>
  48. <u-col offset="1" span="1">
  49. <view @click="jumpPlan"><image src="/static/more.png" class="img_more"></image></view>
  50. </u-col>
  51. </u-row>
  52. </view>
  53. <u-line color="#EEEEEE" />
  54. <view style="width: 100%;display: flex;justify-content:center;margin-top: 20rpx;">
  55. <view v-for="(item, index) in date" :key="index" class="card_date">{{ item }}</view>
  56. </view>
  57. <view style="width: 100%;display: flex;justify-content:center;margin-top: 40rpx;">
  58. <view v-for="(item, index) in date_num" :key="index" class="date_num">
  59. <view v-if="item.color == 0" class="date_num_color0" v-show="item.date > 0">
  60. {{ item.date }}
  61. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  62. <view v-if="item.dot" class="date_dot"></view>
  63. </view>
  64. <view v-if="item.color == 1" class="date_num_color1">
  65. {{ item.date }}
  66. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  67. <view v-if="item.dot" class="date_dot"></view>
  68. </view>
  69. <view v-if="item.color == 2" class="date_num_color2">
  70. {{ item.date }}
  71. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  72. <view v-if="item.dot" class="date_dot"></view>
  73. </view>
  74. <view v-if="item.color == 3" class="date_num_color3">
  75. {{ item.date }}
  76. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  77. <view v-if="item.dot" class="date_dot"></view>
  78. </view>
  79. </view>
  80. </view>
  81. <view style="width: 100%;margin-top: 20rpx;" v-if="workList.length > 0">
  82. <u-row gutter="16">
  83. <u-col span="2" text-align="center">
  84. <view><image src="/static/left.png" class="arr-icon" @click="preveItem"></image></view>
  85. </u-col>
  86. <u-col span="8" text-align="center">
  87. <view class="course_title" @click="jumpGoodsDetail(goodsItem)">{{ goodsItem.goodsName }}</view>
  88. </u-col>
  89. <u-col span="2" text-align="center">
  90. <view><image src="/static/right.png" class="arr-icon" @click="nextItem"></image></view>
  91. </u-col>
  92. </u-row>
  93. </view>
  94. </view>
  95. </view> -->
  96. <!-- <u-tabs class="tabs" :current="tabCurrent" @change="tab" :list="menu" :activeStyle="{fontSize:'36rpx'}" :inactiveStyle="{color:'#EAEEF1',fontSize:'30rpx'}" sticky></u-tabs> -->
  97. <view class="tabs">
  98. <view v-for="(item, index) in menu" :key="index" class="tab_item" :class="{nactive: tabNum == index}" @click="tab(index)">{{ item.name }}</view>
  99. </view>
  100. <view class="filters">
  101. <scroll-view class="scroll_view_H" scroll-x="true" >
  102. <template v-if="tabNum == 0 && courseName.length > 1">
  103. <view v-for="(item, index) in courseName" :key="index" class="filter_item" @click="changeCou(item.recommendId, index)">
  104. <view class="name" :class="{nactive: couIndex == index}">{{ item.name }}</view>
  105. </view>
  106. </template>
  107. <template v-if="tabNum == 1 && bankName.length > 1">
  108. <view v-for="(item, index) in bankName" :key="index" class="filter_item" @click="changebank(item.recommendId, index)">
  109. <view class="name" :class="{nactive: bankIndex == index}">{{ item.name }}</view>
  110. </view>
  111. </template>
  112. </scroll-view>
  113. </view>
  114. <view class="course-list" v-show="tabCurrent==0">
  115. <template v-if="list1.length">
  116. <!-- hover-class="none" -->
  117. <view class="list_item" v-for="(item,index) in list1" :key="index" @click="tobuy(item)">
  118. <view class="course_content">
  119. <view class="c_title">{{item.goodsName}}</view>
  120. <view class="c_downs">
  121. <view class="img">
  122. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  123. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  124. </view>
  125. <view class="text">
  126. <view class="desc">
  127. <view class="left">
  128. <text v-if="item.standPrice" class="mon_t">¥ {{toFixed(item.standPrice)}}</text>
  129. <text v-else class="mon_t free">免费</text>
  130. <!-- <text class="sale">/限时优惠</text> -->
  131. <text v-if="item.linePrice" class="sale"> ¥ </text>
  132. <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
  133. </view>
  134. <view class="right">
  135. <view v-if="!hideBuyState" class="regiser_row">立即购买</view>
  136. </view>
  137. </view>
  138. <view v-if="item.buyUserNum" class="joins">
  139. <!-- <image class="people" src="/static/index/people.png"></image> -->
  140. <!-- 为0时,不显示 -->
  141. <view class="people">{{ item.buyUserNum }}人参与</view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </template>
  148. <template v-else>
  149. <u-empty text="暂无推荐课程" mode="list" margin-top="100"></u-empty>
  150. </template>
  151. </view>
  152. <view class="course-list" v-show="tabCurrent==1">
  153. <template v-if="list2.length">
  154. <navigator hover-class="none" class="list_item" v-for="(item,index) in list2" :key="index" :url="'/pages2/bank/detail?id='+item.goodsId">
  155. <view class="course_content">
  156. <view class="c_title">{{item.goodsName}}</view>
  157. <view class="c_downs">
  158. <view class="img">
  159. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  160. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  161. </view>
  162. <view class="text">
  163. <view class="desc">
  164. <view class="left">
  165. <text v-if="item.standPrice" class="mon_t">¥ {{toFixed(item.standPrice)}}</text>
  166. <text v-else class="mon_t free">免费</text>
  167. <!-- <text class="sale">/限时优惠</text> -->
  168. <text v-if="item.linePrice" class="sale"> ¥ </text>
  169. <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
  170. </view>
  171. <view class="right">
  172. <view v-if="!hideBuyState" class="regiser_row">立即购买</view>
  173. </view>
  174. </view>
  175. <view v-if="item.buyUserNum" class="joins">
  176. <!-- 为0时,不显示 -->
  177. <view class="people">{{ item.buyUserNum }}人参与</view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </navigator>
  183. </template>
  184. <template v-else>
  185. <u-empty text="暂无推荐题库" mode="list" margin-top="100"></u-empty>
  186. </template>
  187. </view>
  188. </view>
  189. <!-- <tab-bar v-model="current" :list="tabbarlist" :mid-button="true" :mid-button-size="50" class="tab_items"></tab-bar> -->
  190. <!-- <view v-if="isLogin" class="official">
  191. <u-icon name="close"></u-icon>
  192. <official-account @load='bindload'></official-account>
  193. </view> -->
  194. <!-- v-if="isLogin && (isFollow != 1) && curClose" -->
  195. <!-- <view class="officialsss">
  196. <text>asdsufd</text>
  197. <official-account></official-account>
  198. </view> -->
  199. <view :style="{'opacity':opacitys}" class="officials">
  200. <view class="weixin_official_account">
  201. <image class="off_logo" src="/static/index/official.png"></image>
  202. <view>
  203. <view class="one">关注 “祥粤学校” 公众号</view>
  204. <view class="two">学习提醒、 报考通知不会错过</view>
  205. </view>
  206. <button type="default" class="btn btn-official" >
  207. 去关注
  208. <official-account class="official-account" id="official_account"></official-account>
  209. </button>
  210. <view class="close_icon">
  211. <u-icon name="close" class="icon-close" @click="closeOff"></u-icon>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </template>
  217. <script>
  218. import { mapGetters, mapActions } from 'vuex';
  219. import { socket_url, version} from '@/common/request.js';
  220. export default {
  221. data() {
  222. return {
  223. tabNum: 0,
  224. infoNums:0,
  225. list:[],
  226. tabCurrent:0,
  227. date:['日','一','二','三','四','五','六'],
  228. date_num: [],
  229. current:0,
  230. indicatorDots: true,
  231. autoplay: true,
  232. interval: 2000,
  233. duration: 500,
  234. swiperHeight:0,
  235. nearByDay:'', //距离最近一天考试
  236. menu: [{
  237. name: '推荐课程',
  238. }, {
  239. name: '推荐题库',
  240. }],
  241. goodsIndex: 0,
  242. goodsItem: 0,
  243. workList: [],
  244. workTextList: [],
  245. planGoodsList: [],
  246. paramList: [
  247. {
  248. pageNum: 1,
  249. pageSize: 10,
  250. total: 0,
  251. // showStatus: 0,
  252. getUserNum: 1, //是否返回商品购买用户数量 1带 0不带 ,会返回个buyUserNum
  253. goodsType:1
  254. },
  255. {
  256. pageNum: 1,
  257. pageSize: 10,
  258. total: 0,
  259. // showStatus: 0,
  260. getUserNum: 1,
  261. goodsType:2
  262. }
  263. ],
  264. total1: 0,
  265. total2: 0,
  266. list1: [],
  267. list2: [],
  268. isLogin:false,
  269. isOld:false,
  270. current: 0,
  271. // tabbarlist: this.$store.state.tabLists,
  272. showOfficial: false,
  273. // opacity: 1,
  274. isFollow: null, //是否关注过,不是1就是没关注
  275. curClose: true, // 当天时是否关闭过
  276. courseName: [],
  277. bankName: [],
  278. couIndex: 0,
  279. bankIndex: 0,
  280. courseId: '',
  281. bankId: '',
  282. };
  283. },
  284. async onLoad(option) {
  285. this.isLogin = this.$method.isLogin()
  286. this.dictObj
  287. this.getAdvertising();
  288. if(this.$method.isLogin()) {
  289. try {
  290. await this.getUserInfo()
  291. // websocket.sokcet(socket_url+this.userInfo.userId+'-'+this.$method.getRandomString(6))
  292. // websocket.sokcet(socket_url+this.userInfo.userAccount)
  293. }catch(err) {
  294. }
  295. } else {
  296. if(uni.getStorageSync('needToLogin')) {
  297. uni.removeStorageSync('needToLogin');
  298. uni.navigateTo({
  299. url:'/pages4/login/login'
  300. })
  301. }
  302. }
  303. this.init()
  304. wx.getSystemInfo({
  305. success: function (res) {
  306. let version = res.SDKVersion
  307. console.log('该版本号为: ', version)
  308. }
  309. })
  310. },
  311. async onShow() {
  312. // console.log('-----couIndex', this.couIndex, this.courseId)
  313. this.getInfo() // 判断有没有关注公众号
  314. this.isClickOff() //关注公众号,每天最多显示1次;当天学员关闭弹窗后,无需再显示
  315. uni.removeStorageSync('goPath')
  316. if (this.courseId || this.bankId) {
  317. if (this.tabNum == 0) {
  318. this.list1 = []
  319. this.paramList[0].pageNum = 1
  320. this.list1 = await this.getGoodsList(this.courseId, 0)
  321. } else {
  322. this.list2 = []
  323. this.paramList[1].pageNum = 1
  324. this.list2 = await this.getGoodsList(this.bankId, 1)
  325. }
  326. } else {
  327. this.list1 = []
  328. this.list2 = []
  329. this.courseLists()
  330. }
  331. // this.bankList();
  332. if (uni.getStorageSync('updateHome')){
  333. this.init()
  334. uni.removeStorageSync('updateHome'); //消费首页刷新事件
  335. }
  336. this.appCommonConfig({
  337. version
  338. });
  339. if(this.$method.isLogin()){
  340. this.$store.state.allowLoading = false;
  341. this.$api.getinfoAttached().then(res => {
  342. if(res.data.code ===200){
  343. this.infoNums = res.data.data.informSum
  344. const nums = res.data.data.informSum + res.data.data.orderSum + res.data.data.periodSum + res.data.data.planSum + res.data.data.subscribeSum;
  345. this.$store.commit('tabNum', nums);
  346. }
  347. })
  348. this.$store.state.allowLoading = true;
  349. }else{
  350. this.$store.commit('tabNum', 0);
  351. }
  352. },
  353. onShareAppMessage(res) {
  354. return {
  355. title: '中正',
  356. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  357. };
  358. },
  359. async onPullDownRefresh() {
  360. if (this.tabNum == 0) {
  361. this.list1 = []
  362. this.paramList[0].pageNum = 1
  363. this.list1 = await this.getGoodsList(this.courseId, 0)
  364. } else {
  365. this.list2 = []
  366. this.paramList[1].pageNum = 1
  367. this.list2 = await this.getGoodsList(this.bankId, 1)
  368. }
  369. },
  370. async onReachBottom() {
  371. // console.log('加载加载--', this.tabNum)
  372. // console.log(this.paramList[0].total,'total', this.paramList[1].total)
  373. // console.log(this.list1.length,'length', this.list2.length)
  374. if (this.tabNum == 0) {
  375. if (this.list1.length < this.paramList[0].total) {
  376. this.paramList[0].pageNum++
  377. let list1 = await this.getGoodsList(this.courseId, 0)
  378. this.list1.push(...list1)
  379. }
  380. } else {
  381. if (this.list2.length < this.paramList[1].total) {
  382. this.paramList[1].pageNum++
  383. let list2 = await this.getGoodsList(this.bankId, 1)
  384. this.list1.push(...list2)
  385. }
  386. }
  387. },
  388. computed: {
  389. ...mapGetters(['dictObj','userInfo', 'hideBuyState']),
  390. opacitys() {
  391. const value = [1011,1017,1025,1047,1124].includes(this.$store.state.scene) && this.isLogin && (this.isFollow != 1) && this.curClose ? 1 : 0
  392. return value
  393. },
  394. },
  395. methods: {
  396. ...mapActions(['getUserInfo','appCommonConfig']),
  397. tobuy(item) {
  398. console.log(item)
  399. if (item.goodsType == 1) {
  400. uni.navigateTo({
  401. url: '/pages3/course/detail?id='+item.goodsId
  402. })
  403. } else if (item.goodsType == 2) {
  404. uni.navigateTo({
  405. url: '/pages2/bank/detail?id='+item.goodsId
  406. })
  407. } else {
  408. uni.navigateTo({
  409. url: '/pages5/liveDetail/index?id='+item.goodsId
  410. })
  411. }
  412. },
  413. getInfo() {
  414. // /app/user/getInfo 登录用户信息 // fromPlat来源平台 1小程序 2PC网站
  415. this.$api.getInfo({ fromPlat: 1 }).then(res => {
  416. if(res.data.code == 200){
  417. this.$store.state.userInfo = res.data.data
  418. this.isFollow = res.data.data.userFollowWx // 不是1就是没关注
  419. }
  420. })
  421. },
  422. // 每天最多显示1次;当天学员关闭弹窗后,无需再显示
  423. isClickOff() {
  424. //当天23:59:59秒 转换成的毫秒数
  425. const end = new Date(new Date(new Date().toLocaleDateString()).getTime()+24*60*60*1000-1).getTime()
  426. const start = new Date().getTime() //当前时间的毫秒数
  427. if(uni.getStorageSync('endTime')){ //首先判断本地有没有存入当天23:59:59秒的毫秒数
  428. if(start > uni.getStorageSync('endTime')){ //当前时间毫秒数大于当天23:59:59秒
  429. this.curClose = true
  430. uni.removeStorageSync('curClose')
  431. uni.removeStorageSync('endTime')
  432. } else {
  433. this.curClose = uni.getStorageSync('curClose') ? false : true
  434. }
  435. }else{
  436. uni.setStorageSync("endTime", end) //存入当天晚上23:59:59秒的毫秒数
  437. }
  438. },
  439. closeOff() {
  440. this.curClose = false
  441. uni.setStorageSync("curClose", '1')
  442. },
  443. toFixed(number) {
  444. if(number > 0) {
  445. return number.toFixed(2)
  446. } else {
  447. return '0.00'
  448. }
  449. },
  450. /**
  451. * @param {Object} swiper
  452. * 点击轮播图
  453. */
  454. swiperClick(swiper) {
  455. if(swiper.jumpType == 1) { //无跳转
  456. return;
  457. } else if(swiper.jumpType == 2) { //url
  458. let url = encodeURIComponent(swiper.jumpUrl)
  459. uni.navigateTo({
  460. url:'/pages/webview/index?url='+swiper.jumpUrl
  461. })
  462. } else if(swiper.jumpType == 3) { //内部接口
  463. uni.navigateTo({
  464. url:swiper.jumpUrl
  465. })
  466. } else if(swiper.jumpType == 4) { //外部接口
  467. uni.navigateToMiniProgram({
  468. appId: swiper.remarks,
  469. path: swiper.jumpUrl,
  470. extraData: {
  471. },
  472. success(res) {
  473. // 打开成功
  474. },
  475. fail(err) {
  476. // console.log(err)
  477. }
  478. })
  479. }
  480. },
  481. /**
  482. * banner图片加载完成
  483. */
  484. imageLoad(e) {
  485. let winW = 750;
  486. let imgW = e.detail.width;
  487. let imgH = e.detail.height;
  488. this.swiperHeight = 750 * imgH / imgW;
  489. },
  490. async getAdvertising() {
  491. await this.advertisingHomeLocation();
  492. await this.advertisingList();
  493. },
  494. getUserSubscribeRecentExam() {
  495. return new Promise(resolve => {
  496. this.$api.getUserSubscribeRecentExam().then(res => {
  497. if(res.data.code == 200) {
  498. if(res.data.data) {
  499. let day = this.$method.timestampToTime(res.data.data.applySiteExamTime,true).replace(/-/g,'/')
  500. let dayTime = day + ' ' + res.data.data.applySiteStartTime
  501. let NowTime = new Date(); //考试时间
  502. let examTime = new Date(dayTime); //考试时间
  503. let t = (examTime.getTime() / 1000) - (NowTime.getTime() / 1000).toFixed(0);
  504. if(t > 0) {
  505. let day = +this.$method.GetRTime(examTime.getTime() / 1000,true)
  506. this.nearByDay = day;
  507. }
  508. }
  509. resolve()
  510. }
  511. })
  512. })
  513. },
  514. advertisingHomeLocation() {
  515. return new Promise(resolve => {
  516. this.$api.advertisingHomeLocation().then(res => {
  517. this.interval = res.data.data.intervalTime * 1000
  518. resolve()
  519. })
  520. })
  521. },
  522. advertisingList() {
  523. return new Promise(resolve => {
  524. this.$api.advertisingList({locationId:1}).then(res => {
  525. this.list = res.data.rows;
  526. resolve()
  527. })
  528. })
  529. },
  530. jumpPage(){
  531. this.$navTo.togo('/pages4/msg/index')
  532. },
  533. go(type) {
  534. if (!this.$method.isLogin()) {
  535. if(type == 'course') {
  536. uni.setStorageSync('goPath','course')
  537. } else if(type == 'bank' ) {
  538. uni.setStorageSync('goPath','bank')
  539. }
  540. this.$navTo.togo('/pages4/login/login');
  541. } else {
  542. if(type == 'course') {
  543. uni.navigateTo({
  544. url:'/pages2/wd/class'
  545. })
  546. } else if(type == 'bank') {
  547. this.$api.lockLockStatus({
  548. action:'bank'
  549. }).then(res => {
  550. if(res.data.code == 200) { //有其他端在操作,不能学习
  551. uni.showToast({
  552. icon:'none',
  553. title:res.data.msg,
  554. duration:3000,
  555. })
  556. } else if(res.data.code == 500) { //可以学习
  557. uni.navigateTo({
  558. url:'/pages2/wd/question_bank'
  559. })
  560. }
  561. })
  562. }
  563. }
  564. },
  565. async changeCou(recommendId, index) {
  566. this.couIndex = index
  567. this.courseId = recommendId
  568. this.paramList[0].pageNum = 1
  569. this.list1 = []
  570. let list1 = await this.getGoodsList(recommendId, 0)
  571. this.list1.push(...list1)
  572. },
  573. async changebank(recommendId, index) {
  574. this.bankIndex = index
  575. this.bankId = recommendId
  576. this.paramList[1].pageNum = 1
  577. this.list2 = []
  578. let list2 = await this.getGoodsList(recommendId, 1)
  579. this.list2.push(...list2)
  580. },
  581. //课程
  582. courseLists() {
  583. // var param = this.paramList[0];
  584. // /app/common/goods/list
  585. this.$http({
  586. url: '/app/common/activity/recommend/list',
  587. method: 'get',
  588. data: {
  589. platform: 1,
  590. status: 1
  591. },
  592. noToken: true
  593. }).then(async (res) => {
  594. if (res.data.code == 200) {
  595. let list = res.data.rows || []
  596. //课程
  597. this.courseName = list.filter(x => x.type == 1).sort((a,b) => a.sort - b.sort).map(x => {
  598. return {
  599. name: x.name,
  600. recommendId: x.recommendId
  601. }
  602. });
  603. console.log('couIndex', this.couIndex, this.courseName)
  604. //题库
  605. this.bankName = list.filter(x => x.type == 2).sort((a,b) => a.sort - b.sort).map(x => {
  606. return {
  607. name: x.name,
  608. recommendId: x.recommendId
  609. }
  610. });
  611. if (this.courseName.length) {
  612. this.courseId = this.courseName[0].recommendId
  613. let list1 = await this.getGoodsList(this.courseName[0].recommendId, 0)
  614. this.list1.push(...list1)
  615. }
  616. if (this.bankName.length) {
  617. this.bankId = this.bankName[0].recommendId
  618. let list2 = await this.getGoodsList(this.bankName[0].recommendId, 1)
  619. this.list2.push(...list2)
  620. }
  621. }
  622. });
  623. // this.$api.goodsList(param).then(res => {
  624. // if (res.data.code == 200) {
  625. // this.list1 = res.data.rows || []
  626. // this.total1 = res.data.total
  627. // if (this.list1.length === res.data.total) {
  628. // this.showStatus1 = true
  629. // }
  630. // }
  631. // });
  632. },
  633. getGoodsList(recommendId, num) {
  634. return new Promise((resolve, reject) => {
  635. this.$http({
  636. url: `/app/common/activity/recommend/goodsList`,
  637. method: 'get',
  638. data: {
  639. pageNum: this.paramList[num].pageNum,
  640. pageSize: this.paramList[num].pageSize,
  641. recommendId: recommendId
  642. },
  643. noToken: true
  644. }).then((res) => {
  645. if (res.data.code == 200) {
  646. this.paramList[num].total = res.data.total
  647. resolve(res.data.rows)
  648. }
  649. })
  650. })
  651. },
  652. /**
  653. * @param {Object} item
  654. * 跳转课程详情
  655. */
  656. async jumpGoodsDetail(item){
  657. uni.navigateTo({
  658. url:'/pages2/wd/class'
  659. })
  660. },
  661. /**
  662. * @param {Object} goodsId 商品id
  663. * 查询商品重修状态
  664. */
  665. courseGoodsRebuildStatus(goodsId,gradeId) {
  666. return new Promise(resolve => {
  667. this.$api.courseGoodsRebuildStatus({
  668. goodsId:goodsId,
  669. gradeId:gradeId
  670. }).then(res => {
  671. resolve(res.data.data)
  672. })
  673. })
  674. },
  675. preveItem() {
  676. if (this.goodsIndex > 0) {
  677. this.goodsIndex = this.goodsIndex - 1;
  678. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  679. this.goodsItem = this.planGoodsList[0];
  680. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  681. }
  682. },
  683. nextItem() {
  684. if (this.goodsIndex < this.workList.length - 1) {
  685. this.goodsIndex = this.goodsIndex + 1;
  686. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  687. this.goodsItem = this.planGoodsList[0];
  688. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  689. }
  690. },
  691. jumpPlan() {
  692. if (!this.$method.isLogin()) {
  693. this.$navTo.togo('/pages4/login/login');
  694. } else {
  695. this.$navTo.togo('/pages2/plan/index', {});
  696. }
  697. },
  698. async init() {
  699. if (!this.$method.isLogin()) {
  700. //未登录
  701. this.date_num = [];
  702. this.workList = [];
  703. this.planGoodsList = [];
  704. this.initDay();
  705. } else {
  706. this.date_num = [];
  707. this.workList = [];
  708. this.planGoodsList = [];
  709. await this.userPlanSeven();
  710. await this.getUserSubscribeRecentExam();
  711. }
  712. },
  713. getMonDate() {
  714. var d = new Date(),
  715. day = d.getDay(),
  716. date = d.getDate();
  717. if (day == 0) return d;
  718. else d.setDate(date - day);
  719. return d;
  720. },
  721. initDay() {
  722. // d是当前星期一的日期对象
  723. var d = this.getMonDate();
  724. var arr = [];
  725. let date = new Date();
  726. let num = date.getDate();
  727. this.date_num = []
  728. for (var i = 0; i < 7; i++) {
  729. let item = { date: d.getDate() };
  730. item.color = 0;
  731. if (d.getDate() == num) {
  732. item.color = 3;
  733. }
  734. this.date_num.push(item);
  735. d.setDate(d.getDate() + 1);
  736. }
  737. },
  738. dealRL(calendarStudyVo){
  739. let self = this
  740. self.date_num = []
  741. let date = new Date();
  742. let num = date.getDate();
  743. let month = date.getMonth() + 1;
  744. let list = [];
  745. for (let j = 0; j < calendarStudyVo.length; j++) {
  746. let item = calendarStudyVo[j];
  747. list = item.dayStudyList;
  748. for (let i = 0; i < list.length; i++) {
  749. let item = list[i];
  750. item.color = 0;
  751. if (item.date == num) {
  752. item.color = 3;
  753. }
  754. if (item.perform == 1) {
  755. item.color = 1;
  756. }
  757. if (item.perform == 2) {
  758. item.color = 2;
  759. }
  760. item.note = item.studyCourseKnob;
  761. if (item.note > 0) {
  762. item.dot = true;
  763. }
  764. self.date_num.push(item);
  765. }
  766. }
  767. },
  768. userPlanSeven() {
  769. return new Promise(resolve => {
  770. let self = this;
  771. this.$api.userPlanSeven().then(result => {
  772. if (result.data.data && result.data.data.length>0) {
  773. self.workList = result.data.data
  774. self.planGoodsList = self.workList[0].goodsVos;
  775. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  776. self.goodsItem = self.planGoodsList[0];
  777. }
  778. self.dealRL(result.data.data[0].calendarStudyVo)
  779. } else {
  780. self.initDay();
  781. }
  782. resolve()
  783. });
  784. })
  785. },
  786. swiperChange(e) {
  787. this.current = e.detail.current;
  788. },
  789. tab(e) {
  790. this.tabCurrent = e;
  791. this.tabNum = e
  792. },
  793. updateHomePlan() {
  794. this.$refs.home.init();
  795. },
  796. beforeSwitch(index) {
  797. let that = this;
  798. if (index == 1) {
  799. this.isClick1 = true;
  800. }
  801. if (index == this.current) {
  802. return false;
  803. }
  804. if (!this.$method.isLogin()) {
  805. if (index == 0 || index == 1) {
  806. return true;
  807. } else {
  808. this.$navTo.togo('/pages4/login/login');
  809. return false;
  810. }
  811. } else {
  812. if (index == 2) {
  813. this.$refs.refMy.init();
  814. }
  815. return true;
  816. }
  817. }
  818. },
  819. };
  820. </script>
  821. <style>
  822. page {
  823. background: #eaeef1;
  824. }
  825. </style>
  826. <style lang="scss" scoped>
  827. @mixin threeDot {
  828. overflow: hidden;
  829. text-overflow:ellipsis;
  830. white-space: nowrap;
  831. }
  832. .index {
  833. .navbar {
  834. /deep/ .u-navbar-inner {
  835. margin-right:0!important;
  836. }
  837. .slot-wrap {
  838. width:100%;
  839. display: flex;
  840. align-items: center;
  841. justify-content: center;
  842. image {
  843. width: 178rpx;
  844. height: 31rpx;
  845. }
  846. }
  847. }
  848. .swiper {
  849. width:100%;
  850. position: relative;
  851. .dots {
  852. position:absolute;
  853. left:0;
  854. bottom:8rpx;
  855. width:100%;
  856. display: flex;
  857. justify-content: center;
  858. .dot {
  859. width: 8rpx;
  860. height: 8rpx;
  861. background: #FFFFFF;
  862. border-radius: 50%;
  863. margin:0 4rpx;
  864. transition: all 0.3s;
  865. &.active {
  866. width: 24rpx;
  867. height: 8rpx;
  868. background: #007AFF;
  869. border-radius: 4rpx;
  870. }
  871. }
  872. }
  873. image {
  874. width:100%;
  875. }
  876. }
  877. .content {
  878. overflow: hidden;
  879. padding:0 16rpx;
  880. background: rgba(234, 238, 241, 1);
  881. padding-bottom: 100rpx;
  882. .notice {
  883. background:#fff;
  884. border-radius: 16rpx;
  885. margin-top:32rpx;
  886. overflow: hidden;
  887. &__content {
  888. padding:0 8rpx;
  889. height: 56rpx;
  890. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  891. display: flex;
  892. align-items: center;
  893. }
  894. .icon {
  895. width: 40rpx;
  896. height: 40rpx;
  897. margin-right: 8rpx;
  898. }
  899. .text {
  900. flex:1;
  901. font-size: 24rpx;
  902. color: #333333;
  903. position: relative;
  904. }
  905. .btn {
  906. font-size: 24rpx;
  907. color: #007AFF;
  908. }
  909. }
  910. .date-list {
  911. margin-top:16rpx;
  912. width: 718rpx;
  913. height: 330rpx;
  914. background: #FFFFFF;
  915. border-radius: 16rpx;
  916. padding:18rpx 27rpx;
  917. .title {
  918. font-size: 30rpx;
  919. font-weight: bold;
  920. color: #007AFF;
  921. }
  922. .list {
  923. margin-top:40rpx;
  924. display: flex;
  925. justify-content: space-around;
  926. .item {
  927. .top {
  928. text-align: center;
  929. font-size: 26rpx;
  930. color: rgba(102, 102, 102, 0.6);
  931. }
  932. .bottom {
  933. text-align: center;
  934. line-height: 48rpx;
  935. margin-top:30rpx;
  936. width: 48rpx;
  937. height: 48rpx;
  938. border-radius: 50%;
  939. color:rgba(51, 51, 51, 1);
  940. font-size: 26rpx;
  941. position:relative;
  942. &.red {
  943. color:#FF3B30;
  944. }
  945. &.green {
  946. color:#36C75A;
  947. }
  948. &.blue {
  949. background: #007AFF;
  950. color:#fff;
  951. }
  952. .note {
  953. width: 30rpx;
  954. height: 30rpx;
  955. border: 2rpx solid #FF9500;
  956. border-radius: 50%;
  957. position:absolute;
  958. top:-20rpx;
  959. right:-20rpx;
  960. line-height: 28rpx;
  961. text-align: center;
  962. color:#FF9500;
  963. font-size: 26rpx;
  964. }
  965. .point {
  966. margin:0 auto;
  967. width: 8rpx;
  968. height: 8rpx;
  969. background: #FF9500;
  970. border-radius: 50%;
  971. }
  972. }
  973. }
  974. }
  975. .btns {
  976. margin-top:50rpx;
  977. display: flex;
  978. align-items: center;
  979. justify-content: center;
  980. .left,.right {
  981. width: 40rpx;
  982. height: 40rpx;
  983. }
  984. .center{
  985. width: 440rpx;
  986. height: 56rpx;
  987. background: #FFFFFF;
  988. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  989. border-radius: 28rpx;
  990. color:rgba(255, 149, 0, 1);
  991. line-height: 56rpx;
  992. text-align: center;
  993. font-size: 30rpx;
  994. margin:0 30rpx;
  995. }
  996. }
  997. }
  998. .tabs {
  999. width: 100%;
  1000. height: 78rpx;
  1001. display: flex;
  1002. align-items: center;
  1003. justify-content: space-between;
  1004. background-color: #F2F7FF;
  1005. border-radius: 38rpx;
  1006. margin: 34rpx 0rpx 24rpx 0rpx;
  1007. padding: 0rpx 5rpx;
  1008. .tab_item {
  1009. width: 345rpx;
  1010. height: 65rpx;
  1011. line-height: 65rpx;
  1012. font-size: 28rpx;
  1013. font-weight: bold;
  1014. border-radius: 32rpx;
  1015. text-align: center;
  1016. color: #333;
  1017. &.nactive {
  1018. color: #fff;
  1019. background-color: #3577E8;
  1020. }
  1021. }
  1022. }
  1023. .course-list {
  1024. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  1025. .list_item {
  1026. padding: 24rpx;
  1027. // height: 278rpx;
  1028. background: #FFFFFF;
  1029. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  1030. border-radius: 24rpx;
  1031. background:#fff;
  1032. margin-bottom: 32rpx;
  1033. display: flex;
  1034. align-items: center;
  1035. .c_title {
  1036. font-size: 32rpx;
  1037. font-weight: bold;
  1038. margin-bottom: 24rpx;
  1039. font-weight: bold;
  1040. color: #222222;
  1041. }
  1042. .c_downs {
  1043. display: flex;
  1044. }
  1045. .img {
  1046. position:relative;
  1047. margin-right: 24rpx;
  1048. border-radius: 16rpx ;
  1049. overflow: hidden;
  1050. width: 204rpx;
  1051. height: 120rpx;
  1052. image {
  1053. width:100%;
  1054. height:100%;
  1055. }
  1056. .time {
  1057. position:absolute;
  1058. bottom:0;
  1059. right:0;
  1060. width: 80rpx;
  1061. height: 32rpx;
  1062. background: rgba(1, 25, 45, 0.4);
  1063. color:#fff;
  1064. text-align: center;
  1065. line-height: 32rpx;
  1066. font-size: 24rpx;
  1067. border-radius: 10rpx 0px 10rpx 0px;
  1068. }
  1069. }
  1070. .text {
  1071. width: 440rpx;
  1072. position: relative;
  1073. display: flex;
  1074. flex-direction: column;
  1075. justify-content: space-between;
  1076. height: 120rpx;
  1077. .joins {
  1078. .people {
  1079. width: 160rpx;
  1080. font-size: 20rpx;
  1081. color: #999999;
  1082. padding: 0rpx 8rpx;
  1083. text-align: center;
  1084. height: 36rpx;
  1085. line-height: 36rpx;
  1086. background: #F6F7FB;
  1087. border-radius: 4px;
  1088. }
  1089. }
  1090. .desc {
  1091. margin-top: 10rpx;
  1092. display: flex;
  1093. align-items: center;
  1094. justify-content: space-between;
  1095. width: 100%;
  1096. .left {
  1097. flex:1;
  1098. color:#333;
  1099. font-size: 26rpx;
  1100. .mon_t {
  1101. font-weight: bold;
  1102. color: #FC3F3F;
  1103. font-size: 36rpx;
  1104. }
  1105. .free {
  1106. font-size: 24rpx;
  1107. }
  1108. .sale {
  1109. color: #999999;
  1110. font-size: 24rpx;
  1111. margin-left: 8rpx;
  1112. }
  1113. .price_line {
  1114. color: #999999;
  1115. font-size: 24rpx;
  1116. text-decoration:line-through;
  1117. font-weight: 400;
  1118. }
  1119. }
  1120. .right {
  1121. font-size: 24rpx;
  1122. font-weight: bold;
  1123. .regiser_row {
  1124. width: 144rpx;
  1125. height: 52rpx;
  1126. line-height: 52rpx;
  1127. text-align: center;
  1128. border-radius: 16rpx;
  1129. background-color: #FC3F3F;
  1130. color: #fff;
  1131. font-weight: 500;
  1132. font-size: 26rpx;
  1133. }
  1134. }
  1135. }
  1136. }
  1137. }
  1138. }
  1139. .filters {
  1140. width: 100%;
  1141. padding: 0rpx 16rpx;
  1142. margin-bottom: 32rpx;
  1143. display: flex;
  1144. align-items: center;
  1145. .scroll_view_H {
  1146. width: 100%;
  1147. overflow: hidden;
  1148. white-space: nowrap;
  1149. }
  1150. .filter_item {
  1151. display: inline-block;
  1152. margin-right: 16rpx;
  1153. .name {
  1154. font-size: 24rpx;
  1155. color: #666666;
  1156. padding: 12rpx 16rpx;
  1157. height: 56rpx;
  1158. text-align: center;
  1159. background: #FFFFFF;
  1160. border-radius: 8rpx;
  1161. &.nactive {
  1162. color: #3F8DFD;
  1163. }
  1164. }
  1165. }
  1166. }
  1167. }
  1168. .my-list {
  1169. margin:32rpx 0;
  1170. display:flex;
  1171. justify-content: space-between;
  1172. &__item {
  1173. width:351rpx;
  1174. height:96rpx;
  1175. position:relative;
  1176. padding:25rpx 0 0 25rpx;
  1177. font-size: 32rpx;
  1178. &--bank {
  1179. text {
  1180. position: relative;
  1181. z-index: 2;
  1182. color:#00998A;
  1183. }
  1184. }
  1185. &--course {
  1186. text {
  1187. position: relative;
  1188. z-index: 2;
  1189. color:#0062D9;
  1190. }
  1191. }
  1192. image {
  1193. width:100%;
  1194. height:100%;
  1195. left:0;
  1196. top:0;
  1197. position:absolute;
  1198. z-index: 1;
  1199. }
  1200. }
  1201. }
  1202. }
  1203. .date_dot {
  1204. width: 6rpx;
  1205. height: 6rpx;
  1206. background: #ffcc00;
  1207. border-radius: 50%;
  1208. margin: 0 auto;
  1209. }
  1210. .date_note {
  1211. border-radius: 50%;
  1212. width: 29rpx;
  1213. height: 29rpx;
  1214. border: 1px solid #ffcc00;
  1215. font-size: 18rpx;
  1216. color: #ffcc00;
  1217. text-align: center;
  1218. display: inline-block;
  1219. position: absolute;
  1220. top: -19rpx;
  1221. right: 9rpx;
  1222. }
  1223. .circle_num {
  1224. border-radius: 50%;
  1225. width: 29rpx;
  1226. height: 29rpx;
  1227. border: 1px solid #ffcc00;
  1228. font-size: 18rpx;
  1229. color: #ffcc00;
  1230. text-align: center;
  1231. display: inline-block;
  1232. margin: 5rpx;
  1233. }
  1234. .date_num {
  1235. width: 14%;
  1236. text-align: center;
  1237. position: relative;
  1238. display: inline-block;
  1239. margin-top: 20rpx;
  1240. }
  1241. .course_title {
  1242. color: #2f4379;
  1243. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1244. border-radius: 28rpx;
  1245. width: 100%;
  1246. height: 48rpx;
  1247. line-height: 48rpx;
  1248. overflow: hidden;
  1249. text-overflow:ellipsis;
  1250. white-space: nowrap;
  1251. }
  1252. .arr-icon {
  1253. width: 40rpx;
  1254. height: 40rpx;
  1255. }
  1256. .date_num_color0 {
  1257. color: #32467b;
  1258. }
  1259. .date_num_color1 {
  1260. color: #34c759;
  1261. }
  1262. .date_num_color2 {
  1263. color: #ff3b30;
  1264. }
  1265. .date_num_color3 {
  1266. color: #ffffff;
  1267. background-color: #ffcc00;
  1268. border-radius: 50%;
  1269. width: 40rpx;
  1270. height: 40rpx;
  1271. display: inline-block;
  1272. }
  1273. .card_date {
  1274. width: 14%;
  1275. text-align: center;
  1276. color: #7f8caf;
  1277. }
  1278. .calendar_card {
  1279. width: 100%;
  1280. background: #ffffff;
  1281. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  1282. border-radius: 22rpx;
  1283. margin-top: 16rpx;
  1284. padding-bottom: 15rpx;
  1285. }
  1286. .calendar_card .card_box {
  1287. height: 60rpx;
  1288. line-height: 60rpx;
  1289. margin-left: 20rpx;
  1290. }
  1291. .calendar_card .t1 {
  1292. color: #007AFF;
  1293. font-size: 24rpx;
  1294. }
  1295. .img_more {
  1296. width: 26rpx;
  1297. height: 26rpx;
  1298. }
  1299. .flex-d {
  1300. display: flex;
  1301. flex-direction: column;
  1302. justify-content: space-between;
  1303. height: 100%;
  1304. }
  1305. .contentZ {
  1306. flex: 1;
  1307. overflow-y: auto;
  1308. padding-left: 35rpx;
  1309. display: flex;
  1310. justify-content: space-around;
  1311. }
  1312. .contentZ::-webkit-scrollbar {
  1313. display: none;
  1314. }
  1315. .fots {
  1316. height: 100rpx;
  1317. display: flex;
  1318. align-items: center;
  1319. justify-content: space-around;
  1320. border-top: 1rpx solid #eee;
  1321. }
  1322. .leftBtns {
  1323. font-size: 30rpx;
  1324. color: #32467b;
  1325. font-weight: 500;
  1326. }
  1327. .right_Btns {
  1328. font-size: 30rpx;
  1329. color: #fff;
  1330. background-color: #32467b;
  1331. border-radius: 24rpx;
  1332. height: 60rpx;
  1333. line-height: 60rpx;
  1334. text-align: center;
  1335. padding: 0rpx 23rpx;
  1336. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1337. }
  1338. .lzs {
  1339. width: 31%;
  1340. margin: 0rpx 1%;
  1341. max-width: 31%;
  1342. }
  1343. .tylsz{
  1344. margin-top: 23rpx;
  1345. color: #666;
  1346. font-weight: 400;
  1347. font-size: 24rpx;
  1348. }
  1349. .tylsz:first-child{
  1350. text-align: center;
  1351. }
  1352. .activeStys{
  1353. font-weight: bold;
  1354. color: #32467B;
  1355. }
  1356. .officialsss {
  1357. position: fixed;
  1358. left: 0;
  1359. bottom: 100rpx;
  1360. width: 100%;
  1361. }
  1362. .officials {
  1363. width:100%;
  1364. height: 104rpx;
  1365. position:fixed;
  1366. bottom: 0;
  1367. left: 0;
  1368. z-index: 999;
  1369. display: flex;
  1370. align-items: center;
  1371. justify-content: center;
  1372. }
  1373. .weixin_official_account {
  1374. position: fixed;
  1375. bottom: 0;
  1376. left: 0;
  1377. display: flex;
  1378. align-items: center;
  1379. // justify-content: space-between;
  1380. width: 718rpx;
  1381. height: 104rpx;
  1382. padding: 0 32rpx;
  1383. margin-left: 16rpx;
  1384. background: #3A3F54;
  1385. border-radius: 16rpx;
  1386. .off_logo {
  1387. width: 48rpx;
  1388. height: 48rpx;
  1389. margin-right: 24rpx;
  1390. }
  1391. .one {
  1392. color: #fff;
  1393. font-size: 24rpx;
  1394. font-weight: 500;
  1395. }
  1396. .two {
  1397. color: #BCBEC7;
  1398. font-size: 20rpx;
  1399. }
  1400. .btn {
  1401. position: relative;
  1402. top: 0;
  1403. left: 35rpx;
  1404. width: 128rpx;
  1405. height: 56rpx;
  1406. line-height: 56rpx;
  1407. padding: 0;
  1408. background: linear-gradient(274deg, #408BF6 0%, #40B4F6 100%);
  1409. border-radius: 156rpx;
  1410. overflow: hidden;
  1411. text-align: center;
  1412. font-size: 24rpx;
  1413. color: #fff;
  1414. .official-account {
  1415. position: absolute;
  1416. z-index: 1000;
  1417. right: -9px;
  1418. top: -38px;
  1419. opacity: 0;
  1420. }
  1421. }
  1422. .close_icon {
  1423. width: 40rpx;
  1424. height: 40rpx;
  1425. background: #FFFFFF;
  1426. opacity: 0.2;
  1427. display: flex;
  1428. align-items: center;
  1429. position: absolute;
  1430. top: 0;
  1431. right: 0;
  1432. color: #fff;
  1433. border-radius: 0rpx 16rpx;
  1434. }
  1435. .icon-close {
  1436. display: flex;
  1437. align-items: center;
  1438. justify-content: center;
  1439. width: 50rpx;
  1440. height: 68rpx;
  1441. font-size: 22rpx;
  1442. color: #7B8284;
  1443. }
  1444. }
  1445. </style>