list.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. <template>
  2. <gracePage :customHeader="false">
  3. <view class="container" slot="gBody">
  4. <view class="main" v-if="fetch.cate.length > 0">
  5. <view class="content" :style="height">
  6. <scroll-view class="menus" :scroll-into-view="view" scroll-with-animation scroll-y>
  7. <view class="wrapper">
  8. <view class="menu" :id="`menu-${v.id}`" :class="{'current': k == cate_index}" v-for="(v, k) in fetch.cate" :key="k" @tap="menu(k, v.id)">
  9. <text>{{ v.name }}</text>
  10. </view>
  11. </view>
  12. </scroll-view>
  13. <!-- goods list begin -->
  14. <scroll-view class="goods" scroll-with-animation scroll-y :scroll-top="top" @scroll="scoll">
  15. <view class="wrapper">
  16. <swiper class="ads" id="ads" autoplay :interval="3000" indicator-dots>
  17. <swiper-item v-for="(item, index) in ads" :key='index'>
  18. <image :src="item.image"></image>
  19. </swiper-item>
  20. </swiper>
  21. <view class="list">
  22. <!-- category begin -->
  23. <view class="category" v-for="(v, k) in fetch.cate" :key="k" :id="`cate-${v.id}`">
  24. <view class="title">
  25. <text>{{ v.name }}</text>
  26. <image :src="v.logo" class="icon"></image>
  27. </view>
  28. <view class="items">
  29. <!-- 商品 begin -->
  30. <view class="good" v-for="(v1, k1) in fetch.info[v.id]" :key="k1">
  31. <image :src="v1.pic_cover" class="image" @tap="location(v1.id_code)"></image>
  32. <view class="right">
  33. <text class="name">{{ v1.name }}</text>
  34. <text class="tips">{{ v1.desc }}</text>
  35. <view class="price_and_action" v-if="v1.buy == 1">
  36. <text class="price">¥{{ v1.buy_price }}</text>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 商品 end -->
  41. </view>
  42. </view>
  43. <!-- category end -->
  44. </view>
  45. </view>
  46. </scroll-view>
  47. <!-- goods list end -->
  48. </view>
  49. <!-- content end -->
  50. </view>
  51. </view>
  52. </gracePage>
  53. </template>
  54. <script>
  55. export default {
  56. components: {
  57. },
  58. data() {
  59. return {
  60. fetch : {
  61. cate : [],
  62. info : [],
  63. hot : [],
  64. },
  65. height : 'height:100%',
  66. ads: [
  67. {image: 'https://img-shop.qmimg.cn/s23107/2020/04/27/4ebdb582a5185358c4.jpg?imageView2/2/w/600/h/600'},
  68. {image: 'https://images.qmai.cn/s23107/2020/05/08/c25de6ef72d2890630.png?imageView2/2/w/600/h/600'},
  69. {image: 'https://img-shop.qmimg.cn/s23107/2020/04/10/add546c1b1561f880d.jpg?imageView2/2/w/600/h/600'},
  70. {image: 'https://images.qmai.cn/s23107/2020/04/30/b3af19e0de8ed42f61.jpg?imageView2/2/w/600/h/600'},
  71. {image: 'https://img-shop.qmimg.cn/s23107/2020/04/17/8aeb78516d63864420.jpg?imageView2/2/w/600/h/600'}
  72. ],
  73. cate_index: 0,//默认分类
  74. top: 0,
  75. view: '',
  76. sizeState: false,
  77. }
  78. },
  79. onLoad() {
  80. },
  81. onShow() {
  82. //this.Dever.checkLogin();
  83. this.getData();
  84. },
  85. // 重新加载
  86. onPullDownRefresh: function() {
  87. this.getData();
  88. },
  89. //下拉加载
  90. onReachBottom() {
  91. this.getData();
  92. },
  93. methods: {
  94. getData : function() {
  95. var self = this;
  96. this.Dever.get(this, 'app/collection/?l=api.getList', {id:-1}, function(t) {
  97. console.info(t);
  98. uni.getSystemInfo({
  99. success: function (res) {
  100. self.height = 'height:' + res.windowHeight + 'px';
  101. }
  102. })
  103. });
  104. },
  105. location : function(id) {
  106. this.Dever.location('dream/index?id=' + id);
  107. },
  108. menu : function(index, id) {
  109. if(!this.sizeState) {
  110. this.size()
  111. }
  112. this.cate_index = index
  113. this.$nextTick(() => this.top = this.fetch.cate.find(item => item.id == id).top)
  114. },
  115. scoll : function({detail}) { //商品列表滚动事件
  116. if(!this.sizeState) {
  117. this.size()
  118. }
  119. const {scrollTop} = detail
  120. let tabs = this.fetch.cate.filter(item=> item.top <= scrollTop).reverse()
  121. if(tabs.length > 0){
  122. this.cate_id = tabs[0].id
  123. }
  124. },
  125. size : function() {
  126. let h = 10
  127. let view = uni.createSelectorQuery().select('#ads')
  128. view.fields({
  129. size: true
  130. }, data => {
  131. h += Math.floor(data.height)
  132. }).exec()
  133. this.fetch.cate.forEach(item => {
  134. let view = uni.createSelectorQuery().select(`#cate-${item.id}`)
  135. view.fields({
  136. size: true
  137. }, data => {
  138. item.top = h
  139. h += data.height
  140. item.bottom = h
  141. }).exec()
  142. })
  143. this.sizeState = true
  144. },
  145. }
  146. };
  147. </script>
  148. <style lang="scss" scoped>
  149. /* #ifdef H5 */
  150. page {
  151. min-height: 100%;
  152. }
  153. /* #endif */
  154. uni-button {
  155. background-color: #ADB838;
  156. }
  157. .container {
  158. overflow: hidden;
  159. position: relative;
  160. }
  161. .loading {
  162. width: 100%;
  163. height: 100%;
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. image {
  168. width: 260rpx;
  169. height: 260rpx;
  170. position: relative;
  171. margin-top: -200rpx;
  172. /* #ifdef h5 */
  173. margin-top: 0;
  174. /* #endif */
  175. }
  176. }
  177. .stores {
  178. width: 100%;
  179. display: flex;
  180. flex-direction: column;
  181. justify-content: flex-start;
  182. margin-bottom: -40rpx;
  183. .store {
  184. width: 100%;
  185. background-color: $bg-color-grey;
  186. padding: 20rpx;
  187. display: flex;
  188. align-items: center;
  189. margin-bottom: 20rpx;
  190. border-radius: 6rpx;
  191. .iconfont {
  192. font-size: 50rpx;
  193. margin-right: 15rpx;
  194. &.iconradio-button-off {
  195. color: $text-color-assist;
  196. }
  197. &.iconradio-button-on {
  198. color: $color-primary;
  199. }
  200. }
  201. .infos {
  202. flex: 1;
  203. display: flex;
  204. flex-direction: column;
  205. color: $text-color-base;
  206. overflow: hidden;
  207. .name_and_distance {
  208. width: 100%;
  209. display: flex;
  210. justify-content: space-between;
  211. margin-bottom: 10rpx;
  212. overflow: hidden;
  213. .name {
  214. flex: 1;
  215. flex-shrink: 0;
  216. overflow: hidden;
  217. text-overflow: ellipsis;
  218. white-space: nowrap;
  219. font-size: $font-size-lg;
  220. }
  221. .distance {
  222. flex-shrink: 0;
  223. font-size: $font-size-lg;
  224. font-weight: bold;
  225. margin-left: 20rpx;
  226. }
  227. }
  228. .street {
  229. color: $text-color-assist;
  230. font-size: $font-size-sm;
  231. }
  232. }
  233. }
  234. }
  235. .main {
  236. width: 100%;
  237. height: 100%;
  238. position: relative;
  239. display: flex;
  240. flex-direction: column;
  241. }
  242. .nav {
  243. width: 100%;
  244. height: 212rpx;
  245. flex-shrink: 0;
  246. display: flex;
  247. flex-direction: column;
  248. .header {
  249. width: 100%;
  250. display: flex;
  251. align-items: center;
  252. justify-content: space-between;
  253. padding: 20rpx;
  254. background-color: #ffffff;
  255. height: 140rpx;
  256. .left {
  257. flex: 1;
  258. display: flex;
  259. flex-direction: column;
  260. .store-name {
  261. display: flex;
  262. justify-content: flex-start;
  263. align-items: center;
  264. font-size: $font-size-lg;
  265. margin-bottom: 10rpx;
  266. .iconfont {
  267. margin-left: 10rpx;
  268. line-height: 100%;
  269. }
  270. }
  271. .store-location {
  272. display: flex;
  273. justify-content: flex-start;
  274. align-items: center;
  275. color: $text-color-assist;
  276. font-size: $font-size-sm;
  277. .iconfont {
  278. vertical-align: middle;
  279. display: table-cell;
  280. color: $color-primary;
  281. line-height: 100%;
  282. }
  283. }
  284. }
  285. .right {
  286. background-color: $bg-color-grey;
  287. border-radius: 38rpx;
  288. display: flex;
  289. align-items: center;
  290. font-size: $font-size-sm;
  291. padding: 0 38rpx;
  292. color: $text-color-assist;
  293. .dinein, .takeout {
  294. position: relative;
  295. display: flex;
  296. align-items: center;
  297. &.active {
  298. padding: 14rpx 38rpx;
  299. color: #ffffff;
  300. background-color: $color-primary;
  301. border-radius: 38rpx;
  302. }
  303. }
  304. .takeout {
  305. margin-left: 20rpx;
  306. height: 100%;
  307. flex: 1;
  308. padding: 14rpx 0;
  309. }
  310. .dinein.active {
  311. margin-left: -38rpx;
  312. }
  313. .takeout.active {
  314. margin-right: -38rpx;
  315. }
  316. }
  317. }
  318. .coupon {
  319. flex: 1;
  320. width: 100%;
  321. background-color: $bg-color-primary;
  322. font-size: $font-size-base;
  323. color: $color-primary;
  324. padding: 0 20rpx;
  325. display: flex;
  326. align-items: center;
  327. overflow: hidden;
  328. .title {
  329. flex: 1;
  330. margin-left: 10rpx;
  331. overflow: hidden;
  332. white-space: nowrap;
  333. text-overflow: ellipsis;
  334. }
  335. .iconfont {
  336. line-height: 100%;
  337. }
  338. }
  339. }
  340. .content {
  341. flex: 1;
  342. overflow: hidden;
  343. width: 100%;
  344. display: flex;
  345. .menus {
  346. width: 200rpx;
  347. height: 100%;
  348. overflow: hidden;
  349. background-color: $bg-color-grey;
  350. .wrapper {
  351. width: 100%;
  352. height: 100%;
  353. .menu {
  354. display: flex;
  355. align-items: center;
  356. justify-content: flex-start;
  357. padding: 30rpx 20rpx;
  358. font-size: 26rpx;
  359. color: $text-color-assist;
  360. position: relative;
  361. &:nth-last-child(1) {
  362. margin-bottom: 130rpx;
  363. }
  364. &.current {
  365. background-color: #ffffff;
  366. color: $text-color-base;
  367. }
  368. .dot {
  369. position: absolute;
  370. width: 34rpx;
  371. height: 34rpx;
  372. line-height: 34rpx;
  373. font-size: 22rpx;
  374. background-color: $color-primary;
  375. color: #ffffff;
  376. top: 16rpx;
  377. right: 10rpx;
  378. border-radius: 100%;
  379. text-align: center;
  380. }
  381. }
  382. }
  383. }
  384. .goods {
  385. flex: 1;
  386. height: 100%;
  387. overflow: hidden;
  388. background-color: #ffffff;
  389. .wrapper {
  390. width: 100%;
  391. height: 100%;
  392. padding: 20rpx;
  393. .ads {
  394. height: calc(300 / 550 * 510rpx);
  395. image {
  396. width: 100%;
  397. height: 100%;
  398. border-radius: 8rpx;
  399. }
  400. }
  401. .list {
  402. width: 100%;
  403. font-size: $font-size-base;
  404. padding-bottom: 130rpx;
  405. .category {
  406. width: 100%;
  407. .title {
  408. padding: 30rpx 0;
  409. display: flex;
  410. align-items: center;
  411. color: $text-color-base;
  412. .icon {
  413. width: 38rpx;
  414. height: 38rpx;
  415. margin-left: 10rpx;
  416. }
  417. }
  418. }
  419. .items {
  420. display: flex;
  421. flex-direction: column;
  422. padding-bottom: -30rpx;
  423. .good {
  424. display: flex;
  425. align-items: center;
  426. margin-bottom: 30rpx;
  427. .image {
  428. width: 160rpx;
  429. height: 160rpx;
  430. margin-right: 20rpx;
  431. border-radius: 8rpx;
  432. }
  433. .right {
  434. flex: 1;
  435. height: 160rpx;
  436. overflow: hidden;
  437. display: flex;
  438. flex-direction: column;
  439. align-items: flex-start;
  440. justify-content: space-between;
  441. padding-right: 14rpx;
  442. .name {
  443. font-size: $font-size-base;
  444. margin-bottom: 10rpx;
  445. }
  446. .tips {
  447. width: 100%;
  448. height: 100rpx;
  449. line-height: 40rpx;
  450. overflow: hidden;
  451. text-overflow: ellipsis;
  452. white-space: nowrap;
  453. font-size: $font-size-sm;
  454. color: $text-color-assist;
  455. margin-bottom: 10rpx;
  456. }
  457. .price_and_action {
  458. width: 100%;
  459. display: flex;
  460. justify-content: space-between;
  461. align-items: center;
  462. .price {
  463. font-size: $font-size-base;
  464. font-weight: 600;
  465. }
  466. .btn-group {
  467. display: flex;
  468. justify-content: space-between;
  469. align-items: center;
  470. position: relative;
  471. .btn {
  472. padding: 0 20rpx;
  473. box-sizing: border-box;
  474. font-size: $font-size-sm;
  475. height: 44rpx;
  476. line-height: 44rpx;
  477. &.property_btn {
  478. border-radius: 24rpx;
  479. }
  480. &.add_btn,
  481. &.reduce_btn {
  482. padding: 0;
  483. width: 44rpx;
  484. border-radius: 44rpx;
  485. }
  486. }
  487. .dot {
  488. position: absolute;
  489. background-color: #ffffff;
  490. border: 1px solid $color-primary;
  491. color: $color-primary;
  492. font-size: $font-size-sm;
  493. width: 36rpx;
  494. height: 36rpx;
  495. line-height: 36rpx;
  496. text-align: center;
  497. border-radius: 100%;
  498. right: -12rpx;
  499. top: -10rpx;
  500. }
  501. .number {
  502. width: 44rpx;
  503. height: 44rpx;
  504. line-height: 44rpx;
  505. text-align: center;
  506. }
  507. }
  508. }
  509. }
  510. }
  511. }
  512. }
  513. }
  514. }
  515. }
  516. .modal-box {
  517. max-height: 90vh;
  518. }
  519. .good-detail-modal {
  520. width: 100%;
  521. height: 100%;
  522. display: flex;
  523. flex-direction: column;
  524. .cover {
  525. height: 320rpx;
  526. padding: 30rpx 0;
  527. display: flex;
  528. justify-content: center;
  529. align-items: center;
  530. position: relative;
  531. .image {
  532. width: 260rpx;
  533. height: 260rpx;
  534. }
  535. .btn-group {
  536. position: absolute;
  537. right: 10rpx;
  538. top: 30rpx;
  539. display: flex;
  540. align-items: center;
  541. justify-content: space-around;
  542. image {
  543. width: 80rpx;
  544. height: 80rpx;
  545. }
  546. }
  547. }
  548. .detail {
  549. width: 100%;
  550. min-height: 1vh;
  551. max-height: calc(90vh - 320rpx - 80rpx - 120rpx);
  552. .wrapper {
  553. width: 100%;
  554. height: 100%;
  555. overflow: hidden;
  556. .basic {
  557. padding: 0 20rpx 30rpx;
  558. display: flex;
  559. flex-direction: column;
  560. .name {
  561. font-size: $font-size-base;
  562. color: $text-color-base;
  563. margin-bottom: 10rpx;
  564. }
  565. .tips {
  566. font-size: $font-size-sm;
  567. color: $text-color-grey;
  568. }
  569. }
  570. .properties {
  571. width: 100%;
  572. border-top: 2rpx solid $bg-color-grey;
  573. padding: 10rpx 30rpx 0;
  574. display: flex;
  575. flex-direction: column;
  576. .property {
  577. width: 100%;
  578. display: flex;
  579. flex-direction: column;
  580. margin-bottom: 30rpx;
  581. padding-bottom: -16rpx;
  582. .title {
  583. width: 100%;
  584. display: flex;
  585. justify-content: flex-start;
  586. align-items: center;
  587. margin-bottom: 20rpx;
  588. .name {
  589. font-size: 26rpx;
  590. color: $text-color-base;
  591. margin-right: 20rpx;
  592. }
  593. .desc {
  594. flex: 1;
  595. font-size: $font-size-sm;
  596. color: $color-primary;
  597. overflow: hidden;
  598. text-overflow: ellipsis;
  599. white-space: nowrap;
  600. }
  601. }
  602. .values {
  603. width: 100%;
  604. display: flex;
  605. flex-wrap: wrap;
  606. .value {
  607. border-radius: 8rpx;
  608. background-color: $bg-color-grey;
  609. padding: 16rpx 30rpx;
  610. font-size: 26rpx;
  611. color: $text-color-assist;
  612. margin-right: 16rpx;
  613. margin-bottom: 16rpx;
  614. &.default {
  615. background-color: $color-primary;
  616. color: $text-color-white;
  617. }
  618. }
  619. }
  620. }
  621. }
  622. }
  623. }
  624. .action {
  625. display: flex;
  626. align-items: center;
  627. justify-content: space-between;
  628. background-color: $bg-color-grey;
  629. height: 120rpx;
  630. padding: 0 26rpx;
  631. .left {
  632. flex: 1;
  633. display: flex;
  634. flex-direction: column;
  635. justify-content: center;
  636. margin-right: 20rpx;
  637. overflow: hidden;
  638. .price {
  639. font-size: $font-size-lg;
  640. color: $text-color-base;
  641. }
  642. .props {
  643. color: $text-color-assist;
  644. font-size: 24rpx;
  645. width: 100%;
  646. overflow: hidden;
  647. text-overflow: ellipsis;
  648. white-space: nowrap;
  649. }
  650. }
  651. .btn-group {
  652. display: flex;
  653. align-items: center;
  654. justify-content: space-around;
  655. .number {
  656. font-size: $font-size-base;
  657. width: 44rpx;
  658. height: 44rpx;
  659. line-height: 44rpx;
  660. text-align: center;
  661. }
  662. .btn {
  663. padding: 0;
  664. font-size: $font-size-base;
  665. width: 44rpx;
  666. height: 44rpx;
  667. line-height: 44rpx;
  668. border-radius: 100%;
  669. }
  670. }
  671. }
  672. .add-to-cart-btn {
  673. display: flex;
  674. justify-content: center;
  675. align-items: center;
  676. background-color: $color-primary;
  677. color: $text-color-white;
  678. font-size: $font-size-base;
  679. height: 80rpx;
  680. border-radius: 0 0 12rpx 12rpx;
  681. }
  682. }
  683. .cart-box {
  684. position: absolute;
  685. bottom: 30rpx;
  686. left: 30rpx;
  687. right: 30rpx;
  688. height: 96rpx;
  689. border-radius: 48rpx;
  690. box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
  691. background-color: #FFFFFF;
  692. display: flex;
  693. align-items: center;
  694. justify-content: space-between;
  695. z-index: 9999;
  696. .cart-img {
  697. width: 96rpx;
  698. height: 96rpx;
  699. position: relative;
  700. margin-top: -48rpx;
  701. }
  702. .pay-btn {
  703. height: 100%;
  704. padding: 0 30rpx;
  705. color: #FFFFFF;
  706. border-radius: 0 50rpx 50rpx 0;
  707. display: flex;
  708. align-items: center;
  709. font-size: $font-size-base;
  710. }
  711. .mark {
  712. padding-left: 46rpx;
  713. margin-right: 30rpx;
  714. position: relative;
  715. .tag {
  716. background-color: $color-warning;
  717. color: $text-color-white;
  718. display: flex;
  719. justify-content: center;
  720. align-items: center;
  721. font-size: $font-size-sm;
  722. position: absolute;
  723. right: -10rpx;
  724. top: -50rpx;
  725. border-radius: 100%;
  726. padding: 4rpx;
  727. width: 40rpx;
  728. height: 40rpx;
  729. opacity: .9;
  730. }
  731. }
  732. .price {
  733. flex: 1;
  734. color: $text-color-base;
  735. }
  736. }
  737. .cart-popup {
  738. .top {
  739. background-color: $bg-color-primary;
  740. color: $color-primary;
  741. padding: 10rpx 30rpx;
  742. font-size: 24rpx;
  743. text-align: right;
  744. }
  745. .cart-list {
  746. background-color: #FFFFFF;
  747. width: 100%;
  748. overflow: hidden;
  749. min-height: 1vh;
  750. max-height: 60vh;
  751. .wrapper {
  752. height: 100%;
  753. display: flex;
  754. flex-direction: column;
  755. padding: 0 30rpx;
  756. margin-bottom: 156rpx;
  757. .item {
  758. display: flex;
  759. justify-content: space-between;
  760. align-items: center;
  761. padding: 30rpx 0;
  762. position: relative;
  763. &::after {
  764. content: ' ';
  765. position: absolute;
  766. bottom: 0;
  767. left: 0;
  768. width: 100%;
  769. background-color: $border-color;
  770. height: 2rpx;
  771. transform: scaleY(.6);
  772. }
  773. .left {
  774. flex: 1;
  775. display: flex;
  776. flex-direction: column;
  777. overflow: hidden;
  778. margin-right: 30rpx;
  779. .name {
  780. font-size: $font-size-sm;
  781. color: $text-color-base;
  782. }
  783. .props {
  784. color: $text-color-assist;
  785. font-size: 24rpx;
  786. overflow: hidden;
  787. text-overflow: ellipsis;
  788. white-space: nowrap;
  789. }
  790. }
  791. .center {
  792. margin-right: 120rpx;
  793. font-size: $font-size-base;
  794. }
  795. .right {
  796. display: flex;
  797. align-items: center;
  798. justify-content: space-between;
  799. .btn {
  800. width: 46rpx;
  801. height: 46rpx;
  802. border-radius: 100%;
  803. padding: 0;
  804. text-align: center;
  805. line-height: 46rpx;
  806. }
  807. .number {
  808. font-size: $font-size-base;
  809. width: 46rpx;
  810. height: 46rpx;
  811. text-align: center;
  812. line-height: 46rpx;
  813. }
  814. }
  815. }
  816. }
  817. }
  818. }
  819. </style>