index.vue 23 KB

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