subrecord.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. <template>
  2. <view :class="[AppTheme]" class="content">
  3. <!-- #ifdef APP-PLUS||MP-WEIXIN -->
  4. <u-sticky offsetTop="0" style="z-index: 10;">
  5. <!-- #endif -->
  6. <!-- #ifdef H5 -->
  7. <u-sticky offsetTop="-44" style="z-index: 10;">
  8. <!-- #endif -->
  9. <view class="navbar">
  10. <u-tabs ref="uTabs" :list="navLists" :activeStyle="{
  11. color: primary,
  12. transform: 'scale(1.05)'
  13. }" :inactiveStyle="{
  14. color: '#606266',
  15. transform: 'scale(1)'
  16. }" lineWidth="30" :scrollable="false" :lineColor="primary" :current="tabCurrentIndex" @click="tabClick">
  17. </u-tabs>
  18. </view>
  19. </u-sticky>
  20. <swiper :current="tabCurrentIndex" class="swiper-box" duration="300" @change="changeTab">
  21. <swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex" @touchmove.stop="">
  22. <scroll-view class="list-scroll-content" scroll-y @scrolltolower="handle"
  23. :refresher-enabled="refresherEnabled" @refresherrefresh="refresh"
  24. @refresherpulling="onPulling" :refresher-triggered="triggered" @refresherabort="onAbort"
  25. @scroll="roll" @refresherrestore="onRestore">
  26. <view>
  27. <view class="notes-con" v-for="(item, index) in renGou" :key="index">
  28. <view class="total-share" @click.stop="goDetails(item.id)">
  29. <view class="ts-left">
  30. <view class="ts-h">
  31. <view class="ts-bg bg-primary"><text class="all-p ">农场认养</text></view>
  32. <text class="expect">{{ item.goodsid }}期{{ item.name }}</text>
  33. </view>
  34. <view class="ts-f">
  35. <view>
  36. <view class="num">{{ item.totalprice }}</view>
  37. <view class="sam zi">元/{{ item.unit }}</view>
  38. </view>
  39. <view>
  40. <view class="num">{{ item.cycle }}</view>
  41. <view class="sam zi">周期/天</view>
  42. </view>
  43. <view>
  44. <view class="num">{{ item.num }}</view>
  45. <view class="sam zi">剩余 ({{ item.unit }})</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="ts-right">
  50. <view :id="step(item.id)"></view>
  51. <view class="abso border-primary">
  52. <image :src="settingFile.root_img+'/static/app/imgs/mine/17.png'" mode="" />
  53. <view class="now text-primary" v-if="item.status == 0">已取消</view>
  54. <view class="now text-primary" v-if="item.status == 1"
  55. @click.stop="goPay(item.status, item.id)">
  56. 去付款</view>
  57. <view class="now text-primary" v-if="item.status == 2">认养中</view>
  58. <view class="now text-explain" v-if="item.status == 3">已完成</view>
  59. <view class="now" v-if="item.status == 4">已发货</view>
  60. <view class="now text-neutral" v-if="item.status == 8">退款中</view>
  61. <view class="now text-explain" v-if="item.status == 11">退款完成</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="action-box b-t">
  66. <button class="action-btn recom text-primary border-primary"
  67. @click="cancelOrder(item)" v-if="item.status == 1">取消订单</button>
  68. <button class="action-btn recom text-primary border-primary"
  69. v-if="item.status == 2&&item.t_status==1" @click.stop="refund(item.id)">退款</button>
  70. <button class="action-btn recom text-primary border-primary"
  71. v-if="item.status != 1" @click.stop="goDetails(item.id)">查看认养</button>
  72. <button class="action-btn recom text-primary border-primary"
  73. @click="goPay(item.status, item.id)" v-if="item.status == 1">付款</button>
  74. <button class="action-btn recom text-primary border-primary"
  75. v-if="item.status == 3">已完成</button>
  76. <button class="action-btn recom text-primary border-primary"
  77. v-if="item.status == 4">已发货</button>
  78. </view>
  79. </view>
  80. </view>
  81. <u-modal :showCancelButton="true" :title="title" :content="content" :show="flag"
  82. @confirm="confirm" @cancel="cancel"></u-modal>
  83. <u-loadmore :line="true" :status="loadingType" />
  84. </scroll-view >
  85. </swiper-item>
  86. </swiper>
  87. </view>
  88. </template>
  89. <script>
  90. import mineApi from '@/api/mine/index.js';
  91. export default {
  92. data() {
  93. return {
  94. primary: this.$theme.primary,
  95. settingFile: getApp().globalData.siteinfo,
  96. navLists: [{
  97. name: '全部'
  98. },
  99. {
  100. name: '待付款'
  101. },
  102. {
  103. name: '认养中'
  104. },
  105. {
  106. name: '已完成'
  107. },
  108. ],
  109. navList: [{
  110. state: 0,
  111. text: '全部',
  112. loadingType: 'more'
  113. },
  114. {
  115. state: 1,
  116. text: '待付款',
  117. loadingType: 'more'
  118. },
  119. {
  120. state: 2,
  121. text: '认养中',
  122. loadingType: 'more'
  123. },
  124. {
  125. state: 3,
  126. text: '已完成',
  127. loadingType: 'more'
  128. }
  129. ],
  130. tabCurrentIndex: 0,
  131. loadingType: 'more',
  132. flag: false,
  133. title: '温馨提示',
  134. content: '取消认养订单',
  135. p: 1,
  136. renGou: [],
  137. name: '上拉加载更多',
  138. nowTime: 0,
  139. cancelid: '',
  140. refresherEnabled: true,
  141. triggered: true, //设置当前下拉刷新的状态
  142. _freshing: false
  143. };
  144. },
  145. onLoad() {
  146. this._freshing = false;
  147. },
  148. // onPullDownRefresh() {
  149. // console.log('下拉刷新了')
  150. // if (this._freshing) return;
  151. // this._freshing = true;
  152. // // this.renGou = [];
  153. // this.p = 1;
  154. // this.getJiLu(this.tabCurrentIndex, 1);
  155. // //调用获取数据的函数
  156. // // this.getData();
  157. // if (!this.triggered)
  158. // //界面下拉触发,triggered可能不是true,要设为true
  159. // this.triggered = true;
  160. // setTimeout(() => {
  161. // this.triggered = false;
  162. // this._freshing = false;
  163. // uni.stopPullDownRefresh()
  164. // }, 2000);
  165. // },
  166. onReachBottom() {
  167. console.log('上拉加载 了')
  168. this.loadingType = 'loading';
  169. this.p++;
  170. this.$u.throttle(this.getJiLu(this.tabCurrentIndex));
  171. },
  172. methods: {
  173. refresh() { //自定义下拉刷新
  174. console.log('下拉刷新了neihei')
  175. if (this._freshing) return;
  176. this._freshing = true;
  177. //调用获取数据的函数
  178. this.getJiLu(this.tabCurrentIndex,1)
  179. if (!this.triggered)
  180. //界面下拉触发,triggered可能不是true,要设为true
  181. this.triggered = true;
  182. setTimeout(() => {
  183. this.triggered = false;
  184. this._freshing = false;
  185. uni.stopPullDownRefresh()
  186. }, 2000);
  187. },
  188. refund(id) { //认养退款
  189. let that = this;
  190. let tmplIdsone = that.$config.temlist;
  191. if (tmplIdsone) {
  192. that.$until.requestSubscribeMessage([tmplIdsone['returnReminder']], tmplIdsone, function() {
  193. mineApi.finaceTuikuan({
  194. id
  195. }).then(res => {
  196. uni.showToast({
  197. title: res.msg,
  198. icon: "none"
  199. })
  200. that.renGou = [];
  201. that.getJiLu()
  202. })
  203. });
  204. }else
  205. {
  206. mineApi.finaceTuikuan({
  207. id
  208. }).then(res => {
  209. uni.showToast({
  210. title: res.msg,
  211. icon: "none"
  212. })
  213. that.renGou = [];
  214. that.getJiLu()
  215. })
  216. }
  217. },
  218. onRefresh() {
  219. },
  220. onRestore() {
  221. console.log('结束');
  222. // this.triggered = 'restore'; // 需要重置
  223. },
  224. onAbort() {
  225. this.triggered = false;
  226. },
  227. onPulling(e) {},
  228. roll(res) {
  229. if (res.target.scrollTop >= 20) {
  230. this.refresherEnabled = false;
  231. } else {
  232. this.refresherEnabled = true;
  233. }
  234. },
  235. changeTab(e) {
  236. this.p = 1;
  237. this.renGou = [];
  238. this.tabCurrentIndex = e.target.current;
  239. this.getJiLu(e.target.current, 1);
  240. },
  241. //顶部tab点击
  242. tabClick(e) {
  243. this.p = 1;
  244. this.tabCurrentIndex = e.index;
  245. },
  246. confirm(val1, val2) {
  247. mineApi.cancelOrder({
  248. orderid: this.cancelid
  249. }).then(res => {
  250. this.$api.msg(res.msg);
  251. if (res.status == 200) {
  252. this.p = 1;
  253. this.renGou = [];
  254. this.flag = false;
  255. this.getJiLu(this.tabCurrentIndex);
  256. }
  257. });
  258. },
  259. cancel() {
  260. this.flag = false;
  261. },
  262. cancelOrder(item) {
  263. this.cancelid = item.id;
  264. this.flag = true;
  265. },
  266. step: function(i) {
  267. var id = 'progress' + i;
  268. return id;
  269. },
  270. goPay(status, id) {
  271. console.log(status)
  272. if (status == 1) {
  273. uni.navigateTo({
  274. url: `/pagesC/pages/index/farmorder/farmorder?id=${id}`
  275. });
  276. }
  277. },
  278. goDetails: function(index) {
  279. uni.navigateTo({
  280. url: `/pagesA/pages/subrecord/financedetail?id=${index}`
  281. });
  282. },
  283. getJiLu(i, refresh = 0) {
  284. let data = {
  285. p: this.p,
  286. pagesize: 10
  287. };
  288. mineApi.buyOrderList(data).then(res => {
  289. if (refresh) {
  290. this.renGou = res.data;
  291. } else {
  292. this.renGou = this.renGou.concat(res.data);
  293. }
  294. console.log(11111);
  295. if (res.data.length == 0 || res.data.length < 10) {
  296. this.loadingType = 'nomore';
  297. } else {
  298. this.loadingType = 'more';
  299. }
  300. if (i == 1) {
  301. this.renGou = this.renGou.filter(item => item.status == 1);
  302. } else if (i == 2) {
  303. this.renGou = this.renGou.filter(item => item.status == 2);
  304. } else if (i == 3) {
  305. this.renGou = this.renGou.filter(item => item.status == 3);
  306. }
  307. });
  308. },
  309. handle() {
  310. console.log('上拉加载了')
  311. this.loadingType = 'loading';
  312. this.p++;
  313. this.$u.throttle(this.getJiLu(this.tabCurrentIndex));
  314. },
  315. },
  316. mounted() {
  317. this.time = Date.parse(new Date());
  318. this.getJiLu();
  319. },
  320. // onReachBottom() {
  321. // console.log('到底了');
  322. // },
  323. // onPullDownRefresh() {
  324. // this.orderList = [];
  325. // this.page = 1;
  326. // this.orderType(this.tabCurrentIndex);
  327. // setTimeout(() => {
  328. // uni.stopPullDownRefresh();
  329. // }, 600);
  330. // }
  331. };
  332. </script>
  333. <style lang="scss">
  334. page{
  335. height: 101%;
  336. }
  337. .content {
  338. background: $page-color-base;
  339. height:100%;
  340. box-sizing: border-box;
  341. }
  342. .swiper-box {
  343. height: calc(100vh - 44px);
  344. }
  345. .list-scroll-content {
  346. height: 100%;
  347. overflow-y: auto;
  348. }
  349. .navbar {
  350. height: 40px;
  351. padding: 0 5px;
  352. background: #fff;
  353. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  354. width: 100%;
  355. z-index: 10;
  356. .nav-item {
  357. flex: 1;
  358. display: flex;
  359. justify-content: center;
  360. align-items: center;
  361. height: 100%;
  362. font-size: 15px;
  363. position: relative;
  364. &.current {
  365. &:after {
  366. content: '';
  367. position: absolute;
  368. left: 50%;
  369. bottom: 0;
  370. transform: translateX(-50%);
  371. width: 44px;
  372. height: 0;
  373. border-bottom-width: 2px;
  374. border-bottom-style: solid;
  375. }
  376. }
  377. }
  378. }
  379. .uni-swiper-item {
  380. height: auto;
  381. }
  382. .order-item {
  383. display: flex;
  384. flex-direction: column;
  385. padding-left: 30upx;
  386. background: #fff;
  387. margin-top: 16upx;
  388. .i-top {
  389. display: flex;
  390. align-items: center;
  391. height: 80upx;
  392. padding-right: 30upx;
  393. font-size: $font-base;
  394. color: $font-color-dark;
  395. position: relative;
  396. .time {
  397. flex: 1;
  398. }
  399. .state {
  400. color: $base-color;
  401. }
  402. .del-btn {
  403. padding: 10upx 0 10upx 36upx;
  404. font-size: $font-lg;
  405. color: $font-color-light;
  406. position: relative;
  407. &:after {
  408. content: '';
  409. width: 0;
  410. height: 30upx;
  411. border-left: 1px solid $border-color-dark;
  412. position: absolute;
  413. left: 20upx;
  414. top: 50%;
  415. transform: translateY(-50%);
  416. }
  417. }
  418. }
  419. /* 多条商品 */
  420. .goods-box {
  421. height: 160upx;
  422. padding: 20upx 0;
  423. white-space: nowrap;
  424. .goods-item {
  425. width: 120upx;
  426. height: 120upx;
  427. display: inline-block;
  428. margin-right: 24upx;
  429. }
  430. .goods-img {
  431. display: block;
  432. width: 100%;
  433. height: 100%;
  434. }
  435. }
  436. /* 单条商品 */
  437. .goods-box-single {
  438. display: flex;
  439. padding: 20upx 0;
  440. .goods-img {
  441. display: block;
  442. width: 120upx;
  443. height: 120upx;
  444. }
  445. .right {
  446. flex: 1;
  447. display: flex;
  448. flex-direction: column;
  449. padding: 0 30upx 0 24upx;
  450. overflow: hidden;
  451. .title {
  452. font-size: $font-base + 2upx;
  453. color: $font-color-dark;
  454. line-height: 1;
  455. }
  456. .attr-box {
  457. font-size: $font-sm + 2upx;
  458. color: $font-color-light;
  459. padding: 10upx 12upx;
  460. }
  461. .price {
  462. font-size: $font-base + 2upx;
  463. color: $font-color-dark;
  464. &:before {
  465. content: '¥';
  466. font-size: $font-sm;
  467. margin: 0 2upx 0 8upx;
  468. }
  469. }
  470. }
  471. }
  472. .price-box {
  473. display: flex;
  474. justify-content: flex-end;
  475. align-items: baseline;
  476. padding: 20upx 30upx;
  477. font-size: $font-sm + 2upx;
  478. color: $font-color-light;
  479. .num {
  480. margin: 0 8upx;
  481. color: $font-color-dark;
  482. }
  483. .price {
  484. font-size: $font-lg;
  485. color: $font-color-dark;
  486. &:before {
  487. content: '¥';
  488. font-size: $font-sm;
  489. margin: 0 2upx 0 8upx;
  490. }
  491. }
  492. }
  493. .action-box {
  494. display: flex;
  495. justify-content: flex-end;
  496. align-items: center;
  497. height: 100upx;
  498. position: relative;
  499. padding-right: 30upx;
  500. }
  501. .action-btn {
  502. width: 160upx;
  503. height: 60upx;
  504. margin: 0;
  505. margin-left: 24upx;
  506. padding: 0;
  507. text-align: center;
  508. line-height: 60upx;
  509. font-size: $font-sm + 2upx;
  510. background: #fff;
  511. border-radius: 100px;
  512. &:after {
  513. border-radius: 100px;
  514. }
  515. &.recom {
  516. background: #fff9f9;
  517. }
  518. }
  519. }
  520. /* load-more */
  521. .uni-load-more {
  522. display: flex;
  523. flex-direction: row;
  524. height: 80upx;
  525. align-items: center;
  526. justify-content: center;
  527. }
  528. .uni-load-more__text {
  529. font-size: 28upx;
  530. color: #999;
  531. }
  532. .uni-load-more__img {
  533. height: 24px;
  534. width: 24px;
  535. margin-right: 10px;
  536. }
  537. .uni-load-more__img>view {
  538. position: absolute;
  539. }
  540. .uni-load-more__img>view view {
  541. width: 6px;
  542. height: 2px;
  543. border-top-left-radius: 1px;
  544. border-bottom-left-radius: 1px;
  545. background: #999;
  546. position: absolute;
  547. opacity: 0.2;
  548. transform-origin: 50%;
  549. animation: load 1.56s ease infinite;
  550. }
  551. .uni-load-more__img>view view:nth-child(1) {
  552. transform: rotate(90deg);
  553. top: 2px;
  554. left: 9px;
  555. }
  556. .uni-load-more__img>view view:nth-child(2) {
  557. transform: rotate(180deg);
  558. top: 11px;
  559. right: 0;
  560. }
  561. .uni-load-more__img>view view:nth-child(3) {
  562. transform: rotate(270deg);
  563. bottom: 2px;
  564. left: 9px;
  565. }
  566. .uni-load-more__img>view view:nth-child(4) {
  567. top: 11px;
  568. left: 0;
  569. }
  570. .load1,
  571. .load2,
  572. .load3 {
  573. height: 24px;
  574. width: 24px;
  575. }
  576. .load2 {
  577. transform: rotate(30deg);
  578. }
  579. .load3 {
  580. transform: rotate(60deg);
  581. }
  582. .load1 view:nth-child(1) {
  583. animation-delay: 0s;
  584. }
  585. .load2 view:nth-child(1) {
  586. animation-delay: 0.13s;
  587. }
  588. .load3 view:nth-child(1) {
  589. animation-delay: 0.26s;
  590. }
  591. .load1 view:nth-child(2) {
  592. animation-delay: 0.39s;
  593. }
  594. .load2 view:nth-child(2) {
  595. animation-delay: 0.52s;
  596. }
  597. .load3 view:nth-child(2) {
  598. animation-delay: 0.65s;
  599. }
  600. .load1 view:nth-child(3) {
  601. animation-delay: 0.78s;
  602. }
  603. .load2 view:nth-child(3) {
  604. animation-delay: 0.91s;
  605. }
  606. .load3 view:nth-child(3) {
  607. animation-delay: 1.04s;
  608. }
  609. .load1 view:nth-child(4) {
  610. animation-delay: 1.17s;
  611. }
  612. .load2 view:nth-child(4) {
  613. animation-delay: 1.3s;
  614. }
  615. .load3 view:nth-child(4) {
  616. animation-delay: 1.43s;
  617. }
  618. @-webkit-keyframes load {
  619. 0% {
  620. opacity: 1;
  621. }
  622. 100% {
  623. opacity: 0.2;
  624. }
  625. }
  626. </style>
  627. <style lang="scss">
  628. page {
  629. width: 100%;
  630. height: 100%;
  631. }
  632. // .subrecord {
  633. // width: 100%;
  634. // min-height: 100%;
  635. // padding-top: 0.1rpx;
  636. // padding-bottom: 20rpx;
  637. // background: #f1f1f1;
  638. // position: relative;
  639. .no-data {
  640. width: 160rpx;
  641. height: 160rpx;
  642. position: absolute;
  643. top: 35%;
  644. left: 50%;
  645. margin-left: -80rpx;
  646. }
  647. .no-data image {
  648. width: 100%;
  649. height: 100%;
  650. }
  651. .notes-con {
  652. width: calc(100% - 40rpx);
  653. margin: 0 auto;
  654. border-radius: 20rpx;
  655. background-color: #ffffff;
  656. }
  657. .total-share {
  658. width: 100%;
  659. display: flex;
  660. justify-content: flex-start;
  661. margin: 20rpx auto;
  662. }
  663. .action-box {
  664. display: flex;
  665. justify-content: flex-end;
  666. align-items: center;
  667. height: 100upx;
  668. position: relative;
  669. padding-right: 30upx;
  670. }
  671. .action-btn {
  672. width: 160upx;
  673. height: 60upx;
  674. margin: 0;
  675. margin-left: 24upx;
  676. padding: 0;
  677. text-align: center;
  678. line-height: 60upx;
  679. font-size: $font-sm + 2upx;
  680. background: #fff;
  681. border-radius: 100px;
  682. &:after {
  683. border-radius: 100px;
  684. }
  685. &.recom {
  686. background: #fff9f9;
  687. border-width: 1rpx;
  688. border-style: solid;
  689. }
  690. }
  691. .ts-left {
  692. margin-top: 16rpx;
  693. margin-left: 20rpx;
  694. }
  695. .total-share .ts-h,
  696. .ts-f {
  697. width: 472rpx;
  698. }
  699. .ts-f {
  700. margin-top: -14rpx;
  701. }
  702. .total-share .ts-h {
  703. height: 70rpx;
  704. display: flex;
  705. justify-content: flex-start;
  706. align-items: center;
  707. margin-bottom: 50rpx;
  708. margin-top: 10rpx;
  709. }
  710. .total-share .ts-h .ts-bg {
  711. width: 74rpx;
  712. height: 70rpx;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. font-size: 16rpx;
  717. background-size: 100%;
  718. margin-right: 16rpx;
  719. text-align: center;
  720. }
  721. .total-share .ts-h .all-p {
  722. font-size: 20rpx;
  723. font-family: PingFang SC;
  724. font-weight: 800;
  725. color: rgba(255, 255, 255, 1);
  726. letter-spacing: 6rpx;
  727. margin-left: 5rpx;
  728. margin-top: -8rpx;
  729. }
  730. .total-share .ts-h .expect {
  731. display: inline-block;
  732. width: 360rpx;
  733. overflow: hidden;
  734. text-overflow: ellipsis;
  735. -o-text-overflow: ellipsis;
  736. white-space: nowrap;
  737. font-size: 31rpx;
  738. font-family: PingFang SC;
  739. font-weight: bold;
  740. color: rgba(0, 0, 0, 1);
  741. }
  742. .ts-f {
  743. display: flex;
  744. justify-content: space-between;
  745. align-items: center;
  746. }
  747. .ts-f .red-pre {
  748. font-size: 52rpx;
  749. font-family: PingFang SC;
  750. font-weight: 800;
  751. color: rgba(255, 31, 31, 1);
  752. }
  753. .ts-f .num {
  754. position: relative;
  755. top: 14rpx;
  756. font-size: 30rpx;
  757. font-family: PingFang SC;
  758. font-weight: 800;
  759. color: rgba(0, 0, 0, 1);
  760. text-align: center;
  761. }
  762. .ts-f .sam {
  763. text-align: center;
  764. font-size: 26rpx;
  765. font-family: PingFang SC;
  766. font-weight: 500;
  767. color: rgba(102, 102, 102, 1);
  768. }
  769. .ts-f .sam.zi {
  770. margin-top: 24rpx;
  771. }
  772. .ts-right {
  773. margin-left: 10rpx;
  774. /*float: right;*/
  775. position: relative;
  776. margin-top: 40rpx;
  777. }
  778. .ts-right .abso {
  779. width: 140rpx;
  780. height: 140rpx;
  781. position: absolute;
  782. font-size: 24rpx;
  783. left: 46rpx;
  784. border-width: 4rpx;
  785. border-style: solid;
  786. border-radius: 50%;
  787. text-align: center;
  788. padding-top: 26rpx;
  789. box-sizing: border-box;
  790. image {
  791. width: 45rpx;
  792. height: 51rpx;
  793. }
  794. }
  795. .abso .yet {
  796. margin-left: 16rpx;
  797. width: 46rpx;
  798. height: 52rpx;
  799. }
  800. .abso .now {
  801. font-size: 26rpx;
  802. font-family: PingFang SC;
  803. font-weight: 800;
  804. }
  805. // }
  806. </style>