index.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519
  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 == 2) {
  400. uni.navigateTo({
  401. url: '/pages2/bank/detail?id='+item.goodsId
  402. })
  403. } else {
  404. // 视频、直播 /pages5/liveDetail/index
  405. uni.navigateTo({
  406. url: '/pages3/course/detail?id='+item.goodsId + '&goodsType=' + item.goodsType
  407. })
  408. }
  409. },
  410. getInfo() {
  411. // /app/user/getInfo 登录用户信息 // fromPlat来源平台 1小程序 2PC网站
  412. this.$api.getInfo({ fromPlat: 1 }).then(res => {
  413. if(res.data.code == 200){
  414. this.$store.state.userInfo = res.data.data
  415. this.isFollow = res.data.data.userFollowWx // 不是1就是没关注
  416. }
  417. })
  418. },
  419. // 每天最多显示1次;当天学员关闭弹窗后,无需再显示
  420. isClickOff() {
  421. //当天23:59:59秒 转换成的毫秒数
  422. const end = new Date(new Date(new Date().toLocaleDateString()).getTime()+24*60*60*1000-1).getTime()
  423. const start = new Date().getTime() //当前时间的毫秒数
  424. if(uni.getStorageSync('endTime')){ //首先判断本地有没有存入当天23:59:59秒的毫秒数
  425. if(start > uni.getStorageSync('endTime')){ //当前时间毫秒数大于当天23:59:59秒
  426. this.curClose = true
  427. uni.removeStorageSync('curClose')
  428. uni.removeStorageSync('endTime')
  429. } else {
  430. this.curClose = uni.getStorageSync('curClose') ? false : true
  431. }
  432. }else{
  433. uni.setStorageSync("endTime", end) //存入当天晚上23:59:59秒的毫秒数
  434. }
  435. },
  436. closeOff() {
  437. this.curClose = false
  438. uni.setStorageSync("curClose", '1')
  439. },
  440. toFixed(number) {
  441. if(number > 0) {
  442. return number.toFixed(2)
  443. } else {
  444. return '0.00'
  445. }
  446. },
  447. /**
  448. * @param {Object} swiper
  449. * 点击轮播图
  450. */
  451. swiperClick(swiper) {
  452. if(swiper.jumpType == 1) { //无跳转
  453. return;
  454. } else if(swiper.jumpType == 2) { //url
  455. let url = encodeURIComponent(swiper.jumpUrl)
  456. uni.navigateTo({
  457. url:'/pages/webview/index?url='+swiper.jumpUrl
  458. })
  459. } else if(swiper.jumpType == 3) { //内部接口
  460. uni.navigateTo({
  461. url:swiper.jumpUrl
  462. })
  463. } else if(swiper.jumpType == 4) { //外部接口
  464. uni.navigateToMiniProgram({
  465. appId: swiper.remarks,
  466. path: swiper.jumpUrl,
  467. extraData: {
  468. },
  469. success(res) {
  470. // 打开成功
  471. },
  472. fail(err) {
  473. // console.log(err)
  474. }
  475. })
  476. }
  477. },
  478. /**
  479. * banner图片加载完成
  480. */
  481. imageLoad(e) {
  482. let winW = 750;
  483. let imgW = e.detail.width;
  484. let imgH = e.detail.height;
  485. this.swiperHeight = 750 * imgH / imgW;
  486. },
  487. async getAdvertising() {
  488. await this.advertisingHomeLocation();
  489. await this.advertisingList();
  490. },
  491. getUserSubscribeRecentExam() {
  492. return new Promise(resolve => {
  493. this.$api.getUserSubscribeRecentExam().then(res => {
  494. if(res.data.code == 200) {
  495. if(res.data.data) {
  496. let day = this.$method.timestampToTime(res.data.data.applySiteExamTime,true).replace(/-/g,'/')
  497. let dayTime = day + ' ' + res.data.data.applySiteStartTime
  498. let NowTime = new Date(); //考试时间
  499. let examTime = new Date(dayTime); //考试时间
  500. let t = (examTime.getTime() / 1000) - (NowTime.getTime() / 1000).toFixed(0);
  501. if(t > 0) {
  502. let day = +this.$method.GetRTime(examTime.getTime() / 1000,true)
  503. this.nearByDay = day;
  504. }
  505. }
  506. resolve()
  507. }
  508. })
  509. })
  510. },
  511. advertisingHomeLocation() {
  512. return new Promise(resolve => {
  513. this.$api.advertisingHomeLocation().then(res => {
  514. this.interval = res.data.data.intervalTime * 1000
  515. resolve()
  516. })
  517. })
  518. },
  519. advertisingList() {
  520. return new Promise(resolve => {
  521. this.$api.advertisingList({locationId:1}).then(res => {
  522. this.list = res.data.rows;
  523. resolve()
  524. })
  525. })
  526. },
  527. jumpPage(){
  528. this.$navTo.togo('/pages4/msg/index')
  529. },
  530. go(type) {
  531. if (!this.$method.isLogin()) {
  532. if(type == 'course') {
  533. uni.setStorageSync('goPath','course')
  534. } else if(type == 'bank' ) {
  535. uni.setStorageSync('goPath','bank')
  536. }
  537. this.$navTo.togo('/pages4/login/login');
  538. } else {
  539. if(type == 'course') {
  540. uni.navigateTo({
  541. url:'/pages2/wd/class'
  542. })
  543. } else if(type == 'bank') {
  544. this.$api.lockLockStatus({
  545. action:'bank'
  546. }).then(res => {
  547. if(res.data.code == 200) { //有其他端在操作,不能学习
  548. uni.showToast({
  549. icon:'none',
  550. title:res.data.msg,
  551. duration:3000,
  552. })
  553. } else if(res.data.code == 500) { //可以学习
  554. uni.navigateTo({
  555. url:'/pages2/wd/question_bank'
  556. })
  557. }
  558. })
  559. }
  560. }
  561. },
  562. async changeCou(recommendId, index) {
  563. this.couIndex = index
  564. this.courseId = recommendId
  565. this.paramList[0].pageNum = 1
  566. this.list1 = []
  567. let list1 = await this.getGoodsList(recommendId, 0)
  568. this.list1.push(...list1)
  569. },
  570. async changebank(recommendId, index) {
  571. this.bankIndex = index
  572. this.bankId = recommendId
  573. this.paramList[1].pageNum = 1
  574. this.list2 = []
  575. let list2 = await this.getGoodsList(recommendId, 1)
  576. this.list2.push(...list2)
  577. },
  578. //课程
  579. courseLists() {
  580. // var param = this.paramList[0];
  581. // /app/common/goods/list
  582. this.$http({
  583. url: '/app/common/activity/recommend/list',
  584. method: 'get',
  585. data: {
  586. platform: 1,
  587. status: 1
  588. },
  589. noToken: true
  590. }).then(async (res) => {
  591. if (res.data.code == 200) {
  592. let list = res.data.rows || []
  593. //课程
  594. this.courseName = list.filter(x => x.type == 1).sort((a,b) => a.sort - b.sort).map(x => {
  595. return {
  596. name: x.name,
  597. recommendId: x.recommendId
  598. }
  599. });
  600. console.log('couIndex', this.couIndex, this.courseName)
  601. //题库
  602. this.bankName = list.filter(x => x.type == 2).sort((a,b) => a.sort - b.sort).map(x => {
  603. return {
  604. name: x.name,
  605. recommendId: x.recommendId
  606. }
  607. });
  608. if (this.courseName.length) {
  609. this.courseId = this.courseName[0].recommendId
  610. let list1 = await this.getGoodsList(this.courseName[0].recommendId, 0)
  611. this.list1.push(...list1)
  612. }
  613. if (this.bankName.length) {
  614. this.bankId = this.bankName[0].recommendId
  615. let list2 = await this.getGoodsList(this.bankName[0].recommendId, 1)
  616. this.list2.push(...list2)
  617. }
  618. }
  619. });
  620. // this.$api.goodsList(param).then(res => {
  621. // if (res.data.code == 200) {
  622. // this.list1 = res.data.rows || []
  623. // this.total1 = res.data.total
  624. // if (this.list1.length === res.data.total) {
  625. // this.showStatus1 = true
  626. // }
  627. // }
  628. // });
  629. },
  630. getGoodsList(recommendId, num) {
  631. return new Promise((resolve, reject) => {
  632. this.$http({
  633. url: `/app/common/activity/recommend/goodsList`,
  634. method: 'get',
  635. data: {
  636. pageNum: this.paramList[num].pageNum,
  637. pageSize: this.paramList[num].pageSize,
  638. recommendId: recommendId
  639. },
  640. noToken: true
  641. }).then((res) => {
  642. if (res.data.code == 200) {
  643. this.paramList[num].total = res.data.total
  644. resolve(res.data.rows)
  645. }
  646. })
  647. })
  648. },
  649. /**
  650. * @param {Object} item
  651. * 跳转课程详情
  652. */
  653. async jumpGoodsDetail(item){
  654. uni.navigateTo({
  655. url:'/pages2/wd/class'
  656. })
  657. },
  658. /**
  659. * @param {Object} goodsId 商品id
  660. * 查询商品重修状态
  661. */
  662. courseGoodsRebuildStatus(goodsId,gradeId) {
  663. return new Promise(resolve => {
  664. this.$api.courseGoodsRebuildStatus({
  665. goodsId:goodsId,
  666. gradeId:gradeId
  667. }).then(res => {
  668. resolve(res.data.data)
  669. })
  670. })
  671. },
  672. preveItem() {
  673. if (this.goodsIndex > 0) {
  674. this.goodsIndex = this.goodsIndex - 1;
  675. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  676. this.goodsItem = this.planGoodsList[0];
  677. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  678. }
  679. },
  680. nextItem() {
  681. if (this.goodsIndex < this.workList.length - 1) {
  682. this.goodsIndex = this.goodsIndex + 1;
  683. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  684. this.goodsItem = this.planGoodsList[0];
  685. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  686. }
  687. },
  688. jumpPlan() {
  689. if (!this.$method.isLogin()) {
  690. this.$navTo.togo('/pages4/login/login');
  691. } else {
  692. this.$navTo.togo('/pages2/plan/index', {});
  693. }
  694. },
  695. async init() {
  696. if (!this.$method.isLogin()) {
  697. //未登录
  698. this.date_num = [];
  699. this.workList = [];
  700. this.planGoodsList = [];
  701. this.initDay();
  702. } else {
  703. this.date_num = [];
  704. this.workList = [];
  705. this.planGoodsList = [];
  706. await this.userPlanSeven();
  707. await this.getUserSubscribeRecentExam();
  708. }
  709. },
  710. getMonDate() {
  711. var d = new Date(),
  712. day = d.getDay(),
  713. date = d.getDate();
  714. if (day == 0) return d;
  715. else d.setDate(date - day);
  716. return d;
  717. },
  718. initDay() {
  719. // d是当前星期一的日期对象
  720. var d = this.getMonDate();
  721. var arr = [];
  722. let date = new Date();
  723. let num = date.getDate();
  724. this.date_num = []
  725. for (var i = 0; i < 7; i++) {
  726. let item = { date: d.getDate() };
  727. item.color = 0;
  728. if (d.getDate() == num) {
  729. item.color = 3;
  730. }
  731. this.date_num.push(item);
  732. d.setDate(d.getDate() + 1);
  733. }
  734. },
  735. dealRL(calendarStudyVo){
  736. let self = this
  737. self.date_num = []
  738. let date = new Date();
  739. let num = date.getDate();
  740. let month = date.getMonth() + 1;
  741. let list = [];
  742. for (let j = 0; j < calendarStudyVo.length; j++) {
  743. let item = calendarStudyVo[j];
  744. list = item.dayStudyList;
  745. for (let i = 0; i < list.length; i++) {
  746. let item = list[i];
  747. item.color = 0;
  748. if (item.date == num) {
  749. item.color = 3;
  750. }
  751. if (item.perform == 1) {
  752. item.color = 1;
  753. }
  754. if (item.perform == 2) {
  755. item.color = 2;
  756. }
  757. item.note = item.studyCourseKnob;
  758. if (item.note > 0) {
  759. item.dot = true;
  760. }
  761. self.date_num.push(item);
  762. }
  763. }
  764. },
  765. userPlanSeven() {
  766. return new Promise(resolve => {
  767. let self = this;
  768. this.$api.userPlanSeven().then(result => {
  769. if (result.data.data && result.data.data.length>0) {
  770. self.workList = result.data.data
  771. self.planGoodsList = self.workList[0].goodsVos;
  772. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  773. self.goodsItem = self.planGoodsList[0];
  774. }
  775. self.dealRL(result.data.data[0].calendarStudyVo)
  776. } else {
  777. self.initDay();
  778. }
  779. resolve()
  780. });
  781. })
  782. },
  783. swiperChange(e) {
  784. this.current = e.detail.current;
  785. },
  786. tab(e) {
  787. this.tabCurrent = e;
  788. this.tabNum = e
  789. },
  790. updateHomePlan() {
  791. this.$refs.home.init();
  792. },
  793. beforeSwitch(index) {
  794. let that = this;
  795. if (index == 1) {
  796. this.isClick1 = true;
  797. }
  798. if (index == this.current) {
  799. return false;
  800. }
  801. if (!this.$method.isLogin()) {
  802. if (index == 0 || index == 1) {
  803. return true;
  804. } else {
  805. this.$navTo.togo('/pages4/login/login');
  806. return false;
  807. }
  808. } else {
  809. if (index == 2) {
  810. this.$refs.refMy.init();
  811. }
  812. return true;
  813. }
  814. }
  815. },
  816. };
  817. </script>
  818. <style>
  819. page {
  820. background: #eaeef1;
  821. }
  822. </style>
  823. <style lang="scss" scoped>
  824. @mixin threeDot {
  825. overflow: hidden;
  826. text-overflow:ellipsis;
  827. white-space: nowrap;
  828. }
  829. .index {
  830. .navbar {
  831. /deep/ .u-navbar-inner {
  832. margin-right:0!important;
  833. }
  834. .slot-wrap {
  835. width:100%;
  836. display: flex;
  837. align-items: center;
  838. justify-content: center;
  839. image {
  840. width: 178rpx;
  841. height: 31rpx;
  842. }
  843. }
  844. }
  845. .swiper {
  846. width:100%;
  847. position: relative;
  848. .dots {
  849. position:absolute;
  850. left:0;
  851. bottom:8rpx;
  852. width:100%;
  853. display: flex;
  854. justify-content: center;
  855. .dot {
  856. width: 8rpx;
  857. height: 8rpx;
  858. background: #FFFFFF;
  859. border-radius: 50%;
  860. margin:0 4rpx;
  861. transition: all 0.3s;
  862. &.active {
  863. width: 24rpx;
  864. height: 8rpx;
  865. background: #007AFF;
  866. border-radius: 4rpx;
  867. }
  868. }
  869. }
  870. image {
  871. width:100%;
  872. }
  873. }
  874. .content {
  875. overflow: hidden;
  876. padding:0 16rpx;
  877. background: rgba(234, 238, 241, 1);
  878. padding-bottom: 100rpx;
  879. .notice {
  880. background:#fff;
  881. border-radius: 16rpx;
  882. margin-top:32rpx;
  883. overflow: hidden;
  884. &__content {
  885. padding:0 8rpx;
  886. height: 56rpx;
  887. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  888. display: flex;
  889. align-items: center;
  890. }
  891. .icon {
  892. width: 40rpx;
  893. height: 40rpx;
  894. margin-right: 8rpx;
  895. }
  896. .text {
  897. flex:1;
  898. font-size: 24rpx;
  899. color: #333333;
  900. position: relative;
  901. }
  902. .btn {
  903. font-size: 24rpx;
  904. color: #007AFF;
  905. }
  906. }
  907. .date-list {
  908. margin-top:16rpx;
  909. width: 718rpx;
  910. height: 330rpx;
  911. background: #FFFFFF;
  912. border-radius: 16rpx;
  913. padding:18rpx 27rpx;
  914. .title {
  915. font-size: 30rpx;
  916. font-weight: bold;
  917. color: #007AFF;
  918. }
  919. .list {
  920. margin-top:40rpx;
  921. display: flex;
  922. justify-content: space-around;
  923. .item {
  924. .top {
  925. text-align: center;
  926. font-size: 26rpx;
  927. color: rgba(102, 102, 102, 0.6);
  928. }
  929. .bottom {
  930. text-align: center;
  931. line-height: 48rpx;
  932. margin-top:30rpx;
  933. width: 48rpx;
  934. height: 48rpx;
  935. border-radius: 50%;
  936. color:rgba(51, 51, 51, 1);
  937. font-size: 26rpx;
  938. position:relative;
  939. &.red {
  940. color:#FF3B30;
  941. }
  942. &.green {
  943. color:#36C75A;
  944. }
  945. &.blue {
  946. background: #007AFF;
  947. color:#fff;
  948. }
  949. .note {
  950. width: 30rpx;
  951. height: 30rpx;
  952. border: 2rpx solid #FF9500;
  953. border-radius: 50%;
  954. position:absolute;
  955. top:-20rpx;
  956. right:-20rpx;
  957. line-height: 28rpx;
  958. text-align: center;
  959. color:#FF9500;
  960. font-size: 26rpx;
  961. }
  962. .point {
  963. margin:0 auto;
  964. width: 8rpx;
  965. height: 8rpx;
  966. background: #FF9500;
  967. border-radius: 50%;
  968. }
  969. }
  970. }
  971. }
  972. .btns {
  973. margin-top:50rpx;
  974. display: flex;
  975. align-items: center;
  976. justify-content: center;
  977. .left,.right {
  978. width: 40rpx;
  979. height: 40rpx;
  980. }
  981. .center{
  982. width: 440rpx;
  983. height: 56rpx;
  984. background: #FFFFFF;
  985. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  986. border-radius: 28rpx;
  987. color:rgba(255, 149, 0, 1);
  988. line-height: 56rpx;
  989. text-align: center;
  990. font-size: 30rpx;
  991. margin:0 30rpx;
  992. }
  993. }
  994. }
  995. .tabs {
  996. width: 100%;
  997. height: 78rpx;
  998. display: flex;
  999. align-items: center;
  1000. justify-content: space-between;
  1001. background-color: #F2F7FF;
  1002. border-radius: 38rpx;
  1003. margin: 34rpx 0rpx 24rpx 0rpx;
  1004. padding: 0rpx 5rpx;
  1005. .tab_item {
  1006. width: 345rpx;
  1007. height: 65rpx;
  1008. line-height: 65rpx;
  1009. font-size: 28rpx;
  1010. font-weight: bold;
  1011. border-radius: 32rpx;
  1012. text-align: center;
  1013. color: #333;
  1014. &.nactive {
  1015. color: #fff;
  1016. background-color: #3577E8;
  1017. }
  1018. }
  1019. }
  1020. .course-list {
  1021. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  1022. .list_item {
  1023. padding: 24rpx;
  1024. // height: 278rpx;
  1025. background: #FFFFFF;
  1026. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  1027. border-radius: 24rpx;
  1028. background:#fff;
  1029. margin-bottom: 32rpx;
  1030. display: flex;
  1031. align-items: center;
  1032. .c_title {
  1033. font-size: 32rpx;
  1034. font-weight: bold;
  1035. margin-bottom: 24rpx;
  1036. font-weight: bold;
  1037. color: #222222;
  1038. }
  1039. .c_downs {
  1040. display: flex;
  1041. }
  1042. .img {
  1043. position:relative;
  1044. margin-right: 24rpx;
  1045. border-radius: 16rpx ;
  1046. overflow: hidden;
  1047. width: 204rpx;
  1048. height: 120rpx;
  1049. image {
  1050. width:100%;
  1051. height:100%;
  1052. }
  1053. .time {
  1054. position:absolute;
  1055. bottom:0;
  1056. right:0;
  1057. width: 80rpx;
  1058. height: 32rpx;
  1059. background: rgba(1, 25, 45, 0.4);
  1060. color:#fff;
  1061. text-align: center;
  1062. line-height: 32rpx;
  1063. font-size: 24rpx;
  1064. border-radius: 10rpx 0px 10rpx 0px;
  1065. }
  1066. }
  1067. .text {
  1068. width: 440rpx;
  1069. position: relative;
  1070. display: flex;
  1071. flex-direction: column;
  1072. justify-content: space-between;
  1073. height: 120rpx;
  1074. .joins {
  1075. .people {
  1076. width: 160rpx;
  1077. font-size: 20rpx;
  1078. color: #999999;
  1079. padding: 0rpx 8rpx;
  1080. text-align: center;
  1081. height: 36rpx;
  1082. line-height: 36rpx;
  1083. background: #F6F7FB;
  1084. border-radius: 4px;
  1085. }
  1086. }
  1087. .desc {
  1088. margin-top: 10rpx;
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: space-between;
  1092. width: 100%;
  1093. .left {
  1094. flex:1;
  1095. color:#333;
  1096. font-size: 26rpx;
  1097. .mon_t {
  1098. font-weight: bold;
  1099. color: #FC3F3F;
  1100. font-size: 36rpx;
  1101. }
  1102. .free {
  1103. font-size: 24rpx;
  1104. }
  1105. .sale {
  1106. color: #999999;
  1107. font-size: 24rpx;
  1108. margin-left: 8rpx;
  1109. }
  1110. .price_line {
  1111. color: #999999;
  1112. font-size: 24rpx;
  1113. text-decoration:line-through;
  1114. font-weight: 400;
  1115. }
  1116. }
  1117. .right {
  1118. font-size: 24rpx;
  1119. font-weight: bold;
  1120. .regiser_row {
  1121. width: 144rpx;
  1122. height: 52rpx;
  1123. line-height: 52rpx;
  1124. text-align: center;
  1125. border-radius: 16rpx;
  1126. background-color: #FC3F3F;
  1127. color: #fff;
  1128. font-weight: 500;
  1129. font-size: 26rpx;
  1130. }
  1131. }
  1132. }
  1133. }
  1134. }
  1135. }
  1136. .filters {
  1137. width: 100%;
  1138. padding: 0rpx 16rpx;
  1139. margin-bottom: 32rpx;
  1140. display: flex;
  1141. align-items: center;
  1142. .scroll_view_H {
  1143. width: 100%;
  1144. overflow: hidden;
  1145. white-space: nowrap;
  1146. }
  1147. .filter_item {
  1148. display: inline-block;
  1149. margin-right: 16rpx;
  1150. .name {
  1151. font-size: 24rpx;
  1152. color: #666666;
  1153. padding: 12rpx 16rpx;
  1154. height: 56rpx;
  1155. text-align: center;
  1156. background: #FFFFFF;
  1157. border-radius: 8rpx;
  1158. &.nactive {
  1159. color: #3F8DFD;
  1160. }
  1161. }
  1162. }
  1163. }
  1164. }
  1165. .my-list {
  1166. margin:32rpx 0;
  1167. display:flex;
  1168. justify-content: space-between;
  1169. &__item {
  1170. width:351rpx;
  1171. height:96rpx;
  1172. position:relative;
  1173. padding:25rpx 0 0 25rpx;
  1174. font-size: 32rpx;
  1175. &--bank {
  1176. text {
  1177. position: relative;
  1178. z-index: 2;
  1179. color:#00998A;
  1180. }
  1181. }
  1182. &--course {
  1183. text {
  1184. position: relative;
  1185. z-index: 2;
  1186. color:#0062D9;
  1187. }
  1188. }
  1189. image {
  1190. width:100%;
  1191. height:100%;
  1192. left:0;
  1193. top:0;
  1194. position:absolute;
  1195. z-index: 1;
  1196. }
  1197. }
  1198. }
  1199. }
  1200. .date_dot {
  1201. width: 6rpx;
  1202. height: 6rpx;
  1203. background: #ffcc00;
  1204. border-radius: 50%;
  1205. margin: 0 auto;
  1206. }
  1207. .date_note {
  1208. border-radius: 50%;
  1209. width: 29rpx;
  1210. height: 29rpx;
  1211. border: 1px solid #ffcc00;
  1212. font-size: 18rpx;
  1213. color: #ffcc00;
  1214. text-align: center;
  1215. display: inline-block;
  1216. position: absolute;
  1217. top: -19rpx;
  1218. right: 9rpx;
  1219. }
  1220. .circle_num {
  1221. border-radius: 50%;
  1222. width: 29rpx;
  1223. height: 29rpx;
  1224. border: 1px solid #ffcc00;
  1225. font-size: 18rpx;
  1226. color: #ffcc00;
  1227. text-align: center;
  1228. display: inline-block;
  1229. margin: 5rpx;
  1230. }
  1231. .date_num {
  1232. width: 14%;
  1233. text-align: center;
  1234. position: relative;
  1235. display: inline-block;
  1236. margin-top: 20rpx;
  1237. }
  1238. .course_title {
  1239. color: #2f4379;
  1240. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1241. border-radius: 28rpx;
  1242. width: 100%;
  1243. height: 48rpx;
  1244. line-height: 48rpx;
  1245. overflow: hidden;
  1246. text-overflow:ellipsis;
  1247. white-space: nowrap;
  1248. }
  1249. .arr-icon {
  1250. width: 40rpx;
  1251. height: 40rpx;
  1252. }
  1253. .date_num_color0 {
  1254. color: #32467b;
  1255. }
  1256. .date_num_color1 {
  1257. color: #34c759;
  1258. }
  1259. .date_num_color2 {
  1260. color: #ff3b30;
  1261. }
  1262. .date_num_color3 {
  1263. color: #ffffff;
  1264. background-color: #ffcc00;
  1265. border-radius: 50%;
  1266. width: 40rpx;
  1267. height: 40rpx;
  1268. display: inline-block;
  1269. }
  1270. .card_date {
  1271. width: 14%;
  1272. text-align: center;
  1273. color: #7f8caf;
  1274. }
  1275. .calendar_card {
  1276. width: 100%;
  1277. background: #ffffff;
  1278. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  1279. border-radius: 22rpx;
  1280. margin-top: 16rpx;
  1281. padding-bottom: 15rpx;
  1282. }
  1283. .calendar_card .card_box {
  1284. height: 60rpx;
  1285. line-height: 60rpx;
  1286. margin-left: 20rpx;
  1287. }
  1288. .calendar_card .t1 {
  1289. color: #007AFF;
  1290. font-size: 24rpx;
  1291. }
  1292. .img_more {
  1293. width: 26rpx;
  1294. height: 26rpx;
  1295. }
  1296. .flex-d {
  1297. display: flex;
  1298. flex-direction: column;
  1299. justify-content: space-between;
  1300. height: 100%;
  1301. }
  1302. .contentZ {
  1303. flex: 1;
  1304. overflow-y: auto;
  1305. padding-left: 35rpx;
  1306. display: flex;
  1307. justify-content: space-around;
  1308. }
  1309. .contentZ::-webkit-scrollbar {
  1310. display: none;
  1311. }
  1312. .fots {
  1313. height: 100rpx;
  1314. display: flex;
  1315. align-items: center;
  1316. justify-content: space-around;
  1317. border-top: 1rpx solid #eee;
  1318. }
  1319. .leftBtns {
  1320. font-size: 30rpx;
  1321. color: #32467b;
  1322. font-weight: 500;
  1323. }
  1324. .right_Btns {
  1325. font-size: 30rpx;
  1326. color: #fff;
  1327. background-color: #32467b;
  1328. border-radius: 24rpx;
  1329. height: 60rpx;
  1330. line-height: 60rpx;
  1331. text-align: center;
  1332. padding: 0rpx 23rpx;
  1333. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1334. }
  1335. .lzs {
  1336. width: 31%;
  1337. margin: 0rpx 1%;
  1338. max-width: 31%;
  1339. }
  1340. .tylsz{
  1341. margin-top: 23rpx;
  1342. color: #666;
  1343. font-weight: 400;
  1344. font-size: 24rpx;
  1345. }
  1346. .tylsz:first-child{
  1347. text-align: center;
  1348. }
  1349. .activeStys{
  1350. font-weight: bold;
  1351. color: #32467B;
  1352. }
  1353. .officialsss {
  1354. position: fixed;
  1355. left: 0;
  1356. bottom: 100rpx;
  1357. width: 100%;
  1358. }
  1359. .officials {
  1360. width:100%;
  1361. height: 104rpx;
  1362. position:fixed;
  1363. bottom: 0;
  1364. left: 0;
  1365. z-index: 999;
  1366. display: flex;
  1367. align-items: center;
  1368. justify-content: center;
  1369. }
  1370. .weixin_official_account {
  1371. position: fixed;
  1372. bottom: 0;
  1373. left: 0;
  1374. display: flex;
  1375. align-items: center;
  1376. // justify-content: space-between;
  1377. width: 718rpx;
  1378. height: 104rpx;
  1379. padding: 0 32rpx;
  1380. margin-left: 16rpx;
  1381. background: #3A3F54;
  1382. border-radius: 16rpx;
  1383. .off_logo {
  1384. width: 48rpx;
  1385. height: 48rpx;
  1386. margin-right: 24rpx;
  1387. }
  1388. .one {
  1389. color: #fff;
  1390. font-size: 24rpx;
  1391. font-weight: 500;
  1392. }
  1393. .two {
  1394. color: #BCBEC7;
  1395. font-size: 20rpx;
  1396. }
  1397. .btn {
  1398. position: relative;
  1399. top: 0;
  1400. left: 35rpx;
  1401. width: 128rpx;
  1402. height: 56rpx;
  1403. line-height: 56rpx;
  1404. padding: 0;
  1405. background: linear-gradient(274deg, #408BF6 0%, #40B4F6 100%);
  1406. border-radius: 156rpx;
  1407. overflow: hidden;
  1408. text-align: center;
  1409. font-size: 24rpx;
  1410. color: #fff;
  1411. .official-account {
  1412. position: absolute;
  1413. z-index: 1000;
  1414. right: -9px;
  1415. top: -38px;
  1416. opacity: 0;
  1417. }
  1418. }
  1419. .close_icon {
  1420. width: 40rpx;
  1421. height: 40rpx;
  1422. background: #FFFFFF;
  1423. opacity: 0.2;
  1424. display: flex;
  1425. align-items: center;
  1426. position: absolute;
  1427. top: 0;
  1428. right: 0;
  1429. color: #fff;
  1430. border-radius: 0rpx 16rpx;
  1431. }
  1432. .icon-close {
  1433. display: flex;
  1434. align-items: center;
  1435. justify-content: center;
  1436. width: 50rpx;
  1437. height: 68rpx;
  1438. font-size: 22rpx;
  1439. color: #7B8284;
  1440. }
  1441. }
  1442. </style>