lottery.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <template>
  2. <view>
  3. <view class="lottery_box">
  4. <view class="lottery_time" v-if="lotteryInfo.id">活动时间:{{ lotteryInfo.start_date }} ~ {{ lotteryInfo.end_date }}</view>
  5. <view class="lottery_info">
  6. <image class="lottery_logo" v-if="lotteryInfo.logo" :src="lotteryInfo.logo" mode="widthFix"></image>
  7. <button class="lottery_rule_btn" @click="showRule">活动规则</button>
  8. </view>
  9. <l-dialer
  10. :customStyle="'width: 500rpx;height: 500rpx;margin: 0rpx auto;'"
  11. @click="onClick"
  12. dial-style="color: rgba(60,48,158,0.7); padding: 32rpx;background-image: url(https://mall.findit.ltd/uploads/images/default/lottery_bg.png)"
  13. :prizeList="prizeList"
  14. :turns="5"
  15. :duration="5"
  16. @done="onDone"
  17. ref="dialer"
  18. />
  19. <view class="record_box">
  20. <view class="score_info">
  21. <view class="custom_score">可用次数:{{ lotteryInfo.number }}</view>
  22. <view class="need_score" v-if="!lotteryInfo.id">暂无可参与的活动</view>
  23. </view>
  24. <button class="lottery_record" @click="showRecord" v-if="lotteryInfo.id">
  25. <image class="lottery_record_img" src="https://mall.findit.ltd/uploads/images/default/lottery_record.png" mode=""></image>
  26. <text class="lottery_record_text">中奖记录</text>
  27. </button>
  28. </view>
  29. <button open-type="share" class="share-btn">分享好友再答一次题</button>
  30. </view>
  31. <uni-popup ref="lotteryRule" type="center">
  32. <view class="lottery_rule_box">
  33. <view class="lottery_rule_title">
  34. <text>活动规则</text>
  35. <view class="close_btn" @click="closeRule"> X </view>
  36. </view>
  37. <scroll-view class="lottery_rule_info" scroll-y="true">
  38. <rich-text :nodes="lotteryInfo.rule" class="rich_text"></rich-text>
  39. </scroll-view>
  40. </view>
  41. </uni-popup>
  42. <uni-popup ref="lotteryRecord" type="bottom">
  43. <view class="lottery_record_box">
  44. <view class="lottery_record_title">
  45. <text>我的奖品</text>
  46. <view class="close_btn" @click="closeRecord"> X </view>
  47. </view>
  48. <view class="lottery_record_none" v-if="!recordList.length">这里还是空的哦~</view>
  49. <scroll-view class="lottery_record_list" scroll-y="true">
  50. <view class="lottery_record_item" v-for="(item, index) in recordList" :key="index">
  51. <view class="reward_time">{{ item.insert_time }}</view>
  52. <view class="reward_name">{{ item.reward_name }}</view>
  53. <view class="reward_state" v-if="item.status">{{ item.state }}</view>
  54. <button class="reward_state" v-if="!item.status" @click="openAddr(index)">{{ item.state }}</button>
  55. </view>
  56. </scroll-view>
  57. </view>
  58. </uni-popup>
  59. <uni-popup ref="addrPopup" type="bottom" class="popup" background-color="#FFFFFF">
  60. <view class="popup_title">收货地址 <navigator url="/pages/addr/index?notify=addr" class="to_addr_page">管理</navigator> </view>
  61. <view class="addr_list">
  62. <view class="addr_item" v-for="(item, index) in addrList" :key="index" @click="checkedAddrItem(item)">
  63. <view class="radio_label">
  64. <image
  65. class="radio_icon"
  66. :src="item.id == checkedAddr?.id ? 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/radioed.png' : 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/radio.png'"
  67. ></image>
  68. </view>
  69. <view class="contact_user">
  70. <text class="contact_name">{{ item.contact_name }}</text>
  71. <text class="contact_phone">{{ item.contact_phone }}</text>
  72. <text class="contact_default" v-if="item.is_default">默认</text>
  73. <text class="contact_shop">{{ item.contact_shop }}</text>
  74. </view>
  75. <view class="contact_addr"> {{ item.contact_province }} {{ item.contact_city }} {{ item.contact_area }} {{ item.contact_addr }} </view>
  76. </view>
  77. </view>
  78. <view class="create_box">
  79. <navigator url="/pages/addr/index?notify=addr&type=create" class="create_addr">新建收货地址</navigator>
  80. </view>
  81. </uni-popup>
  82. <uni-popup ref="addFollow" type="center" class="center_popup">
  83. <FollowPopup
  84. :picUrl="'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/qrcode/qrcode.jpg'"
  85. :closePopup="closePopup"
  86. :showRule="false"
  87. :clickTitle="'点击二维码添加客服抽奖'"
  88. :longTapTitle="'长按二维码添加客服抽奖'"
  89. />
  90. </uni-popup>
  91. </view>
  92. </template>
  93. <script>
  94. import FollowPopup from '@/components/FollowPopup/FollowPopup.vue';
  95. export default {
  96. components: {
  97. FollowPopup,
  98. },
  99. data() {
  100. return {
  101. height: '',
  102. // 奖项列表,
  103. prizeList: [],
  104. // 中奖记录
  105. recordList: [],
  106. // 地址列表
  107. addrList: [],
  108. // 抽奖信息
  109. lotteryInfo: {
  110. id: 0,
  111. name: '',
  112. logo: '',
  113. number: '0',
  114. start_date: '',
  115. end_date: '',
  116. start_time: '',
  117. end_time: '',
  118. rule: '',
  119. },
  120. recordId: 0,
  121. // 请求参数
  122. requestParam: {
  123. id: 0,
  124. activity_id: 0,
  125. },
  126. checkedAddr: {},
  127. };
  128. },
  129. onLoad(param) {
  130. // 接收参数
  131. this.requestParam.id = param.id;
  132. this.requestParam.activity_id = param.activity_id;
  133. // 如果有scene参数的话,获取其中的ID
  134. if (param.scene) {
  135. // 转键值对参数
  136. let scene = this.$http.strToParam(param.scene);
  137. // 如果没有传入ID,但是传入了场景ID,获取场景ID
  138. if (!param.id && scene.id) this.requestParam.id = scene.id;
  139. }
  140. // 窗口信息
  141. var sysinfo = uni.getWindowInfo();
  142. // 获取屏幕可用高度
  143. this.height = 'height:' + sysinfo.windowHeight + 'px;';
  144. // 监听地址变动
  145. uni.$on('addr_list_change', (data) => {
  146. // 地址列表
  147. this.addrList = data.list;
  148. });
  149. // #ifdef MP-WEIXIN
  150. //分享按钮
  151. uni.showShareMenu({
  152. withShareTicket: true,
  153. menus: ['shareAppMessage', 'shareTimeline'],
  154. });
  155. // #endif
  156. },
  157. onShareAppMessage(obj) {
  158. if (obj) {
  159. this.shareRequest();
  160. }
  161. return {
  162. title: '999智控终端平台\n正月十五猜灯谜',
  163. path: '/pages/activity/index?id=' + this.requestParam.activity_id,
  164. imageUrl: 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/20250210-143021.jpg',
  165. promise: new Promise((resolve, reject) => {
  166. this.$http.request('api/share_message/get_item', { item_id: this.requestParam.activity_id, pages: '/pages/activity/index' }).then((callback) => {
  167. console.log(callback, 'api/share_message/get_item');
  168. let obj = {
  169. title: callback.data?.title == '' ? this.lotteryInfo.name : callback.data.title,
  170. path: '/pages/activity/index?id=' + this.requestParam.activity_id,
  171. imageUrl: callback.data?.image_url == '' ? this.lotteryInfo.logo : callback.data.image_url,
  172. };
  173. resolve(obj);
  174. });
  175. }),
  176. };
  177. },
  178. onShow() {
  179. // 没有数据的话,或者请求中,不允许刷新
  180. if (this.isReqing) return;
  181. // 登录提示
  182. if (!this.$checkAccess.alterLogin()) return;
  183. // 如果存在产品ID的话
  184. if (this.requestParam.id > 0) {
  185. // 设置请求中
  186. this.isReqing = true;
  187. // 请求
  188. this.$http.request('api/lottery_riddle/get_detail', this.requestParam).then((re) => {
  189. // 设置非请求中
  190. this.isReqing = false;
  191. // 成功结果
  192. if (re.code == 'success') {
  193. this.lotteryInfo = re.data;
  194. this.prizeList = re.data.reward_list;
  195. } else {
  196. if (re.code != 'no_login') {
  197. uni.showModal({
  198. content: re.msg,
  199. showCancel: false,
  200. });
  201. }
  202. }
  203. });
  204. } else {
  205. uni.showModal({
  206. content: '未知的活动ID',
  207. showCancel: false,
  208. });
  209. }
  210. },
  211. methods: {
  212. shareRequest() {
  213. this.$http.request('api/riddle_active_share/add', { active_id: this.requestParam.activity_id }).then((response) => {
  214. uni.showModal({
  215. title: '分享成功',
  216. confirmText: '立即答题',
  217. cancelText: '留在此页',
  218. success: (res) => {
  219. if (res.confirm) {
  220. uni.redirectTo({
  221. url: '/pages/activity/index?id=' + this.requestParam.activity_id,
  222. });
  223. }
  224. },
  225. });
  226. });
  227. },
  228. onDone(index) {
  229. // 奖项
  230. let prize = this.prizeList[index];
  231. // 结果
  232. uni.showModal({
  233. title: prize.id == 0 ? '很遗憾' : '恭喜您',
  234. content: (prize.id != 0 ? `获得` : '') + prize.name + (prize.reward_type == 5 ? ',请在中奖记录中填写收货地址' : ''),
  235. showCancel: false,
  236. success: (re) => {
  237. if (re.confirm && prize.reward_type == 5) {
  238. // 显示中奖列表
  239. this.showRecord();
  240. }
  241. },
  242. });
  243. },
  244. onClick() {
  245. // 活动是否开始
  246. if (!this.lotteryInfo.id) {
  247. uni.showToast({
  248. title: '暂无可参与活动',
  249. icon: 'none',
  250. });
  251. return;
  252. }
  253. // 活动是否开始
  254. if (this.lotteryInfo.start_time * 1000 > new Date().getTime()) {
  255. uni.showToast({
  256. title: '活动还没开始哦',
  257. icon: 'none',
  258. });
  259. return;
  260. }
  261. // 活动是否结束
  262. if (this.lotteryInfo.end_time * 1000 <= new Date().getTime()) {
  263. uni.showToast({
  264. title: '活动已结束了哦',
  265. icon: 'none',
  266. });
  267. return;
  268. }
  269. // 次数已用完了
  270. if (this.lotteryInfo.number <= 0) {
  271. uni.showToast({
  272. title: '次数已用完了',
  273. icon: 'none',
  274. });
  275. return;
  276. }
  277. if (!this.$checkAccess.getHasFollow()) {
  278. this.$refs.addFollow.open('center');
  279. return;
  280. }
  281. // 次数操作
  282. this.lotteryInfo.number = this.lotteryInfo.number - 1;
  283. // 请求列表
  284. this.$http.request('/api/lottery_riddle/get_reward', { lottery_id: this.lotteryInfo.id }).then((re) => {
  285. // 设置非请求中
  286. this.isReqing = false;
  287. // 成功结果
  288. if (re.code == 'success') {
  289. // 奖品列表更新
  290. this.prizeList = re.data.reward_list;
  291. // 奖品的索引
  292. return this.$refs.dialer.run(re.data.reward_index);
  293. } else {
  294. uni.showToast({
  295. title: re.msg,
  296. icon: 'none',
  297. });
  298. return;
  299. }
  300. });
  301. },
  302. closePopup() {
  303. this.$refs.addFollow.close();
  304. },
  305. showRule() {
  306. this.$refs.lotteryRule.open('center');
  307. },
  308. closeRule() {
  309. this.$refs.lotteryRule.close();
  310. },
  311. showRecord() {
  312. // 活动是否开始
  313. if (this.lotteryInfo.id) {
  314. // 请求列表
  315. this.$http.request('/api/lottery_riddle_record/get_list', { lottery_id: this.lotteryInfo.id }).then((re) => {
  316. // 设置非请求中
  317. this.isReqing = false;
  318. // 成功结果
  319. if (re.code == 'success') {
  320. this.recordList = re.data;
  321. }
  322. });
  323. }
  324. this.$refs.lotteryRecord.open('bottom');
  325. },
  326. closeRecord() {
  327. this.$refs.lotteryRecord.close();
  328. },
  329. openAddr(index) {
  330. console.log(index, 'test');
  331. // 选择的下标
  332. this.recordIndex = index;
  333. // 地址列表
  334. this.getAddrList(true);
  335. },
  336. // 选择地址
  337. checkedAddrItem(item) {
  338. // 判断数据
  339. this.$http.request('api/lottery_riddle_record/set_addr', { id: this.recordList[this.recordIndex].id, addr_id: item.id }, 'post').then((callback) => {
  340. // 获取成功
  341. if (callback.code == 'success') {
  342. this.recordList[this.recordIndex].status = 1;
  343. this.recordList[this.recordIndex].state = '进行中';
  344. }
  345. this.$refs.addrPopup.close();
  346. });
  347. },
  348. getAddrList(showPopup = false) {
  349. // 判断数据
  350. this.$http.request('api/custom_addr/get_list').then((callback) => {
  351. // 获取成功
  352. if (callback.code == 'success') {
  353. this.addrList = callback.data;
  354. // 如果有的话
  355. if (this.addrList.length) {
  356. // 获取默认的
  357. for (let i in this.addrList) {
  358. // 如果是默认的
  359. if (this.addrList[i].is_default) this.checkedAddr = this.addrList[i];
  360. }
  361. // 如果没有默认的话
  362. if (!this.checkedAddr?.id) {
  363. this.checkedAddr = this.addrList[this.addrList.length - 1];
  364. }
  365. }
  366. // 弹出地址层
  367. if (showPopup) this.$refs.addrPopup.open('bottom');
  368. }
  369. });
  370. },
  371. },
  372. };
  373. </script>
  374. <style lang="less">
  375. .lottery_box {
  376. display: block;
  377. width: 750rpx;
  378. margin: 0 auto;
  379. position: relative;
  380. background: linear-gradient(to bottom, #fc335f 0%, #fb7224 80%, #ffffff 100%);
  381. padding-bottom: 200rpx;
  382. .share-btn {
  383. width: 80%;
  384. height: 80rpx;
  385. background-color: #f0370e;
  386. color: #fff;
  387. border-radius: 60rpx;
  388. display: flex;
  389. justify-content: center;
  390. align-items: center;
  391. padding: 16rpx;
  392. margin-top: 60rpx;
  393. box-sizing: border-box;
  394. }
  395. .lottery_time {
  396. top: 0rpx;
  397. left: 35rpx;
  398. z-index: 1;
  399. width: 700rpx;
  400. color: #ffffff;
  401. display: block;
  402. height: 40rpx;
  403. font-size: 24rpx;
  404. line-height: 40rpx;
  405. text-align: center;
  406. position: absolute;
  407. border-radius: 10rpx;
  408. background-color: rgba(0, 0, 0, 0.15);
  409. }
  410. .lottery_info {
  411. width: 750rpx;
  412. overflow: hidden;
  413. margin: 0rpx auto;
  414. position: relative;
  415. margin-bottom: 40rpx;
  416. .lottery_logo {
  417. float: left;
  418. width: 750rpx;
  419. height: 240rpx;
  420. display: block;
  421. }
  422. .lottery_rule_btn {
  423. top: 50%;
  424. right: 0rpx;
  425. width: 120rpx;
  426. height: 60rpx;
  427. color: #ffffff;
  428. overflow: hidden;
  429. font-size: 24rpx;
  430. text-align: center;
  431. line-height: 60rpx;
  432. position: absolute;
  433. padding: 0rpx 0rpx;
  434. border-top-left-radius: 30rpx;
  435. border-bottom-left-radius: 30rpx;
  436. border-top-right-radius: 0rpx;
  437. border-bottom-right-radius: 0rpx;
  438. background-color: rgba(0, 0, 0, 0.3);
  439. }
  440. .lottery_rule_btn::after {
  441. border: 0rpx solid transparent;
  442. }
  443. }
  444. .record_box {
  445. display: block;
  446. height: 120rpx;
  447. overflow: hidden;
  448. position: relative;
  449. margin-top: 40rpx;
  450. .score_info {
  451. display: block;
  452. overflow: auto;
  453. .custom_score {
  454. height: 60rpx;
  455. font-size: 28rpx;
  456. text-align: center;
  457. line-height: 60rpx;
  458. }
  459. .need_score {
  460. height: 60rpx;
  461. font-size: 32rpx;
  462. text-align: center;
  463. line-height: 60rpx;
  464. }
  465. }
  466. .lottery_record {
  467. top: 0rpx;
  468. right: 0rpx;
  469. width: 120rpx;
  470. height: 120rpx;
  471. overflow: hidden;
  472. text-align: center;
  473. position: absolute;
  474. padding: 0rpx 0rpx;
  475. background-color: transparent;
  476. .lottery_record_img {
  477. width: 60rpx;
  478. height: 60rpx;
  479. display: block;
  480. margin: 0rpx auto;
  481. }
  482. .lottery_record_text {
  483. color: #ffffff;
  484. display: block;
  485. height: 40rpx;
  486. width: 120rpx;
  487. font-size: 24rpx;
  488. line-height: 40rpx;
  489. }
  490. }
  491. .lottery_record::after {
  492. border: none;
  493. }
  494. }
  495. }
  496. .lottery_rule_box {
  497. width: 500rpx;
  498. display: block;
  499. overflow: hidden;
  500. background: #ffffff;
  501. font-size: 26rpx;
  502. margin: 0rpx auto;
  503. line-height: 50rpx;
  504. border-radius: 10rpx;
  505. padding: 0rpx 25rpx;
  506. padding-bottom: 20rpx;
  507. background-color: #fc335f;
  508. .lottery_rule_title {
  509. color: #ffffff;
  510. height: 60rpx;
  511. font-size: 32rpx;
  512. line-height: 60rpx;
  513. text-align: center;
  514. margin-bottom: 10rpx;
  515. .close_btn {
  516. float: right;
  517. width: 40rpx;
  518. height: 40rpx;
  519. font-size: 24rpx;
  520. margin-top: 9rpx;
  521. line-height: 40rpx;
  522. border-radius: 50%;
  523. border: 1rpx solid #ffffff;
  524. }
  525. }
  526. .lottery_rule_info {
  527. display: block;
  528. height: 500rpx;
  529. font-size: 24rpx;
  530. line-height: 40rpx;
  531. border-radius: 10rpx;
  532. padding: 20rpx 20rpx;
  533. box-sizing: border-box;
  534. background-color: #ffffff;
  535. .rich_text {
  536. white-space: break-spaces;
  537. }
  538. }
  539. }
  540. .lottery_record_box {
  541. display: block;
  542. color: #deb887;
  543. height: 700rpx;
  544. padding: 10rpx 25rpx;
  545. background-color: #faebd7;
  546. .lottery_record_title {
  547. color: #000000;
  548. height: 80rpx;
  549. font-weight: bold;
  550. font-size: 32rpx;
  551. line-height: 80rpx;
  552. text-align: center;
  553. margin-bottom: 20rpx;
  554. .close_btn {
  555. float: right;
  556. width: 40rpx;
  557. height: 40rpx;
  558. color: #deb887;
  559. font-size: 24rpx;
  560. margin-top: 9rpx;
  561. line-height: 40rpx;
  562. border-radius: 50%;
  563. border: 2rpx solid #deb887;
  564. }
  565. }
  566. .lottery_record_none {
  567. display: block;
  568. height: 200rpx;
  569. color: #deb887;
  570. font-size: 26rpx;
  571. text-align: center;
  572. line-height: 200rpx;
  573. }
  574. .lottery_record_list {
  575. display: block;
  576. height: 500rpx;
  577. .lottery_record_item {
  578. height: 80rpx;
  579. display: block;
  580. font-size: 26rpx;
  581. overflow: hidden;
  582. line-height: 80rpx;
  583. .reward_time {
  584. float: left;
  585. width: 300rpx;
  586. }
  587. .reward_name {
  588. float: left;
  589. width: 200rpx;
  590. }
  591. .reward_state {
  592. float: right;
  593. color: #deb887;
  594. display: block;
  595. font-size: 26rpx;
  596. overflow: hidden;
  597. background: transparent;
  598. }
  599. .reward_state::after {
  600. border: none;
  601. background: transparent;
  602. }
  603. }
  604. }
  605. }
  606. .popup {
  607. overflow: hidden;
  608. .popup_title {
  609. display: block;
  610. overflow: hidden;
  611. margin: 0rpx auto;
  612. font-size: 36rpx;
  613. height: 120rpx;
  614. line-height: 120rpx;
  615. padding: 0rpx 20rpx;
  616. border-bottom: 10rpx solid #f8f8f8;
  617. .to_addr_page {
  618. float: right;
  619. color: #f59a23;
  620. display: block;
  621. height: 120rpx;
  622. line-height: 120rpx;
  623. font-size: 26rpx;
  624. padding: 0rpx 10rpx;
  625. }
  626. }
  627. .addr_list {
  628. width: 730rpx;
  629. display: block;
  630. overflow: hidden;
  631. margin: 0rpx auto;
  632. min-height: 500rpx;
  633. .addr_item {
  634. display: block;
  635. font-size: 24rpx;
  636. overflow: hidden;
  637. line-height: 40rpx;
  638. padding: 15rpx 10rpx;
  639. border-radius: 15rpx;
  640. border-bottom: 2rpx solid #dddddd;
  641. .radio_label {
  642. width: 40rpx;
  643. float: left;
  644. height: 50rpx;
  645. padding-top: 30rpx;
  646. margin-right: 20rpx;
  647. .radio_icon {
  648. float: left;
  649. width: 40rpx;
  650. height: 40rpx;
  651. }
  652. }
  653. .contact_user {
  654. float: left;
  655. width: 640rpx;
  656. display: block;
  657. height: 50rpx;
  658. font-size: 24rpx;
  659. line-height: 50rpx;
  660. .contact_name {
  661. font-size: 26rpx;
  662. font-weight: bold;
  663. margin-right: 16rpx;
  664. }
  665. .contact_default {
  666. color: #f59a23;
  667. font-size: 20rpx;
  668. margin-left: 16rpx;
  669. border: 1rpx solid #f59a23;
  670. }
  671. .contact_shop {
  672. float: right;
  673. font-size: 26rpx;
  674. margin-right: 16rpx;
  675. }
  676. }
  677. .contact_addr {
  678. float: left;
  679. width: 640rpx;
  680. display: block;
  681. font-size: 24rpx;
  682. line-height: 30rpx;
  683. padding: 10rpx 5rpx;
  684. }
  685. }
  686. }
  687. .create_box {
  688. height: 140rpx;
  689. display: block;
  690. .create_addr {
  691. width: 700rpx;
  692. height: 80rpx;
  693. display: block;
  694. color: #ffffff;
  695. font-size: 30rpx;
  696. overflow: hidden;
  697. line-height: 80rpx;
  698. padding: 0rpx 0rpx;
  699. text-align: center;
  700. margin: 0rpx auto;
  701. margin-top: 20rpx;
  702. border-radius: 40rpx;
  703. background-color: #f89c33;
  704. }
  705. }
  706. }
  707. </style>