menu.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  1. <template>
  2. <view class="container">
  3. <view class="header">
  4. <view class="h-title"><view class="b">全部商品</view></view>
  5. </view>
  6. <view class="address">
  7. <view class="address-left" v-if="isTakeaway">
  8. <view class="one " v-if="addressData == 0" @click="loadMore('/pages/set/address?source=1')">
  9. <view class="sl">请选择地址</view>
  10. <view class=""><image src="https://zccy.liuniu946.com/static/img/back.png"></image></view>
  11. </view>
  12. <view class="one " v-if="addressData != 0" @click="loadMore('/pages/set/address?source=1')">
  13. <view class="sl clamp" style="max-width: 70%;">{{ addressData.province + addressData.city + addressData.district }} {{ addressData.detail }}</view>
  14. </view>
  15. <view class="two">
  16. <view class="sl" style="max-width: 70%;">{{ checkedStore.name }}</view>
  17. <view class="t-b">送出外卖</view>
  18. </view>
  19. </view>
  20. <view class="address-left" @click.stop="selectStore" v-else>
  21. <view class="one">{{ checkedStore.name }}</view>
  22. <view class="two">
  23. <view class="t-b">距离你{{ checkedStore.distance | distance }}</view>
  24. </view>
  25. </view>
  26. <!-- <view class="address-right">
  27. <view :class="{ isChoose: !isTakeaway }" class="bottom" @click="change">自提</view>
  28. <view :class="{ isChoose: isTakeaway }" class="bottom" @click="change">外送</view>
  29. </view> -->
  30. </view>
  31. <view class="memu">
  32. <!-- 左侧 -->
  33. <scroll-view scroll-y="true" class="option">
  34. <view class="option-b" v-for="(s, index) in sList" :class="{ opIschoose: index == isChoose }" @click="optionChoose(index)">
  35. <text>{{ s.cate_name }}</text>
  36. </view>
  37. </scroll-view>
  38. <!-- 右侧商品 -->
  39. <scroll-view scroll-with-animation :scroll-top="scrolltop" scroll-y="true" class="goods" ref="scrolly" @scroll="scrolle">
  40. <view
  41. :style="{ minHeight: sList.length == index + 1 ? bottomHeight + 'px' : 'auto', paddingBottom: sList.length == index + 1 ? '100rpx' : '0' }"
  42. class="goods-list"
  43. v-for="(ls, index) in sList"
  44. ref="pdheight"
  45. :id="'main-' + ls.id"
  46. >
  47. <text class="span">{{ ls.cate_name }}</text>
  48. <view v-if="ls.list" class="goods-list-c" v-for="(d, ind) in ls.list" @click="ToDetail(d)">
  49. <view class="goods-list-left"><image :src="d.image" mode="scaleToFill"></image></view>
  50. <view class="goods-list-right">
  51. <view class="one ">{{ d.store_name }}</view>
  52. <view class="two">销量{{ d.sales }}件</view>
  53. <view class="three">
  54. <!-- <view class="ot_price">¥{{ d.ot_price }}</view> -->
  55. <view class="price">¥{{ d.price }}</view>
  56. <button class="button" @click.stop="openMask(index, ind)">选规格</button>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </scroll-view>
  62. </view>
  63. <dialog-bar v-if="sendVal" @tcDel="tcDel" :showItem="actionItem" @setShop="setShop"></dialog-bar>
  64. <choose-list-bar v-if="iscl" @delChoose="delChoose" ref="cart" :buy="buy" @createOrder="createOrder($event)"></choose-list-bar>
  65. </view>
  66. </template>
  67. <script>
  68. import dialogBar from './Child/dialogBar.vue';
  69. import chooseListBar from './Child/chooseListBar.vue';
  70. import { getCategoryList, getProducts, cartAdd, cartCount } from '@/api/product.js';
  71. import { getStoreList } from '@/api/index.js';
  72. import { mapState, mapMutations } from 'vuex';
  73. import { getAddressDefault } from '@/api/user.js';
  74. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  75. export default {
  76. computed: {
  77. // ...mapState(['loginInterceptor']),
  78. ...mapState('user', ['userInfo', 'checkedStore', 'des', 'latlng', 'distribution']),
  79. totalPrice() {
  80. let tp = 0;
  81. for (let i = 0; i < this.buy.length; i++) {
  82. tp += this.buy[i].price * this.buy[i].num;
  83. }
  84. return tp;
  85. }
  86. },
  87. components: {
  88. 'dialog-bar': dialogBar,
  89. 'choose-list-bar': chooseListBar
  90. },
  91. filters: {
  92. parseIntTo(percent) {
  93. percent = +percent;
  94. if (percent % 1 === 0) {
  95. return percent;
  96. } else {
  97. percent = percent.toFixed(1);
  98. return percent;
  99. }
  100. },
  101. distance(val) {
  102. let str = '';
  103. if (val) {
  104. if (val * 1 > 1000) {
  105. return (str = ((val * 1) / 1000).toFixed(1) + 'km');
  106. } else {
  107. return (str = (val * 1).toFixed(0) + 'm');
  108. }
  109. }
  110. return str;
  111. }
  112. },
  113. data() {
  114. return {
  115. count: 0, //购物车数量
  116. addressData: 0,
  117. isTakeaway: true,
  118. shipping_type: 1, // 1为快递 2为自提
  119. isChoose: 0, //保存当前选中的左侧item
  120. buy: [],
  121. TopY: [], //保存右侧每个item栏目距离当前窗口的高度
  122. sList: [],
  123. sendVal: false,
  124. chooseList: {},
  125. iscl: false,
  126. youY: 0,
  127. actionClassInd: 0,
  128. bottomHeight: 0, //最后一个栏目高度
  129. scrolltop: 0, //保存右侧滚轮高度
  130. actionItem: {} //保存当前选中的规格对象
  131. };
  132. },
  133. onReady() {
  134. this.yheight();
  135. uni.createSelectorQuery()
  136. .select('.goods')
  137. .fields(
  138. {
  139. size: true
  140. },
  141. e => {
  142. this.bottomHeight = e.height;
  143. }
  144. )
  145. .exec();
  146. },
  147. onLoad() {
  148. // if(this.sList.length == 0) {
  149. // this.loadData()
  150. // }
  151. },
  152. onShow() {
  153. console.log('dddddddddddddddddddd');
  154. if (this.distribution == 2) {
  155. console.log('this.distribution == 2', 'dddddddddddddddddddd');
  156. this.isTakeaway = true;
  157. } else {
  158. this.isTakeaway = false;
  159. }
  160. // this.iscl = false;
  161. if (this.userInfo.uid) {
  162. cartCount().then(({ data }) => {
  163. getAddressDefault().then(({ data }) => {
  164. this.addressData = data;
  165. });
  166. this.count = data.count;
  167. console.log(data.count, 'data.count+++++++++++++++++');
  168. if (data.count != 0) {
  169. this.iscl = true;
  170. this.$refs.cart.loadData();
  171. } else {
  172. this.iscl = false;
  173. }
  174. });
  175. }
  176. let storeInfo = uni.getStorageSync('newStore') || '';
  177. if (!storeInfo || this.sList.length == 0) {
  178. this.loadData();
  179. uni.setStorageSync('newStore', this.checkedStore);
  180. } else if (this.checkedStore.id != storeInfo.id) {
  181. this.loadData();
  182. uni.setStorageSync('newStore', this.checkedStore);
  183. } else {
  184. }
  185. // this.$refs.cart.loadData()
  186. },
  187. methods: {
  188. ...mapMutations('user', ['setUserInfo', 'setOrderInfo', 'setStoreInfo', 'setPointInfo', 'setDes', 'setDistribution']),
  189. startDataLoad() {},
  190. refrech() {
  191. // this.loadData();
  192. },
  193. // 商品详情页
  194. ToDetail(item) {
  195. if (item.stock < 1) {
  196. this.$api.msg('该商品已售罄');
  197. } else {
  198. uni.navigateTo({
  199. url: `/pages/product/product?id=${item.id}&type=0`
  200. });
  201. }
  202. },
  203. //切换门店
  204. selectStore() {
  205. uni.navigateTo({
  206. url: '/pages/order/choisestore?type=1'
  207. });
  208. },
  209. //计算右侧每个高度
  210. yheight() {
  211. this.TopY = [0];
  212. let yh = 0;
  213. try {
  214. console.log(this.sList, '数据');
  215. this.sList.forEach(item => {
  216. console.log(item.id, '当前id');
  217. let view = uni.createSelectorQuery().select('#main-' + item.id);
  218. view.fields(
  219. {
  220. size: true
  221. },
  222. data => {
  223. console.log(data, '获取高度');
  224. yh += data.height + 5;
  225. this.TopY.push(yh);
  226. }
  227. ).exec();
  228. });
  229. console.log(this.sList, 'end+++++++++++++');
  230. } catch (e) {
  231. console.log(e, '错误');
  232. //TODO handle the exception
  233. }
  234. },
  235. //根据右侧滑动判断左侧选择
  236. scrolle(e) {
  237. let h = e.detail.scrollTop;
  238. for (let i = 0; i < this.TopY.length; i++) {
  239. if (h >= this.TopY[this.TopY.length - 2] - 10) {
  240. this.isChoose = this.TopY.length - 2;
  241. break;
  242. }
  243. if (h > this.TopY[i] && h < this.TopY[i + 1]) {
  244. console.log('选中', h, i, this.TopY[i], this.TopY[i + 1]);
  245. this.isChoose = i;
  246. break;
  247. }
  248. }
  249. },
  250. async loadData() {
  251. let obj = this;
  252. let data = (await getCategoryList({})).data;
  253. obj.sList = data.map(function(s) {
  254. s.list = []; //用于保存当前分类下商品对象的数据
  255. s.loadingType = 'more'; //判断当前商品分类数据是否已经加载完毕
  256. s.page = 1; //当前商品分类加载的商品页数
  257. s.limit = 20; //每次家在数据加载的数据条数
  258. return s;
  259. });
  260. for (var i = 0; i < obj.sList.length; i++) {
  261. if (obj.sList[i].cate_name == '兑换券') {
  262. obj.sList.splice(i, 1);
  263. }
  264. }
  265. console.log(obj.sList, 'obj.sL');
  266. for (var i = 0; i < obj.sList.length; i++) {
  267. console.log(obj.sList[i].id, 'obj.sList[i].id');
  268. await obj.getProductsList(obj.sList[i]);
  269. // 重新计算高度
  270. obj.$nextTick(function() {
  271. obj.yheight();
  272. });
  273. }
  274. console.log(obj.sList);
  275. },
  276. // 获取商品列表
  277. getProductsList(item, type = 'add') {
  278. console.log(item.id);
  279. const obj = this;
  280. const requestData = {
  281. page: item.page,
  282. limit: item.limit,
  283. cid: item.id
  284. };
  285. return new Promise((ok, erro) => {
  286. getProducts(requestData)
  287. .then(({ data }) => {
  288. data.forEach((sj, index) => {
  289. item.list.push(sj);
  290. });
  291. ok(data);
  292. })
  293. .catch(err => {
  294. erro(err);
  295. console.log(err);
  296. });
  297. });
  298. },
  299. //外卖或自提
  300. change() {
  301. this.isTakeaway = !this.isTakeaway;
  302. if (this.isTakeaway) {
  303. this.setDistribution(2);
  304. } else {
  305. this.setDistribution(1);
  306. }
  307. },
  308. getStoreList() {},
  309. //下拉到底部后加载商品列表数据
  310. // getListMore() {
  311. // this.getProductsList(this.flist[this.actionClassInd]);
  312. // },
  313. //左侧选项
  314. optionChoose(index) {
  315. console.log(index, this.scrolltop, this.TopY[index]);
  316. if (!this.TopY[index]) {
  317. this.scrolltop = 0;
  318. } else {
  319. this.scrolltop = this.TopY[index];
  320. }
  321. this.isChoose = index;
  322. },
  323. //选规格弹窗
  324. openMask(item, ind) {
  325. let data = this.sList[item].list[ind];
  326. console.log(item, ind, 'qing');
  327. this.actionItem = data;
  328. this.sendVal = true;
  329. this.iscl = false;
  330. },
  331. //关闭弹窗
  332. tcDel() {
  333. this.sendVal = false;
  334. if (this.count != 0) {
  335. this.iscl = true;
  336. this.$refs.cart.loadData();
  337. }
  338. },
  339. //跳转
  340. loadMore(url) {
  341. if (!this.userInfo.uid) {
  342. // 保存地址
  343. saveUrl();
  344. // 登录拦截
  345. interceptor();
  346. } else {
  347. uni.navigateTo({
  348. url: url
  349. });
  350. }
  351. },
  352. //加入购物车
  353. setShop(data) {
  354. this.sendVal = false;
  355. this.iscl = true;
  356. this.$refs.cart.loadData();
  357. this.count += 1;
  358. },
  359. //清空购物车
  360. delChoose() {
  361. this.iscl = false;
  362. this.count = 0;
  363. },
  364. // 结算
  365. createOrder(item) {
  366. if (this.isTakeaway) {
  367. this.shipping_type = 1;
  368. } else {
  369. this.shipping_type = 2;
  370. }
  371. uni.navigateTo({
  372. url: '/pages/order/createOrder?id=' + item.join(',') + '&isTakeaway=' + this.shipping_type + '&address=' + this.addressData.id
  373. });
  374. }
  375. },
  376. watch: {
  377. actionItem(newvalue, oldvalue) {
  378. console.log(newvalue, oldvalue, '修改');
  379. },
  380. checkedStore: {
  381. handler(newValue, oldValue) {
  382. console.log('门店变化');
  383. },
  384. immediate: true,
  385. deep: true
  386. }
  387. }
  388. };
  389. </script>
  390. <style lang="scss">
  391. page {
  392. min-height: 100% !important;
  393. height: 0 !important;
  394. }
  395. .sl {
  396. max-width: 120%;
  397. overflow: hidden;
  398. text-overflow: ellipsis;
  399. display: -webkit-box;
  400. -webkit-box-orient: vertical;
  401. -webkit-line-clamp: 1;
  402. }
  403. .header {
  404. height: 281rpx;
  405. width: 100%;
  406. position: relative;
  407. .image {
  408. position: absolute;
  409. top: 0;
  410. left: 0;
  411. width: 100%;
  412. height: 281rpx;
  413. background: #f8f6f6;
  414. }
  415. .h-title {
  416. position: relative;
  417. z-index: 10;
  418. width: 100%;
  419. text-align: center;
  420. font-size: 36rpx;
  421. font-family: PingFang SC;
  422. font-weight: bold;
  423. color: #333333;
  424. line-height: 165rpx;
  425. }
  426. }
  427. .address {
  428. position: relative;
  429. z-index: 10;
  430. margin: 27rpx;
  431. margin-top: -110rpx;
  432. height: 128rpx;
  433. border-radius: 10rpx;
  434. background-color: #ffffff;
  435. padding: 15rpx 35rpx;
  436. height: 135rpx;
  437. line-height: 54rpx;
  438. color: #333333;
  439. font-family: PingFang-SC-Medium;
  440. display: flex;
  441. flex-direction: row;
  442. justify-content: space-between;
  443. .one {
  444. font-size: 34rpx;
  445. display: flex;
  446. }
  447. .two {
  448. font-size: 26rpx;
  449. display: flex;
  450. .t-b {
  451. font-size: 26rpx;
  452. color: #999999;
  453. }
  454. }
  455. image {
  456. width: 14rpx;
  457. height: 25rpx;
  458. margin-left: 20rpx;
  459. }
  460. }
  461. .address-right {
  462. width: 168rpx;
  463. height: 56rpx;
  464. font-size: 23rpx;
  465. font-family: PingFang-SC-Medium;
  466. position: absolute;
  467. display: flex;
  468. background-color: #ee2f72;
  469. border-radius: 10rpx;
  470. color: #ffffff;
  471. align-items: center;
  472. right: 20rpx;
  473. top: 0;
  474. bottom: 0;
  475. margin: auto;
  476. .isChoose {
  477. background-color: #ffffff;
  478. color: #ee2f72;
  479. margin: 5rpx;
  480. border-radius: 10rpx;
  481. padding: 10rpx 0rpx;
  482. }
  483. .bottom {
  484. text-align: center;
  485. flex: 1;
  486. line-height: 1;
  487. }
  488. }
  489. .memu {
  490. margin: 20rpx;
  491. margin-bottom: 0;
  492. height: calc(100% - 335rpx);
  493. display: flex;
  494. .option {
  495. width: 200rpx;
  496. border-radius: 10rpx;
  497. overflow: hidden;
  498. height: calc(100% - 97rpx);
  499. .option-b {
  500. background-color: #ffffff;
  501. height: 88rpx;
  502. text-align: center;
  503. line-height: 88rpx;
  504. color: #999999;
  505. font-size: 24rpx;
  506. background-color: #f6f6f6;
  507. font-family: PingFang-SC-Bold;
  508. }
  509. .opIschoose {
  510. background-color: #ffffff;
  511. color: #ee2f72;
  512. }
  513. }
  514. .goods {
  515. width: 500rpx;
  516. height: 100%;
  517. margin-left: 10rpx;
  518. flex-grow: 1;
  519. .goods-list {
  520. padding: 20rpx;
  521. background-color: #ffffff;
  522. border-radius: 10rpx;
  523. .span {
  524. color: #333333;
  525. font-size: 26rpx;
  526. }
  527. .goods-list-c {
  528. margin-top: 50rpx;
  529. display: flex;
  530. position: relative;
  531. image {
  532. width: 140rpx;
  533. height: 140rpx;
  534. }
  535. .goods-list-right {
  536. margin-left: 20rpx;
  537. text-align: left;
  538. display: flex;
  539. align-items: flex-start;
  540. flex-direction: column;
  541. .one {
  542. color: #333333;
  543. font-size: 30rpx;
  544. }
  545. .two {
  546. color: #999999;
  547. font-size: 20rpx;
  548. }
  549. .three {
  550. .price {
  551. color: #ee2f72;
  552. font-size: 32rpx;
  553. }
  554. .ot_price {
  555. color: #999999;
  556. font-size: 28rpx;
  557. text-decoration: line-through;
  558. }
  559. .button {
  560. height: 40rpx;
  561. color: #ffffff;
  562. background-color: #dcb876;
  563. position: absolute;
  564. bottom: 0rpx;
  565. right: 20rpx;
  566. font-size: 20rpx;
  567. text-align: center;
  568. line-height: 40rpx;
  569. border-radius: 20rpx;
  570. }
  571. }
  572. }
  573. }
  574. }
  575. .tlist-box {
  576. .tlistname {
  577. font-size: 24rpx;
  578. padding: 25rpx 25rpx;
  579. // border-top: 2rpx solid rgba(238, 238, 238, 1);
  580. border-bottom: 2rpx solid rgba(238, 238, 238, 1);
  581. }
  582. .tlist-list.flex_item {
  583. height: 0;
  584. min-height: 280rpx;
  585. align-items: stretch;
  586. }
  587. .tlist-list {
  588. padding: 25rpx 0rpx;
  589. position: relative;
  590. .tlist-img {
  591. width: 169rpx;
  592. position: relative;
  593. .img {
  594. width: 169rpx;
  595. height: 169rpx;
  596. image {
  597. width: 169rpx;
  598. height: 169rpx;
  599. }
  600. }
  601. .stock {
  602. margin-top: 13rpx;
  603. font-size: 26rpx;
  604. background: #fff1ee;
  605. width: 100%;
  606. color: #fb4912;
  607. padding: 6rpx 0;
  608. border-radius: 5rpx;
  609. justify-content: center;
  610. align-items: center;
  611. position: absolute;
  612. left: 0;
  613. bottom: 0;
  614. .img {
  615. width: 20rpx;
  616. height: 20rpx;
  617. flex-shrink: 0;
  618. }
  619. .stock-num {
  620. padding-left: 7rpx;
  621. font-size: 22rpx;
  622. border-radius: 5rpx;
  623. height: 32rpx;
  624. line-height: 32rpx;
  625. }
  626. }
  627. }
  628. .sell-out {
  629. position: absolute;
  630. width: 169rpx;
  631. height: 190rpx;
  632. background: rgba(255, 255, 255, 0.4);
  633. text-align: center;
  634. text {
  635. line-height: 190rpx;
  636. background: rgba(0, 0, 0, 0.5);
  637. color: #ffffff;
  638. padding: 10rpx 25rpx;
  639. border-radius: 25rpx;
  640. font-size: 20rpx;
  641. }
  642. }
  643. .tlist-info {
  644. font-size: 24rpx;
  645. width: 61%;
  646. padding-left: 25rpx;
  647. padding-right: 25rpx;
  648. height: 100%;
  649. position: relative;
  650. line-height: 1;
  651. .bottom_border {
  652. position: absolute;
  653. border-bottom: 1px solid #eeeeee;
  654. left: 25rpx;
  655. bottom: 0;
  656. height: 2rpx;
  657. width: 100%;
  658. }
  659. .name {
  660. height: 28rpx;
  661. color: #141821;
  662. font-weight: 500;
  663. font-size: 26rpx;
  664. }
  665. .info {
  666. margin: 10rpx 0rpx;
  667. height: 30rpx;
  668. color: #979797;
  669. font-size: 24rpx;
  670. }
  671. .tipBox {
  672. height: 50rpx;
  673. }
  674. .tip {
  675. padding: 10rpx 0rpx;
  676. text {
  677. border: 2rpx solid #ff1a27;
  678. color: #ff1a27;
  679. border-radius: 5rpx;
  680. font-size: 18rpx;
  681. padding: 5rpx 10rpx;
  682. margin-right: 15rpx;
  683. }
  684. }
  685. .tlist-price {
  686. position: absolute;
  687. left: 25rpx;
  688. bottom: 27rpx;
  689. width: 100%;
  690. .price-box {
  691. .price {
  692. padding-bottom: 15rpx;
  693. color: #ff1a27;
  694. .blod {
  695. font-size: 35rpx;
  696. font-weight: bold;
  697. }
  698. .fen {
  699. color: #838691;
  700. }
  701. }
  702. .vip_price {
  703. color: #2dbd59;
  704. font-size: 26rpx !important;
  705. text {
  706. background: linear-gradient(45deg, rgba(21, 197, 52, 1), rgba(21, 197, 52, 1));
  707. border-radius: 5rpx;
  708. color: #ffffff;
  709. padding: 0rpx 10rpx;
  710. margin-left: 10rpx;
  711. font-size: 20rpx !important;
  712. }
  713. }
  714. }
  715. .gocar {
  716. width: 50rpx;
  717. height: 50rpx;
  718. align-self: flex-end;
  719. image {
  720. width: 100%;
  721. height: 100%;
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. .footer {
  731. width: 100%;
  732. height: 97rpx;
  733. position: absolute;
  734. left: 0;
  735. bottom: 0;
  736. display: flex;
  737. line-height: 97rpx;
  738. .footer-left {
  739. font-size: 38rpx;
  740. background-color: #ecd49e;
  741. flex: 2;
  742. color: #ee2f72;
  743. font-family: PingFang-SC-Bold;
  744. font-weight: bold;
  745. padding-left: 30rpx;
  746. }
  747. .footer-right {
  748. background-color: #ee2f72;
  749. flex: 1;
  750. text-align: center;
  751. color: #ffffff;
  752. font-size: 36rpx;
  753. }
  754. }
  755. </style>