challenge-jingcai.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <template>
  2. <view class="challenge-detail-container">
  3. <view class="bgc">
  4. <view class="challenage-info-top">
  5. <!-- <view
  6. class="challenage-status"
  7. :class="(Date.now() < item.guessing_endtime) ? item.status ? item.status == 1 ? 'ing' : '' : 'no' : ''"
  8. >
  9. {{
  10. (Date.now() &lt; item.guessing_endtime) ?
  11. !item.status ?
  12. '未应战' : item.status == 1 ?
  13. '对战中' : '已结束'
  14. : '已结束'
  15. }}
  16. </view> -->
  17. <view class="challenage-status" :class="item.challenge_status == 1 ? 'ing' : ''" v-if="active == 1">{{ item.challenge_status == 1 ? '对战中' : '已结束' }}</view>
  18. <view class="user-avatar">
  19. <view class="avatar-bg"><view class="avatar-img" :style="{ backgroundImage: get_challenge_user.avatar ? `url(${get_challenge_user.avatar})` : '' }" /></view>
  20. <view class="user-name">{{ get_challenge_user.nickname | getName }}</view>
  21. <view class="winTip" v-if="item.challenge_status == 2" :class="item.challenge_status == 2 && get_challenge_user.id == all.support_id? 'winTip_red' : 'winTip_gray'">
  22. {{ item.challenge_status == 2 && get_challenge_user.id == all.support_id ? '胜利' : '失败' }}
  23. </view>
  24. </view>
  25. <!-- 竞猜时间阶段 对战中 -->
  26. <!-- <template v-if="Date.now() < item.guessing_endtime && item.status === 1"> -->
  27. <template>
  28. <view class="challenage-info">
  29. <view class="info-title">
  30. <!-- <text class="text">“</text>
  31. <text class="text spec">{{ get_challenge_user.nickname | getName }}</text>
  32. <text class="text">”向你发起的挑战</text> -->
  33. </view>
  34. <view class="info-num">
  35. <view class="num">{{ Math.floor(all.day / 10) }}</view>
  36. <view class="num">{{ all.day % 10 }}</view>
  37. </view>
  38. <view class="info-time">{{ all.time }}</view>
  39. <!-- <view class="info-btn">{{ item | getAction(self) }}</view> -->
  40. </view>
  41. </template>
  42. <view class="user-avatar">
  43. <view class="avatar-bg accept"><view class="avatar-img" :style="{ backgroundImage: get_accept_user.avatar ? `url(${get_accept_user.avatar})` : '' }" /></view>
  44. <view class="user-name">{{ get_accept_user.nickname | getName }}</view>
  45. <view class="winTip" v-if="item.challenge_status == 2" :class="item.challenge_status == 2 && get_accept_user.id == all.support_id? 'winTip_red' : 'winTip_gray'">
  46. {{ item.challenge_status == 2 && get_accept_user.id == all.support_id ? '胜利' : '失败' }}
  47. </view>
  48. </view>
  49. </view>
  50. <view v-if="Date.now() > challenge_endtime && item.challenge_status !== 1" class="bottom">
  51. <image :src="all.support_id == item.challenge_success_id
  52. ?'../../static/new_challenge/success.jpg'
  53. :'../../static/new_challenge/fail.jpg'"
  54. mode="widthFix"
  55. style="width: 380rpx;"
  56. />
  57. <view :class="all.support_id == item.challenge_success_id ? 'tiaozhan success':'tiaozhan fail'">
  58. {{
  59. all.support_id == item.challenge_success_id
  60. ? word
  61. :'很抱歉,猜错了,下次继续努力!'
  62. }}
  63. </view>
  64. </view>
  65. <view v-else class="tiaozhan">
  66. 已竞猜
  67. </view>
  68. </view>
  69. <view class="challenage-info-num">
  70. <view class="title">从争霸赛开始到现在各自总学分</view>
  71. <view class="info-nums-box">
  72. <view class="num">{{ item.challenge_total }}</view>
  73. <view class="num accept">{{ item.accept_total }}</view>
  74. </view>
  75. <view class="info-nums-user">
  76. <view class="user">{{ get_challenge_user.nickname | getName }}</view>
  77. <view class="user">{{ get_accept_user.nickname | getName }}</view>
  78. </view>
  79. </view>
  80. <view class="challenage-info-result">
  81. <!-- <view class="result-title">
  82. <template v-if="n">
  83. <text class="text">距离竞猜结束还有:</text>
  84. <view class="count-time">{{ countDown }}</view>
  85. </template>
  86. <template v-else>
  87. <text class="text">竞猜已结束</text>
  88. </template>
  89. </view> -->
  90. <view class="support">
  91. <view class="red">
  92. 支持率 {{ item.challenge_num + item.accept_num ? Math.floor((item.challenge_num / (item.challenge_num + item.accept_num)) * 100) : 0 }}%
  93. </view>
  94. <view class="blue">
  95. {{ item.challenge_num + item.accept_num ? Math.ceil((item.accept_num / (item.challenge_num + item.accept_num)) * 100) : 0 }}% 支持率
  96. </view>
  97. </view>
  98. <view class="result-progress">
  99. <view
  100. class="progress-item challenge"
  101. :style="{ width: 30 + (item.challenge_num + item.accept_num ? Math.floor((item.challenge_num / (item.challenge_num + item.accept_num)) * 100) : 50) + '%' }"
  102. >
  103. <view class="user-avatar" :style="{ backgroundImage: get_challenge_user.avatar ? `url(${get_challenge_user.avatar})` : '' }" />
  104. <view class="progress-value">
  105. <!-- {{ item.challenge_num + item.accept_num ? Math.floor((item.challenge_num / (item.challenge_num + item.accept_num)) * 100) : 0 }}% -->
  106. </view>
  107. <view class="progress-vs">vs</view>
  108. </view>
  109. <!-- selected -->
  110. <view
  111. class="progress-item accept"
  112. :style="{ width: 30 + (item.challenge_num + item.accept_num ? Math.floor((item.accept_num / (item.challenge_num + item.accept_num)) * 100) : 50) + '%' }"
  113. >
  114. <view class="progress-value">
  115. <!-- {{ item.challenge_num + item.accept_num ? Math.floor((item.accept_num / (item.challenge_num + item.accept_num)) * 100) : 0 }}% -->
  116. </view>
  117. <view class="user-avatar" :style="{ backgroundImage: get_accept_user.avatar ? `url(${get_accept_user.avatar})` : '' }" />
  118. </view>
  119. </view>
  120. <view class="result-btn">
  121. <view
  122. class="btn"
  123. :class="all.support_id == item.challenge_id ? '' : 'time-end'"
  124. >
  125. <template>
  126. {{ all.support_id == item.challenge_id ? '已' : '' }} 预测ta赢
  127. </template>
  128. <!-- <template v-else>预测ta赢</template> -->
  129. </view>
  130. <view
  131. class="btn accept"
  132. :class="all.support_id == item.accept_id ? '' : 'time-end'"
  133. >
  134. <template>
  135. {{ all.support_id == item.accept_id ? '已' : '' }} 预测ta赢
  136. </template>
  137. <!-- <template v-else>预测ta赢</template> -->
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import { api_challengeGuessing } from '@/api.js'
  145. export default {
  146. data() {
  147. return {
  148. pageTitle: '挑战详情',
  149. item: {},
  150. self: true,
  151. n: 0,
  152. all: {},
  153. word: '',
  154. challenge_endtime: '',
  155. get_challenge_user: {},
  156. get_accept_user: {},
  157. active: '' //判断是从我的挑战,围观竞猜 挑战排行那个tab进来的
  158. }
  159. },
  160. computed: {
  161. countDown() {
  162. const add0 = num => (num < 10 ? '0' + num : num);
  163. const sec = Math.floor((this.item.guessing_endtime - this.n) / 1000);
  164. const day = Math.floor(sec / 86400);
  165. const hour = Math.floor((sec % 86400) / 3600);
  166. const minite = Math.floor((sec - 86400 * day - hour * 3600) / 60);
  167. const second = Math.floor(sec - 86400 * day - hour * 3600 - minite * 60);
  168. return `${add0(hour + +day * 24)}时${add0(minite)}分${add0(second)}秒`;
  169. }
  170. },
  171. filters: {
  172. getAction(item, self) {
  173. if (self) {
  174. if (item.status == 1) {
  175. return 'PK中';
  176. } else {
  177. return '已结束';
  178. }
  179. } else {
  180. if (item.guessing) {
  181. return '已围观';
  182. } else {
  183. if (Date.now() > item.guessing_endtime) {
  184. return '竞猜结束';
  185. } else {
  186. return '围观竞猜';
  187. }
  188. }
  189. }
  190. return '';
  191. },
  192. getLong(long, index) {
  193. return (Number(long) > 9 ? String(long) : '0' + long)[index];
  194. },
  195. getName(name, len) {
  196. if (name) {
  197. return name.length > 5 ? name.slice(0, 5) + '...' : name;
  198. }
  199. return '';
  200. }
  201. },
  202. beforeDestroy() {
  203. clearInterval(this.timer)
  204. },
  205. onLoad({ from, active }) {
  206. this.all = uni.temp1
  207. console.log(this.all)
  208. this.word = '恭喜您猜对了,奖励' + this.all.guessing_inte + '奖学金!'
  209. this.item = uni.temp1.get_challenge
  210. this.get_challenge_user = uni.temp1.get_challenge.get_challenge_user
  211. this.get_accept_user = uni.temp1.get_challenge.get_accept_user
  212. this.active = active; //判断是从我的挑战,围观竞猜 挑战排行那个tab进来的
  213. console.log(this.item, 'item')
  214. var timeDate = this.item.challenge_endtime
  215. var Time = new Date(timeDate)
  216. var timestemp = Time.getTime()
  217. this.challenge_endtime = timestemp
  218. var jingcai = this.item.guessing_endtime
  219. var timert = new Date(jingcai).getTime()
  220. if (Date.now() <= timert) {
  221. this.n = Date.now();
  222. this.timer = setInterval(() => {
  223. if (this.n + 1000 > timert) {
  224. clearInterval(this.timer)
  225. this.n = 0;
  226. return;
  227. }
  228. this.n = Date.now();
  229. }, 1000);
  230. }
  231. if (!from) {
  232. this.self = false;
  233. }
  234. },
  235. methods: {
  236. action(nickname, userid, type) {
  237. if (!this.item.guessing) {
  238. if (this.n != 0) {
  239. if (this.item.accept_id != this.$store.state.userServerInfo.id && this.item.challenge_id != this.$store.state.userServerInfo.id) {
  240. uni.showModal({ title: '提示', content: `确定要预测${nickname}赢?` }).then(([, { confirm }]) => {
  241. if (confirm) {
  242. uni.loading();
  243. this.$ajax.get(`${api_challengeGuessing}?challenge_id=${this.item.id}&user_id=${userid}&type=${type}`).then(([, { data: { code, msg } }]) => {
  244. uni.hideLoading();
  245. if (code == 200) {
  246. uni.fromUpload = true;
  247. this.item.guessing = true;
  248. this.item.support_id = userid;
  249. uni.$emit('Guesst', this.item.id);
  250. } else {
  251. uni.showToast({
  252. title: msg,
  253. duration: 2000,
  254. icon:"none"
  255. })
  256. }
  257. })
  258. }
  259. });
  260. } else {
  261. uni.showToast({
  262. title: '当前竞猜不可参与',
  263. duration: 2000,
  264. icon:'none'
  265. })
  266. // this.$refs.toast.hover('当前竞猜不可参与', 2345, 'center');
  267. }
  268. } else {
  269. uni.showToast({
  270. title: '竞猜已结束',
  271. duration: 2000,
  272. icon:'none'
  273. })
  274. // this.$refs.toast.hover('竞猜已结束', 2345, 'center');
  275. }
  276. } else {
  277. uni.showToast({
  278. title: '您已参与此次竞猜',
  279. duration: 2000,
  280. icon:'none'
  281. })
  282. // this.$refs.toast.hover('您已参与此次竞猜', 2345, 'center')
  283. }
  284. }
  285. }
  286. };
  287. </script>
  288. <style lang="scss">
  289. page {
  290. display: flex;
  291. flex-direction: column;
  292. .winTip {
  293. font-size: 28rpx;
  294. font-weight: bold;
  295. text-align: center;
  296. &_red {
  297. color: #EA4A41;
  298. }
  299. &_gray {
  300. color: #999999;
  301. }
  302. }
  303. .support {
  304. display: flex;
  305. justify-content: space-between;
  306. align-items: center;
  307. font-size: 28rpx;
  308. font-weight: bold;
  309. line-height: 50rpx;
  310. .red {
  311. color: #EA4A41;
  312. }
  313. .blue {
  314. color: #1DB0FE;
  315. }
  316. }
  317. .challenge-detail-container {
  318. flex: 1;
  319. background-color: #f9f9fb;
  320. padding:30rpx;
  321. box-sizing: border-box;
  322. .bgc {
  323. background-color: #ffffff;
  324. border-radius: 24rpx;
  325. margin-bottom: 30rpx;
  326. padding:60rpx 30rpx 30rpx 30rpx;
  327. position: relative;
  328. .bottom {
  329. margin-top: 20rpx;
  330. display: flex;
  331. align-items: center;
  332. flex-direction: column;
  333. // .info-btn {
  334. // width: 630rpx;
  335. // height: 96rpx;
  336. // border-radius: 56rpx;
  337. // text-align: center;
  338. // line-height: 96rpx;
  339. // background-color: #f8f8f8;
  340. // color: #333333;
  341. // font-size: 32rpx;
  342. // font-weight: bold;
  343. // }
  344. }
  345. .tiaozhan {
  346. width: 630rpx;
  347. height: 96rpx;
  348. border-radius: 56rpx;
  349. text-align: center;
  350. line-height: 96rpx;
  351. background-color: #f8f8f8;
  352. font-size: 32rpx;
  353. font-weight: bold;
  354. margin-top: 30rpx;
  355. }
  356. .success{
  357. color: #FF0E00;
  358. }
  359. .fail {
  360. color: #333;
  361. }
  362. }
  363. .challenage-info-top {
  364. width: 100%;
  365. display: flex;
  366. align-items: flex-end;
  367. justify-content: space-between;
  368. .challenage-status {
  369. position: absolute;
  370. top: 0;
  371. right: 0;
  372. height: 56rpx;
  373. padding: 0 30rpx;
  374. line-height: 56rpx;
  375. color: #999999;
  376. font-size: 28rpx;
  377. border-bottom-left-radius: 56rpx;
  378. background-color: #eeeeee;
  379. font-weight: bolder;
  380. &.ing {
  381. background: linear-gradient(113deg, #ffc401 0%, #fe0000 100%) !important;
  382. color: #ffffff !important;
  383. }
  384. &.no {
  385. background: linear-gradient(180deg, #13aefe 0%, #7bc9fb 100%) !important;
  386. color: #ffffff !important;
  387. }
  388. }
  389. .user-avatar {
  390. width: 140rpx;
  391. overflow: hidden;
  392. .avatar-bg {
  393. width: 140rpx;
  394. height: 124rpx;
  395. background: linear-gradient(180deg, #f97c55 0%, #f44545 100%);
  396. &.accept {
  397. background: linear-gradient(180deg, #13aefe 0%, #7bc9fb 100%);
  398. }
  399. clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%);
  400. display: flex;
  401. align-items: center;
  402. justify-content: center;
  403. margin-bottom: 6rpx;
  404. .avatar-img {
  405. width: calc(100% - 20rpx);
  406. height: calc(100% - 12rpx);
  407. clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%);
  408. background-position: center;
  409. background-repeat: no-repeat;
  410. background-size: 100%;
  411. background-color: transparent;
  412. }
  413. }
  414. .user-name {
  415. width: 140rpx;
  416. height: 40rpx;
  417. color: #333333;
  418. font-size: 28rpx;
  419. line-height: 40rpx;
  420. text-align: center;
  421. overflow: hidden;
  422. text-overflow: ellipsis;
  423. }
  424. }
  425. .challenage-info {
  426. flex: 1;
  427. overflow: hidden;
  428. display: flex;
  429. flex-direction: column;
  430. align-items: center;
  431. .info-title {
  432. width: 100%;
  433. text-align: center;
  434. margin-top: 40rpx;
  435. margin-bottom: 20rpx;
  436. .text {
  437. color: #333333;
  438. font-size: 28rpx;
  439. line-height: 40rpx;
  440. &.spec {
  441. color: #ea4a41 !important;
  442. }
  443. }
  444. }
  445. .info-num {
  446. display: flex;
  447. align-items: center;
  448. justify-content: center;
  449. margin-bottom: 10rpx;
  450. .num {
  451. height: 86rpx;
  452. padding: 0 14rpx;
  453. background: linear-gradient(180deg, #f97c55 0%, #f44545 100%);
  454. color: #ffffff;
  455. font-size: 48rpx;
  456. line-height: 86rpx;
  457. border-radius: 8rpx;
  458. &:nth-of-type(1) {
  459. margin-right: 10rpx;
  460. }
  461. }
  462. }
  463. .info-time {
  464. color: #333333;
  465. font-size: 28rpx;
  466. line-height: 40rpx;
  467. margin-bottom: 20rpx;
  468. text-align: center;
  469. }
  470. .info-btn {
  471. width: 192rpx;
  472. height: 68rpx;
  473. border-radius: 68rpx;
  474. text-align: center;
  475. line-height: 68rpx;
  476. background-color: #f8f8f8;
  477. color: #333333;
  478. font-size: 28rpx;
  479. }
  480. &.info2 {
  481. .challenage-vs {
  482. display: flex;
  483. align-items: center;
  484. justify-content: space-between;
  485. margin-bottom: 28rpx;
  486. .info-score {
  487. min-width: 104rpx;
  488. box-sizing: border-box;
  489. text-align: center;
  490. height: 62rpx;
  491. border-radius: 8rpx;
  492. line-height: 62rpx;
  493. padding: 0 8rpx;
  494. background: linear-gradient(92deg, #f97c55 0%, #f44545 100%);
  495. color: #ffffff;
  496. font-size: 36rpx;
  497. &.accept {
  498. background: linear-gradient(268deg, #13aefe 0%, #7bc9fb 100%) !important;
  499. }
  500. }
  501. .vs-img {
  502. width: 100rpx;
  503. height: 100rpx;
  504. background: url('https://api.jiuweiyun.cn/public/uploads/weapp/icon/vs.png') center no-repeat;
  505. background-size: 100%;
  506. margin: 0 10rpx;
  507. }
  508. }
  509. }
  510. }
  511. }
  512. }
  513. .challenage-info-num {
  514. width: 100%;
  515. padding: 30rpx;
  516. background-color: #ffffff;
  517. box-sizing: border-box;
  518. border-radius: 24rpx;
  519. margin-bottom: 30rpx;
  520. .title {
  521. color: #333333;
  522. font-size: 28rpx;
  523. line-height: 40rpx;
  524. margin-bottom: 30rpx;
  525. text-align: center;
  526. }
  527. .info-nums-box {
  528. width: 100%;
  529. display: flex;
  530. align-items: center;
  531. justify-content: space-between;
  532. margin-bottom: 14rpx;
  533. .num {
  534. flex: 1;
  535. margin-right: 15rpx;
  536. height: 88rpx;
  537. line-height: 88rpx;
  538. border-radius: 16rpx;
  539. text-align: center;
  540. color: #ea4a41;
  541. font-size: 48rpx;
  542. background-color: #fff4f3;
  543. &.accept {
  544. background: #f1f9ff !important;
  545. color: #1db0fe !important;
  546. margin-left: 15rpx;
  547. margin-right: 0 !important;
  548. }
  549. }
  550. }
  551. .info-nums-user {
  552. width: 100%;
  553. display: flex;
  554. align-items: center;
  555. justify-content: space-between;
  556. .user {
  557. flex: 1;
  558. margin-right: 15rpx;
  559. text-align: center;
  560. color: #333333;
  561. font-size: 28rpx;
  562. &.accept {
  563. margin-left: 15rpx;
  564. margin-right: 0 !important;
  565. }
  566. }
  567. }
  568. }
  569. .challenage-info-result {
  570. width: 100%;
  571. padding: 30rpx;
  572. box-sizing: border-box;
  573. background-color: #ffffff;
  574. .result-title {
  575. width: 100%;
  576. padding: 0 38rpx;
  577. box-sizing: border-box;
  578. display: flex;
  579. align-items: center;
  580. justify-content: flex-start;
  581. margin-bottom: 30rpx;
  582. .text {
  583. color: #333333;
  584. font-size: 28rpx;
  585. line-height: 40rpx;
  586. }
  587. .count-time {
  588. width: 204rpx;
  589. height: 64rpx;
  590. border-radius: 6rpx;
  591. background-color: #353235;
  592. color: #ffffff;
  593. font-size: 40rpx;
  594. line-height: 64rpx;
  595. text-align: center;
  596. }
  597. }
  598. .result-progress {
  599. width: 100%;
  600. margin-bottom: 30rpx;
  601. display: flex;
  602. align-items: stretch;
  603. justify-content: space-between;
  604. .progress-item {
  605. height: 88rpx;
  606. padding: 0 12rpx;
  607. box-sizing: border-box;
  608. display: flex;
  609. align-items: center;
  610. position: relative;
  611. &.challenge {
  612. background: linear-gradient(90deg, #f97c55 0%, #ff513d 54%, #f44545 100%);
  613. border-top-left-radius: 88rpx;
  614. border-bottom-left-radius: 88rpx;
  615. border-bottom-right-radius: 150rpx;
  616. border-top-right-radius: 20rpx;
  617. width: 70%;
  618. .user-avatar {
  619. margin-right: 38rpx !important;
  620. }
  621. .progress-vs {
  622. width: 60rpx;
  623. height: 60rpx;
  624. border-radius: 50%;
  625. background: linear-gradient(180deg, #ffe4ab 0%, #ffba40 100%);
  626. border: 4rpx solid #ffffff;
  627. box-sizing: border-box;
  628. display: flex;
  629. align-items: center;
  630. justify-content: center;
  631. color: #ffffff;
  632. font-size: 30rpx;
  633. font-weight: bold;
  634. text-align: center;
  635. line-height: 52rpx;
  636. position: absolute;
  637. top: 50%;
  638. right: -30rpx;
  639. transform: translateY(-50%);
  640. z-index: 99;
  641. }
  642. }
  643. &.accept {
  644. background: linear-gradient(77deg, #13aefe 0%, #1bb0fe 53%, #7bc9fb 100%);
  645. border-top-right-radius: 88rpx;
  646. border-bottom-right-radius: 88rpx;
  647. border-top-left-radius: 150rpx;
  648. border-bottom-left-radius: 20rpx;
  649. width: 30%;
  650. justify-content: flex-end;
  651. .user-avatar {
  652. margin-left: 10rpx !important;
  653. }
  654. }
  655. .user-avatar {
  656. width: 64rpx;
  657. height: 64rpx;
  658. border-radius: 50%;
  659. box-sizing: border-box;
  660. border: 1px solid #ffffff;
  661. background-position: center;
  662. background-repeat: no-repeat;
  663. background-size: 100%;
  664. }
  665. .progress-value {
  666. color: #ffffff;
  667. font-size: 36rpx;
  668. }
  669. &.selected {
  670. background: #f8f8f8 !important;
  671. .progress-value {
  672. color: #999999 !important;
  673. }
  674. }
  675. }
  676. }
  677. .result-btn {
  678. width: 100%;
  679. display: flex;
  680. align-items: center;
  681. justify-content: space-between;
  682. padding: 0 22rpx;
  683. box-sizing: border-box;
  684. .btn {
  685. width: 228rpx;
  686. height: 68rpx;
  687. line-height: 68rpx;
  688. border-radius: 68rpx;
  689. text-align: center;
  690. box-sizing: border-box;
  691. border: 1px solid #ea4a41;
  692. background-color: #ffffff;
  693. color: #ea4a41;
  694. font-size: 28rpx;
  695. &.accept {
  696. border-color: #1db0fe !important;
  697. color: #1db0fe !important;
  698. }
  699. &.time-end {
  700. border-color: #f8f8f8 !important;
  701. background-color: #f8f8f8 !important;
  702. color: #999999 !important;
  703. }
  704. }
  705. }
  706. }
  707. }
  708. </style>