index.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. <template>
  2. <view class="container">
  3. <image class="topImg" src="../static/img/img02.png" mode="widthFix"></image>
  4. <view class="contentBox">
  5. <view class="btoomBg"></view>
  6. <view class="topBg">
  7. <image class="leftIcon" src="../static/img/img06.png" mode="widthFix"></image>
  8. <image class="topImg" src="../static/img/img08.png" mode="widthFix"></image>
  9. <view class="tpConent">
  10. <view class="tpRight"><view class="textBox" @click="nextTo('/pages/activity/index')">活动规则</view></view>
  11. <view class="tpTitle">评选活动</view>
  12. <view class="endTextBox flex">
  13. <view class="leftLine"><view class="roundness"></view></view>
  14. <view class="textLine">距离活动结束还有</view>
  15. <view class="rightLine"><view class="roundness"></view></view>
  16. </view>
  17. <view class="down">
  18. <u-count-down
  19. separator="zh"
  20. font-size="32"
  21. separator-color="#666666"
  22. separator-size="32"
  23. bg-color="#D7272B"
  24. color="#FFFFFF"
  25. :show-border="false"
  26. :timestamp="timestamp"
  27. @end="stopTime"
  28. ></u-count-down>
  29. </view>
  30. <view class="tjContent flex">
  31. <view class="tjItem">
  32. <view class="topText">
  33. {{ item.pepole }}
  34. <text class="iconTip">人</text>
  35. </view>
  36. <view class="bottomText">参与者</view>
  37. </view>
  38. <view class="tjItem">
  39. <view class="topText">
  40. {{ item.votes }}
  41. <text class="iconTip">票</text>
  42. </view>
  43. <view class="bottomText">投票数</view>
  44. </view>
  45. <view class="tjItem">
  46. <view class="topText">
  47. {{ item.count }}
  48. <text class="iconTip">次</text>
  49. </view>
  50. <view class="bottomText">浏览量</view>
  51. </view>
  52. </view>
  53. <view class="input flex">
  54. <u-input
  55. type="select"
  56. v-model="input.value"
  57. confirm-type="search"
  58. @confirm="searchProduct"
  59. placeholder="请输入选手姓名和编号"
  60. :height="input.height"
  61. :type="input.type"
  62. />
  63. <u-icon color="#999999" class="iconT" @click="searchProduct" name="search"></u-icon>
  64. </view>
  65. <view class="tabsBox"><u-tabs :list="list" active-color="#D7272B" :is-scroll="false" :current="rank" @change="changeRank"></u-tabs></view>
  66. <!-- 最新 -->
  67. <view v-if="rank == 0" class="itemList flex">
  68. <view class="itemData" v-for="item in userlist.list">
  69. <view class="itemContentBox">
  70. <view class="itemImgbox">
  71. <view class="iconBox">
  72. <view>{{ item.sub_id }}</view>
  73. <view>号</view>
  74. </view>
  75. <image class="itemImg" :src="item.avatar" mode="scaleToFill"></image>
  76. <view class="itemAddress clamp" v-if="item.type==2">{{ item.company }}</view>
  77. </view>
  78. <view class="itemNameBox flex">
  79. <view class="itemName">{{ item.name }}</view>
  80. <view class="itemVote">{{ item.vote }}票</view>
  81. </view>
  82. </view>
  83. <view class="itemBottom" @click="chargeConfirm(item)">投票</view>
  84. </view>
  85. </view>
  86. <u-loadmore v-if="rank == 0" :status="userlist.loadingType" />
  87. <!-- 产康师排行 -->
  88. <view class="phItemList" v-if="rank == 1">
  89. <view class="phItem flex" v-for="(item, ind) in phlist.list">
  90. <view class="icon">
  91. <image v-if="ind == 0" class="tipImg" src="../static/img/rank1.png" mode="widthFix"></image>
  92. <image v-if="ind == 1" class="tipImg" src="../static/img/rank2.png" mode="widthFix"></image>
  93. <image v-if="ind == 2" class="tipImg" src="../static/img/rank3.png" mode="widthFix"></image>
  94. <view class="tipText" v-if="ind > 2">{{ ind }}</view>
  95. </view>
  96. <view class="flex phRightBox">
  97. <view class="avatarBox"><image class="avatarImg" :src="item.avatar" mode="scaleToFill"></image></view>
  98. <view class="phTextBox">
  99. <view class="phTtemName">{{ item.name }}</view>
  100. <view class="phItemAddress">{{ item.address }}</view>
  101. </view>
  102. <view class="phRight flex">
  103. <text class="textVote">{{ item.vote }}</text>
  104. <image class="phTipImg" src="../static/img/level.png" mode="widthFix"></image>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <u-loadmore v-if="rank == 1" :status="phlist.loadingType" />
  110. <!-- 母乳喂养排行 -->
  111. <view class="phItemList" v-if="rank == 2">
  112. <view class="phItem flex" v-for="(item, ind) in mrlist.list">
  113. <view class="icon">
  114. <image v-if="ind == 0" class="tipImg" src="../static/img/rank1.png" mode="widthFix"></image>
  115. <image v-if="ind == 1" class="tipImg" src="../static/img/rank2.png" mode="widthFix"></image>
  116. <image v-if="ind == 2" class="tipImg" src="../static/img/rank3.png" mode="widthFix"></image>
  117. <view class="tipText" v-if="ind > 2">{{ ind }}</view>
  118. </view>
  119. <view class="flex phRightBox">
  120. <view class="avatarBox"><image class="avatarImg" :src="item.avatar" mode="scaleToFill"></image></view>
  121. <view class="phTextBox">
  122. <view class="phTtemName">{{ item.name }}</view>
  123. <view class="phItemAddress">{{ item.address }}</view>
  124. </view>
  125. <view class="phRight flex">
  126. <text class="textVote">{{ item.vote }}</text>
  127. <image class="phTipImg" src="../static/img/level.png" mode="widthFix"></image>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. <u-loadmore v-if="rank == 2" :status="mrlist.loadingType" />
  133. </view>
  134. </view>
  135. </view>
  136. <view class="alertAddBox flex">
  137. <view class="textAlertBox">
  138. <view class="psBox">
  139. <image class="psImgIcon" src="../static/img/alertPIcon.png" mode="widthFix"></image>
  140. <text>{{ myVote }}</text>
  141. </view>
  142. <view>剩余票数</view>
  143. </view>
  144. <view class="addUser" @click="pushUserData">我要参与</view>
  145. </view>
  146. <u-popup border-radius="20" width="540" v-model="showAlert" mode="center">
  147. <view class="alertBox">
  148. <image class="titleImg" src="../static/img/alertbg.png" mode="widthFix"></image>
  149. <view class="title">参赛类型</view>
  150. <view class="titleTip">请选择您的参赛身份类型</view>
  151. <view class="lxTtem flex" @click="csType = 0">
  152. <view class="leftTitle flex">
  153. <image class="leftImgTip" src="../static/img/user.png" mode="heightFix"></image>
  154. <text>个人参赛</text>
  155. </view>
  156. <view class="rightTip flex"><view v-if="csType == 0" class="xzTip"></view></view>
  157. </view>
  158. <view class="lxTtem flex" @click="csType = 1">
  159. <view class="leftTitle flex">
  160. <image class="leftImgTip" src="../static/img/userAll.png" mode="heightFix"></image>
  161. <text>企业参赛(我有所属企业)</text>
  162. </view>
  163. <view class="rightTip flex"><view v-if="csType == 1" class="xzTip"></view></view>
  164. </view>
  165. <view class="pushtyle" @click="pushBm">确认</view>
  166. </view>
  167. </u-popup>
  168. <u-popup border-radius="20" v-model="showCharge" mode="bottom">
  169. <view class="alertChargeBox">
  170. <view class="alertCharge flex">
  171. <view class="chargeItem" :class="{ actionCharge: ind == moneyIndex }" v-for="(ls, ind) in voteNumList" @click="moneyIndex = ind">
  172. <view class="chargeImgIcon">{{ ls.num }}票</view>
  173. <view class="chargeImgBox"><image class="chargeImg" :src="'../static/img/chargeIcon' + (ind + 1) + '.png'" mode="widthFix"></image></view>
  174. <view class="chargeTextBox flex">
  175. <image class="chargeIcon" src="../static/img/moneyIcon.png" mode="scaleToFill"></image>
  176. <text>{{ ls.num }}</text>
  177. </view>
  178. </view>
  179. </view>
  180. <view class="flex chargeButtom">
  181. <view class="left flex">
  182. <image class="chargeIcon" src="../static/img/moneyIcon.png" mode="scaleToFill"></image>
  183. <text class="num">¥{{ payMoneyNum }}</text>
  184. <text class="tip">可为选手加{{ voteNumList[moneyIndex].num }}票</text>
  185. </view>
  186. <view class="right" @click="payLoding ? false : commitCharge()">赠送</view>
  187. </view>
  188. </view>
  189. </u-popup>
  190. </view>
  191. </template>
  192. <script>
  193. import { ptDetail, ptJoin, ptPush, rechargeWechat } from '@/api/tp.js';
  194. import weixinObj from '@/plugin/jweixin-module/index.js';
  195. import { shareLoad } from '@/utils/wxAuthorized.js';
  196. import {
  197. share
  198. } from '@/api/wx';
  199. export default {
  200. data() {
  201. return {
  202. timestamp: 600000,
  203. // 拼团信息
  204. item: {
  205. pepole: 20,
  206. votes: 20,
  207. count: 20
  208. },
  209. // 搜索框
  210. input: {
  211. value: '',
  212. type: 'text',
  213. height: 60
  214. },
  215. // 最新列表
  216. userlist: {
  217. list: [],
  218. page: 1,
  219. limit: 10,
  220. loadingType: 'loadmore'
  221. },
  222. // 产康师排行
  223. phlist: {
  224. list: [],
  225. page: 1,
  226. limit: 10,
  227. loadingType: 'loadmore'
  228. },
  229. // 产康师排行
  230. mrlist: {
  231. list: [],
  232. page: 1,
  233. limit: 10,
  234. loadingType: 'loadmore'
  235. },
  236. /* 选中的类型0为最新1为排行 */
  237. rank: 0,
  238. // 切换列表
  239. list: [
  240. {
  241. name: '最新'
  242. },
  243. {
  244. name: '产康师排行'
  245. },
  246. {
  247. name: '母乳喂养师排行'
  248. }
  249. ],
  250. voteNumList: [
  251. {
  252. num: 1
  253. },
  254. {
  255. num: 3
  256. },
  257. {
  258. num: 5
  259. },
  260. {
  261. num: 10
  262. },
  263. {
  264. num: 20
  265. },
  266. {
  267. num: 50
  268. },
  269. {
  270. num: 100
  271. },
  272. {
  273. num: 200
  274. }
  275. ],
  276. //参赛类型
  277. csType: 0, //0个人 1企业
  278. showAlert: false, //显示参赛弹窗
  279. showCharge: false, //显示投票弹窗
  280. moneyIndex: 0, //当前选中的投票对象
  281. numCharge: 1, //默认对应翻倍比例
  282. priceBl: 1, //默认1票对应金额投票比例
  283. chargeUserItem: {}, //当前选中的投票对象
  284. timeStop: false, //判断倒计时是否结束
  285. dayFree: '', //可投票数
  286. dayFreeVote: '', //已投票数
  287. payLoding: false, //是否微信充值
  288. activtyName: '' //活动标题
  289. };
  290. },
  291. computed: {
  292. // 我剩余可投票数
  293. myVote() {
  294. return this.dayFree - this.dayFreeVote;
  295. },
  296. // 需要支付的金额
  297. payMoneyNum() {
  298. return this.voteNumList[this.moneyIndex].num * this.priceBl;
  299. }
  300. },
  301. watch: {
  302. rank(newValue, oldValue) {
  303. let data = {};
  304. let rank = 0;
  305. let job = '';
  306. // 判断是否为最新
  307. if (newValue == 0) {
  308. data = this.userlist;
  309. rank = 0;
  310. } else {
  311. rank = 1;
  312. }
  313. // 判断是否为产康师排行
  314. if (newValue == 1) {
  315. data = this.phlist;
  316. job = '产康师';
  317. }
  318. // 判断是否为母乳喂养排行
  319. if (newValue == 2) {
  320. data = this.mrlist;
  321. job = '母乳喂养指导师';
  322. }
  323. this.getData(data, rank, job);
  324. }
  325. },
  326. onLoad() {
  327. this.loadShare();
  328. },
  329. onShow() {
  330. this.init();
  331. },
  332. // 页面下拉到底部加载
  333. onReachBottom() {
  334. this.ptJoin();
  335. },
  336. methods: {
  337. loadShare() {
  338. // 请求获取默认数据
  339. shareLoad();
  340. },
  341. init() {
  342. this.ptDetail();
  343. this.ptJoin();
  344. },
  345. // 倒计时结束
  346. stopTime() {
  347. this.timeStop = true;
  348. },
  349. //开始投票
  350. async commitCharge() {
  351. // 创建对象
  352. let payType, num;
  353. // 判断是否有剩余投票次数
  354. if (this.myVote > 0) {
  355. payType = 'free';
  356. num = 1;
  357. } else {
  358. payType = 'yue';
  359. num = this.voteNumList[this.moneyIndex].num;
  360. await this.payMoney();
  361. }
  362. uni.showLoading({
  363. title: '投票中',
  364. mask: true
  365. });
  366. ptPush(
  367. {
  368. num,
  369. payType
  370. },
  371. this.chargeUserItem.id
  372. )
  373. .then(e => {
  374. uni.hideLoading();
  375. if (e.msg == '余额支付成功' || e.msg == '投票成功') {
  376. uni.showToast({
  377. title: '投票成功!'
  378. });
  379. // 修改当前用户获得的票数
  380. this.chargeUserItem.vote += num;
  381. if (e.msg == '投票成功') {
  382. // 修改当前可投票数
  383. this.dayFree -= num;
  384. }
  385. } else {
  386. this.showCharge = false;
  387. uni.showModal({
  388. title: '错误',
  389. content: '余额不足请充值',
  390. success: res => {
  391. if (res.confirm) {
  392. uni.navigateTo({
  393. url: '/pages/recharge/pay'
  394. });
  395. }
  396. },
  397. fail: () => {},
  398. complete: () => {}
  399. });
  400. }
  401. })
  402. .catch(e => {
  403. uni.hideLoading();
  404. });
  405. },
  406. // 调用微信支付
  407. payMoney() {
  408. let obj = this;
  409. return new Promise((ok, err) => {
  410. if (obj.payLoding) {
  411. return;
  412. }
  413. obj.payLoding = true;
  414. rechargeWechat({ price: this.payMoneyNum, from: 'weixin' })
  415. .then(e => {
  416. let da = e.data.data;
  417. console.log(da);
  418. console.log(weixinObj, 'weixinObj');
  419. try {
  420. weixinObj.ready(() => {
  421. weixinObj.chooseWXPay({
  422. timestamp: da.timestamp,
  423. nonceStr: da.nonceStr,
  424. package: da.package,
  425. signType: da.signType,
  426. paySign: da.paySign,
  427. success: function(res) {
  428. console.log(res);
  429. ok(true);
  430. },
  431. fail: function(res) {
  432. console.log(res);
  433. err(false);
  434. }
  435. });
  436. });
  437. } catch (e) {
  438. console.log(e);
  439. }
  440. obj.payLoding = false;
  441. })
  442. .catch(e => {
  443. obj.payLoding = false;
  444. });
  445. });
  446. },
  447. // 投票弹窗
  448. chargeConfirm(item) {
  449. if (this.timeStop) {
  450. uni.showModal({
  451. title: '提示',
  452. content: '投票已结束!',
  453. showCancel: false
  454. });
  455. return;
  456. }
  457. // 保存当前选中的投票对象
  458. this.chargeUserItem = item;
  459. // 判断是否还有剩余投票次数
  460. if (this.myVote <= 0) {
  461. this.showCharge = true;
  462. } else {
  463. this.commitCharge();
  464. }
  465. },
  466. // 确认报名
  467. pushBm() {
  468. this.showAlert = false;
  469. if (this.csType == 0) {
  470. uni.navigateTo({
  471. url: '/pages/addTp/user'
  472. });
  473. }
  474. if (this.csType == 1) {
  475. uni.navigateTo({
  476. url: '/pages/addTp/company'
  477. });
  478. }
  479. },
  480. // 切换当前选中的查询
  481. changeRank(index) {
  482. this.rank = index;
  483. },
  484. //获取用户列表
  485. ptJoin() {
  486. // 获取项目对象
  487. let navItem = this.userlist;
  488. // 获取最新数据
  489. this.getData(navItem, 0);
  490. },
  491. // 请求返回项目数据
  492. ptDetail() {
  493. ptDetail()
  494. .then(e => {
  495. const data = e.data;
  496. this.timestamp = data.end_time - new Date().getTime() / 1000;
  497. this.item.pepole = data.join_num;
  498. this.item.votes = data.vote_num;
  499. this.item.count = data.visit;
  500. this.priceBl = +data.price;
  501. this.dayFree = data.day_free; //可投免费票数
  502. this.dayFreeVote = data.today_free_vote_num; //已投免费 票数
  503. this.activtyName = data.title;
  504. })
  505. .catch(e => {
  506. console.log();
  507. });
  508. },
  509. // 查询报名数据
  510. searchProduct(e) {
  511. // 初始化数据
  512. const data = {
  513. list: [],
  514. page: 1,
  515. limit: 10,
  516. loadingType: 'loadmore'
  517. };
  518. // 判断是否为最新
  519. if (this.rank == 0) {
  520. this.userlist = data;
  521. }
  522. // 判断是否为排行
  523. if (this.rank == 1) {
  524. this.phlist = data;
  525. }
  526. this.getData(data, this.rank);
  527. },
  528. // 页面跳转
  529. nextTo(url) {
  530. console.log(url, '跳转地址');
  531. uni.navigateTo({
  532. url,
  533. fail: e => {
  534. console.log(e);
  535. }
  536. });
  537. },
  538. // 报名
  539. pushUserData() {
  540. if (this.timeStop) {
  541. uni.showModal({
  542. title: '提示',
  543. content: '投票已结束!',
  544. showCancel: false
  545. });
  546. return;
  547. }
  548. this.showAlert = true;
  549. },
  550. // 请求用户数据
  551. getData(navItem, rank, job) {
  552. // 获取项目对象
  553. if (navItem.loadingType === 'loading') {
  554. //防止重复加载
  555. return;
  556. }
  557. if (navItem.loadingType === 'nomore') {
  558. //防止重复加载
  559. return;
  560. }
  561. // 修改当前对象状态为加载中
  562. navItem.loadingType = 'loading';
  563. ptJoin({
  564. page: navItem.page,
  565. limit: navItem.limit,
  566. key_word: this.input.value,
  567. rank: rank,
  568. job: job
  569. })
  570. .then(e => {
  571. const data = e.data.data;
  572. navItem.list = navItem.list.concat(data);
  573. navItem.page++;
  574. if (navItem.limit == data.length) {
  575. //判断是否还有数据, 有改为 more, 没有改为noMore
  576. navItem.loadingType = 'loadmore';
  577. return;
  578. } else {
  579. //判断是否还有数据, 有改为 more, 没有改为noMore
  580. navItem.loadingType = 'nomore';
  581. }
  582. this.$set(navItem, 'loaded', true);
  583. })
  584. .catch(e => {
  585. navItem.loadingType = 'loadmore';
  586. console.log(e);
  587. });
  588. }
  589. }
  590. };
  591. </script>
  592. <style lang="scss">
  593. page,
  594. .container {
  595. height: auto;
  596. min-height: 100%;
  597. background-color: #ff9ba7;
  598. }
  599. .container {
  600. padding-bottom: 130rpx;
  601. position: relative;
  602. }
  603. .alertChargeBox {
  604. .alertCharge {
  605. justify-content: flex-start;
  606. flex-wrap: wrap;
  607. padding: 30rpx;
  608. .chargeItem {
  609. width: 25%;
  610. text-align: center;
  611. position: relative;
  612. height: 180rpx;
  613. padding: 40rpx;
  614. margin: 20rpx 0;
  615. &.actionCharge {
  616. border: 1px solid #d7272b;
  617. border-radius: 10rpx;
  618. }
  619. .chargeImgIcon {
  620. position: absolute;
  621. top: 10rpx;
  622. right: 10rpx;
  623. font-size: 18rpx;
  624. font-weight: bold;
  625. color: #ffffff;
  626. border-top-right-radius: 90rpx;
  627. border-top-left-radius: 90rpx;
  628. border-bottom-right-radius: 90rpx;
  629. padding: 5rpx 15rpx;
  630. background-color: #d7272b;
  631. }
  632. .chargeTextBox {
  633. position: absolute;
  634. bottom: 10rpx;
  635. right: 0;
  636. left: 0;
  637. justify-content: center;
  638. color: #223438;
  639. font-size: 24rpx;
  640. text-align: center;
  641. .chargeIcon {
  642. width: 35rpx;
  643. height: 35rpx;
  644. margin-right: 10rpx;
  645. }
  646. }
  647. .chargeImgBox {
  648. .chargeImg {
  649. width: 77rpx;
  650. }
  651. }
  652. }
  653. }
  654. .chargeButtom {
  655. padding: 30rpx;
  656. background-color: #fff6f6;
  657. .left {
  658. font-weight: bold;
  659. flex-grow: 1;
  660. justify-content: flex-start;
  661. .chargeIcon {
  662. width: 40rpx;
  663. height: 40rpx;
  664. }
  665. .num {
  666. margin-left: 10rpx;
  667. color: #16363a;
  668. font-size: 30rpx;
  669. }
  670. .tip {
  671. margin-left: 10rpx;
  672. color: #d82a2e;
  673. font-size: 24rpx;
  674. }
  675. }
  676. .right {
  677. background-color: #d7272b;
  678. color: #ffffff;
  679. border-radius: 99rpx;
  680. padding: 5rpx 40rpx;
  681. font-size: 26rpx;
  682. }
  683. }
  684. }
  685. .alertAddBox {
  686. background: #ff9ba7;
  687. position: fixed;
  688. bottom: 0;
  689. left: 0;
  690. right: 0;
  691. padding: 20rpx 30rpx;
  692. z-index: 1;
  693. .textAlertBox {
  694. flex-shrink: 0;
  695. text-align: center;
  696. font-size: 28rpx;
  697. color: #ffffff;
  698. padding-right: 20rpx;
  699. .psBox {
  700. font-size: 40rpx;
  701. font-weight: bold;
  702. .psImgIcon {
  703. margin-right: 10rpx;
  704. width: 30rpx;
  705. }
  706. }
  707. }
  708. .addUser {
  709. flex-grow: 1;
  710. background: #d7272b;
  711. border: 1px solid #170911;
  712. border-radius: 7px;
  713. line-height: 1;
  714. font-size: 31rpx;
  715. font-weight: bold;
  716. color: #ffffff;
  717. text-align: center;
  718. padding: 30rpx;
  719. line-height: 24rpx;
  720. }
  721. }
  722. .topImg {
  723. width: 100%;
  724. }
  725. .contentBox {
  726. position: relative;
  727. width: 0px;
  728. min-width: 100%;
  729. margin-bottom: 32rpx;
  730. .btoomBg {
  731. background-color: #ffffff;
  732. min-height: 50vh;
  733. height: 100%;
  734. position: absolute;
  735. top: 32rpx;
  736. right: 30rpx;
  737. left: 42rpx;
  738. }
  739. .topBg {
  740. position: relative;
  741. margin-left: 30rpx;
  742. margin-right: 42rpx;
  743. box-shadow: 3px 5rpx 3rpx 0rpx rgba(4, 0, 0, 0.15);
  744. line-height: 0;
  745. .leftIcon {
  746. position: absolute;
  747. top: 30rpx;
  748. left: -30rpx;
  749. width: 100rpx;
  750. }
  751. .tpConent {
  752. background: #ffffff;
  753. line-height: 1;
  754. min-height: 50vh;
  755. padding-top: 28rpx;
  756. padding-bottom: 20rpx;
  757. }
  758. .down {
  759. text-align: center;
  760. }
  761. .tjContent {
  762. margin-top: 70rpx;
  763. justify-content: space-around;
  764. text-align: center;
  765. .tjItem {
  766. .topText {
  767. font-size: 50rpx;
  768. font-weight: bold;
  769. color: #3a3a3a;
  770. .iconTip {
  771. font-size: 20rpx;
  772. }
  773. }
  774. .bottomText {
  775. margin-top: 10rpx;
  776. font-size: 24rpx;
  777. font-family: PingFang SC;
  778. font-weight: 500;
  779. color: #333333;
  780. }
  781. }
  782. }
  783. .tpTitle {
  784. text-align: center;
  785. font-size: 48rpx;
  786. font-weight: bold;
  787. color: #ffc103;
  788. margin-top: 25rpx;
  789. margin-bottom: 45rpx;
  790. }
  791. .tpRight {
  792. display: flex;
  793. justify-content: flex-end;
  794. .textBox {
  795. background: #d7272b;
  796. border-radius: 99rpx 0px 0px 99rpx;
  797. padding: 10rpx;
  798. padding-left: 20rpx;
  799. font-size: 25rpx;
  800. font-weight: 500;
  801. color: #ffffff;
  802. }
  803. }
  804. .endTextBox {
  805. padding: 0 84rpx;
  806. margin-bottom: 32rpx;
  807. .leftLine,
  808. .rightLine {
  809. border-bottom: 1rpx solid #d7272b;
  810. flex-grow: 1;
  811. position: relative;
  812. .roundness {
  813. position: absolute;
  814. top: -5rpx;
  815. height: 10rpx;
  816. width: 10rpx;
  817. background-color: #d7272b;
  818. border-radius: 99rpx;
  819. }
  820. }
  821. .leftLine {
  822. .roundness {
  823. right: 0;
  824. }
  825. }
  826. .rightLine {
  827. .roundness {
  828. left: 0;
  829. }
  830. }
  831. .textLine {
  832. padding: 0 20rpx;
  833. }
  834. }
  835. .input {
  836. padding: 0 30rpx;
  837. margin: 50rpx 30rpx;
  838. margin-bottom: 20rpx;
  839. background: #ebebeb;
  840. border-radius: 30rpx;
  841. }
  842. .tabsBox {
  843. padding-bottom: 20rpx;
  844. border-bottom: 1px solid #ebebeb;
  845. margin-bottom: 50rpx;
  846. }
  847. .itemList {
  848. flex-wrap: wrap;
  849. justify-content: start;
  850. padding: 0 15rpx;
  851. .itemData {
  852. width: 50%;
  853. flex-grow: 0;
  854. flex-shrink: 0;
  855. padding: 0 15rpx;
  856. margin-bottom: 30rpx;
  857. .itemContentBox {
  858. padding: 0 15rpx;
  859. .itemImgbox {
  860. width: 100%;
  861. padding-top: calc(100% - 30rpx);
  862. position: relative;
  863. margin-bottom: 20rpx;
  864. .itemAddress {
  865. position: absolute;
  866. bottom: 0;
  867. left: 0;
  868. right: 0;
  869. background: #262626;
  870. opacity: 0.6;
  871. color: #ffffff;
  872. font-size: 24rpx;
  873. padding: 10rpx 0;
  874. text-align: center;
  875. }
  876. .itemImg {
  877. position: absolute;
  878. top: 0;
  879. left: 0;
  880. width: 100%;
  881. height: 100%;
  882. }
  883. .iconBox {
  884. padding-top: 10rpx;
  885. position: absolute;
  886. top: -18rpx;
  887. left: -18rpx;
  888. height: 73rpx;
  889. width: 62rpx;
  890. z-index: 1;
  891. background-image: url(../static/img/img07.png);
  892. background-size: 100% 100%;
  893. color: #ffffff;
  894. font-size: 24rpx;
  895. text-align: center;
  896. }
  897. }
  898. .itemNameBox {
  899. margin-bottom: 20rpx;
  900. font-size: 30rpx;
  901. font-weight: bold;
  902. .itemName {
  903. color: #333333;
  904. }
  905. .itemVote {
  906. color: #d7272b;
  907. }
  908. }
  909. }
  910. .itemBottom {
  911. background: #ffc103;
  912. color: #ffffff;
  913. font-size: 30rpx;
  914. padding: 15rpx;
  915. text-align: center;
  916. }
  917. }
  918. }
  919. .phItemList {
  920. padding: 0 30rpx;
  921. margin-top: -50rpx;
  922. .phItem {
  923. padding: 20rpx 0;
  924. .icon {
  925. flex-shrink: 0;
  926. width: 50rpx;
  927. .tipImg {
  928. width: 42rpx;
  929. }
  930. .tipText {
  931. color: #d7272b;
  932. font-size: 36rpx;
  933. font-weight: bold;
  934. }
  935. }
  936. .phRightBox {
  937. flex-grow: 1;
  938. border-bottom: 1px solid #ebebeb;
  939. padding: 20rpx 0;
  940. .avatarBox {
  941. flex-shrink: 0;
  942. .avatarImg {
  943. width: 96rpx;
  944. height: 96rpx;
  945. border-radius: 99rpx;
  946. margin-left: 10rpx;
  947. }
  948. }
  949. .phTextBox {
  950. flex-grow: 1;
  951. margin-left: 15rpx;
  952. .phTtemName {
  953. color: #333333;
  954. font-size: 32rpx;
  955. }
  956. .phItemAddress {
  957. color: #999999;
  958. font-size: 24rpx;
  959. margin-top: 10rpx;
  960. }
  961. }
  962. .phRight {
  963. flex-shrink: 0;
  964. text-align: right;
  965. justify-content: right;
  966. .textVote {
  967. color: #ffbb17;
  968. font-size: 36rpx;
  969. font-weight: bold;
  970. margin-right: 13rpx;
  971. }
  972. .phTipImg {
  973. width: 23rpx;
  974. height: 39rpx;
  975. }
  976. }
  977. }
  978. }
  979. }
  980. }
  981. }
  982. /deep/ .u-countdown-item {
  983. padding: 10rpx;
  984. border-radius: 8rpx;
  985. overflow: hidden;
  986. }
  987. .alertBox {
  988. padding-bottom: 40rpx;
  989. .titleImg {
  990. width: 100%;
  991. z-index: -1;
  992. }
  993. .title {
  994. text-align: center;
  995. font-size: 36rpx;
  996. font-weight: bold;
  997. color: #333333;
  998. margin-top: -80rpx;
  999. }
  1000. .titleTip {
  1001. text-align: center;
  1002. font-size: 24rpx;
  1003. font-weight: bold;
  1004. color: #808080;
  1005. }
  1006. .lxTtem {
  1007. margin: 0 40rpx;
  1008. padding: 30rpx 0;
  1009. border-bottom: 1px solid #ebebeb;
  1010. .leftTitle {
  1011. justify-content: start;
  1012. width: 43rpx;
  1013. flex-grow: 1;
  1014. color: #333333;
  1015. font-size: 28rpx;
  1016. .leftImgTip {
  1017. flex-shrink: 0;
  1018. // width: 30rpx;
  1019. height: 30rpx;
  1020. margin-right: 20rpx;
  1021. }
  1022. }
  1023. .rightTip {
  1024. border: 1px solid #d7272b;
  1025. opacity: 0.5;
  1026. border-radius: 50%;
  1027. width: 32rpx;
  1028. height: 32rpx;
  1029. justify-content: center;
  1030. .xzTip {
  1031. width: 20rpx;
  1032. height: 20rpx;
  1033. border-radius: 99rpx;
  1034. background-color: #d7272b;
  1035. }
  1036. }
  1037. }
  1038. .pushtyle {
  1039. background: #d7272b;
  1040. box-shadow: 0px 16rpx 16rpx 0px rgba(215, 39, 43, 0.5);
  1041. border-radius: 10rpx;
  1042. color: #ffffff;
  1043. font-size: 28rpx;
  1044. font-weight: bold;
  1045. text-align: center;
  1046. padding: 20rpx 0;
  1047. margin: 0 40rpx;
  1048. margin-top: 40rpx;
  1049. }
  1050. }
  1051. </style>