index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957
  1. <template>
  2. <view class="active-detail">
  3. <!-- 自定义导航栏 -->
  4. <u-navbar :leftText='title' fixed safeAreaInsetTop :placeholder='true' :bgColor="bgColor" @leftClick='back'>
  5. </u-navbar>
  6. <!-- 背景图 -->
  7. <view class="active-detail-img">
  8. <image style="width: 100%; height: 720rpx;" :src="activeDeatil.banners" mode=""></image>
  9. </view>
  10. <!--投票数 -->
  11. <view class="vote">
  12. <view class="vote-detail">
  13. <!-- 改版 -->
  14. <view class="vote-detail-top-main1">
  15. <view>
  16. 距活动结束
  17. <text v-if="countdownh>0">{{countdownd}}</text>
  18. <text>{{countdownh}}</text>
  19. <text>{{countdownm}}</text>
  20. <text>{{countdowns}}</text>
  21. </view>
  22. </view>
  23. <view class="vote-detail-btn">
  24. <view class="vote-detail-btn-item">
  25. <text class="vote-detail-btn-item-num">{{activeDeatil.project_num}}</text>
  26. <text class="vote-detail-btn-item-text">投票项</text>
  27. </view>
  28. <view style="width: 2rpx;height: 52rpx;background-color: #ccc;"></view>
  29. <view class="vote-detail-btn-item">
  30. <text class="vote-detail-btn-item-num">{{activeDeatil.vote_num}}</text>
  31. <text class="vote-detail-btn-item-text">累计投票</text>
  32. </view>
  33. <view style="width: 2rpx;height: 52rpx;background-color: #ccc;"></view>
  34. <view class="vote-detail-btn-item">
  35. <text class="vote-detail-btn-item-num">{{activeDeatil.view_num}}</text>
  36. <text class="vote-detail-btn-item-text">访问量</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 分段栏 -->
  42. <view style="width: 100%;height: 16rpx;background-color:#F0F0F0 ;"></view>
  43. <!-- 排行榜 -->
  44. <view class="rank">
  45. <view class="tab_nav">
  46. <view class="navTitle" v-for="(item,index) in rankList" :key="index">
  47. <view class="navTitle-item">
  48. <view :class="{'active':isActive === index}" @click="checked(index)">
  49. {{item.title}}
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="rank-search" v-if="isActive==0">
  55. <u-input placeholder="输入IHG酒店名称或编号" border='none' v-model="search" @input='searchText'>
  56. <template slot="suffix" style='margin-right:40rpx;'>
  57. <u-image :showLoading="true" :showError='true' src="/static/icon/search.png" width="40rpx"
  58. height="32rpx"></u-image>
  59. </template>
  60. </u-input>
  61. </view>
  62. <!-- 地区分类 -->
  63. <view class="tab_area" v-if="isActive==0">
  64. <view class="areaTitle" v-for="(item,index) in areaList" :key="index"
  65. @click="checkedArea(index,item.id)">
  66. <view class="areaTitle-item">
  67. <view :class="{'active-area':isActiveArea === index}">
  68. {{item.name}}
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 查询结果 -->
  75. <view class="List" v-if="isActive==0">
  76. <view class="ListItem" v-for="(item,index) in voteList" :key="index" @click="goVoteDetail(item.id)">
  77. <image :src="item.cover_img" style="width: 640rpx;height:420rpx;border-radius: 12rpx; "></image>
  78. <view class="kudosicon" :style="{backgroundImage:'url('+hotelImageUrl+')'}">
  79. <text
  80. style="width: 36rpx;height: 52rpx; display: flex;align-items: center;justify-content: center;color: #FFF;font-size: 24rpx;font-weight: bold; ">{{item.sort}}</text>
  81. </view>
  82. <view class="nav">
  83. <view class="events">
  84. <text>{{item.project_name}}</text>
  85. </view>
  86. <view class="voteStatus">
  87. <text v-if="item.ticket_num>=0">{{item.ticket_num + item.virtual_ticket_num }}票</text>
  88. </view>
  89. </view>
  90. <view class="foot" @click.stop="goVoteDetail(item.id)">
  91. <text>{{activeDeatil.vote_name}}</text>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="rank-detail" :style="{backgroundImage:'url('+backImageUrl+')'}" v-if="isActive==1">
  96. <view class="rank-detail-rank" v-if="rankItemList[0].logo">
  97. <image style="width: 92rpx; height: 92rpx; border-radius: 50%; " :src="rankItemList[0].logo" mode="">
  98. </image>
  99. <text class="rank-detail-rank-text">{{rankItemList[0].project_name}}</text>
  100. <view class="rank-detail-rank-data">
  101. <image style="width: 26rpx;height: 24rpx; margin-right: 10rpx; " src="/static/icon/votes01.png"
  102. mode=""></image>
  103. <text>{{rankItemList[0].ticket_num + rankItemList[0].virtual_ticket_num }}</text>
  104. </view>
  105. </view>
  106. <view class="rank-detail-rank rank-detail-rankS" v-if="rankItemList[1].logo">
  107. <image style="width: 92rpx; height: 92rpx; border-radius: 50%; " :src="rankItemList[1].logo" mode="">
  108. </image>
  109. <text class="rank-detail-rank-text">{{rankItemList[1].project_name}}</text>
  110. <view class="rank-detail-rank-data">
  111. <image style="width: 26rpx;height: 24rpx; margin-right: 10rpx; " src="/static/icon/votes01.png"
  112. mode=""></image>
  113. <text>{{rankItemList[1].ticket_num + rankItemList[1].virtual_ticket_num }}</text>
  114. </view>
  115. </view>
  116. <view class="rank-detail-rank rank-detail-rankT" v-if="rankItemList[2].logo">
  117. <image style="width: 92rpx; height: 92rpx; border-radius: 50%; " :src="rankItemList[2].logo" mode="">
  118. </image>
  119. <text class="rank-detail-rank-text">{{rankItemList[2].project_name}}</text>
  120. <view class="rank-detail-rank-data">
  121. <image style="width: 26rpx;height: 24rpx; margin-right: 10rpx; " src="/static/icon/votes01.png"
  122. mode=""></image>
  123. <text>{{rankItemList[2].ticket_num + rankItemList[2].virtual_ticket_num }}</text>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 具体排名(4-10) -->
  128. <view class="rank-other" v-if="isActive==1">
  129. <view class="rank-other-item" v-for="(item,index) in rankItemList" v-if="index>2" :key="index">
  130. <view class="rank-other-item-left">
  131. <text>{{index+1}}</text>
  132. </view>
  133. <view class="rank-other-item-main">
  134. <image
  135. style="width: 112rpx;height: 112rpx;margin-left: 24rpx; margin-right: 16rpx;border-radius: 50%; "
  136. :src="item.logo" mode=""></image>
  137. <text class="rank-other-item-main-text">{{item.project_name}}</text>
  138. </view>
  139. <view class="rank-other-item-right">
  140. <image style="width: 26rpx;height: 24rpx; margin-right: 8rpx; " src="/static/icon/votes02.png"
  141. mode=""></image>
  142. <text>{{item.ticket_num + item.virtual_ticket_num }}</text>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="introduce" v-if="isActive==2">
  147. <view class="introduce-top">
  148. <text class="introduce-top-rule1"></text>
  149. <text style="margin-right: 8rpx; margin-left: 12rpx; ">活动规则</text>
  150. <text class="introduce-top-rule2"></text>
  151. </view>
  152. <view class="introduce-main">
  153. <view v-html="activeDeatil.rule"></view>
  154. </view>
  155. <!-- 分割线 -->
  156. <view
  157. style="width: 94%; height: 2rpx; background-color:rgba(240, 240, 240, .7);margin: 64rpx auto 80rpx; ">
  158. </view>
  159. <view class=" introduce-top">
  160. <text class="introduce-top-rule1"></text>
  161. <text style="margin-right: 8rpx; margin-left: 12rpx; ">活动介绍</text>
  162. <text class="introduce-top-rule2"></text>
  163. </view>
  164. <view class="introduce-btn-text">
  165. <view v-html="activeDeatil.details"></view>
  166. </view>
  167. <!-- 分割线 -->
  168. <view
  169. style="width: 94%; height: 2rpx; background-color:rgba(240, 240, 240, .7);margin: 64rpx auto 80rpx; ">
  170. </view>
  171. <view class=" introduce-top">
  172. <text class="introduce-top-rule1"></text>
  173. <text style="margin-right: 8rpx; margin-left: 12rpx; ">活动声明</text>
  174. <text class="introduce-top-rule2"></text>
  175. </view>
  176. <!-- 声明 -->
  177. <view class="introduce-btn">
  178. <view v-html="activeDeatil.statement"></view>
  179. </view>
  180. </view>
  181. <!-- 触底 -->
  182. <view class="home-bottom" v-if="isActive==0">
  183. <uni-load-more :status="status" color="#CCCCCC" :content-text="contentText" />
  184. </view>
  185. </view>
  186. </template>
  187. <script>
  188. import util from './../../../utils/util.js'
  189. export default {
  190. data() {
  191. return {
  192. //自定义导航栏
  193. bgColor: '#fff',
  194. title: '',
  195. //排行榜
  196. rankItemList: [],
  197. //活动结束倒计时
  198. endTime: '',
  199. countdownd:"",
  200. countdownh: '',
  201. countdownm: '',
  202. countdowns: '',
  203. timer: null, //重复执行
  204. // 搜索
  205. search: '',
  206. // 活动id
  207. id: '',
  208. // 活动详情
  209. activeDeatil: '',
  210. // 投票列表
  211. voteList: [],
  212. //酒店排名背景图片
  213. hotelImageUrl: require('../../../static/icon/tip01.png'),
  214. //排行榜背景图片
  215. backImageUrl: 'http://t9.9026.com/imgs/rank01.png',
  216. rankList: [{
  217. title: '投票'
  218. },
  219. {
  220. title: '排行榜'
  221. }, {
  222. title: '活动介绍'
  223. }
  224. ],
  225. areaList: [],
  226. //激活指定table菜单
  227. isActive: 0,
  228. isActiveArea: 0,
  229. status: 'noMore',
  230. contentText: {
  231. contentdown: '查看更多',
  232. contentrefresh: '加载中',
  233. contentnomore: '—— 已经到底啦 ——'
  234. },
  235. }
  236. },
  237. onShow() {
  238. this.admin = this.$store.getters.userInfo
  239. console.log(this.admin);
  240. },
  241. onLoad(o) {
  242. this.id = o.id
  243. this.getList(o.id)
  244. this.getActiveDetail(o.id)
  245. this.getCategoryList(o.id)
  246. },
  247. onUnload(){
  248. clearInterval(this.timer)
  249. },
  250. methods: {
  251. //返回上一级
  252. back() {
  253. uni.navigateBack({
  254. fail:()=>{
  255. uni.redirectTo({
  256. url: "/pages/index/index"
  257. })
  258. }
  259. })
  260. },
  261. showtime(time) {
  262. let nowtime = new Date(), //获取当前时间
  263. // endtime = new Date("2021/12/10"); //定义结束时间
  264. endtime = new Date(time); //定义结束时间
  265. // let lefttime = endtime.getTime() - nowtime.getTime(), //距离结束时间的毫秒数
  266. // leftd = Math.floor(lefttime / (1000 * 60 * 60 * 24)), //计算天数
  267. // lefth = Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * 24) < 10 ? "0" + Math.floor((lefttime /
  268. // (1000 * 60 * 60) % 24) + leftd * 24) : Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd *
  269. // 24), //计算小时数
  270. // leftm = Math.floor(lefttime / (1000 * 60) % 60) < 10 ? "0" + Math.floor(lefttime / (1000 * 60) % 60) :
  271. // Math.floor(lefttime / (1000 * 60) % 60), //计算分钟数
  272. // lefts = Math.floor(lefttime / 1000 % 60) < 10 ? "0" + Math.floor(lefttime / 1000 % 60) : Math.floor(
  273. // lefttime / 1000 % 60); //计算秒数
  274. const lefttime = (endtime.getTime() - nowtime.getTime()) / 1000;
  275. const leftd = Math.floor(lefttime / (60 * 60 * 24));
  276. const lefth = Math.floor((lefttime - leftd * 86400) / (60 * 60));
  277. const leftm = Math.floor((lefttime - leftd * 86400 - lefth * 3600) / 60);
  278. const lefts = Math.floor(lefttime - leftd * 86400 - lefth * 3600 - leftm*60);
  279. this.countdownd = leftd
  280. this.countdownh = lefth //返回倒计时的字符串
  281. this.countdownm = leftm //返回倒计时的字符串
  282. this.countdowns = lefts //返回倒计时的字符串
  283. // 倒计时结束时,显示00:00:00
  284. if (lefttime < 0) {
  285. this.countdownh = this.countdownm = this.countdowns = "00"
  286. }
  287. },
  288. // 获取活动项目列表
  289. getList(id) {
  290. this.$api.active.getActiveProjectList({
  291. activity_id: id,
  292. page: 0,
  293. }).then(res => {
  294. console.log(res, "活动项目列表")
  295. if (res.code == 0) {
  296. this.voteList = JSON.parse(JSON.stringify(res.data.data))
  297. this.rankItemList = res.data.data.sort((a, b) => {
  298. return (b.ticket_num + b.virtual_ticket_num) - (a.ticket_num + a
  299. .virtual_ticket_num)
  300. })
  301. console.log(this.rankItemList, '--->rankItemList');
  302. }
  303. })
  304. },
  305. // 获取活动详情
  306. getActiveDetail(id) {
  307. this.$api.active.getActiveDetail({
  308. activity_id: id
  309. }).then(res => {
  310. console.log(res, "活动详情")
  311. if (res.code == 0) {
  312. this.title = res.data.title
  313. this.activeDeatil = res.data
  314. // this.endTime = res.data.end_time
  315. this.endTime = (()=>{
  316. const endT = res.data?.end_time ? res.data.end_time : "";
  317. return endT.replace(/-/g, "/");
  318. })()
  319. this.timer = setInterval(() => {
  320. this.showtime(this.endTime)
  321. }, 100);
  322. }
  323. })
  324. },
  325. // 获取活动投票项分类
  326. getCategoryList(id) {
  327. this.$api.category.getCategoryList({
  328. page: 1,
  329. type: 3,
  330. activity_id: id
  331. }).then(res => {
  332. console.log(res, "活动投票项分类")
  333. if (res.code == 0) {
  334. this.areaList = res.data.data
  335. console.log(this.areaList, '---->this.areaList');
  336. this.areaList.unshift({
  337. name: '全部'
  338. })
  339. }
  340. })
  341. },
  342. //获取地区的投票项
  343. getAreaList(category_id) {
  344. this.$api.active.getActiveProjectList({
  345. activity_id: this.id,
  346. category_id,
  347. page: 0,
  348. }).then(res => {
  349. if (res.code == 0) {
  350. this.voteList = res.data.data
  351. }
  352. })
  353. },
  354. //购票详情
  355. goVoteDetail(id) {
  356. if (this.admin == undefined) {
  357. uni.navigateTo({
  358. url: '/pages/login/login'
  359. })
  360. } else {
  361. uni.navigateTo({
  362. url: '/pages/index/vote-detail/index?id=' + id
  363. })
  364. }
  365. },
  366. // 搜索防抖
  367. searchText: util.debounce(function() {
  368. this.goSearch()
  369. }, 1000),
  370. // 搜索
  371. goSearch() {
  372. this.$api.active.getActiveProjectList({
  373. activity_id: this.id,
  374. page: 0,
  375. keyword: this.search
  376. }).then(res => {
  377. console.log(res, "搜索活动项目列表")
  378. if (res.code == 0) {
  379. this.voteList = res.data.data
  380. //回到地区分类全部
  381. this.isActiveArea = 0
  382. }
  383. })
  384. },
  385. //投票/排行榜/活动介绍切换
  386. checked(index) {
  387. this.isActive = index
  388. },
  389. //地区分类切换
  390. checkedArea(index, id) {
  391. this.isActiveArea = index
  392. if (index == 0) {
  393. this.getList(this.id)
  394. } else {
  395. this.getAreaList(id)
  396. }
  397. },
  398. }
  399. }
  400. </script>
  401. <style lang="scss" scoped>
  402. $pageColor:#F9F9F9;
  403. $bgColor:#FFFFFF;
  404. @mixin flexlayout {
  405. display: flex;
  406. align-items: center;
  407. justify-content: center;
  408. }
  409. .active-detail {
  410. height: 100%;
  411. background: #F9F9F9;
  412. }
  413. .home-bottom {
  414. background-color: #fff;
  415. padding-bottom: 84rpx;
  416. }
  417. .rank-search {
  418. margin-top: 80rpx;
  419. ::v-deep .u-input {
  420. width: 690rpx !important;
  421. height: 68rpx !important;
  422. background: #F1F1F1;
  423. border-radius: 74rpx;
  424. }
  425. ::v-deep .u-input__content__field-wrapper {
  426. padding-left: 36rpx;
  427. }
  428. ::v-deep .u-input__content__field-wrapper__field {
  429. color: #999999 !important;
  430. font-size: 28rpx !important;
  431. }
  432. }
  433. .introduce {
  434. width: 100%;
  435. background-color: #fff;
  436. position: relative;
  437. top: -176rpx;
  438. padding-bottom: 50rpx;
  439. position: relative;
  440. .introduce-top {
  441. height: 32rpx;
  442. display: flex;
  443. align-items: center;
  444. justify-content: center;
  445. font-size: 32rpx;
  446. font-weight: bold;
  447. letter-spacing: 2rpx;
  448. .introduce-top-rule1 {
  449. width: 56rpx;
  450. height: 4rpx;
  451. background: linear-gradient(90deg, #FFFFFF 0%, #D9A94D 100%);
  452. }
  453. .introduce-top-rule2 {
  454. width: 56rpx;
  455. height: 4rpx;
  456. background: linear-gradient(-90deg, #FFFFFF 0%, #D9A94D 100%);
  457. }
  458. }
  459. .introduce-main {
  460. margin-top: 46rpx;
  461. padding: 0 30rpx;
  462. font-size: 28rpx;
  463. font-weight: bold;
  464. color: #333;
  465. .introduce-main-start {
  466. margin-bottom: 24rpx;
  467. }
  468. .introduce-main-rule {
  469. display: flex;
  470. align-items: flex-start;
  471. justify-content: flex-start;
  472. .introduce-main-rule-left {
  473. display: flex;
  474. flex-direction: column;
  475. align-items: flex-start;
  476. justify-content: flex-start;
  477. margin-left: 75rpx;
  478. }
  479. }
  480. }
  481. .introduce-btn-text {
  482. padding: 0 30rpx;
  483. margin-top: 40rpx;
  484. // text-indent: 2em;
  485. font-size: 28rpx;
  486. color: #333;
  487. font-weight: bold;
  488. line-height: 56rpx;
  489. }
  490. .introduce-btn {
  491. margin-top: 40rpx;
  492. padding: 0 30rpx;
  493. padding-bottom: 80rpx;
  494. width: 100%;
  495. display: flex;
  496. font-size: 28rpx;
  497. color: #333;
  498. font-weight: bold;
  499. }
  500. }
  501. //地区切换
  502. .tab_area {
  503. margin-top: 48rpx;
  504. width: 100%;
  505. display: flex;
  506. justify-content: flex-start;
  507. align-items: center;
  508. font-family: PingFang-SC-Heavy, PingFang-SC;
  509. overflow-x: scroll;
  510. }
  511. .area_nav .areaTitle {
  512. width: 140rpx;
  513. height: 52rpx;
  514. background-color: #F1F1F1;
  515. border-radius: 26rpx;
  516. flex: none;
  517. display: flex;
  518. justify-content: center;
  519. align-items: center;
  520. }
  521. .areaTitle-item {
  522. width: 140rpx;
  523. height: 52rpx;
  524. background-color: #F1F1F1;
  525. border-radius: 26rpx;
  526. font-size: 24rpx;
  527. color: #999;
  528. display: flex;
  529. justify-content: center;
  530. align-items: center;
  531. margin-right: 16rpx;
  532. }
  533. .active-area {
  534. width: 100%;
  535. height: 52rpx;
  536. border-radius: 26rpx;
  537. background-color: #FF6200;
  538. color: #fff;
  539. display: flex;
  540. justify-content: center;
  541. align-items: center;
  542. }
  543. .rank {
  544. height: 340rpx;
  545. background-color: #fff;
  546. padding: 40rpx 30rpx 0;
  547. //菜单切换
  548. .tab_nav {
  549. width: 100%;
  550. display: flex;
  551. justify-content: space-around;
  552. align-items: center;
  553. font-family: PingFang-SC-Heavy, PingFang-SC;
  554. }
  555. .tab_nav .navTitle {
  556. width: 30%;
  557. flex: none;
  558. font-size: 32rpx;
  559. color: #666;
  560. position: relative;
  561. display: flex;
  562. justify-content: center;
  563. align-items: center;
  564. }
  565. .navTitle-item {
  566. height: 40rpx;
  567. }
  568. .active {
  569. color: #333333;
  570. font-weight: bold;
  571. font-size: 40rpx;
  572. &::after {
  573. display: inline-block;
  574. content: '';
  575. width: 156rpx;
  576. height: 24rpx;
  577. background: linear-gradient(180deg, rgba(249, 231, 219, 0) 0%, #F3C063 100%);
  578. border-radius: 12rpx;
  579. position: absolute;
  580. bottom: -22rpx;
  581. left: 25rpx;
  582. }
  583. }
  584. }
  585. .vote {
  586. height: 322rpx;
  587. background-color: #fcfcfd;
  588. .vote-detail {
  589. position: relative;
  590. top: -40rpx;
  591. margin: 0 auto;
  592. width: 690rpx;
  593. height: 310rpx;
  594. background: #FFFFFF;
  595. box-shadow: 0px 20rpx 40rpx 0px rgba(220, 222, 229, 0.4);
  596. border-radius: 16rpx;
  597. padding: 40rpx 26rpx 0;
  598. .vote-detail-top {
  599. display: flex;
  600. align-items: center;
  601. justify-content: space-between;
  602. .vote-detail-top-main {
  603. flex: 1;
  604. margin-left: 20rpx;
  605. color: #333;
  606. font-size: 28rpx;
  607. display: flex;
  608. align-items: center;
  609. justify-content: flex-start;
  610. .time {
  611. display: flex;
  612. align-items: center;
  613. justify-content: flex-start;
  614. }
  615. }
  616. }
  617. .vote-detail-btn {
  618. margin-top: 75rpx;
  619. padding: 0 38rpx;
  620. display: flex;
  621. align-items: center;
  622. justify-content: space-between;
  623. .vote-detail-btn-item {
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. justify-content: space-between;
  628. font-size: 28rpx;
  629. color: #333;
  630. .vote-detail-btn-item-num {
  631. font-size: 44rpx;
  632. font-weight: bold;
  633. }
  634. .vote-detail-btn-item-text {
  635. margin-top: 20rpx;
  636. }
  637. }
  638. }
  639. }
  640. }
  641. .active-detail-img {
  642. width: 100%;
  643. height: 720rpx;
  644. }
  645. .rank-detail {
  646. width: 100%;
  647. height: 592rpx;
  648. position: relative;
  649. top: -176rpx;
  650. background-repeat: no-repeat;
  651. background-position: center;
  652. background-size: cover;
  653. .rank-detail-rank {
  654. position: relative;
  655. top: 80rpx;
  656. display: flex;
  657. flex-direction: column;
  658. align-items: center;
  659. justify-content: center;
  660. .rank-detail-rank-text {
  661. width: 182rpx;
  662. height: 76rpx;
  663. display: flex;
  664. align-items: center;
  665. justify-content: center;
  666. text-align: center;
  667. font-size: 26rpx;
  668. color: #333;
  669. margin: 16rpx 0 52rpx;
  670. }
  671. .rank-detail-rank-data {
  672. width: 136rpx;
  673. height: 56rpx;
  674. background: #141414;
  675. border-radius: 8rpx;
  676. display: flex;
  677. align-items: center;
  678. justify-content: center;
  679. font-size: 24rpx;
  680. font-weight: bold;
  681. color: #fff;
  682. }
  683. }
  684. .rank-detail-rankS {
  685. position: relative;
  686. top: -155rpx;
  687. left: -230rpx;
  688. }
  689. .rank-detail-rankT {
  690. position: relative;
  691. top: -390rpx;
  692. left: 230rpx;
  693. }
  694. }
  695. .rank-other {
  696. position: relative;
  697. top: -204rpx;
  698. width: 100%;
  699. padding: 48rpx 30rpx 80rpx;
  700. background-color: #fff;
  701. border-radius: 32rpx 32rpx 0px 0px;
  702. .rank-other-item {
  703. margin-bottom: 24rpx;
  704. padding: 0 24rpx;
  705. height: 176rpx;
  706. background: #FFFFFF;
  707. box-shadow: 0px 4rpx 24rpx -10rpx rgba(101, 95, 90, 0.3);
  708. border-radius: 16rpx;
  709. display: flex;
  710. align-items: center;
  711. justify-content: space-between;
  712. .rank-other-item-left {
  713. width: 48rpx;
  714. height: 48rpx;
  715. border: 3rpx solid #E6E6E6;
  716. border-radius: 50%;
  717. font-size: 24rpx;
  718. color: #858494;
  719. display: flex;
  720. align-items: center;
  721. justify-content: center;
  722. }
  723. .rank-other-item-main {
  724. flex: 1;
  725. display: flex;
  726. align-items: center;
  727. justify-content: flex-start;
  728. .rank-other-item-main-text {
  729. width: 282rpx;
  730. height: 80rpx;
  731. font-size: 28rpx;
  732. color: #333;
  733. line-height: 40rpx;
  734. margin-top: 40rpx;
  735. }
  736. }
  737. .rank-other-item-right {
  738. width: 132rpx;
  739. height: 48rpx;
  740. background: rgba(255, 98, 0, 0.22);
  741. border-radius: 24rpx;
  742. display: flex;
  743. align-items: center;
  744. justify-content: center;
  745. font-size: 24rpx;
  746. color: #FF6200;
  747. font-weight: bold;
  748. }
  749. }
  750. }
  751. .List {
  752. padding: 0 30rpx;
  753. padding-top: 20rpx;
  754. padding-bottom: 32rpx;
  755. .ListItem {
  756. position: relative;
  757. margin-bottom: 40rpx;
  758. width: 100%;
  759. height: 665rpx;
  760. background: $bgColor;
  761. box-shadow: 0rpx 12rpx 40rpx 0rpx rgba(220, 222, 229, 0.4);
  762. border-radius: 24rpx;
  763. padding: 20rpx 26rpx 26rpx 24rpx;
  764. .kudosicon {
  765. background-repeat: no-repeat;
  766. background-size: 36rpx 52rpx;
  767. position: absolute;
  768. top: 20rpx;
  769. left: 60rpx;
  770. @include flexlayout() image {
  771. width: 32rpx;
  772. height: 28rpx;
  773. }
  774. }
  775. .nav {
  776. display: flex;
  777. align-items: center;
  778. justify-content: space-between;
  779. .events {
  780. text {
  781. margin-top: 10rpx;
  782. font-size: 30rpx;
  783. font-family: PingFang-SC-Bold, PingFang-SC;
  784. font-weight: bold;
  785. color: #333333;
  786. }
  787. }
  788. .voteStatus {
  789. width: 126rpx;
  790. height: 48rpx;
  791. background: #FFFFFF;
  792. border-radius: 6rpx;
  793. border: 2rpx solid #A18353;
  794. font-size: 30rpx;
  795. color: #A18353;
  796. margin-top: 20rpx;
  797. display: flex;
  798. align-items: center;
  799. justify-content: center;
  800. }
  801. }
  802. .foot {
  803. margin-top: 24rpx;
  804. width: 100%;
  805. height: 84rpx;
  806. background: linear-gradient(338deg, #FF6200 0%, #FF9D4F 100%);
  807. border-radius: 12rpx;
  808. display: flex;
  809. align-items: center;
  810. justify-content: center;
  811. font-weight: bold;
  812. color: #fff;
  813. }
  814. }
  815. }
  816. .vote-detail-top-main1{
  817. display: flex;
  818. align-items: center;
  819. justify-content: space-around;
  820. height:22px;
  821. line-height: 22px;
  822. &::before,&::after{
  823. content: " ";
  824. height: 0.5px;
  825. width: 80rpx;
  826. background-color: rgba(0,0,0,0.2);
  827. }
  828. >view{
  829. width: 250px;
  830. font-size: 30rpx;
  831. display: flex;
  832. align-items: center;
  833. justify-content: center;
  834. text{
  835. width: 22px;
  836. margin-left: 15px;
  837. height:inherit;
  838. line-height: inherit;
  839. display: flex;
  840. justify-content: center;
  841. align-items: center;
  842. border-radius: 3px;
  843. background-color: #000;
  844. color: #fff;
  845. &::before{
  846. content: ":";
  847. width: 0px;
  848. line-height: inherit;
  849. background-color: transparent;
  850. color: rgba(0,0,0,0.7);
  851. transform: translateX(-11px);
  852. }
  853. }
  854. }
  855. }
  856. </style>