index2.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367
  1. <template>
  2. <view class="index">
  3. <!-- <tel-verify v-if="showVerify"></tel-verify> -->
  4. <custom-warn v-if="showWarn"></custom-warn>
  5. <custom-toast ref='toast'></custom-toast>
  6. <view class="header-bg"></view>
  7. <!-- <view class="" @click="gotoyan">
  8. 预约报名入口
  9. </view> -->
  10. <!-- <view class="title" v-if="userServerInfo.season">大卫博士学位争霸赛第{{ userServerInfo.season | numToZh }}季</view> -->
  11. <view class="title" v-if="userServerInfo.season">大卫博士学位争霸赛第{{ userServerInfo.season}}季</view>
  12. <view class="user_info_new">
  13. <view class="userinfo">
  14. <view class="top" @tap="toself">
  15. <open-data class="user-pic" type="userAvatarUrl"></open-data>
  16. <image v-if="userServerInfo.score >= 300" class="hat" src="../../static/icon/hat.png" mode="scaleToFill"></image>
  17. <view class="user-info">
  18. <view class="name-grade-level">
  19. <open-data type="userNickName" class="name"></open-data>
  20. <view class="grade">{{ userServerInfo.grade === undefined ? '未验证' : userServerInfo.grade }}</view>
  21. <view class="level" v-if="userServerInfo.level_name">
  22. <image src="../../static/icon/level.png" mode="scaleToFill"></image>
  23. <text>{{ userServerInfo.level_name }}</text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="user-status" v-if="userStatus" :class="(userStatus === '报名截止' || userStatus === '暂未开赛') ? 'end' : ''" @tap="tapUserStatus"> {{userStatus}} </view>
  29. <view class="score-rank">
  30. <view class="score">学分:{{ userServerInfo.score ? userServerInfo.score : '0' }}</view>
  31. <view class="rank">排名:{{ userServerInfo.rank ? userServerInfo.rank : '0' }}</view>
  32. </view>
  33. </view>
  34. <view class="biye_tip" v-if="userServerInfo.signuped">
  35. <template v-if="userServerInfo.status === 1">
  36. <view>
  37. 你已连续参赛{{ userServerInfo.enrol_count }}季,你真棒!继续努力,加油!
  38. </view>
  39. </template>
  40. <template v-else>
  41. <view v-if="userServerInfo.score === userServerInfo.max_score">
  42. 您已达到历史最高学分,请继续加油!
  43. </view>
  44. <view v-else>
  45. 距离 {{ userServerInfo.score | willDeg(userServerInfo.max_score) }} 还差 {{ userServerInfo.score | lessScore(userServerInfo.max_score) }} 学分
  46. </view>
  47. </template>
  48. <view v-if="userServerInfo.score === userServerInfo.max_score">
  49. 你已连续参赛{{ userServerInfo.enrol_count }}季,你真棒!继续努力,加油!
  50. </view>
  51. <view v-else>
  52. 距离 {{ userServerInfo.score | willDeg(userServerInfo.max_score) }} 还差 {{ userServerInfo.score | lessScore(userServerInfo.max_score) }} 学分
  53. </view>
  54. </view>
  55. </view>
  56. <view v-if="timer" class="index_countdown">
  57. <text style="font-size: 30rpx;">距{{ timerStatus ? '结束' : '开始' }}仅剩:</text>
  58. <text class="spec bg1">{{ countDown[0] || '00' }}</text>
  59. <text class="small">天</text>
  60. <text class="spec bg2">{{ countDown[1] || '00' }}</text>
  61. <text class="small">时</text>
  62. <text class="spec bg3">{{ countDown[2] || '00' }}</text>
  63. <text class="small">分</text>
  64. <view class="spec bg4 animate_second" v-if="countDown[3] || countDown[3] === 0">
  65. <swiper
  66. :indicator-dots="false"
  67. :autoplay="false"
  68. :interval="10000"
  69. :duration="300"
  70. :circular="true"
  71. :vertical="true"
  72. :current="countA.findIndex(i => +i === Number(countDown[3]))"
  73. :disable-touch="true"
  74. class="animate_item"
  75. >
  76. <swiper-item v-for="n of countA" :key="n">
  77. <view class="swiper-item">{{ n }}</view>
  78. </swiper-item>
  79. </swiper>
  80. <swiper
  81. :indicator-dots="false"
  82. :autoplay="true"
  83. :interval="1000"
  84. :duration="300"
  85. :circular="true"
  86. :vertical="true"
  87. :disable-touch="true"
  88. :current="countB.findIndex(i => +i === Number(countDown[4]))"
  89. class="animate_item"
  90. @change="changeCountTime"
  91. >
  92. <swiper-item v-for="n in countB" :key="n">
  93. <view class="swiper-item">{{ n }}</view>
  94. </swiper-item>
  95. </swiper>
  96. </view>
  97. <text class="small">秒</text>
  98. </view>
  99. <view v-if="messageList.length > 0" class="swiper_parant">
  100. <view class="message_icon_box">
  101. <image src="../../static/new/message2.jpg" mode="" class="message_icon"></image>
  102. <text>恭喜</text>
  103. </view>
  104. <swiper class="swiper swiper_message" :indicator-dots="false" :autoplay="true" :circular="true" @animationfinish="changeMessageSwiper" interval="1500">
  105. <swiper-item
  106. v-for="(item, i) in messageList"
  107. :key="i"
  108. >
  109. <view class="swiper-item uni-bg-red">{{ item.data }}</view>
  110. </swiper-item>
  111. </swiper>
  112. </view>
  113. <view class="entrance">
  114. <!-- <view class="nav_container"> -->
  115. <view class="index-item item_bg1" @tap="toranking">
  116. <text class="name">销售排行</text>
  117. <view v-if="userServerInfo.rank" class="userranking">我的排名:{{ userServerInfo.rank ? userServerInfo.rank : '0' }}</view>
  118. <image src="https://api.jiuweiyun.cn/public/uploads/weapp/icon/index_bg1.png" class="coverImg cv1">
  119. </view>
  120. <view class="index-item item_bg2" @tap="toupload">
  121. <text class="name">数据上传</text>
  122. <image src="https://api.jiuweiyun.cn/public/uploads/weapp/icon/index_bg2.png" class="coverImg cv2">
  123. </view>
  124. <view class="index-item item_bg3" @tap="toChallenge()">
  125. <text class="name">挑战竞猜</text>
  126. <image src="https://api.jiuweiyun.cn/public/uploads/weapp/icon/index_bg3.png" class="coverImg cv3">
  127. </view>
  128. <view class="index-item item_bg4" @tap="toOther">
  129. <text class="name">其他</text>
  130. <image src="https://api.jiuweiyun.cn/public/uploads/weapp/icon/index_bg4.png" class="coverImg cv4">
  131. </view>
  132. <!-- </view> -->
  133. </view>
  134. <view class="rules" @tap="torules" @longpress="toLongTapIndex">查看赛季规则 <text class="cuIcon-question"></text></view>
  135. <!-- <button v-if="showGetUserInfoButton" class="getUserInfo" type="default" open-type="getUserInfo" @getuserinfo="getuserinfo"></button> -->
  136. <button class="getUserInfo" type="default" @click="getuserinfo">111</button>
  137. <!-- 学位弹窗 -->
  138. <page-toast :is-show="isXuefenToast && (userServerInfo.glory_popovers && userServerInfo.glory_popovers.type === 1)">
  139. <view class="toast_container xuewei_toast" @click="toToastDetail">
  140. <image class="bg" src="https://api.jiuweiyun.cn/public/uploads/icon/toast8.png"></image>
  141. <view class="text">{{ userServerInfo.score | userXueWei }}</view>
  142. </view>
  143. </page-toast>
  144. <!-- 学霸弹窗 -->
  145. <page-toast :is-show="isXuebaToast && (userServerInfo.max_popovers && userServerInfo.max_popovers.type === 10)">
  146. <view class="toast_container xueba_toast" @click="toToastXueBa">
  147. <image class="bg" src="https://api.jiuweiyun.cn/public/uploads/icon/toast7.png"></image>
  148. <view class="text">{{ userServerInfo.level_name }}学霸</view>
  149. </view>
  150. </page-toast>
  151. <!-- 挑战详情 -->
  152. <page-toast :is-show="isTiaoXhanToast && (userServerInfo.challenge_result && userServerInfo.challenge_result.type === 1)" :is-close="false" :before-close="resetTiaoZhanToast">
  153. <view class="challenge-num">
  154. <view class="challenage-num-top">
  155. <view class="challenage-num-body">
  156. <view class="challenge-num-item">
  157. <view>
  158. <text class="label">参加挑战:</text>
  159. <text class="spec">
  160. {{ userServerInfo.challenge_result.data.challenge_num || 0 }}
  161. </text>
  162. <text class="label">场</text>
  163. </view>
  164. <view>
  165. <text class="label">参加竞猜:</text>
  166. <text class="spec">
  167. {{ userServerInfo.challenge_result.data.guessing_num || 0 }}
  168. </text>
  169. <text class="label">场</text>
  170. </view>
  171. </view>
  172. <view class="challenge-num-item">
  173. <view>
  174. <text class="label">挑战成功:</text>
  175. <text class="spec">
  176. {{ userServerInfo.challenge_result.data.challenge_success || 0 }}
  177. </text>
  178. <text class="label">场</text>
  179. </view>
  180. <view>
  181. <text class="label">挑战失败:</text>
  182. <text class="spec">
  183. {{ userServerInfo.challenge_result.data.challenge_fail || 0 }}
  184. </text>
  185. <text class="label">场</text>
  186. </view>
  187. </view>
  188. <view class="challenge-num-item">
  189. <view>
  190. <text class="label">猜赢了:</text>
  191. <text class="spec">
  192. {{ userServerInfo.challenge_result.data.guessing_success || 0 }}
  193. </text>
  194. <text class="label">场</text>
  195. </view>
  196. <view>
  197. <text class="label">猜输了:</text>
  198. <text class="spec">
  199. {{ userServerInfo.challenge_result.data.guessing_fail || 0 }}
  200. </text>
  201. <text class="label">场</text>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <view class="challenge-num-btn" @click="toTiaoZhan">查看详情</view>
  207. </view>
  208. </page-toast>
  209. <!-- 发起挑战 -->
  210. <page-toast :is-show="userServerInfo.cha_nickname" :is-close="false">
  211. <view class="challenge-invite">
  212. <view class="challenge-user">
  213. <view class="user-avatar"></view>
  214. </view>
  215. <view class="challenge-title">
  216. “{{ userServerInfo.cha_nickname | getName }}”向你发起学分挑战 详情可在“我的挑战”列表中查看
  217. </view>
  218. <view class="challenage-btn" @click="toChallenge('0')">查看详情</view>
  219. </view>
  220. </page-toast>
  221. <!-- 课程提醒 -->
  222. <page-toast :is-show="userServerInfo.link && showLink" :before-close="closeCourseLink">
  223. <scroll-view class="courseDialog" scroll-y="true">
  224. <image
  225. :src="userServerInfo.link"
  226. mode="widthFix"
  227. class="courseImg"
  228. @click="toCourseList"
  229. />
  230. </scroll-view>
  231. </page-toast>
  232. </view>
  233. </template>
  234. <script>
  235. import telVerify from '../../components/tel-verify.vue'
  236. import customWarn from '../../components/custom-warn.vue'
  237. import { toast_sure, index_message, course_confim } from '../../api.js'
  238. import { setInterval, clearInterval } from 'timers'
  239. import { api_onLaunch } from '../../api.js'
  240. export default {
  241. onShareAppMessage () { //分享荣誉证书
  242. uni.showLoading({ title: '加载中', mask: true }) //显示loading
  243. return { //如果点击右上角分享按钮,则分享页面为小程序主页
  244. title: '大卫博士学位争霸赛',
  245. path: '/pages/index/index'
  246. }
  247. },
  248. onPullDownRefresh() {
  249. this.routing = false
  250. if ('wifi2g3g4g'.indexOf(this.networkType) !== -1) { //有网络连接时才进行下一步
  251. // this.$store.commit('HIDEVERIFY')
  252. uni.showLoading({ title: '加载中', mask: true }) //显示loading
  253. this.$store.dispatch('onLaunch').then(() => {
  254. this.showLink = true
  255. this.$refs.toast.hover('刷新成功')
  256. uni.stopPullDownRefresh()
  257. this.isTiaoXhanToast = true
  258. }).catch(e => { //触发初始化方法
  259. this.$refs.toast.hover('服务器繁忙,请下拉刷新试试', 'center')
  260. })
  261. } else {
  262. uni.showToast({ title: '似乎已经断开网络连接', icon: 'none' })
  263. }
  264. },
  265. components: {
  266. telVerify,
  267. customWarn
  268. },
  269. filters: {
  270. getName(name) {
  271. if (name) {
  272. return name.length > 6 ? name.slice(0, 6) + '...' : name
  273. }
  274. return ''
  275. }
  276. },
  277. data() {
  278. return {
  279. timer: null,
  280. now: null,
  281. isXuefenToast: true,
  282. isXuebaToast: true,
  283. filterUserScore: 20,
  284. isTiaoXhanToast: true,
  285. messageList: [],
  286. timerStatus: null,
  287. countA: [5,4,3,2,1,0],
  288. countB: [9,8,7,6,5,4,3,2,1,0],
  289. showLink: true
  290. }
  291. },
  292. computed: {
  293. showVerify () { //是否弹出手机验证框
  294. return this.$store.state.showVerify
  295. },
  296. showWarn () {
  297. return this.$store.state.showWarn
  298. },
  299. userWeixinInfo () { //用户微信信息
  300. return this.$store.state.userWeixinInfo
  301. },
  302. userServerInfo () { //用户服务器信息
  303. if(this.$store.state.userServerInfo.report_card && this.$store.state.userServerInfo.report_card.status === 1) {
  304. let _this = this
  305. uni.showModal({
  306. content: '查看成绩单',
  307. success: function (res) {
  308. let id = _this.$store.state.userServerInfo.report_card.id
  309. if (res.confirm) {
  310. _this.$ajax.get(`${toast_sure}?id=${id}`).then(([, { data: res }]) => {
  311. uni.navigateTo({ url: '../schoolReport/index' })
  312. })
  313. } else if (res.cancel) {
  314. }
  315. }
  316. })
  317. }
  318. return this.$store.state.userServerInfo
  319. },
  320. networkType () { //网络类型
  321. return this.$store.state.networkType
  322. },
  323. showGetUserInfoButton () { //是否显示获取用户信息的透明按钮
  324. return this.$store.state.showGetUserInfoButton
  325. },
  326. userStatus () { //根据赛季阶段和用户类型,显示不同可操作项
  327. if (this.$verified()) { //如果用户已经登录,进行下一步判断
  328. if (this.userServerInfo.status) { //如果赛季已经开赛
  329. if (this.userServerInfo.status === 1) { //如果赛季正处于报名阶段
  330. if (this.userServerInfo.signuped) { //如果用户已报名
  331. return '已报名'
  332. } else { //如果用户未报名,那么可能是 1 用户真没报名 2 批发商 3 客服
  333. if (this.userServerInfo.type === 1) {
  334. return '报名参赛'
  335. } else if (this.userServerInfo.type === 2) {
  336. return '报名参赛'
  337. } else if (this.userServerInfo.type === 3) {
  338. return ''
  339. }
  340. }
  341. } else if (this.userServerInfo.status === 2 || this.userServerInfo.status === 3 || this.userServerInfo.status === 5) { //如果赛季正处于比赛或兑奖阶段
  342. if (this.userServerInfo.signuped) { //如果用户已报名
  343. return '学分账单'
  344. } else { //如果用户未报名,那么可能是 1 用户真没报名 2 批发商 3 客服
  345. if (this.userServerInfo.type === 1) {
  346. return '报名截止'
  347. } else if (this.userServerInfo.type === 2) {
  348. return '学分账单'
  349. } else if (this.userServerInfo.type === 3) {
  350. return ''
  351. }
  352. }
  353. } else if (this.userServerInfo.status === 4) { // 如果赛季正处于报名结束的空档期
  354. if (this.userServerInfo.signuped) { //如果用户已报名
  355. return '已报名'
  356. } else { //如果用户未报名,那么可能是 1 用户真没报名 2 批发商 3 客服
  357. if (this.userServerInfo.type === 1) {
  358. return '报名截止'
  359. } else if (this.userServerInfo.type === 2) {
  360. return '学分账单'
  361. } else if (this.userServerInfo.type === 3) {
  362. return ''
  363. }
  364. }
  365. }
  366. } else { //如果赛季暂未开赛
  367. return '暂未开赛'
  368. }
  369. } else { //如果用户未登录
  370. return '绑定账号'
  371. }
  372. },
  373. countDown() {
  374. let time = this.timerStatus ? this.userServerInfo.end_time : this.userServerInfo.start_time
  375. const sec = Math.floor((time - this.now) / 1000)
  376. let day = Math.floor(sec / 86400)
  377. let hour = Math.floor((sec % 86400) / 3600)
  378. let minite = Math.floor((sec - 86400 * day - hour * 3600) / 60)
  379. let second = Math.floor(sec - 86400 * day - hour * 3600 - minite * 60)
  380. day = day >= 10 ? day : `0${day}`
  381. hour = hour >= 10 ? hour : `0${hour}`
  382. minite = minite >= 10 ? minite : `0${minite}`
  383. second = String(second)
  384. let arr = [day, hour, minite, second >= 10 ? second[0] : 0, second >= 10 ? second[1] : second]
  385. return arr
  386. }
  387. },
  388. created () { //加载完成后开启监听全局 MESSAGE 事件
  389. uni.$on('MESSAGE', (m, d, p) => { //m 要提示的文字信息 d 文字信息出现的时常 p 文字信息出现的位置
  390. this.$refs.toast.hover(m, d, p)
  391. })
  392. uni.$on('HIDEMESSAGE', () => { // 隐藏 文字提示
  393. this.$refs.toast.hide()
  394. })
  395. if ('wifi2g3g4g'.indexOf(this.networkType) !== -1) { //有网络连接时才进行下一步
  396. let _this = this
  397. this.$store.dispatch('onLaunch').then(() => {
  398. // if (this.showVerify === true) {
  399. // uni.navigateTo({
  400. // url:'../boundPhone/boundPhone'
  401. // })
  402. // }
  403. uni.stopPullDownRefresh()
  404. this.init()
  405. }).catch(e => { //触发初始化方法
  406. this.$refs.toast.hover('网络可能出了点问题,请下拉刷新试试')
  407. })
  408. } else {
  409. uni.showToast({ title: '似乎已经断开网络连接', icon: 'none' })
  410. }
  411. },
  412. onShow() { //每次展示首页时都初始化一次,达到实时更新数据的功能
  413. this.routing = false
  414. this.login()
  415. if ('wifi2g3g4g'.indexOf(this.networkType) !== -1) { //有网络连接时才进行下一步
  416. if (uni.fromUpload) {
  417. uni.fromUpload = false
  418. if (uni.toRank) {
  419. uni.toRank = false
  420. uni.navigateTo({ url: '../ranking/ranking' })
  421. }
  422. // this.$store.dispatch('onLaunch').then(() => {
  423. // uni.stopPullDownRefresh()
  424. // this.init()
  425. // }).catch(e => { //触发初始化方法
  426. // this.$refs.toast.hover('网络可能出了点问题,请下拉刷新试试')
  427. // })
  428. }
  429. } else {
  430. uni.showToast({ title: '似乎已经断开网络连接', icon: 'none' })
  431. }
  432. },
  433. methods: {
  434. login() {
  435. const state = this.$store.state
  436. uni.showLoading({ title: '加载中', mask: true }) //显示loading
  437. this.$ajax.get(`${api_onLaunch}?id=${state.id}&sex=${state.userWeixinInfo.gender}&latitude=${state.latitude}&longitude=${state.longitude}&code=${state.CODE}&avatar=${state.userWeixinInfo.avatarUrl}&openid=${state.openid ? state.openid : '123'}&nickname=${state.userWeixinInfo.nickName}`).then(([ , { data: res }]) => {
  438. if (res.code === 200) { //当前微信用户已经绑定手机号了
  439. state.N401 = 0
  440. this.$store.commit('GETUSERSERVERINFO', res.data)
  441. uni.hideLoading() //异步操作结束,停止 loading
  442. this.$ajax.get('/user/account_status').then(([ , { data: res }]) => {
  443. if(res.code === 200){
  444. this.init()
  445. if(res.data.status === 1) {
  446. uni.reLaunch({
  447. url:"../loginOutTip/loginOutTip"
  448. })
  449. return false
  450. }
  451. }
  452. resolve()
  453. }).catch(() => {
  454. resolve()
  455. })
  456. } else if (res.code === 300) { //当前微信用户没有绑定手机号,弹出验证码框 // 401 表示 code 过期/失效 openid 获取不到等
  457. uni.hideLoading() //异步操作结束,停止 loadin
  458. this.$store.commitcommit('SHOWVERIFY')
  459. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  460. resolve()
  461. } else if (res.code === 401) {
  462. uni.hideLoading() // 异步操作结束,停止 loading
  463. reject(500)
  464. } else { //其他边界情况,提示用户下拉刷新
  465. uni.hideLoading() // 异步操作结束,停止 loading
  466. reject(500)
  467. }
  468. })
  469. },
  470. gotoyan() {
  471. uni.navigateTo({ url: '../makeApply/makeApply' })
  472. },
  473. closeCourseLink() {
  474. this.$ajax.get(`${course_confim}`).then(([, { data: res }]) => {
  475. this.showLink = false
  476. })
  477. },
  478. toCourseList() {
  479. this.$ajax.get(`${course_confim}`).then(([, { data: res }]) => {
  480. if(res.code === 200) {
  481. let { end_time, start_time } = this.userServerInfo
  482. let week = Math.ceil((end_time - start_time) / (7 * 24 * 60 * 60 * 1000))
  483. uni.navigateTo({
  484. url: '../course/list?week='+week
  485. })
  486. } else {
  487. uni.showModal({
  488. content: '课程确认失败',
  489. showCancel: false
  490. })
  491. }
  492. })
  493. },
  494. changeCountTime() {
  495. this.now = Date.now()
  496. },
  497. init() {
  498. let _this = this
  499. _this.now = Date.now()
  500. if(_this.userServerInfo.start_time && _this.userServerInfo.end_time) {
  501. let { start_time, end_time } = _this.userServerInfo
  502. if(_this.now > start_time - 5 * 24 * 3600 * 1000 && _this.now < start_time) {
  503. _this.timerStatus = false
  504. _this.timer = true
  505. // _this.timer = setInterval(() => {
  506. // _this.now = Date.now()
  507. // }, 1000 * 60)
  508. } else if (_this.now > start_time && _this.now < end_time) {
  509. _this.timerStatus = true
  510. _this.timer = true
  511. // _this.timer = setInterval(() => {
  512. // _this.now = Date.now()
  513. // }, 1000 * 1)
  514. // 活动期间 获取滚动卖货消息
  515. _this.index_message()
  516. } else {
  517. if (this.timer) {
  518. // clearInterval(_this.timer)
  519. _this.timer = null;
  520. }
  521. }
  522. } else {
  523. if (this.timer) {
  524. // clearInterval(_this.timer)
  525. _this.timer = null;
  526. }
  527. }
  528. uni.stopPullDownRefresh()
  529. },
  530. changeMessageSwiper({ detail }) {
  531. let current = detail.current;
  532. if(current >= this.messageList.length) {
  533. this.index_message();
  534. }
  535. },
  536. // 获取滚动消息
  537. index_message() {
  538. this.$ajax.get(`${index_message}`).then(([, { data: res }]) => {
  539. if(res.code === 200) {
  540. this.messageList = res.data.list
  541. }
  542. })
  543. },
  544. resetTiaoZhanToast() {
  545. this.isTiaoXhanToast = false
  546. },
  547. toTiaoZhan() {
  548. let toast_id = this.userServerInfo.challenge_result.id
  549. let _this = this
  550. this.$ajax.get(`${toast_sure}?id=${toast_id}`).then(([, { data: res }]) => {
  551. _this.isTiaoXhanToast = false
  552. _this.toChallenge()
  553. })
  554. },
  555. // 其他
  556. toOther() {
  557. uni.navigateTo({
  558. url:"../other/other"
  559. })
  560. },
  561. // 学霸弹窗
  562. toToastXueBa() {
  563. let toast_id = this.userServerInfo.max_popovers.id
  564. let _this = this
  565. this.$ajax.get(`${toast_sure}?id=${toast_id}`).then(([, { data: res }]) => {
  566. _this.isXuebaToast = false
  567. _this.toChallenge()
  568. })
  569. },
  570. toToastDetail() {
  571. let toast_id = this.userServerInfo.glory_popovers.id
  572. let _this = this
  573. this.$ajax.get(`${toast_sure}?id=${toast_id}`).then(([, { data: res }]) => {
  574. _this.isXuefenToast = false
  575. _this.tohonour()
  576. })
  577. },
  578. getuserinfo() { //获取用户信息
  579. // console.log(111)
  580. // uni.getUserProfile({
  581. // desc:'Wexin', // 这个参数是必须的
  582. // success:res=>{
  583. // this.$store.commit('HIDEGETUSERINFOBUTTON') //隐藏透明按钮
  584. // let _this = this
  585. // this.$store.dispatch('onLaunch').then(()=> {
  586. // _this.init()
  587. // }) //触发初始化方法
  588. // // console.log("用户信息",res.rawData)
  589. // }
  590. // })
  591. // uni.getUserInfo().then(([getUserWeixinInfoErr, userWeixinInfo]) => { //获取完成后
  592. // if (getUserWeixinInfoErr) {
  593. // return
  594. // }
  595. // this.$store.commit('HIDEGETUSERINFOBUTTON') //隐藏透明按钮
  596. // let _this = this
  597. // this.$store.dispatch('onLaunch').then(()=> {
  598. // _this.init()
  599. // }) //触发初始化方法
  600. // })
  601. },
  602. toself () { //点击用户信息
  603. if (this.$verified()) { //用户是否已登录
  604. if (this.userServerInfo.type === 1 || this.userServerInfo.type === 2) { //只有普通客户和批发商个人主页
  605. if (this.routing) { return }
  606. this.routing = true
  607. uni.navigateTo({ url: `../self/self?from=index&id=${this.userServerInfo.id}` }) //已登录跳转到用户中心
  608. }
  609. } else { //未登录弹出登录框
  610. // this.$store.commit('SHOWVERIFY')
  611. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  612. }
  613. },
  614. tapUserStatus () { //点击用户状态
  615. if (this.userStatus === '绑定账号') {
  616. // this.$store.commit('SHOWVERIFY')
  617. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  618. } else if (this.userStatus === '报名参赛') {
  619. if (this.routing) { return }
  620. this.routing = true
  621. uni.navigateTo({ url: '../signup/signup' })
  622. } else if (this.userStatus === '学分账单') {
  623. if (this.routing) { return }
  624. this.routing = true
  625. uni.navigateTo({ url: '../score/score' })
  626. } else if (this.userStatus === '报名截止') {
  627. this.$refs.toast.hover('报名时间已过,非常感谢您的关注。')
  628. } else if (this.userStatus === '暂未开赛') {
  629. this.$refs.toast.hover('暂未开赛,非常感谢您的关注。')
  630. } else if (this.userStatus === '已报名') {
  631. uni.navigateTo({
  632. url: "../certificate/notice"
  633. })
  634. }
  635. },
  636. toranking () { //点击排行榜
  637. // uni.navigateTo({ url: '../ranking/ranking' })
  638. if (this.$verified()) { //用户是否已登录
  639. if (this.userServerInfo.type === 1) { //判断用户类型,普通用户需要报名后才可以查看排行榜
  640. if (this.userServerInfo.signuped) { //如果用户已报名,就跳转
  641. if (this.routing) { return }
  642. this.routing = true
  643. uni.navigateTo({ url: '../ranking/ranking' })
  644. } else { ////如果用户已报名,就提示用户没有报名
  645. uni.showModal({
  646. content:"您还没有报名参赛",
  647. showCancel:false
  648. })
  649. }
  650. } else { //批发商和客服可以直接查看排行榜页
  651. if (this.routing) { return }
  652. this.routing = true
  653. uni.navigateTo({ url: '../ranking/ranking' })
  654. }
  655. } else { //未登录弹出登录框
  656. // this.$store.commit('SHOWVERIFY')
  657. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  658. }
  659. },
  660. toupload () { //点击上传图片
  661. // uni.navigateTo({ url: '../upload/upload' })
  662. // return false
  663. if (this.$verified()) { //用户是否已登录
  664. if (this.userServerInfo.signuped) {
  665. if (this.userServerInfo.status === 1 || this.userServerInfo.status === 4) {
  666. this.$refs.toast.hover('比赛还没有开始')
  667. } else if (this.userServerInfo.status === 2) {
  668. if (this.routing) { return }
  669. this.routing = true
  670. uni.navigateTo({ url: '../upload/upload' })
  671. uni.fromUpload = true
  672. } else if (this.userServerInfo.status === 3 || this.userServerInfo.status === 5) {
  673. this.$refs.toast.hover('比赛已经结束了')
  674. }
  675. } else {
  676. this.$refs.toast.hover('您还没有报名参赛')
  677. }
  678. } else { //未登录弹出登录框
  679. // this.$store.commit('SHOWVERIFY')
  680. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  681. }
  682. },
  683. toChallenge(active) { // 点击学分挑战
  684. // uni.navigateTo({ url: '../challengeList/challengeList'+(active ? `?active=${active}` : '') })
  685. // return false
  686. if (this.$verified()) { //用户是否已登录
  687. if (this.userServerInfo.signuped) { // 用户是否已经报名
  688. if (this.userServerInfo.level_name === '批发商' || this.userServerInfo.level_name === '经销商') { // 只有批发商能够参加学分竞赛
  689. if (this.routing) { return }
  690. this.routing = true
  691. this.closeChallenge()
  692. uni.navigateTo({ url: '../challengeList/challengeList'+(active ? `?active=${active}` : '') })
  693. } else { //批发商和客服不可参赛,所以提示无参赛记录
  694. this.$refs.toast.hover('只有批发商可以参与挑战')
  695. }
  696. } else {
  697. this.$refs.toast.hover('您还没有报名参赛')
  698. }
  699. } else { //未登录弹出登录框
  700. // this.$store.commit('SHOWVERIFY')
  701. uni.navigateTo({ url: '../boundPhone/boundPhone' })
  702. }
  703. },
  704. torules () { //点击赛季规则
  705. if (this.routing) { return }
  706. this.routing = true
  707. uni.navigateTo({ url: '../rules/rules' })
  708. },
  709. // 长按赛季规则跳转
  710. toLongTapIndex() {
  711. uni.navigateTo({ url: '../longTapIndex/longTapIndex' })
  712. },
  713. closeChallenge() {
  714. this.$store.commit('READCHALLENGE')
  715. }
  716. }
  717. }
  718. </script>
  719. <style lang="scss" scoped>
  720. .challenge-num {
  721. display: flex;
  722. flex-direction: column;
  723. align-items: center;
  724. .challenage-num-top{
  725. width: 626rpx;
  726. height: 612rpx;
  727. background: url(http://picture.liuliwa.top/new_challenge_toast/7.png) center no-repeat;
  728. background-size: 100%;
  729. margin: 0 auto 94rpx auto;
  730. position: relative;
  731. .challenage-num-body {
  732. width: 570rpx;
  733. height: 385rpx;
  734. position: absolute;
  735. bottom: 28rpx;
  736. left: 28rpx;
  737. border-radius: 24rpx;
  738. padding: 84rpx 30rpx 44rpx 30rpx;
  739. display: flex;
  740. justify-content: space-between;
  741. flex-direction: column;
  742. .challenge-num-item {
  743. display: flex;
  744. align-items: center;
  745. justify-content: space-between;
  746. .label {
  747. color: #5D330D;
  748. font-size: 32rpx;
  749. margin-right: 10rpx;
  750. }
  751. .spec {
  752. color: #DD372D;
  753. font-size: 48rpx;
  754. }
  755. }
  756. }
  757. }
  758. .challenge-num-btn {
  759. width: 502rpx;
  760. height: 96rpx;
  761. border-radius: 96rpx;
  762. background: linear-gradient(180deg, #FEEB71 0%, #F89018 100%);
  763. color: #984100;
  764. font-size: 32rpx;
  765. font-weight: bold;
  766. line-height: 96rpx;
  767. text-align: center;
  768. }
  769. }
  770. .challenge-invite {
  771. display: flex;
  772. flex-direction: column;
  773. align-items: center;
  774. .challenge-user {
  775. width: 426rpx;
  776. height: 334rpx;
  777. margin: 0 auto 48rpx auto;
  778. background: url(http://picture.liuliwa.top/new_challenge_toast/5.png) center no-repeat;
  779. background-size: 100%;
  780. position: relative;
  781. .user-avatar {
  782. width: 168rpx;
  783. height: 168rpx;
  784. border-radius: 50%;
  785. position: absolute;
  786. bottom: 8rpx;
  787. left: 50%;
  788. transform: translateX(-50%);
  789. background-position: center;
  790. background-repeat: no-repeat;
  791. background-size: 100%;
  792. background-color: #007AFF;
  793. }
  794. }
  795. .challenge-title {
  796. width: 456rpx;
  797. color: #FFF1AD;
  798. font-size: 32rpx;
  799. line-height: 50rpx;
  800. margin-bottom: 86rpx;
  801. font-weight: bold;
  802. }
  803. .challenage-btn{
  804. width: 502rpx;
  805. height: 96rpx;
  806. border-radius: 96rpx;
  807. background: linear-gradient(180deg, #FEEB71 0%, #F89018 100%);
  808. color: #984100;
  809. font-size: 32rpx;
  810. font-weight: bold;
  811. line-height: 96rpx;
  812. text-align: center;
  813. }
  814. }
  815. .index {
  816. width: 100%;
  817. height: 100%;
  818. position: relative;
  819. box-sizing: border-box;
  820. padding: 161rpx 30rpx 0;
  821. display: flex;
  822. flex-direction: column;
  823. .index_countdown {
  824. width: 100%;
  825. height: 140rpx;
  826. background-image: linear-gradient(#4CBA59, #6BE57D);
  827. color: #FFFFFF;
  828. border-radius: 6rpx;
  829. margin-top: 10rpx;
  830. line-height: 60rpx;
  831. text-align: center;
  832. letter-spacing: 4rpx;
  833. display: flex;
  834. align-items: center;
  835. justify-content: center;
  836. font-size: 36rpx;
  837. .bg1 {
  838. background-color: #FD715D;
  839. }
  840. .bg2 {
  841. background-color: #3397DB;
  842. }
  843. .bg3{
  844. background-color: #F39B11;
  845. }
  846. .bg4 {
  847. // background-color: #B933FF;
  848. }
  849. .animate_second {
  850. display: flex !important;
  851. justify-content: space-between;
  852. align-items: center;
  853. .animate_item {
  854. flex: 1;
  855. height: 70rpx;
  856. &:nth-of-type(1) {
  857. background-color: #e3abff;
  858. }
  859. &:nth-last-of-type(1) {
  860. background-color: #B933FF;
  861. }
  862. text-align: center;
  863. }
  864. }
  865. .spec {
  866. display: block;
  867. text-align: center;
  868. line-height: 70rpx;
  869. color: #FFFFFF;
  870. width: 70rpx;
  871. height: 70rpx;
  872. border-radius: 10rpx;
  873. overflow: hidden;
  874. }
  875. .small{
  876. font-size: 24rpx;
  877. margin: 0 8rpx;
  878. margin-top: 40rpx;
  879. }
  880. }
  881. .xuefen_toast {
  882. width: 600rpx;
  883. height: 760rpx;
  884. .text {
  885. position: absolute;
  886. width: 430rpx;
  887. bottom: 217rpx;
  888. left: 50%;
  889. margin-left: -215rpx;
  890. display: flex;
  891. justify-content: flex-start;
  892. flex-wrap: wrap;
  893. font-size: 28rpx;
  894. color: #333333;
  895. view {
  896. width: calc(50% - 10rpx);
  897. margin-bottom: 20rpx;
  898. display: flex;
  899. justify-content: space-between;
  900. align-items: center;
  901. &:nth-last-child(1), &:nth-last-child(2) {
  902. margin-bottom: 0;
  903. }
  904. &:nth-child(2n) {
  905. text-align: right;
  906. margin-left: 20rpx;
  907. }
  908. }
  909. }
  910. }
  911. .yingzhan_toast {
  912. width: 574rpx;
  913. height: 596rpx;
  914. .text {
  915. left: 0;
  916. width: 100%;
  917. color: #F76454;
  918. font-size: 36rpx;
  919. position: absolute;
  920. text-align: center;
  921. top: 120rpx;
  922. }
  923. }
  924. .xiazhu_toast {
  925. width: 563rpx;
  926. height: 653rpx;
  927. .text {
  928. color: #712722;
  929. font-size: 28rpx;
  930. width: 402rpx;
  931. position: absolute;
  932. bottom: 188rpx;
  933. left: 50%;
  934. margin-left: -201rpx;
  935. text{
  936. display: block;
  937. margin-bottom: 20rpx;
  938. text-align: center;
  939. &:nth-last-child(1) {
  940. margin-bottom: 0;
  941. }
  942. }
  943. }
  944. }
  945. .tiaozhan_toast {
  946. width: 520rpx;
  947. height: 755rpx;
  948. .text {
  949. color: #712722;
  950. font-size: 28rpx;
  951. width: 390rpx;
  952. position: absolute;
  953. bottom: 160rpx;
  954. left: 50%;
  955. margin-left: -195rpx;
  956. line-height: 48rpx;
  957. text-align: center;
  958. }
  959. }
  960. .xuewei_toast {
  961. width: 712rpx;
  962. height: 750rpx;
  963. .text {
  964. font-size: 62rpx;
  965. color: #FFFFFF;
  966. position: absolute;
  967. width: 488rpx;
  968. text-align: center;
  969. height: 104rpx;
  970. line-height: 104rpx;
  971. left: 50%;
  972. margin-left: -244rpx;
  973. bottom: 138rpx;
  974. }
  975. }
  976. .xueba_toast {
  977. width: 662rpx;
  978. height: 685rpx;
  979. .text {
  980. width: 416rpx;
  981. text-align: center;
  982. height: 112rpx;
  983. line-height: 112rpx;
  984. color: #FFFFFF;
  985. font-size: 58rpx;
  986. position: absolute;
  987. left: 50%;
  988. margin-left: -208rpx;
  989. bottom: 226rpx;
  990. }
  991. }
  992. .getUserInfo {
  993. position: fixed;
  994. top: 0;
  995. left: 0;
  996. right: 0;
  997. bottom: 0;
  998. z-index: 9999;
  999. background: rgba(1, 1, 1, 0);
  1000. }
  1001. .header-bg {
  1002. position: absolute;
  1003. z-index: -1;
  1004. top: 0;
  1005. left: 0;
  1006. width: 100%;
  1007. height: 286rpx;
  1008. background: linear-gradient(-2deg, rgba(255,68,54,1) 0%, rgba(254,132,72,1) 100%);
  1009. border-bottom-right-radius: 350rpx 30rpx;
  1010. border-bottom-left-radius: 350rpx 30rpx;
  1011. }
  1012. .title {
  1013. position: absolute;
  1014. top: 70rpx;
  1015. left: 30rpx;
  1016. @include text(34rpx);
  1017. color: #FFFFFF;
  1018. }
  1019. .user_info_new {
  1020. background: linear-gradient(#FFCF82, #FF9C00);
  1021. border-radius: 10rpx;
  1022. .biye_tip {
  1023. height: 64rpx;
  1024. background: rgba(0,0,0,.4);
  1025. color: #FFFFFF;
  1026. font-size: 28rpx;
  1027. padding: 0 22rpx;
  1028. box-sizing: border-box;
  1029. width: 100%;
  1030. line-height: 64rpx;
  1031. border-bottom-left-radius: 10rpx;
  1032. border-bottom-right-radius: 10rpx;
  1033. }
  1034. }
  1035. .userinfo {
  1036. position: relative;
  1037. width: 100%;
  1038. height: 225rpx;
  1039. box-shadow: 0rpx 1rpx 3rpx 0rpx rgba(0, 0, 0, 0.2);
  1040. border-radius:10px;
  1041. box-sizing: border-box;
  1042. padding: 22rpx;
  1043. .top {
  1044. height: 98rpx;
  1045. display: flex;
  1046. align-items: center;
  1047. position: relative;
  1048. .user-pic {
  1049. height: 100%;
  1050. width: 98rpx;
  1051. border-radius: 50%;
  1052. overflow: hidden;
  1053. }
  1054. .hat {
  1055. position: absolute;
  1056. top: -40rpx;
  1057. left: 0px;
  1058. width: 80rpx;
  1059. height: 69.873rpx;
  1060. }
  1061. .user-info {
  1062. flex: 1;
  1063. display: flex;
  1064. flex-direction: column;
  1065. justify-content: space-between;
  1066. height: 100%;
  1067. margin-left: 16rpx;
  1068. overflow: hidden;
  1069. .progress {
  1070. font-size: 26rpx;
  1071. color: #FFFFFF;
  1072. }
  1073. .name-grade-level {
  1074. height: 100%;
  1075. width: 100%;
  1076. display: flex;
  1077. align-items: center;
  1078. .name {
  1079. font-size: 32rpx;
  1080. color: #FFFFFF;
  1081. max-width: 38%;
  1082. overflow: hidden;
  1083. white-space: nowrap;
  1084. text-overflow: ellipsis;
  1085. }
  1086. .grade {
  1087. font-size: 26rpx;
  1088. color: rgba(255,255,255,1);
  1089. margin-left: 16rpx;
  1090. vertical-align: baseline;
  1091. }
  1092. .level {
  1093. margin-left: 18rpx;
  1094. height: 30rpx;
  1095. border-radius: 15rpx;
  1096. font-size: 26rpx;
  1097. background: #FFFFFF;
  1098. color: rgba(250,99,66,1);
  1099. text {
  1100. float: right;
  1101. line-height: 35rpx;
  1102. margin: 0 12rpx;
  1103. }
  1104. image {
  1105. width: 30rpx;
  1106. height: 30rpx;
  1107. float: left;
  1108. }
  1109. }
  1110. }
  1111. }
  1112. }
  1113. .user-status {
  1114. position: absolute;
  1115. width: 170rpx;
  1116. height: 60rpx;
  1117. top: 111rpx;
  1118. right: 0;
  1119. line-height: 62rpx;
  1120. background: #FFFFFF;
  1121. text-align: center;
  1122. border-radius: 30rpx 0 0 30rpx;
  1123. font-size: 32rpx;
  1124. color: rgba(250,99,66,1);
  1125. &.end {
  1126. background: #999999;
  1127. color: #FFFFFF;
  1128. }
  1129. }
  1130. .countdown {
  1131. position: absolute;
  1132. right: 12rpx;
  1133. top: 171rpx;
  1134. display: flex;
  1135. color: #FFFFFF;
  1136. }
  1137. .score, .rank {
  1138. position: absolute;
  1139. left: 32rpx;
  1140. bottom: 35rpx;
  1141. font-size: 32rpx;
  1142. color: rgba(255,255,255,1);
  1143. &.rank {
  1144. left: 294rpx;
  1145. }
  1146. }
  1147. }
  1148. .entrance {
  1149. flex: 1;
  1150. z-index: 1;
  1151. margin: 10rpx 0;
  1152. position: relative;
  1153. display: flex;
  1154. justify-content: flex-start;
  1155. flex-wrap: wrap;
  1156. .nav_container {
  1157. display: flex;
  1158. justify-content: flex-start;
  1159. flex-wrap: wrap;
  1160. }
  1161. .item_bg1 {
  1162. // background-image: url(../../static/new/index_bg1.png);
  1163. background-image: linear-gradient(#79a9fd, #929ef2);
  1164. }
  1165. .item_bg2 {
  1166. // background-image: url(../../static/new/index_bg2.png);
  1167. background-image: linear-gradient(#ff634c, #ff9587);
  1168. }
  1169. .item_bg3 {
  1170. // background-image: url(../../static/new/index_bg3.png);
  1171. background-image: linear-gradient(#fdad29, #ffcf4b);
  1172. }
  1173. .item_bg4 {
  1174. // background-image: url(../../static/new/index_bg4.png);
  1175. background-image: linear-gradient(#d486f9, #b063f8);
  1176. }
  1177. .index-item {
  1178. width: calc(50% - 5rpx);
  1179. position: relative;
  1180. min-height: 285rpx;
  1181. overflow: hidden;
  1182. border-radius:10px;
  1183. box-shadow:0rpx 1rpx 3rpx 0rpx rgba(0, 0, 0, 0.2);
  1184. font-size: 30rpx;
  1185. color: #FFFFFF;
  1186. background-size: 100% 100%;
  1187. background-repeat: no-repeat;
  1188. margin-right: 5rpx;
  1189. margin-bottom: 12rpx;
  1190. &:nth-of-type(2n) {
  1191. margin-right: 0;
  1192. margin-left: 5rpx;
  1193. }
  1194. .name {
  1195. z-index: 1;
  1196. top: 38rpx;
  1197. left: 30rpx;
  1198. color: #FFFFFF;
  1199. font-size: 40rpx;
  1200. position: absolute;
  1201. font-weight: 500;
  1202. }
  1203. view {
  1204. position: absolute;
  1205. left: 30rpx;
  1206. top: 87rpx;
  1207. font-size: 24rpx;
  1208. color: #FFFFFF;
  1209. }
  1210. .coverImg {
  1211. position: absolute;
  1212. }
  1213. .cv1 {
  1214. width: 238rpx;
  1215. height: 260rpx;
  1216. right: 30rpx;
  1217. bottom: 0;
  1218. }
  1219. .cv2 {
  1220. width: 200rpx;
  1221. height: 163rpx;
  1222. right: 44rpx;
  1223. bottom: 31rpx;
  1224. }
  1225. .cv3 {
  1226. width: 275rpx;
  1227. height: 275rpx;
  1228. right: 10rpx;
  1229. bottom: 33rpx;
  1230. }
  1231. .cv4 {
  1232. width: 187rpx;
  1233. height: 187rpx;
  1234. right: 53rpx;
  1235. bottom: 31rpx;
  1236. }
  1237. }
  1238. }
  1239. .rules {
  1240. font-size: 24rpx;
  1241. height: 80rpx;
  1242. line-height: 80rpx;
  1243. text-align: center;
  1244. font-weight: bold;
  1245. color:rgba(243,67,54,1);
  1246. text {
  1247. margin-left: 9rpx;
  1248. }
  1249. }
  1250. .swiper_parant {
  1251. display: flex;
  1252. justify-content: space-between;
  1253. align-items: center;
  1254. background-color: #FF9C00;
  1255. border-radius: 10rpx;
  1256. height: 70rpx;
  1257. margin: 5px 0;
  1258. padding: 0 20rpx;
  1259. box-sizing: border-box;
  1260. // &::before{
  1261. // content: "";
  1262. // display: block;
  1263. // width: 30rpx;
  1264. // height: 30rpx;
  1265. // background-image: url(../../static/new/message.png);
  1266. // background-repeat: no-repeat;
  1267. // background-size: 100% 100%;
  1268. // margin-right: 10rpx;
  1269. // }
  1270. .message_icon_box {
  1271. color: #FA6342;
  1272. font-size: 32rpx;
  1273. width: 135rpx;
  1274. height: 54rpx;
  1275. padding: 14rpx 12rpx;
  1276. box-sizing: border-box;
  1277. display: flex;
  1278. align-items: center;
  1279. justify-content: space-between;
  1280. margin-right: 20rpx;
  1281. background-color: #FFFFFF;
  1282. border-radius: 8rpx;
  1283. .message_icon {
  1284. width: 32rpx;
  1285. height: 26rpx;
  1286. margin-right: 10rpx;
  1287. }
  1288. }
  1289. }
  1290. .swiper_message {
  1291. flex: 1;
  1292. height: 60rpx;
  1293. box-sizing: border-box;
  1294. line-height: 60rpx;
  1295. color: #FFFFFF;
  1296. font-size: 28rpx;
  1297. }
  1298. .hadChallenge {
  1299. position: fixed;
  1300. left: 0;
  1301. top: 0;
  1302. width: 100%;
  1303. height: 100%;
  1304. background: rgba(0, 0, 0, 0.3);
  1305. @include flex(column);
  1306. z-index: 2;
  1307. .challenage {
  1308. width: 574rpx;
  1309. height: 596rpx;
  1310. position: relative;
  1311. image {
  1312. width: 100%;
  1313. height: 100%;
  1314. }
  1315. .challengeName {
  1316. left: 0;
  1317. width: 100%;
  1318. top: 128rpx;
  1319. color: #F76454;
  1320. font-size: 36rpx;
  1321. position: absolute;
  1322. text-align: center;
  1323. }
  1324. }
  1325. .closeChallenge {
  1326. width: 62rpx;
  1327. height: 62rpx;
  1328. @include flex();
  1329. font-size: 56rpx;
  1330. margin-top: 30rpx;
  1331. border-radius: 50%;
  1332. background: #FFFFFF;
  1333. }
  1334. }
  1335. }
  1336. .courseDialog {
  1337. width: 80%;
  1338. margin: 0 auto;
  1339. height: 700rpx;
  1340. .courseImg {
  1341. display: block;
  1342. width: 100%;
  1343. }
  1344. }
  1345. </style>