index.vue 24 KB

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