index.vue 25 KB

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