user.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="top-image"><image src="../../static/icon/user-top.png" mode=""></image></view>
  5. <view class="" style="height: 150rpx;"></view>
  6. <view class="user-box">
  7. <image class="avatar" :src="userInfo.avatar" mode="" v-if="userInfo.avatar"></image>
  8. <image class="avatar" src="../../static/error/missing-face.png" mode="" v-else></image>
  9. <!-- <view class="user-name">{{ userInfo.phone | phone }}</view> -->
  10. <view class="user-name">{{ userInfo.nickname }}</view>
  11. <view class="user-shop" v-if="userInfo.user_rule == 'user'"><view class="user-shopname">会员</view></view>
  12. <view class="user-shop" v-if="userInfo.user_rule != 'user'">
  13. <image class="user-shop-icon" src="../../static/icon/user1.png" mode=""></image>
  14. <view class="user-shopname">{{ store_name }}{{ userInfo.user_rule == 'waiter' ? '店员' : userInfo.user_rule == 'leader' ? '店长' : '' }}</view>
  15. </view>
  16. <view class="user-money flex" v-if="userInfo.user_rule != 'user'">
  17. <view class="user-money-item" @click="navTo('/pages/shop/order?waiter_id=' + userInfo.uid)">
  18. <view class="user-money-num">{{ achievement }}</view>
  19. <view class="user-money-font">本店业绩</view>
  20. </view>
  21. <view class="user-xian" v-if="userInfo.user_rule == 'waiter'"></view>
  22. <view class="user-money-item" v-if="userInfo.user_rule == 'waiter'" @click="navTo('/pages/shop/employee')">
  23. <view class="user-money-num">{{ userInfo.rank_in_shop }}</view>
  24. <view class="user-money-font">业绩排名</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="main-box">
  29. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  30. <view class="title-left">
  31. <image class="title-icon" src="../../static/icon/user2.png" mode=""></image>
  32. <view class="title-font">我的订单</view>
  33. </view>
  34. <image class="title-right" src="../../static/icon/jt.png" mode=""></image>
  35. </view>
  36. <view class="main flex">
  37. <view class="oitem" @click="navTo('/pages/order/order?state=1')">
  38. <image class="oitem-image" src="../../static/icon/user3.png" mode=""></image>
  39. <view class="oitem-font">正在拼团</view>
  40. </view>
  41. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  42. <image class="oitem-image" src="../../static/icon/user4.png" mode=""></image>
  43. <view class="oitem-font">待付款</view>
  44. </view>
  45. <view class="oitem" @click="navTo('/pages/order/order?state=3')">
  46. <image class="oitem-image" src="../../static/icon/user5.png" mode=""></image>
  47. <view class="oitem-font">已完成</view>
  48. </view>
  49. </view>
  50. </view>
  51. <uni-list class="tool-list">
  52. <uni-list-item title="我的收藏" @click="navTo('/pages/user/favorites')" thumb="../../static/icon/user6.png"></uni-list-item>
  53. <uni-list-item title="客服中心" @click="openKf()" thumb="../../static/icon/user7.png"></uni-list-item>
  54. <uni-list-item title="设置" @click="navTo('/pages/set/userinfo')" thumb="../../static/icon/user8.png"></uni-list-item>
  55. <uni-list-item title="我的邀请码" @click="navTo('/pages/user/share')" thumb="../../static/icon/user9.png"></uni-list-item>
  56. <!-- <uni-list-item title="绑定店员" @click="open()" thumb="../../static/icon/user10.png"></uni-list-item> -->
  57. <uni-list-item title="我的券码" @click="navTo('/pages/user/myyhq')" thumb="../../static/icon/user11.png"></uni-list-item>
  58. <uni-list-item v-if="userInfo.user_rule != 'user' && userInfo.user_rule != 'admin'" title="扫码核销" @click="sao()" thumb="../../static/img/shop1.png"></uni-list-item>
  59. <!-- <uni-list-item title="关于我们" @click="navTo('/pages/user/about')" thumb="/static/icon/img09.png"></uni-list-item> -->
  60. </uni-list>
  61. <uni-popup ref="popupkf" type="center">
  62. <view class="popup-box">
  63. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  64. <view class="mian">
  65. <view class="delivery">
  66. <view class="title">已经为您定制专属客服</view>
  67. <image src="../../static/img/img010.png" mode=""></image>
  68. </view>
  69. <view class="nocancel">客服VX:{{ text }}</view>
  70. <view class="comfirm-box">
  71. <view class="cancel" @click="cancel">取消</view>
  72. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  73. </view>
  74. </view>
  75. </view>
  76. </uni-popup>
  77. <uni-popup ref="gspass" type="center">
  78. <view class="psw-wrapper">
  79. <view class="psw-title">输入绑定店员ID</view>
  80. <input type="text" v-model="id" class="psw-ipt" />
  81. <view class="psw-btn">
  82. <text @click="cancelpass">取消</text>
  83. <text class="psw-qd" @click="cast()">确定</text>
  84. </view>
  85. </view>
  86. </uni-popup>
  87. <uni-popup ref="popuphx" class="agree-wrapper">
  88. <view class="hx-wrapper">
  89. <view class="hx-img"><image src="../../static/img/hxbg.png" mode=""></image></view>
  90. <view class="hx-body">
  91. <view class="hx-title">输入核销码核销</view>
  92. <input type="text" v-model="code" placeholder="请输入核销码" placeholder-class="hx-placeholder" />
  93. <view class="hx-btn" @click="qhx">立即核销</view>
  94. </view>
  95. <view class="hx-close" @click="close"><image src="../../static/icon/close.png" mode=""></image></view>
  96. </view>
  97. </uni-popup>
  98. <u-tabbar
  99. v-if="userInfo.user_rule == 'leader' || userInfo.user_rule == 'admin'"
  100. v-model="current"
  101. :list="tabbar"
  102. active-color="#FF4C4C"
  103. inactive-color="#666666"
  104. ></u-tabbar>
  105. <u-tabbar v-else v-model="current" :list="tabbar1" active-color="#FF4C4C" inactive-color="#666666"></u-tabbar>
  106. </view>
  107. </template>
  108. <script>
  109. import { tabbar1, tabbar } from '@/utils/tabbar.js';
  110. import { mapState, mapMutations } from 'vuex';
  111. import uniList from '@/components/uni-list/uni-list.vue';
  112. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  113. import { store } from '@/api/info.js';
  114. import { orderData, getUserInfo, check } from '@/api/user.js';
  115. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  116. import { set_waiter } from '@/api/info.js';
  117. let startY = 0,
  118. moveY = 0,
  119. pageAtTop = true;
  120. export default {
  121. components: {
  122. uniList,
  123. uniListItem
  124. },
  125. data() {
  126. return {
  127. current: 2,
  128. tabbar: tabbar,
  129. tabbar1: tabbar1,
  130. id: '', //是否已签到
  131. store_name: '',
  132. achievement: '',
  133. code: '',
  134. text: '15606861277' //客服微信
  135. };
  136. },
  137. onShow() {
  138. // 判断是否已经登录
  139. if (this.hasLogin) {
  140. this.loadBaseData();
  141. }
  142. this.loadBaseData();
  143. this.storeinfo();
  144. },
  145. filters: {
  146. phone(e) {
  147. var subStr1 = e.substr(0, 3);
  148. var subStr2 = e.substr(e.length - 4, 4);
  149. var subStr = subStr1 + '...' + subStr2;
  150. e = subStr;
  151. return e;
  152. }
  153. },
  154. onReady() {
  155. // 初始化获取页面宽度
  156. uni.createSelectorQuery()
  157. .select('.container')
  158. .fields(
  159. {
  160. size: true
  161. },
  162. data => {
  163. // 计算最多下拉的高度
  164. this.userDowm = Math.floor((data.width / 750) * 185);
  165. // 计算最大触发修改高度事件
  166. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  167. }
  168. )
  169. .exec();
  170. },
  171. computed: {
  172. ...mapState(['userInfo', 'orderInfo', 'hasLogin'])
  173. },
  174. methods: {
  175. ...mapMutations(['setUserInfo']),
  176. storeinfo() {
  177. if (this.userInfo.user_rule != 'user') {
  178. store({}, this.userInfo.store_id).then(({ data }) => {
  179. this.achievement = data.achievement;
  180. if (data.store_info) {
  181. this.store_name = data.store_info.name;
  182. } else {
  183. this.store_name = '总店';
  184. }
  185. console.log(data, '123456');
  186. });
  187. }
  188. },
  189. qhx() {
  190. check({
  191. verify_code: this.code,
  192. is_confirm: 1 //1是核销,0是查看
  193. })
  194. .then(e => {
  195. this.$api.msg('核销成功');
  196. this.close();
  197. })
  198. .catch(e => {
  199. console.log(e);
  200. });
  201. },
  202. sao() {
  203. let obj = this;
  204. // #ifndef H5
  205. uni.scanCode({
  206. success(e) {
  207. obj.code = e.result;
  208. obj.$refs.popuphx.open();
  209. console.log(obj.$refs.popuphx);
  210. }
  211. });
  212. // #endif
  213. // #ifdef H5
  214. let wx = require('jweixin-module');
  215. wx.scanQRCode({
  216. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  217. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  218. success: function(res) {
  219. obj.code = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
  220. obj.$refs.popuphx.open();
  221. }
  222. });
  223. // #endif
  224. },
  225. comfirm(text) {
  226. console.log(text);
  227. const result = this.uniCopy(text);
  228. if (result === false) {
  229. uni.showToast({
  230. title: '不支持'
  231. });
  232. } else {
  233. uni.showToast({
  234. title: '复制成功',
  235. icon: 'none'
  236. });
  237. }
  238. this.$refs.popupkf.close();
  239. },
  240. uniCopy(content) {
  241. /**
  242. * 小程序端 和 app端的复制逻辑
  243. */
  244. //#ifndef H5
  245. uni.setClipboardData({
  246. data: content,
  247. success: function() {
  248. console.log('success');
  249. return true;
  250. }
  251. });
  252. //#endif
  253. /**
  254. * H5端的复制逻辑
  255. */
  256. // #ifdef H5
  257. if (!document.queryCommandSupported('copy')) {
  258. //为了兼容有些浏览器 queryCommandSupported 的判断
  259. // 不支持
  260. return false;
  261. }
  262. let textarea = document.createElement('textarea');
  263. textarea.value = content;
  264. textarea.readOnly = 'readOnly';
  265. document.body.appendChild(textarea);
  266. textarea.select(); // 选择对象
  267. textarea.setSelectionRange(0, content.length); //核心
  268. let result = document.execCommand('copy'); // 执行浏览器复制命令
  269. textarea.remove();
  270. return result;
  271. // #endif
  272. },
  273. // 加载初始数据
  274. loadBaseData() {
  275. getUserInfo({})
  276. .then(({ data }) => {
  277. this.setUserInfo(data);
  278. })
  279. .catch(e => {
  280. console.log(e);
  281. });
  282. },
  283. /**
  284. * 统一跳转接口,拦截未登录路由
  285. * navigator标签现在默认没有转场动画,所以用view
  286. */
  287. navTo(url) {
  288. console.log(url);
  289. if (!this.hasLogin) {
  290. // 保存地址
  291. saveUrl();
  292. // 登录拦截
  293. interceptor();
  294. } else {
  295. uni.navigateTo({
  296. url
  297. });
  298. }
  299. },
  300. close() {
  301. this.$refs.popuphx.close();
  302. this.code = '';
  303. },
  304. // 打开客服
  305. openKf() {
  306. this.$refs.popupkf.open();
  307. },
  308. // 关闭客服
  309. cancel() {
  310. this.$refs.popupkf.close();
  311. },
  312. // 打开绑定
  313. open() {
  314. this.$refs.gspass.open();
  315. },
  316. cast() {
  317. set_waiter({ uid: this.id })
  318. .then(e => {
  319. this.$api.msg('绑定成功');
  320. this.$refs.gspass.close();
  321. this.id = '';
  322. })
  323. .catch(err => {
  324. this.$refs.gspass.close();
  325. this.id = '';
  326. });
  327. },
  328. cancelpass() {
  329. this.$refs.gspass.close();
  330. this.id = '';
  331. }
  332. }
  333. };
  334. </script>
  335. <style lang="scss">
  336. %flex-center {
  337. display: flex;
  338. flex-direction: column;
  339. justify-content: center;
  340. align-items: center;
  341. }
  342. %section {
  343. display: flex;
  344. justify-content: space-around;
  345. align-content: center;
  346. background: #fff;
  347. border-radius: 10rpx;
  348. }
  349. .container,
  350. page {
  351. min-height: 100%;
  352. height: auto;
  353. background-color: $page-color-base;
  354. }
  355. .vheigh {
  356. height: var(--status-bar-height);
  357. background-color: $base-color;
  358. }
  359. .top-image {
  360. position: absolute;
  361. top: 0;
  362. left: 0;
  363. right: 0;
  364. height: 230rpx;
  365. image {
  366. width: 100%;
  367. height: 100%;
  368. }
  369. }
  370. .popup-box {
  371. width: 522rpx;
  372. height: 605rpx;
  373. background-color: #ffffff;
  374. border-radius: 20rpx;
  375. position: relative;
  376. .img {
  377. position: relative;
  378. top: -56rpx;
  379. left: 0;
  380. width: 522rpx;
  381. height: 132rpx;
  382. display: flex;
  383. justify-content: center;
  384. image {
  385. border-radius: 20rpx 20rpx 0 0;
  386. width: 450rpx;
  387. height: 132rpx;
  388. }
  389. }
  390. .mian {
  391. margin-top: -44rpx;
  392. display: flex;
  393. flex-direction: column;
  394. align-items: center;
  395. // padding: 32rpx 32rpx;
  396. background-color: #ffffff;
  397. border-radius: 0 0 20rpx 20rpx;
  398. text-align: center;
  399. .delivery {
  400. font-size: 40rpx;
  401. color: #333333;
  402. display: flex;
  403. align-items: center;
  404. flex-direction: column;
  405. image {
  406. margin-top: 48rpx;
  407. width: 172rpx;
  408. height: 160rpx;
  409. }
  410. }
  411. .nocancel {
  412. font-size: 32rpx;
  413. color: #333333;
  414. margin-top: 14rpx;
  415. }
  416. .comfirm-box {
  417. margin-top: 52rpx;
  418. display: flex;
  419. // margin-bottom: 32rpx;
  420. // justify-content: space-around;
  421. .cancel {
  422. display: flex;
  423. align-items: center;
  424. justify-content: center;
  425. width: 197rpx;
  426. height: 74rpx;
  427. border: 1px solid #dcc786;
  428. border-radius: 38rpx;
  429. font-size: 32rpx;
  430. color: #605128;
  431. }
  432. .comfirm {
  433. margin-left: 32rpx;
  434. display: flex;
  435. align-items: center;
  436. justify-content: center;
  437. width: 197rpx;
  438. height: 74rpx;
  439. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  440. border-radius: 38px;
  441. font-size: 32rpx;
  442. color: #605128;
  443. }
  444. }
  445. }
  446. }
  447. .user-box {
  448. position: relative;
  449. z-index: 2;
  450. width: 690rpx;
  451. margin: 0 auto;
  452. background: #ffffff;
  453. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  454. border-radius: 20rpx;
  455. display: flex;
  456. flex-direction: column;
  457. align-items: center;
  458. padding: 54rpx 0 30rpx;
  459. line-height: 1;
  460. .avatar {
  461. border-radius: 50%;
  462. width: 132rpx;
  463. height: 132rpx;
  464. }
  465. .user-name {
  466. margin-top: 14rpx;
  467. font-size: 30rpx;
  468. font-family: PingFang SC;
  469. font-weight: bold;
  470. color: #333333;
  471. }
  472. .user-shop {
  473. margin-top: 10rpx;
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. .user-shop-icon {
  478. width: 22rpx;
  479. height: 22rpx;
  480. }
  481. .user-shopname {
  482. margin-left: 6rpx;
  483. font-size: 20rpx;
  484. font-family: PingFang SC;
  485. font-weight: 500;
  486. color: #ff7e3e;
  487. }
  488. }
  489. .user-money {
  490. width: 100%;
  491. margin-top: 50rpx;
  492. justify-content: center;
  493. .user-money-item {
  494. width: 50%;
  495. display: flex;
  496. flex-direction: column;
  497. justify-content: center;
  498. align-items: center;
  499. .user-money-num {
  500. font-size: 36rpx;
  501. font-family: PingFang SC;
  502. font-weight: bold;
  503. color: #333333;
  504. }
  505. .user-money-font {
  506. margin-top: 20rpx;
  507. font-size: 22rpx;
  508. font-family: PingFang SC;
  509. font-weight: 500;
  510. color: #666666;
  511. }
  512. }
  513. .user-xian {
  514. width: 1px;
  515. height: 77rpx;
  516. background: #eeeeee;
  517. }
  518. }
  519. }
  520. .main-box {
  521. margin: 20rpx auto 0;
  522. width: 710rpx;
  523. background: #ffffff;
  524. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  525. border-radius: 20rpx;
  526. .title {
  527. display: flex;
  528. justify-content: space-between;
  529. align-items: center;
  530. padding: 24rpx;
  531. border-bottom: 1px solid #eeeeee;
  532. .title-left {
  533. display: flex;
  534. align-items: center;
  535. .title-icon {
  536. width: 32rpx;
  537. height: 32rpx;
  538. }
  539. .title-font {
  540. margin-left: 20rpx;
  541. font-size: 28rpx;
  542. font-family: PingFang SC;
  543. font-weight: bold;
  544. color: #333333;
  545. }
  546. }
  547. .title-right {
  548. width: 14rpx;
  549. height: 24rpx;
  550. }
  551. }
  552. .main {
  553. padding: 50rpx 0 30rpx;
  554. .jg {
  555. width: 1px;
  556. height: 100rpx;
  557. background: #eeeeee;
  558. }
  559. .item {
  560. padding-bottom: 20rpx;
  561. width: 25%;
  562. display: flex;
  563. flex-direction: column;
  564. align-items: center;
  565. .item-num {
  566. font-size: 36rpx;
  567. font-family: PingFang SC;
  568. font-weight: bold;
  569. color: #333333;
  570. }
  571. .item-font {
  572. margin-top: 18rpx;
  573. font-size: 22rpx;
  574. font-family: PingFang SC;
  575. font-weight: 500;
  576. color: #666666;
  577. }
  578. }
  579. .oitem {
  580. width: 33%;
  581. display: flex;
  582. flex-direction: column;
  583. align-items: center;
  584. .oitem-image {
  585. height: 40rpx;
  586. width: 42rpx;
  587. }
  588. .oitem-font {
  589. margin-top: 20rpx;
  590. font-size: 24rpx;
  591. font-family: PingFang SC;
  592. font-weight: 500;
  593. color: #333333;
  594. }
  595. }
  596. }
  597. }
  598. .tool-list {
  599. width: 690rpx;
  600. margin: 20rpx auto 0;
  601. background: #ffffff;
  602. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  603. border-radius: 20rpx;
  604. }
  605. .psw-wrapper {
  606. width: 548rpx;
  607. padding: 20rpx 0;
  608. background-color: #ffffff;
  609. border-radius: 15rpx 15rpx;
  610. .psw-title {
  611. width: 100%;
  612. font-size: 35rpx;
  613. padding: 0 0 40rpx;
  614. text-align: center;
  615. font-weight: 800;
  616. }
  617. .psw-content {
  618. width: 100%;
  619. font-size: 32rpx;
  620. text-align: center;
  621. }
  622. .psw-price {
  623. font-weight: bold;
  624. font-size: 68rpx;
  625. text-align: center;
  626. padding-top: 10rpx;
  627. }
  628. .psw-jg {
  629. height: 1px;
  630. width: 500rpx;
  631. background-color: #eee;
  632. margin: auto;
  633. }
  634. .psw-paytype {
  635. justify-content: space-between;
  636. padding: 10rpx 25rpx 30rpx;
  637. font-size: 26rpx;
  638. }
  639. .psw-ipt {
  640. display: block;
  641. background-color: #dce3ed;
  642. height: 90rpx;
  643. width: 464rpx;
  644. padding-left: 30rpx;
  645. margin: 0 auto;
  646. font-size: 80rpx;
  647. }
  648. .psw-btn text {
  649. display: inline-block;
  650. text-align: center;
  651. width: 50%;
  652. padding-top: 29rpx;
  653. font-size: 35rpx;
  654. }
  655. .psw-qd {
  656. color: #ff4c4c;
  657. }
  658. }
  659. .hx-wrapper {
  660. width: 536rpx;
  661. height: 630rpx;
  662. position: relative;
  663. // background-color: #fff;
  664. .hx-img {
  665. width: 536rpx;
  666. height: 281rpx;
  667. image {
  668. width: 536rpx;
  669. height: 281rpx;
  670. }
  671. }
  672. .hx-close {
  673. position: absolute;
  674. left: 243rpx;
  675. bottom: -80rpx;
  676. width: 52rpx;
  677. height: 52rpx;
  678. image {
  679. width: 52rpx;
  680. height: 52rpx;
  681. }
  682. }
  683. .hx-body {
  684. width: 536rpx;
  685. height: 349rpx;
  686. background-color: #fff;
  687. border-radius: 0 0 10rpx 10rpx;
  688. .hx-title {
  689. width: 536rpx;
  690. font-size: 36rpx;
  691. font-weight: 500;
  692. color: #333333;
  693. line-height: 1;
  694. padding-top: 42rpx;
  695. text-align: center;
  696. }
  697. input {
  698. width: 439rpx;
  699. height: 68rpx;
  700. background: #dbf3e9;
  701. border-radius: 10rpx;
  702. margin: 39rpx auto 0;
  703. padding-left: 26rpx;
  704. .hx-placeholder {
  705. font-size: 26rpx;
  706. font-weight: 500;
  707. color: #ff4c4c;
  708. }
  709. }
  710. .hx-btn {
  711. margin: 44rpx auto 0;
  712. width: 353rpx;
  713. height: 71rpx;
  714. background: #ff4c4c;
  715. border-radius: 34rpx;
  716. font-size: 36rpx;
  717. font-weight: 500;
  718. color: #f8f9f9;
  719. line-height: 71rpx;
  720. text-align: center;
  721. }
  722. }
  723. }
  724. </style>