list.vue 19 KB

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