index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
  1. <template>
  2. <!-- 图片前缀 https://img.shuimuai.com/ -->
  3. <scroll-view id="index_container" @scroll="onListenScroll" scroll-y style="height: 100%;">
  4. <!-- 死底部分-->
  5. <div class="index_container">
  6. <!-- 用户信息模块-->
  7. <van-row>
  8. <van-col :span="12">
  9. <div class="userinfo " :class="{not_show:userinfo.user_id == false}">
  10. <van-row>
  11. <van-col :span="5">
  12. <van-image :src="userinfo.portrait" width="32px" height="32px"></van-image>
  13. </van-col>
  14. <van-col :span="10">
  15. <p>{{ userinfo.user_name }}</p>
  16. <p>{{ userinfo.phone }}</p>
  17. </van-col>
  18. </van-row>
  19. </div>
  20. </van-col>
  21. </van-row>
  22. <!-- 用户信息模块 -->
  23. <!-- 倒计时模块 -->
  24. <van-row>
  25. <div class="count_down_container">
  26. <van-count-down :time="complete_time" use-slot @change="onTimeChange" format="DD:HH:mm:ss"
  27. v-if="complete_time">
  28. <span class="count_down_time">{{ timeData.days }}</span>
  29. <span class="count_down_time">{{ timeData.hours }}</span>
  30. <span class="count_down_time">{{ timeData.minutes }}</span>
  31. <span class="count_down_time">{{ timeData.seconds }}</span>
  32. </van-count-down>
  33. <div class="none_count_down" v-else>
  34. <span class="count_down_time">00</span>
  35. <span class="count_down_time">00</span>
  36. <span class="count_down_time">00</span>
  37. <span class="count_down_time">00</span>
  38. </div>
  39. </div>
  40. </van-row>
  41. <!-- 倒计时模块 -->
  42. <!-- 分享和参与比赛的按钮 -->
  43. <van-row gutter="7" :class="{'complete_btns':is_fixed == false,'complete_btns_fixed':is_fixed}">
  44. <van-col :span="11" :offset="1">
  45. <!--分享按钮-->
  46. <van-image src="https://img.shuimuai.com/share_btn@2x.png" @click="show_share_window"
  47. width="160px" height="49px"
  48. ></van-image>
  49. </van-col>
  50. <van-col :span="10" :offset="1">
  51. <!--参与按钮-->
  52. <van-image src="https://img.shuimuai.com/join_btn@2x.png"
  53. @click="to_info"
  54. width="160px" height="49px"
  55. v-if="joined == false"
  56. ></van-image>
  57. <van-image src="https://img.shuimuai.com/rank@2x.png" alt="" @click="to_rank"
  58. width="160px" height="49px"
  59. v-else
  60. ></van-image>
  61. </van-col>
  62. </van-row>
  63. <van-overlay :show="share_show" class="share_info" :z-index="99">
  64. <img src="https://img.shuimuai.com/share_arrow.png" alt="" class="share_arrow">
  65. <img src="https://img.shuimuai.com/share_content.png" alt="" class="share_content">
  66. <img src="https://img.shuimuai.com/know_btn.png" alt="" @click="close_share_window" class="know_btn">
  67. </van-overlay>
  68. <!-- 分享和参与比赛的按钮 -->
  69. </div>
  70. <div id="info"></div>
  71. <!-- 自创模块-->
  72. <div class="diy_container">
  73. <!-- 排行榜模块 -->
  74. <div class="rank_container" id="rank_container">
  75. <div class="rank_title">
  76. <img src="https://img.shuimuai.com/rank_title@2x.png" alt="" class="rank_title_img">
  77. </div>
  78. <div class="rank_main">
  79. <!-- 排行榜tabs -->
  80. <view class="rank_header">
  81. <van-row>
  82. <van-col span="8">
  83. <img src="https://img.shuimuai.com/yu_sai_rank@2x.png" alt="" class="rank_card"
  84. @click="changeRankAction(1)">
  85. <img src="https://img.shuimuai.com/yu_sai_tg@2x.png" alt="" class="rank_arrow"
  86. :class="{not_show:rank_action!=1}">
  87. </van-col>
  88. <van-col span="8">
  89. <img src="https://img.shuimuai.com/raise_rank@2x.png" alt="" class="rank_card"
  90. @click="changeRankAction(2)">
  91. <img src="https://img.shuimuai.com/raise_tg@2x.png" alt="" class="rank_arrow"
  92. :class="{not_show:rank_action!=2}">
  93. </van-col>
  94. <van-col span="8">
  95. <img src="https://img.shuimuai.com/final_rank@2x.png" alt="" class="rank_card"
  96. @click="changeRankAction(3)">
  97. <img src="https://img.shuimuai.com/final_tg@2x.png" alt="" class="rank_arrow"
  98. :class="{not_show:rank_action!=3}">
  99. </van-col>
  100. </van-row>
  101. </view>
  102. <!-- 排行榜榜单 -->
  103. <!-- 预选赛榜单 -->
  104. <div class="rank_main_list" v-if="rank_action==1">
  105. <!-- 我的成绩 -->
  106. <div class="my_score" v-if="my_report.user_id">
  107. <span class="right_title" @click="to_report">成绩报告详情</span>
  108. <van-row class="rank_item">
  109. <van-col span="4" offset="1">
  110. <span class="rank_num">第{{ my_report.ranking }}名</span>
  111. </van-col>
  112. <van-col span="2" offset="1">
  113. <van-image :src="my_report.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  114. </van-col>
  115. <van-col span="5">
  116. <span class="rank_username">{{ my_report.user_name }}</span>
  117. </van-col>
  118. <van-col span="5">
  119. <template v-if="icon_show">
  120. <van-image src="https://img.shuimuai.com/rise@2x.png" alt="" class="" width="19px" height="10px"
  121. v-if="my_report.promotion_status==1"></van-image>
  122. <van-image src="https://img.shuimuai.com/luo_xuan@2x.png" alt="" class="" width="19px" height="10px"
  123. v-if="my_report.promotion_status==2"></van-image>
  124. <van-image src="https://img.shuimuai.com/qi_quan@2x.png" alt="" class="" width="19px" height="10px"
  125. v-if="my_report.promotion_status==3"></van-image>
  126. </template>
  127. </van-col>
  128. <van-col span="5">
  129. <span class="rank_score">{{ my_report.att_average }}分</span>
  130. </van-col>
  131. </van-row>
  132. </div>
  133. <!-- 排行榜列表 -->
  134. <div class="rank_list">
  135. <van-row>
  136. <van-col span="4" offset="1">
  137. <span class="rank_list_title">排名</span>
  138. </van-col>
  139. <van-col span="2" offset="1">
  140. <span class="rank_list_title">姓名</span>
  141. </van-col>
  142. <van-col span="5" offset="10">
  143. <span class="rank_list_title">得分</span>
  144. </van-col>
  145. </van-row>
  146. <div v-for="(item,index) in promotion_rank" :key="index">
  147. <view class="rank_item">
  148. <van-row>
  149. <van-col span="4" offset="1" class=" ">
  150. <span class="rank_num" v-if="index > 2">第{{ index + 1 }}名</span>
  151. <van-image src="https://img.shuimuai.com/gold_award@2x.png" alt="" v-if="index == 0"
  152. width="16px" height="24px"
  153. ></van-image>
  154. <van-image src="https://img.shuimuai.com/second_award@2x.png" alt="" v-if="index == 1"
  155. width="16px" height="24px"
  156. ></van-image>
  157. <van-image src="https://img.shuimuai.com/third_btn@2x.png" alt="" v-if="index == 2"
  158. width="16px" height="24px"
  159. ></van-image>
  160. </van-col>
  161. <van-col span="2" offset="1" class=" ">
  162. <van-image :src="item.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  163. </van-col>
  164. <van-col span="5">
  165. <span class="rank_username">{{ item.user_name }}</span>
  166. </van-col>
  167. <van-col span="5">
  168. <template v-if="icon_show">
  169. <van-image src="https://img.shuimuai.com/rise@2x.png" alt="" class="" width="19px" height="10px"
  170. v-if="item.promotion_status==1"></van-image>
  171. <van-image src="https://img.shuimuai.com/luo_xuan@2x.png" alt="" class="" width="19px"
  172. height="10px"
  173. v-if="item.promotion_status==2"></van-image>
  174. <van-image src="https://img.shuimuai.com/qi_quan@2x.png" alt="" class="" width="19px"
  175. height="10px"
  176. v-if="item.promotion_status==3"></van-image>
  177. </template>
  178. </van-col>
  179. <van-col span="5">
  180. <span class="rank_score">{{ item.att_average }}分</span>
  181. </van-col>
  182. </van-row>
  183. </view>
  184. <div class="under_line"></div>
  185. </div>
  186. </div>
  187. </div>
  188. <!-- 晋级赛榜单 -->
  189. <div class="rank_main_list" v-if="rank_action==2">
  190. <div class="my_score" v-if="my_report_2.user_id">
  191. <span class="right_title" @click="to_report">成绩报告详情</span>
  192. <view class="rank_item">
  193. <van-row>
  194. <van-col span="4" offset="1">
  195. <span class="rank_num">第{{ my_report_2.ranking }}名</span>
  196. </van-col>
  197. <van-col span="2" offset="1">
  198. <van-image :src="my_report_2.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  199. </van-col>
  200. <van-col span="5">
  201. <span class="rank_username">{{ my_report_2.user_name }}</span>
  202. </van-col>
  203. <van-col span="5" class="not_show">
  204. </van-col>
  205. <van-col span="5">
  206. <span class="rank_score">{{ my_report_2.att_average }}分</span>
  207. </van-col>
  208. </van-row>
  209. </view>
  210. </div>
  211. <!-- 排行榜列表 -->
  212. <div class="rank_list">
  213. <van-row>
  214. <van-col span="4" offset="1">
  215. <span class="rank_list_title">排名</span>
  216. </van-col>
  217. <van-col span="2" offset="1">
  218. <span class="rank_list_title">姓名</span>
  219. </van-col>
  220. <van-col span="5" offset="10">
  221. <span class="rank_list_title">得分</span>
  222. </van-col>
  223. </van-row>
  224. <div v-for="(item,index) in final_rank" :key="index">
  225. <view class="rank_item">
  226. <van-row>
  227. <van-col span="4" offset="1" class="">
  228. <span class="rank_num" v-if="index > 2">第{{ item.ranking }}名</span>
  229. <van-image src="https://img.shuimuai.com/gold_award@2x.png" alt="" v-if="index == 0"
  230. width="16px" height="24px"
  231. ></van-image>
  232. <van-image src="https://img.shuimuai.com/second_award@2x.png" alt="" v-if="index == 1"
  233. width="16px" height="24px"
  234. ></van-image>
  235. <van-image src="https://img.shuimuai.com/third_btn@2x.png" alt="" v-if="index == 2"
  236. width="16px" height="24px"
  237. ></van-image>
  238. </van-col>
  239. <van-col span="2" offset="1" class="">
  240. <van-image :src="item.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  241. </van-col>
  242. <van-col span="5">
  243. <span class="rank_username">{{ item.user_name }}</span>
  244. </van-col>
  245. <van-col span="5" class="not_show">
  246. <van-image src="https://img.shuimuai.com/rise@2x.png" alt="" class="" width="19px" height="10px"
  247. v-if="item.finals_status==1"></van-image>
  248. <van-image src="https://img.shuimuai.com/luo_xuan@2x.png" alt="" class="" width="19px"
  249. height="10px"
  250. v-if="item.finals_status==2"></van-image>
  251. <van-image src="https://img.shuimuai.com/qi_quan@2x.png" alt="" class="" width="19px"
  252. height="10px"
  253. v-if="item.finals_status==3"></van-image>
  254. </van-col>
  255. <van-col span="5">
  256. <span class="rank_score">{{ item.att_average }}分</span>
  257. </van-col>
  258. </van-row>
  259. </view>
  260. <div class="under_line"></div>
  261. </div>
  262. </div>
  263. </div>
  264. <!-- 决赛榜单 -->
  265. <div class="rank_main_list" v-if="rank_action==3">
  266. <!-- 排行榜列表 -->
  267. <div class="rank_list_ext">
  268. <div v-for="(item,index) in all_final_rank" :key="item">
  269. <!-- 特等奖 -->
  270. <view class="gold_award_container last_sort" v-if="item.prize==0">
  271. <van-row >
  272. <van-col span="2" offset="9" class="">
  273. <van-image :src="item.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  274. </van-col>
  275. <van-col span="5">
  276. <span class="rank_username">{{ item.user_name }}</span>
  277. </van-col>
  278. <van-col span="4">
  279. <span class="slogen">总决赛积分</span>
  280. </van-col>
  281. <van-col span="2">
  282. <span class="rank_score">{{ item.att_average }}</span>
  283. </van-col>
  284. </van-row>
  285. </view>
  286. <!-- 一等奖 -->
  287. <van-row class="first_award_container " v-if="item.prize == 1">
  288. <div class="first_award_bg last_sort_ext">
  289. <van-col>
  290. <van-image src="https://img.shuimuai.com/h5/first.png" alt=""
  291. width="87px" height="25px"
  292. ></van-image>
  293. </van-col>
  294. <van-col span="2" offset="1" class="">
  295. <van-image :src="item.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  296. </van-col>
  297. <van-col span="5">
  298. <span class="rank_username">{{ item.user_name }}</span>
  299. </van-col>
  300. <van-col span="4">
  301. <span class="slogen">总决赛积分</span>
  302. </van-col>
  303. <van-col span="2">
  304. <span class="rank_score">{{ item.att_average }}</span>
  305. </van-col>
  306. </div>
  307. </van-row>
  308. <!-- 二等奖 -->
  309. <div class="second_award_container " v-if="item.prize == 2">
  310. <div class="second_award_bg last_sort_ext">
  311. <van-col>
  312. <van-image src="https://img.shuimuai.com/h5/second.png" alt=""
  313. width="87px" height="25px"
  314. ></van-image>
  315. </van-col>
  316. <van-col span="2" offset="1" class="">
  317. <van-image :src="item.portrait" alt="" class="avatar" width="25px" height="25px"></van-image>
  318. </van-col>
  319. <van-col span="5">
  320. <span class="rank_username second_text">{{ item.user_name }}</span>
  321. </van-col>
  322. <van-col span="4">
  323. <span class="slogen second_text">晋级赛积分</span>
  324. </van-col>
  325. <van-col span="2">
  326. <span class="rank_score second_text">{{ item.att_average }}</span>
  327. </van-col>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. <!-- 精彩时刻模块 -->
  336. <div class="wonderful_container">
  337. <img src="https://img.shuimuai.com/jing_cai_shi_ke@2x.png" alt="" class="wonderful_container_img">
  338. </div>
  339. <!-- 扫码关注我们模块 -->
  340. <div class="qrcode_container">
  341. <img src="https://img.shuimuai.com/code@2x.png" alt="" class="qrcode_container_img">
  342. </div>
  343. </div>
  344. <van-toast id="van-toast"/>
  345. </scroll-view>
  346. </template>
  347. <script>
  348. import store from "../../store/competition";
  349. import {cal_down_time} from "../../utils";
  350. import {
  351. checkJoined,
  352. doEnroll,
  353. get_user_by_code,
  354. getActivity, getAllFinalsRanking,
  355. getFinalsRanking, getJsSDK,
  356. getPromotionRanking
  357. } from "../../requests/competition";
  358. import Toast from '../../../static/vant/toast/toast';
  359. import {reload_userinfo} from "../../utils/user";
  360. var $this;
  361. var $now = Math.round(new Date() / 1000);
  362. export default {
  363. name: "index",
  364. data() {
  365. return {
  366. //活动id
  367. activity_id: 0,
  368. //分享显示
  369. share_show: false,
  370. //结束时间
  371. complete_time: "",
  372. //排行榜
  373. rank_action: 1,
  374. joined: false,
  375. //预选赛排行
  376. promotion_rank: [],
  377. //晋级赛排行
  378. final_rank: [],
  379. //总决赛排行
  380. all_final_rank: [],
  381. //我的成绩
  382. my_report: {},
  383. my_report_2: {},
  384. timeData: {},
  385. //用户个人信息
  386. userinfo: {
  387. phone: 0,
  388. portrait: "",
  389. user_id: "",
  390. user_name: ""
  391. },
  392. icon_show: false,
  393. // 是否悬浮
  394. is_fixed: false
  395. }
  396. },
  397. watch: {
  398. rank_action($new, $old) {
  399. if ($new == 2) {
  400. if ($this.final_rank.length == 0) {
  401. $this.rank_action = $old
  402. }
  403. }
  404. if ($new == 3) {
  405. if ($this.all_final_rank.length == 0) {
  406. $this.rank_action = $old
  407. }
  408. }
  409. }
  410. },
  411. methods: {
  412. to_report() {
  413. // $this.$router.push({name: "Report"})
  414. },
  415. get_init() {
  416. },
  417. //打开分享窗口
  418. show_share_window() {
  419. $this.share_show = true
  420. },
  421. //关闭分享窗口
  422. close_share_window() {
  423. $this.share_show = false
  424. },
  425. //跳转比赛信息位置
  426. to_info() {
  427. if (!$this.userinfo.user_id) {
  428. Toast.fail({
  429. message:'请登录水母智脑小程序后进行参与比赛',
  430. onClose(){
  431. wx.navigateTo({
  432. url:"/pages/index/main"
  433. })
  434. }
  435. })
  436. return false
  437. }
  438. //判断有用户id 就 参加比赛
  439. if ($this.userinfo.user_id && $this.joined == false) {
  440. doEnroll($this.activity_id, $this.userinfo.user_id).then((res) => {
  441. let $res = res.data
  442. if ($res.code == 0) {
  443. Toast.success("参加成功");
  444. $this.joined = true
  445. } else {
  446. Toast.fail($res.errmsg)
  447. }
  448. }).catch((e) => {
  449. Toast.fail(e)
  450. })
  451. }
  452. if ($this.joined == true) {
  453. //没有则跳转到地址
  454. window.location.href = '#info'
  455. }
  456. },
  457. //跳转比赛信息位置
  458. to_rank() {
  459. window.location.href = '#rank_container'
  460. },
  461. //时间产生变化时
  462. onTimeChange($e) {
  463. $this.timeData = $e.mp.detail
  464. for (let $key in $e) {
  465. if ($e[$key].toString().length == 1) {
  466. $e[$key] = "0" + $e[$key]
  467. }
  468. }
  469. },
  470. //切换排行榜
  471. changeRankAction($action) {
  472. $this.rank_action = $action
  473. },
  474. // 获取互动
  475. getActivity($activity_id) {
  476. getActivity($activity_id).then((res) => {
  477. let $res = res.data;
  478. let $data = $res.data;
  479. // 倒计时模块
  480. if ($now > $data['promotion_start_time'] && $now < $data['promotion_end_time']) {
  481. //预选塞时间范围内
  482. $this.calDownTime($data['promotion_end_time'])
  483. }
  484. //晋级赛时间范围内
  485. if ($now > $data['finals_start_time'] && $now < $data['finals_end_time']) {
  486. $this.rank_action = 2
  487. }
  488. //总决赛时间范围内
  489. if ($now > $data['all_finals_start_time'] && $now < $data['all_finals_end_time']) {
  490. $this.rank_action = 3
  491. }
  492. //显示预选赛排行
  493. if ($now > $data['promotion_start_time']) {
  494. //获取预选赛排行榜
  495. $this.getPromotionRanking($activity_id)
  496. }
  497. //显示晋级赛排行
  498. if ($now > $data['finals_start_time']) {
  499. //获取晋级赛排行榜
  500. $this.getFinalsRanking($activity_id)
  501. }
  502. // 显示总决赛排行榜
  503. if ($now > $data['all_finals_end_time']) {
  504. $this.getAllFinalsRanking($activity_id)
  505. }
  506. if ($now > $data['promotion_end_time']) {
  507. $this.icon_show = true
  508. }
  509. })
  510. },
  511. //获取预选赛排行
  512. getPromotionRanking($activity_id) {
  513. getPromotionRanking($activity_id).then((res) => {
  514. let $res = res.data;
  515. let $data = $res.data;
  516. $data.forEach(($val, $index) => {
  517. if ($val['user_id'] == $this.userinfo.user_id) {
  518. $this.my_report = $val
  519. }
  520. })
  521. $this.promotion_rank = $data
  522. })
  523. },
  524. //获取晋级赛排行
  525. getFinalsRanking($activity_id) {
  526. getFinalsRanking($activity_id).then((res) => {
  527. let $res = res.data;
  528. let $data = $res.data;
  529. $data.forEach(($val, $index) => {
  530. if ($val['user_id'] == $this.userinfo.user_id) {
  531. $this.my_report_2 = $val
  532. }
  533. })
  534. $this.final_rank = $res.data
  535. })
  536. },
  537. //获取总决赛排行
  538. getAllFinalsRanking($activity_id) {
  539. getAllFinalsRanking($activity_id).then((res) => {
  540. let $res = res.data;
  541. $this.all_final_rank = $res.data
  542. })
  543. },
  544. // 计算结束时间差
  545. calDownTime($time) {
  546. //计算倒计时
  547. // 获取比赛结束日
  548. let $time_result = cal_down_time($time)
  549. $this.complete_time = $time_result.differ
  550. },
  551. //监听滚动
  552. onListenScroll(event) {
  553. let $scrollTop = event.mp.detail.scrollTop
  554. $this.is_fixed = $scrollTop > 400
  555. }
  556. },
  557. mounted() {
  558. },
  559. created() {
  560. $this = this;
  561. //获取浏览器信息
  562. reload_userinfo($this)
  563. },
  564. onLoad($options) {
  565. $this.activity_id = $options.activity_id
  566. $this.getActivity($this.activity_id)
  567. }
  568. }
  569. </script>
  570. <style>
  571. page {
  572. height: 100%;
  573. }
  574. </style>
  575. <style scoped>
  576. /*//死底模块*/
  577. #index_container {
  578. background-color: #2b2760;
  579. }
  580. .index_container {
  581. background: url("https://img.shuimuai.com/h5/background_1%402x.png");
  582. background-size: 100% 100%;
  583. background-position: center;
  584. height: 2487px;
  585. width: 100%;
  586. }
  587. .userinfo {
  588. padding: 10px;
  589. }
  590. .userinfo p {
  591. font-size: 9px;
  592. font-family: Microsoft YaHei;
  593. font-weight: bold;
  594. color: #fff;
  595. line-height: 14px;
  596. }
  597. .complete_btns {
  598. position: absolute;
  599. top: 580px;
  600. }
  601. .complete_btns_fixed {
  602. position: fixed;
  603. bottom: 0px;
  604. z-index: 99;
  605. }
  606. .share_info {
  607. text-align: center;
  608. }
  609. .share_info .share_arrow {
  610. width: 84px;
  611. height: 113px;
  612. float: right;
  613. margin-top: 18px;
  614. margin-right: 33px;
  615. }
  616. .share_info .share_content {
  617. width: 324px;
  618. height: 116px;
  619. margin: 0px auto;
  620. }
  621. .share_info .know_btn {
  622. width: 189px;
  623. height: 73px;
  624. margin-top: 49px;
  625. }
  626. .count_down_container {
  627. background-image: url("https://img.shuimuai.com/count_down_container@2x.png");
  628. background-size: 100% 100%;
  629. background-position: center;
  630. width: 294px;
  631. height: 49px;
  632. position: absolute;
  633. top: 323px;
  634. left: 41px;
  635. }
  636. .count_down_container .count_down_time {
  637. font-size: 24px;
  638. font-family: zihun59hao-chuangcuhei;
  639. font-weight: 400;
  640. color: #FFFFFF;
  641. position: relative;
  642. }
  643. .count_down_container .count_down_time:nth-child(1) {
  644. left: 70px;
  645. top: 15px;
  646. bottom: 16px;
  647. }
  648. .count_down_container .count_down_time:nth-child(2) {
  649. left: 90px;
  650. top: 15px;
  651. bottom: 16px;
  652. }
  653. .count_down_container .count_down_time:nth-child(3) {
  654. left: 115px;
  655. top: 15px;
  656. bottom: 16px;
  657. }
  658. .count_down_container .count_down_time:nth-child(4) {
  659. left: 135px;
  660. top: 15px;
  661. bottom: 16px;
  662. }
  663. .none_count_down .count_down_time {
  664. top: 8px !important;
  665. }
  666. /*# sourceMappingURL=index.css.map */
  667. /*//diy模块*/
  668. .max_width_and_center {
  669. width: 100%;
  670. text-align: center;
  671. margin-top: 30px;
  672. }
  673. .flex_center {
  674. display: flex;
  675. align-items: center;
  676. justify-content: center;
  677. }
  678. .diy_container {
  679. margin-top: 15px;
  680. }
  681. .diy_container .rank_container .rank_title {
  682. width: 100%;
  683. text-align: center;
  684. margin-top: 30px;
  685. }
  686. .diy_container .rank_container .rank_title_img {
  687. width: 352px;
  688. height: 32px;
  689. }
  690. .diy_container .rank_container .rank_main {
  691. margin-top: 20px;
  692. text-align: center;
  693. }
  694. .diy_container .rank_container .rank_main .rank_card {
  695. width: 105px;
  696. height: 50px;
  697. }
  698. .diy_container .rank_container .rank_main .rank_arrow {
  699. width: 67px;
  700. height: 55px;
  701. position: relative;
  702. top: -28px;
  703. left: 0px;
  704. z-index: 2;
  705. }
  706. .diy_container .rank_container .rank_main .rank_main_list {
  707. width: 322px;
  708. height: 486px;
  709. background: #1B1746;
  710. border: 2px solid #585399;
  711. border-radius: 9px;
  712. margin: 0px auto;
  713. position: relative;
  714. bottom: 60px;
  715. z-index: 1;
  716. overflow-y: scroll;
  717. }
  718. .diy_container .rank_container .rank_main .rank_main_list .my_score {
  719. background-image: url("https://img.shuimuai.com/my_score_bg@2x.png");
  720. background-size: 100% 100%;
  721. background-position: center;
  722. width: 306px;
  723. height: 48px;
  724. margin: 10px auto;
  725. }
  726. .diy_container .rank_container .rank_main .rank_main_list .my_score .right_title {
  727. width: 55px;
  728. height: 10px;
  729. font-size: 9px;
  730. font-family: zihun59hao-chuangcuhei;
  731. font-weight: 400;
  732. text-decoration: underline;
  733. color: #FFBA00;
  734. line-height: 12px;
  735. position: relative;
  736. left: 110px;
  737. bottom: 5px;
  738. }
  739. .diy_container .rank_container .rank_main .rank_main_list .my_score .rank_item {
  740. display: flex;
  741. }
  742. .diy_container .rank_container .rank_main .rank_main_list .my_score .rank_item .rank_num {
  743. font-size: 10px;
  744. font-family: Microsoft YaHei;
  745. font-weight: bold;
  746. color: #FFC600;
  747. line-height: 14px;
  748. }
  749. .diy_container .rank_container .rank_main .rank_main_list .my_score .rank_item .rank_username {
  750. font-size: 10px;
  751. font-family: Microsoft YaHei;
  752. font-weight: bold;
  753. color: #E2E0FF;
  754. line-height: 14px;
  755. }
  756. .diy_container .rank_container .rank_main .rank_main_list .my_score .rank_item .avatar {
  757. width: 24px;
  758. height: 25px;
  759. }
  760. .diy_container .rank_container .rank_main .rank_main_list .my_score .rank_item .rank_score {
  761. font-size: 10px;
  762. font-family: Microsoft YaHei;
  763. font-weight: bold;
  764. color: #E2E0FF;
  765. line-height: 14px;
  766. }
  767. .diy_container .rank_list_title {
  768. font-size: 10px;
  769. font-family: Microsoft YaHei;
  770. font-weight: 400;
  771. color: #8F8AC3;
  772. line-height: 14px;
  773. }
  774. .diy_container .rank_list .avatar {
  775. width: 24px;
  776. height: 25px;
  777. }
  778. .diy_container .rank_list .rank_item {
  779. /*display: flex;*/
  780. height: 30px;
  781. margin: 10px 0px;
  782. /*align-items: center;*/
  783. }
  784. .diy_container .rank_list .rank_item .rank_num {
  785. font-size: 10px;
  786. font-family: Microsoft YaHei;
  787. font-weight: bold;
  788. color: #fff;
  789. line-height: 14px;
  790. }
  791. .diy_container .rank_list .rank_item .yellow {
  792. color: #FFC600;
  793. }
  794. .diy_container .rank_list .rank_item .avatar {
  795. width: 24px;
  796. height: 25px;
  797. }
  798. .diy_container .rank_list .rank_item .rank_username {
  799. font-size: 10px;
  800. font-family: Microsoft YaHei;
  801. font-weight: bold;
  802. color: #E2E0FF;
  803. line-height: 14px;
  804. }
  805. .diy_container .rank_list .rank_item .rank_score {
  806. font-size: 10px;
  807. font-family: Microsoft YaHei;
  808. font-weight: bold;
  809. color: #E2E0FF;
  810. line-height: 14px;
  811. }
  812. .diy_container .rank_list .under_line {
  813. width: 281px;
  814. height: 1px;
  815. background: #474186;
  816. margin: 0px auto;
  817. }
  818. .diy_container .rank_list .gold_award_container {
  819. margin: 10px auto;
  820. background-image: url("https://img.shuimuai.com/gold_award_bg.png");
  821. background-size: 100% 100%;
  822. background-position: center;
  823. width: 299px;
  824. height: 44px;
  825. }
  826. .diy_container .rank_list .first_award_bg {
  827. margin: auto;
  828. background-image: url("https://img.shuimuai.com/first_award_bg.png");
  829. background-size: 100%;
  830. background-position: center;
  831. width: 299px;
  832. height: 44px;
  833. }
  834. .diy_container .rank_list .first_award_container {
  835. margin: 10px auto;
  836. }
  837. .diy_container .rank_list .second_award_bg {
  838. margin: auto;
  839. background-image: url("https://img.shuimuai.com/second_award_bg.png");
  840. background-size: 100%;
  841. background-position: center;
  842. width: 299px;
  843. height: 44px;
  844. }
  845. .diy_container .rank_list .second_award_container {
  846. margin: 10px auto;
  847. }
  848. .diy_container .rank_list_ext_title {
  849. font-size: 10px;
  850. font-family: Microsoft YaHei;
  851. font-weight: 400;
  852. color: #8F8AC3;
  853. line-height: 14px;
  854. }
  855. .diy_container .rank_list_ext .avatar {
  856. width: 24px;
  857. height: 25px;
  858. }
  859. .diy_container .rank_list_ext .rank_num {
  860. font-size: 10px;
  861. font-family: Microsoft YaHei;
  862. font-weight: bold;
  863. color: #fff;
  864. line-height: 14px;
  865. }
  866. .diy_container .rank_list_ext .yellow {
  867. color: #FFC600;
  868. }
  869. .diy_container .rank_list_ext .avatar {
  870. width: 24px;
  871. height: 25px;
  872. }
  873. .diy_container .rank_list_ext .rank_username {
  874. font-size: 10px;
  875. font-family: Microsoft YaHei;
  876. font-weight: bold;
  877. color: #392121;
  878. line-height: 14px;
  879. }
  880. .diy_container .rank_list_ext .slogen {
  881. font-size: 7px;
  882. font-family: Microsoft YaHei;
  883. font-weight: bold;
  884. color: #392121;
  885. line-height: 14px;
  886. }
  887. .diy_container .rank_list_ext .rank_score {
  888. font-size: 10px;
  889. font-family: Microsoft YaHei;
  890. font-weight: bold;
  891. color: #392121;
  892. line-height: 14px;
  893. }
  894. .diy_container .rank_list_ext .under_line {
  895. width: 281px;
  896. height: 1px;
  897. background: #474186;
  898. margin: 0px auto;
  899. }
  900. .diy_container .rank_list_ext .gold_award_container {
  901. margin: 10px auto;
  902. background-image: url("https://img.shuimuai.com/h5/gold.png");
  903. background-size: 100% 100%;
  904. background-position: center;
  905. width: 299px;
  906. height: 44px;
  907. }
  908. .diy_container .rank_list_ext .first_award_bg {
  909. margin: auto;
  910. background-image: url("https://img.shuimuai.com/first_award_bg.png");
  911. background-size: 100%;
  912. background-position: center;
  913. width: 299px;
  914. height: 44px;
  915. }
  916. .diy_container .rank_list_ext .first_award_container {
  917. margin: 10px auto;
  918. }
  919. .diy_container .rank_list_ext .second_award_bg {
  920. margin: auto;
  921. background-image: url("https://img.shuimuai.com/second_award_bg.png");
  922. background-size: 100%;
  923. background-position: center;
  924. width: 299px;
  925. height: 44px;
  926. }
  927. .diy_container .rank_list_ext .second_award_container {
  928. margin: 10px auto;
  929. }
  930. .diy_container .rank_list_ext .second_text {
  931. color: #C1A98E;
  932. }
  933. .diy_container .wonderful_container {
  934. width: 100%;
  935. text-align: center;
  936. margin-top: 30px;
  937. }
  938. .diy_container .wonderful_container_img {
  939. width: 366px;
  940. height: 365px;
  941. }
  942. .diy_container .qrcode_container {
  943. width: 100%;
  944. text-align: center;
  945. margin-top: 30px;
  946. padding-bottom: 80px;
  947. }
  948. .diy_container .qrcode_container_img {
  949. width: 352px;
  950. height: 194px;
  951. }
  952. .not_show {
  953. visibility: hidden;
  954. }
  955. #info {
  956. position: relative;
  957. bottom: 155px;
  958. }
  959. .rank_header {
  960. padding: 0px 25px;
  961. }
  962. .last_sort{
  963. padding: 10px 0px;
  964. }
  965. .last_sort_ext{
  966. padding: 10px;
  967. }
  968. /*# sourceMappingURL=diy.css.map */
  969. </style>