index.vue 37 KB

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