index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  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" :class="{'active-area':isActiveArea === index}">
  69. <view>
  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. uni.$on('refreshVoteNum',()=>{
  249. this.getList(o.id)
  250. })
  251. },
  252. onUnload(){
  253. clearInterval(this.timer)
  254. },
  255. methods: {
  256. //返回上一级
  257. back() {
  258. uni.navigateBack({
  259. fail:()=>{
  260. uni.switchTab({
  261. url: "/pages/index/index"
  262. })
  263. }
  264. })
  265. },
  266. showtime(time) {
  267. let nowtime = new Date(), //获取当前时间
  268. // endtime = new Date("2021/12/10"); //定义结束时间
  269. endtime = new Date(time); //定义结束时间
  270. // let lefttime = endtime.getTime() - nowtime.getTime(), //距离结束时间的毫秒数
  271. // leftd = Math.floor(lefttime / (1000 * 60 * 60 * 24)), //计算天数
  272. // lefth = Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * 24) < 10 ? "0" + Math.floor((lefttime /
  273. // (1000 * 60 * 60) % 24) + leftd * 24) : Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd *
  274. // 24), //计算小时数
  275. // leftm = Math.floor(lefttime / (1000 * 60) % 60) < 10 ? "0" + Math.floor(lefttime / (1000 * 60) % 60) :
  276. // Math.floor(lefttime / (1000 * 60) % 60), //计算分钟数
  277. // lefts = Math.floor(lefttime / 1000 % 60) < 10 ? "0" + Math.floor(lefttime / 1000 % 60) : Math.floor(
  278. // lefttime / 1000 % 60); //计算秒数
  279. const lefttime = (endtime.getTime() - nowtime.getTime()) / 1000;
  280. const leftd = Math.floor(lefttime / (60 * 60 * 24))<10?"0"+Math.floor(lefttime / (60 * 60 * 24)):Math.floor(lefttime / (60 * 60 * 24));
  281. 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));
  282. 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);
  283. 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);
  284. this.countdownd = leftd
  285. this.countdownh = lefth //返回倒计时的字符串
  286. this.countdownm = leftm //返回倒计时的字符串
  287. this.countdowns = lefts //返回倒计时的字符串
  288. // 倒计时结束时,显示00:00:00
  289. if (lefttime < 0) {
  290. this.countdownd = this.countdownh = this.countdownm = this.countdowns = "00"
  291. }
  292. },
  293. // 获取活动项目列表
  294. getList(id) {
  295. this.$api.active.getActiveProjectList({
  296. activity_id: id,
  297. page: 0,
  298. }).then(res => {
  299. console.log(res, "活动项目列表")
  300. if (res.code == 0) {
  301. this.voteList = JSON.parse(JSON.stringify(res.data.data))
  302. this.rankItemList = res.data.data.sort((a, b) => {
  303. return (b.ticket_num + b.virtual_ticket_num) - (a.ticket_num + a
  304. .virtual_ticket_num)
  305. })
  306. console.log(this.rankItemList, '--->rankItemList');
  307. }
  308. })
  309. },
  310. // 获取活动详情
  311. getActiveDetail(id) {
  312. this.$api.active.getActiveDetail({
  313. activity_id: id
  314. }).then(res => {
  315. console.log(res, "活动详情")
  316. if (res.code == 0) {
  317. this.title = res.data.title
  318. this.activeDeatil = res.data
  319. if(res.data.activity_status == 1){
  320. this.start_time = (()=>{
  321. const endT = res.data?.start_time ? res.data.start_time : "";
  322. return endT.replace(/-/g, "/");
  323. })()
  324. this.timer = setInterval(() => {
  325. this.showtime(this.start_time)
  326. }, 100);
  327. }else{
  328. this.endTime = (()=>{
  329. const endT = res.data?.end_time ? res.data.end_time : "";
  330. return endT.replace(/-/g, "/");
  331. })()
  332. this.timer = setInterval(() => {
  333. this.showtime(this.endTime)
  334. }, 100);
  335. }
  336. }
  337. })
  338. },
  339. // 获取活动投票项分类
  340. getCategoryList(id) {
  341. this.$api.category.getCategoryList({
  342. page: 1,
  343. type: 3,
  344. activity_id: id
  345. }).then(res => {
  346. console.log(res, "活动投票项分类")
  347. if (res.code == 0) {
  348. this.areaList = res.data.data
  349. console.log(this.areaList, '---->this.areaList');
  350. this.areaList.unshift({
  351. name: '全部'
  352. })
  353. }
  354. })
  355. },
  356. //获取地区的投票项
  357. getAreaList(category_id) {
  358. this.$api.active.getActiveProjectList({
  359. activity_id: this.id,
  360. category_id,
  361. page: 0,
  362. }).then(res => {
  363. if (res.code == 0) {
  364. this.voteList = res.data.data
  365. }
  366. })
  367. },
  368. //购票详情
  369. goVoteDetail(id) {
  370. if (this.admin == undefined) {
  371. uni.navigateTo({
  372. url: '/pages/login/login'
  373. })
  374. } else {
  375. uni.navigateTo({
  376. url: '/pages/index/vote-detail/index?id=' + id
  377. })
  378. }
  379. },
  380. // 搜索防抖
  381. searchText: util.debounce(function() {
  382. this.goSearch()
  383. }, 1000),
  384. // 搜索
  385. goSearch() {
  386. this.$api.active.getActiveProjectList({
  387. activity_id: this.id,
  388. page: 0,
  389. keyword: this.search
  390. }).then(res => {
  391. console.log(res, "搜索活动项目列表")
  392. if (res.code == 0) {
  393. this.voteList = res.data.data
  394. //回到地区分类全部
  395. this.isActiveArea = 0
  396. }
  397. })
  398. },
  399. //投票/排行榜/活动介绍切换
  400. checked(index) {
  401. this.isActive = index
  402. },
  403. //地区分类切换
  404. checkedArea(index, id) {
  405. this.isActiveArea = index
  406. if (index == 0) {
  407. this.getList(this.id)
  408. } else {
  409. this.getAreaList(id)
  410. }
  411. },
  412. }
  413. }
  414. </script>
  415. <style lang="scss" scoped>
  416. $pageColor:#F9F9F9;
  417. $bgColor:#FFFFFF;
  418. @mixin flexlayout {
  419. display: flex;
  420. align-items: center;
  421. justify-content: center;
  422. }
  423. .active-detail {
  424. height: 100%;
  425. background: #F9F9F9;
  426. }
  427. .home-bottom {
  428. background-color: #fff;
  429. padding-bottom: 84rpx;
  430. }
  431. .rank-search {
  432. margin-top: 66rpx;
  433. ::v-deep .u-input {
  434. width: 690rpx !important;
  435. height: 68rpx !important;
  436. background: #F1F1F1;
  437. border-radius: 74rpx;
  438. }
  439. ::v-deep .u-input__content__field-wrapper {
  440. padding-left: 36rpx;
  441. }
  442. ::v-deep .u-input__content__field-wrapper__field {
  443. color: #999999 !important;
  444. font-size: 28rpx !important;
  445. }
  446. }
  447. .introduce {
  448. width: 100%;
  449. background-color: #fff;
  450. position: relative;
  451. top: -176rpx;
  452. padding-bottom: 50rpx;
  453. position: relative;
  454. .introduce-top {
  455. height: 32rpx;
  456. display: flex;
  457. align-items: center;
  458. justify-content: center;
  459. font-size: 32rpx;
  460. font-weight: bold;
  461. letter-spacing: 2rpx;
  462. .introduce-top-rule1 {
  463. width: 56rpx;
  464. height: 4rpx;
  465. background: linear-gradient(90deg, #FFFFFF 0%, #D9A94D 100%);
  466. }
  467. .introduce-top-rule2 {
  468. width: 56rpx;
  469. height: 4rpx;
  470. background: linear-gradient(-90deg, #FFFFFF 0%, #D9A94D 100%);
  471. }
  472. }
  473. .introduce-main {
  474. margin-top: 46rpx;
  475. padding: 0 30rpx;
  476. font-size: 28rpx;
  477. font-weight: bold;
  478. color: #333;
  479. .introduce-main-start {
  480. margin-bottom: 24rpx;
  481. }
  482. .introduce-main-rule {
  483. display: flex;
  484. align-items: flex-start;
  485. justify-content: flex-start;
  486. .introduce-main-rule-left {
  487. display: flex;
  488. flex-direction: column;
  489. align-items: flex-start;
  490. justify-content: flex-start;
  491. margin-left: 75rpx;
  492. }
  493. }
  494. }
  495. .introduce-btn-text {
  496. padding: 0 30rpx;
  497. margin-top: 40rpx;
  498. // text-indent: 2em;
  499. font-size: 28rpx;
  500. color: #333;
  501. font-weight: bold;
  502. line-height: 56rpx;
  503. }
  504. .introduce-btn {
  505. margin-top: 40rpx;
  506. padding: 0 30rpx;
  507. padding-bottom: 80rpx;
  508. width: 100%;
  509. display: flex;
  510. font-size: 28rpx;
  511. color: #333;
  512. font-weight: bold;
  513. }
  514. }
  515. //地区切换
  516. .tab_area {
  517. margin-top: 48rpx;
  518. width: 100%;
  519. display: flex;
  520. justify-content: flex-start;
  521. align-items: center;
  522. font-family: PingFang-SC-Heavy, PingFang-SC;
  523. overflow-x: scroll;
  524. }
  525. .area_nav .areaTitle {
  526. // width: 140rpx;
  527. height: 52rpx;
  528. background-color: #F1F1F1;
  529. border-radius: 26rpx;
  530. flex: none;
  531. display: flex;
  532. justify-content: center;
  533. align-items: center;
  534. padding: 0 46rpx;
  535. }
  536. .areaTitle-item {
  537. // width: 140rpx;
  538. height: 52rpx;
  539. background-color: #F1F1F1;
  540. border-radius: 26rpx;
  541. font-size: 24rpx;
  542. color: #999;
  543. display: flex;
  544. justify-content: center;
  545. align-items: center;
  546. margin-right: 16rpx;
  547. padding: 0 46rpx;
  548. }
  549. .active-area {
  550. // width: 100%;
  551. height: 52rpx;
  552. // border-radius: 26rpx;
  553. background-color: #FF6200;
  554. color: #fff;
  555. display: flex;
  556. justify-content: center;
  557. align-items: center;
  558. // padding: 0 46rpx;
  559. }
  560. .rank {
  561. height: 340rpx;
  562. background-color: #fff;
  563. padding: 40rpx 30rpx 0;
  564. //菜单切换
  565. .tab_nav {
  566. width: 100%;
  567. display: flex;
  568. justify-content: space-around;
  569. align-items: center;
  570. font-family: PingFang-SC-Heavy, PingFang-SC;
  571. }
  572. .tab_nav .navTitle {
  573. width: 30%;
  574. flex: none;
  575. font-size: 32rpx;
  576. color: #666;
  577. position: relative;
  578. display: flex;
  579. justify-content: center;
  580. align-items: center;
  581. }
  582. .navTitle-item {
  583. height: 40rpx;
  584. }
  585. .active {
  586. color: #333333;
  587. font-weight: bold;
  588. font-size: 40rpx;
  589. &::after {
  590. display: inline-block;
  591. content: '';
  592. width: 156rpx;
  593. height: 24rpx;
  594. background: linear-gradient(180deg, rgba(249, 231, 219, 0) 0%, #F3C063 100%);
  595. border-radius: 12rpx;
  596. position: absolute;
  597. bottom: -20rpx;
  598. left: 25rpx;
  599. }
  600. }
  601. }
  602. .vote {
  603. height: 322rpx;
  604. background-color: #fcfcfd;
  605. .vote-detail {
  606. position: relative;
  607. top: -40rpx;
  608. margin: 0 auto;
  609. width: 690rpx;
  610. height: 310rpx;
  611. background: #FFFFFF;
  612. box-shadow: 0px 20rpx 40rpx 0px rgba(220, 222, 229, 0.4);
  613. border-radius: 16rpx;
  614. padding: 40rpx 30rpx 0;
  615. .vote-detail-top {
  616. display: flex;
  617. align-items: center;
  618. justify-content: space-between;
  619. .vote-detail-top-main {
  620. flex: 1;
  621. margin-left: 20rpx;
  622. color: #333;
  623. font-size: 28rpx;
  624. display: flex;
  625. align-items: center;
  626. justify-content: flex-start;
  627. .time {
  628. display: flex;
  629. align-items: center;
  630. justify-content: flex-start;
  631. }
  632. }
  633. }
  634. .vote-detail-btn {
  635. margin-top: 75rpx;
  636. padding: 0 38rpx;
  637. display: flex;
  638. align-items: center;
  639. justify-content: space-between;
  640. .vote-detail-btn-item {
  641. display: flex;
  642. flex-direction: column;
  643. align-items: center;
  644. justify-content: space-between;
  645. font-size: 28rpx;
  646. color: #333;
  647. .vote-detail-btn-item-num {
  648. font-size: 44rpx;
  649. font-weight: bold;
  650. }
  651. .vote-detail-btn-item-text {
  652. margin-top: 20rpx;
  653. }
  654. }
  655. }
  656. }
  657. }
  658. .active-detail-img {
  659. width: 100%;
  660. height: 720rpx;
  661. }
  662. .rank-detail {
  663. width: 100%;
  664. height: 592rpx;
  665. position: relative;
  666. top: -176rpx;
  667. background-repeat: no-repeat;
  668. background-position: center;
  669. background-size: cover;
  670. .rank-detail-rank {
  671. position: relative;
  672. top: 80rpx;
  673. display: flex;
  674. flex-direction: column;
  675. align-items: center;
  676. justify-content: center;
  677. .rank-detail-rank-text {
  678. width: 182rpx;
  679. height: 76rpx;
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. text-align: center;
  684. font-size: 26rpx;
  685. color: #333;
  686. margin: 16rpx 0 52rpx;
  687. }
  688. .rank-detail-rank-data {
  689. width: 136rpx;
  690. height: 56rpx;
  691. background: #141414;
  692. border-radius: 8rpx;
  693. display: flex;
  694. align-items: center;
  695. justify-content: center;
  696. font-size: 24rpx;
  697. font-weight: bold;
  698. color: #fff;
  699. }
  700. }
  701. .rank-detail-rankS {
  702. position: relative;
  703. top: -155rpx;
  704. left: -230rpx;
  705. }
  706. .rank-detail-rankT {
  707. position: relative;
  708. top: -390rpx;
  709. left: 230rpx;
  710. }
  711. }
  712. .rank-other {
  713. position: relative;
  714. top: -204rpx;
  715. width: 100%;
  716. padding: 48rpx 30rpx 80rpx;
  717. background-color: #fff;
  718. border-radius: 32rpx 32rpx 0px 0px;
  719. .rank-other-item {
  720. margin-bottom: 24rpx;
  721. padding: 0 24rpx;
  722. height: 176rpx;
  723. background: #FFFFFF;
  724. box-shadow: 0px 4rpx 24rpx -10rpx rgba(101, 95, 90, 0.3);
  725. border-radius: 16rpx;
  726. display: flex;
  727. align-items: center;
  728. justify-content: space-between;
  729. .rank-other-item-left {
  730. width: 48rpx;
  731. height: 48rpx;
  732. border: 3rpx solid #E6E6E6;
  733. border-radius: 50%;
  734. font-size: 24rpx;
  735. color: #858494;
  736. display: flex;
  737. align-items: center;
  738. justify-content: center;
  739. }
  740. .rank-other-item-main {
  741. flex: 1;
  742. display: flex;
  743. align-items: center;
  744. justify-content: flex-start;
  745. .rank-other-item-main-text {
  746. width: 282rpx;
  747. height: 80rpx;
  748. font-size: 28rpx;
  749. color: #333;
  750. line-height: 40rpx;
  751. margin-top: 40rpx;
  752. }
  753. }
  754. .rank-other-item-right {
  755. width: 132rpx;
  756. height: 48rpx;
  757. background: rgba(255, 98, 0, 0.22);
  758. border-radius: 24rpx;
  759. display: flex;
  760. align-items: center;
  761. justify-content: center;
  762. font-size: 24rpx;
  763. color: #FF6200;
  764. font-weight: bold;
  765. }
  766. }
  767. }
  768. .List {
  769. padding: 0 30rpx;
  770. padding-top: 20rpx;
  771. padding-bottom: 32rpx;
  772. .ListItem {
  773. position: relative;
  774. margin-bottom: 40rpx;
  775. width: 100%;
  776. height: 665rpx;
  777. background: $bgColor;
  778. box-shadow: 0rpx 12rpx 40rpx 0rpx rgba(220, 222, 229, 0.4);
  779. border-radius: 24rpx;
  780. padding: 20rpx 26rpx 26rpx 24rpx;
  781. .kudosicon {
  782. background-repeat: no-repeat;
  783. background-size: 36rpx 52rpx;
  784. position: absolute;
  785. top: 20rpx;
  786. left: 60rpx;
  787. @include flexlayout() image {
  788. width: 32rpx;
  789. height: 28rpx;
  790. }
  791. }
  792. .nav {
  793. display: flex;
  794. align-items: center;
  795. justify-content: space-between;
  796. .events {
  797. text {
  798. margin-top: 10rpx;
  799. font-size: 30rpx;
  800. font-family: PingFang-SC-Bold, PingFang-SC;
  801. font-weight: bold;
  802. color: #333333;
  803. }
  804. }
  805. .voteStatus {
  806. width: 126rpx;
  807. height: 48rpx;
  808. background: #FFFFFF;
  809. border-radius: 6rpx;
  810. border: 2rpx solid #A18353;
  811. font-size: 30rpx;
  812. color: #A18353;
  813. margin-top: 20rpx;
  814. display: flex;
  815. align-items: center;
  816. justify-content: center;
  817. }
  818. }
  819. .foot {
  820. margin-top: 24rpx;
  821. width: 100%;
  822. height: 84rpx;
  823. background: linear-gradient(338deg, #FF6200 0%, #FF9D4F 100%);
  824. border-radius: 12rpx;
  825. display: flex;
  826. align-items: center;
  827. justify-content: center;
  828. font-weight: bold;
  829. color: #fff;
  830. }
  831. }
  832. }
  833. .vote-detail-top-main1{
  834. display: flex;
  835. align-items: center;
  836. justify-content: space-around;
  837. height:22px;
  838. line-height: 22px;
  839. .vote-detail-top-main-text{
  840. position: relative;
  841. top: 0;
  842. left: 38rpx;
  843. }
  844. &::before,&::after{
  845. content: " ";
  846. height: 0.5px;
  847. width: 80rpx;
  848. background-color: rgba(0,0,0,0.2);
  849. }
  850. >view{
  851. position: relative;
  852. left: -8rpx;
  853. width: 256px;
  854. font-size: 30rpx;
  855. display: flex;
  856. align-items: center;
  857. justify-content: center;
  858. text{
  859. width: 22px;
  860. margin-left: 15px;
  861. height:inherit;
  862. line-height: inherit;
  863. display: flex;
  864. justify-content: center;
  865. align-items: center;
  866. border-radius: 3px;
  867. background-color: #000;
  868. color: #fff;
  869. &::before{
  870. content: ":";
  871. width: 0px;
  872. line-height: inherit;
  873. background-color: transparent;
  874. color: rgba(0,0,0,0.7);
  875. transform: translateX(-11px);
  876. }
  877. &:first-child::before{
  878. content: "";
  879. }
  880. &:nth-child(1){
  881. margin-left: 15px;
  882. }
  883. }
  884. }
  885. }
  886. </style>