bill.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. <template>
  2. <view class="content flex flex_column">
  3. <view class="header">
  4. <view class="headerList u-flex">
  5. <view class="list_l">
  6. <u-icon name="account" color="#00aaff" size="32"></u-icon>
  7. <text>客户名称</text>
  8. </view>
  9. <view class="list_r u-flex">
  10. <u-input v-model="customerObj.customerName" @click="goChooseCustomer" type="select" placeholder="请选择客户名称" />
  11. </view>
  12. </view>
  13. <view class="headerList u-flex">
  14. <view class="list_l">
  15. <u-icon name="clock" color="#00aaff" size="32"></u-icon>
  16. <text>对账周期</text>
  17. <u-icon name="question-circle-fill" @click="tipShow = true" :color="wordColor" size="32"></u-icon>
  18. </view>
  19. <view class="list_r u-flex">
  20. <u-input v-model="cycleName" @click="chooseCycleData" type="select" placeholder="请选择对账日期" />
  21. </view>
  22. </view>
  23. <view class="statistical u-flex">
  24. <view class="statisticalList">
  25. <text>总单数:</text>
  26. <text>{{ bill.length }}</text>
  27. </view>
  28. <view class="statisticalList">
  29. <text>待收金额合计:</text>
  30. <text>¥{{ totalPayPrice }}</text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="chooseCon"><billList ref="bill" :showCheck="true" :list="bill" @allChecked="allCheckedCallback"></billList></view>
  35. <view class="footerCon u-flex">
  36. <view class="f-left">
  37. <u-checkbox @change="allCheckeChange" v-model="allChecked" shape="circle">{{ allChecked ? '取消全选' : '全选' }}</u-checkbox>
  38. </view>
  39. <view class="f-mid" @click="isDetailShow = !isDetailShow">
  40. <view>
  41. 待收:
  42. <text class="fontColor">¥{{ chooseTotalPayPrice }}</text>
  43. </view>
  44. <view v-if="chooseList.length > 0 && backDiscountVal">
  45. 折后:
  46. <text class="fontColor">¥{{ backDiscountPrice }}</text>
  47. </view>
  48. <view class="u-flex" v-if="chooseList.length > 0">
  49. <view>
  50. 折让:
  51. <text>¥{{ Number(backDiscountVal) ? Number(backDiscountVal).toFixed(2) : 0 }}</text>
  52. </view>
  53. <view class="costBtn" @click="openCostShow">打折</view>
  54. </view>
  55. </view>
  56. <view class="f-btns">
  57. <u-button size="medium" @click="submitOrder" :custom-style="customBtnStyle" :loading="submitLoading" shape="circle" type="primary" hover-class="none">
  58. 发送对账单
  59. </u-button>
  60. </view>
  61. </view>
  62. <!-- 对账周期弹窗 -->
  63. <u-popup v-model="showSearch" mode="right" width="70%">
  64. <view class="tabBox">
  65. <view class="tabs">
  66. <view class="flex">
  67. <view :class="item.val == curTab ? 'active' : 'all'" v-for="item in placeTab" :key="item.val" @click="tabChange(item)">{{ item.name }}</view>
  68. </view>
  69. </view>
  70. <view class="flex align_center form-item-inp" style="padding: 0 30rpx;" v-if="curTab == 6">
  71. <u-input clearable v-model="dateArray" @clear="dateArray==''" clearWarehouse placeholder="请选择时间段" input-align="center" @click="showDate = true" />
  72. </view>
  73. <view class="form-footer-btn">
  74. <u-button class="handle-btn" shape="circle" size="medium" hover-class="none" @click="handleClean">重置</u-button>
  75. <u-button class="handle-btn" shape="circle" size="medium" hover-class="none" :custom-style="customBtnStyle" @click="handleSearch">查询</u-button>
  76. </view>
  77. </view>
  78. </u-popup>
  79. <!-- 选择日期范围 -->
  80. <u-calendar v-model="showDate" ref="rangeDate" @change="dateChange" mode="range"></u-calendar>
  81. <!-- 打折弹窗 -->
  82. <u-popup v-model="costShow" mode="center" @close="closeCost" :border-radius="20" closeable width="82%">
  83. <view class="costPopup">
  84. <view class="costPopupTit">{{customerObj&&customerObj.customerName||'--'}}</view>
  85. <view class="costPopupCon">
  86. <view class="costList">
  87. <text class="label">待收金额:</text>
  88. <text>¥{{ chooseTotalPayPrice }}</text>
  89. </view>
  90. <view class="costList u-flex">
  91. <view class="label">折让金额:</view>
  92. <u-input type="number" :custom-style="{color:'#ffa500'}" placeholder="请输入折让金额(最多2位小数)" v-model="discountVal" :border="true" :height="50" />
  93. </view>
  94. <view class="tip" v-if="discountVal*1 > chooseTotalPayPrice*1">折让金额不能大于待收金额,请重新输入</view>
  95. <view class="costText">折让后金额</view>
  96. <view class="costText">¥{{ settlement<0?0:settlement }}</view>
  97. </view>
  98. <u-button type="primary" :custom-style="customStyle" shape="circle" @click="handleDisCount">确定</u-button>
  99. </view>
  100. </u-popup>
  101. <!-- 对账周期弹窗 -->
  102. <u-modal v-model="tipShow" :show-title="false" confirm-text="知道了">
  103. <view class="slot-content"><rich-text :nodes="tipContent"></rich-text></view>
  104. </u-modal>
  105. <!-- 分享询问弹窗 -->
  106. <u-modal v-model="shareShow" :show-cancel-button="true" :content="shareContent" @confirm="handleShare" @cancel="shareShow = false;submitLoading = false;"></u-modal>
  107. </view>
  108. </template>
  109. <script>
  110. import billList from './billListComponent.vue';
  111. import { queryUnsettleSaleList, insert } from '@/api/verify.js';
  112. import getDate from '@/libs/getDate.js';
  113. export default {
  114. components: { billList },
  115. data() {
  116. return {
  117. customBtnStyle: {
  118. // 自定义按钮样式
  119. borderColor: this.$config('primaryColor'),
  120. backgroundColor: this.$config('primaryColor'),
  121. color: '#fff',
  122. width: '180rpx'
  123. },
  124. wordColor: this.$config('infoColor'),
  125. customStyle: {
  126. borderColor: this.$config('primaryColor'),
  127. backgroundColor: this.$config('primaryColor'),
  128. color: '#fff'
  129. },
  130. allChecked: false,
  131. tipShow: false,
  132. discountVal: null, //折让金额
  133. tipContent: `账单周期指<br>销售单的创建时间`,
  134. shareContent: `是否同意发送对账单给微信好友?`,
  135. placeTab: [
  136. {
  137. name: '今日',
  138. val: '0'
  139. },
  140. {
  141. name: '昨日',
  142. val: '1'
  143. },
  144. {
  145. name: '本周',
  146. val: '2'
  147. },
  148. {
  149. name: '上周',
  150. val: '3'
  151. },
  152. {
  153. name: '本月',
  154. val: '4'
  155. },
  156. {
  157. name: '上月',
  158. val: '5'
  159. },
  160. {
  161. name: '自定义',
  162. val: '6'
  163. },
  164. {
  165. name: '全部',
  166. val: '7'
  167. }
  168. ],
  169. curTab: '0',
  170. showSearch: false,
  171. showDate: false,
  172. costShow: false,
  173. customerObj: {
  174. customerName: null
  175. },
  176. cycleName: '',
  177. params: {
  178. targetSn: undefined,
  179. bizBeginDate: undefined,
  180. bizEndDate: undefined
  181. },
  182. bill: [],
  183. dateArray: '',
  184. chooseList: [],
  185. isDetailShow: false,
  186. submitLoading: false,
  187. shareShow: false,
  188. verifySn:'',
  189. backDiscountPrice:null,
  190. backDiscountVal: 0,
  191. cycleNameShow:'',
  192. verifyIdNum:''
  193. };
  194. },
  195. onReady() {
  196. uni.setNavigationBarColor({
  197. frontColor: '#ffffff',
  198. backgroundColor: this.$config('primaryColor')
  199. });
  200. },
  201. onLoad(options) {
  202. //获取对账周期默认值
  203. if (uni.getStorageSync('curTab')) {
  204. this.curTab = uni.getStorageSync('curTab');
  205. } else {
  206. let systemList = this.$store.state.vuex_systemSetList;
  207. if(systemList){
  208. let cycleObj = systemList.find(item => {
  209. return item.remarks == 'sales_bill_period';
  210. });
  211. this.curTab = this.placeTab.findIndex(con => con.name == cycleObj.valueShow);
  212. }
  213. }
  214. // 获取选择客户
  215. if (options && options.data) {
  216. this.customerObj = JSON.parse(decodeURIComponent(options.data));
  217. this.params.targetSn = this.customerObj.customerSn;
  218. }
  219. uni.$on('customerInfo', res => {
  220. this.customerObj = res;
  221. this.params.targetSn = res.customerSn;
  222. this.changeTime();
  223. });
  224. if(this.curTab !=6 && this.curTab !=7){
  225. this.cycleName = this.changeShowTime();
  226. }
  227. },
  228. onReady() {
  229. setTimeout(()=>{
  230. this.changeTime();
  231. },500)
  232. },
  233. onBackPress() {
  234. if (this.showSearch) {
  235. this.showSearch = false;
  236. } else {
  237. uni.removeStorageSync('curTab');
  238. uni.removeStorageSync('chooseList');
  239. }
  240. },
  241. onUnload() {
  242. uni.removeStorageSync('curTab');
  243. uni.removeStorageSync('chooseList');
  244. },
  245. computed: {
  246. //经销商信息
  247. userData() {
  248. return this.$store.state.vuex_userData;
  249. },
  250. totalPayPrice() {
  251. let totalPrice = 0;
  252. for (let i = 0; i < this.bill.length; i++) {
  253. this.bill[i].unsettleAmount = this.bill[i].unsettleAmount ? this.bill[i].unsettleAmount : 0;
  254. totalPrice += this.bill[i].unsettleAmount;
  255. }
  256. return totalPrice.toFixed(2);
  257. },
  258. chooseTotalPayPrice() {
  259. let price = 0;
  260. this.chooseList.forEach(item => {
  261. item.unsettleAmount = item.unsettleAmount ? item.unsettleAmount : 0;
  262. price += item.unsettleAmount;
  263. });
  264. return price.toFixed(2);
  265. },
  266. settlement() {
  267. let totalPrice=this.chooseTotalPayPrice?this.chooseTotalPayPrice:0;
  268. let discountPrice=this.discountVal?this.discountVal:0
  269. let priceNum=totalPrice - discountPrice;
  270. const ret = priceNum.toFixed(2)
  271. return Number(this.chooseTotalPayPrice)>=Number(this.backDiscountVal) ? ret : 0
  272. }
  273. },
  274. methods: {
  275. closeCost(){
  276. this.costShow = false
  277. },
  278. chooseCycleData() {
  279. uni.setStorageSync('chooseList', this.chooseList);
  280. this.showSearch = true;
  281. },
  282. handleClean() {
  283. this.showSearch = false;
  284. // 清空选择周期时组件值
  285. this.$refs.rangeDate.init();
  286. let systemList = this.$store.state.vuex_systemSetList;
  287. let cycleObj = systemList.find(item => {
  288. return item.remarks == 'sales_bill_period';
  289. });
  290. this.curTab = this.placeTab.findIndex(con => con.name == cycleObj.valueShow);
  291. this.cycleName = this.changeShowTime();
  292. this.changeTime();
  293. },
  294. //选择客户
  295. goChooseCustomer() {
  296. uni.setStorageSync('curTab', this.curTab);
  297. this.jumpPage('/pages/sales/chooseCustomerBill');
  298. this.allChecked = false
  299. },
  300. changeTime() {
  301. if (this.curTab != 6 && this.curTab != 7) {
  302. this.params.bizBeginDate = this.getQueryDate().beginDate;
  303. this.params.bizEndDate = this.getQueryDate().endDate;
  304. this.cycleName = this.changeShowTime();
  305. } else if (this.curTab == 7) {
  306. this.cycleName = this.placeTab[this.curTab].name;
  307. this.params.bizBeginDate = undefined;
  308. this.params.bizEndDate = undefined;
  309. }
  310. this.dateArray = '';
  311. this.getList();
  312. },
  313. getList() {
  314. const _this = this;
  315. queryUnsettleSaleList(this.params).then(res => {
  316. if (res.status == 200) {
  317. let chooseArr = uni.getStorageSync('chooseList');
  318. if (chooseArr && chooseArr.length > 0) {
  319. res.data.forEach(item => {
  320. const row = chooseArr.findIndex(k => k.bizSn == item.bizSn);
  321. item.checked = row > -1;
  322. });
  323. }
  324. this.bill = res.data;
  325. this.$refs.bill.setData(res.data);
  326. this.getChooseList()
  327. }
  328. });
  329. },
  330. getChooseList(){
  331. this.chooseList=this.bill.filter(item=>item.checked);
  332. },
  333. // 时间 change
  334. dateChange(date) {
  335. this.dateArray = date.startDate + ' ~ ' + date.endDate;
  336. this.params.bizBeginDate = date.startDate + ' 00:00:00';
  337. this.params.bizEndDate = date.endDate + ' 23:59:59';
  338. this.cycleNameShow = date.startDate + '至' + date.endDate;
  339. },
  340. // 更改日期格式显示
  341. changeShowTime() {
  342. const fun = [
  343. getDate.getTodayInfo,
  344. getDate.getYesterdayInfo,
  345. getDate.getCurrWeekDaysInfo,
  346. getDate.getLastWeekDaysInfo,
  347. getDate.getCurrLastMonthDaysInfo,
  348. getDate.getLastMonthDaysInfo
  349. ];
  350. return fun[this.curTab]();
  351. },
  352. tabChange(data) {
  353. this.curTab = data.val;
  354. },
  355. getQueryDate() {
  356. const fun = [getDate.getToday, getDate.getYesterday, getDate.getCurrWeekDays, getDate.getLastWeekDays, getDate.getCurrLastMonthDays, getDate.getLastMonthDays];
  357. return {
  358. beginDate: fun[this.curTab]().starttime,
  359. endDate: fun[this.curTab]().endtime
  360. };
  361. },
  362. handleSearch() {
  363. this.showSearch = false;
  364. if(this.curTab == 6){
  365. this.cycleName = this.cycleNameShow;
  366. }else{
  367. this.cycleNameShow = ''
  368. }
  369. this.changeTime();
  370. },
  371. jumpPage(url) {
  372. uni.navigateTo({
  373. url
  374. });
  375. },
  376. openCostShow(){
  377. this.costShow = true
  378. this.discountVal = this.backDiscountVal||''
  379. },
  380. handleDisCount() {
  381. if (this.discountVal*1 > this.chooseTotalPayPrice*1) {
  382. uni.showToast({
  383. title: '折让金额不能大于待收金额,请重新输入',
  384. icon: 'none'
  385. });
  386. return;
  387. }
  388. let reg = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;
  389. console.log(this.discountVal,!reg.test(this.discountVal),this.discountVal && !reg.test(this.discountVal))
  390. if(this.discountVal!=0){
  391. if (!reg.test(this.discountVal)) {
  392. uni.showToast({
  393. title: '折让金额格式不正确,请重新输入',
  394. icon: 'none'
  395. });
  396. return;
  397. }
  398. }
  399. this.costShow = false;
  400. this.backDiscountPrice = this.settlement
  401. this.backDiscountVal = Number(this.discountVal||0).toFixed(2)
  402. },
  403. submitOrder() {
  404. //发送对账单
  405. if (this.chooseList.length == 0) {
  406. uni.showToast({
  407. title: '请选择要发送的对账单',
  408. icon: 'none'
  409. });
  410. return;
  411. }
  412. this.shareShow = true;
  413. this.submitLoading = true;
  414. },
  415. allCheckeChange(e) {
  416. this.$refs.bill.allSelect(e.value);
  417. const list = this.$refs.bill.getAllData();
  418. list.map(item => {
  419. this.allCheckedCallback(true,item)
  420. })
  421. },
  422. // 选中事件
  423. allCheckedCallback(isAllChecked, row) {
  424. const has = this.chooseList.findIndex(k => k.bizSn == row.bizSn);
  425. // 在已选列表中
  426. if (has >= 0) {
  427. // 取消选中
  428. if (!row.checked) {
  429. this.chooseList.splice(has, 1);
  430. }
  431. } else {
  432. if (row.checked) {
  433. this.chooseList.push(row);
  434. // this.backDiscountVal = 0
  435. }
  436. }
  437. this.backDiscountPrice = this.settlement
  438. if(Number(this.chooseTotalPayPrice)<Number(this.backDiscountVal)){
  439. this.backDiscountVal = 0
  440. this.discountVal = 0
  441. }
  442. // 是否全选
  443. this.allChecked = isAllChecked;
  444. },
  445. // 分享图文
  446. handleShare() {
  447. this.submitLoading = false;
  448. let verifyId = Date.now()+this.nanoid();
  449. this.verifyIdNum = verifyId
  450. let settlement=this.chooseTotalPayPrice - this.backDiscountVal
  451. let jumpUrl = getApp({ allowDefault: true }).globalData.baseUrl.replace('qpls-md/','')
  452. let url = jumpUrl +'dzd/index.html?' + this.userData.orgSn + '&'+verifyId;
  453. if (uni.getSystemInfoSync().platform == 'ios') {
  454. this.setBillOrder();
  455. uni.share({
  456. provider: 'weixin',
  457. scene: 'WXSceneSession',
  458. type: 0,
  459. href: url,
  460. title: this.customerObj.customerName+'的对账单',
  461. summary: '共' + settlement + '元,请您查阅',
  462. imageUrl: '../../static/logo.png',
  463. success: (res)=> {
  464. console.log('success:' + JSON.stringify(res));
  465. },
  466. fail: (err)=> {
  467. console.log('fail:' + JSON.stringify(err));
  468. }
  469. });
  470. } else {
  471. uni.shareWithSystem({
  472. summary: this.customerObj.customerName + '您好,您有一个对账单共' + settlement + '元,请您查阅',
  473. href: url,
  474. success:()=> {
  475. this.setBillOrder();
  476. console.log('调取微信列表成功,分享不一定成功')
  477. },
  478. fail:()=> {
  479. console.log('分享失败')
  480. }
  481. });
  482. }
  483. },
  484. // 生成历史对账单
  485. setBillOrder(){
  486. let obj = {
  487. detailNum: this.chooseList.length,
  488. totalAmount: this.chooseTotalPayPrice,
  489. discountAmount: this.backDiscountVal || 0,
  490. settleAmount: this.chooseTotalPayPrice - this.backDiscountVal ,
  491. detailList: this.chooseList,
  492. verifySn:this.verifyIdNum
  493. };
  494. let ajaxData = Object.assign(this.params, obj);
  495. insert(ajaxData).then(res => {
  496. this.shareShow = false;
  497. if (res.status == 200) {
  498. console.log('生成历史对账单成功')
  499. } else {
  500. uni.showToast({
  501. title: res.message,
  502. icon: 'none'
  503. });
  504. }
  505. });
  506. },
  507. // 生成随机对账单id
  508. nanoid (size = 5) {
  509. let urlAlphabet ='0123456789'
  510. let id = ''
  511. let i = size
  512. while (i--) {
  513. id += urlAlphabet[(Math.random() * 10) | 0]
  514. }
  515. return id
  516. }
  517. }
  518. };
  519. </script>
  520. <style lang="scss" scoped>
  521. .content {
  522. width: 100%;
  523. height: 100vh;
  524. .header {
  525. width: 100%;
  526. .headerList {
  527. width: 100%;
  528. box-sizing: border-box;
  529. padding: 16rpx 20rpx;
  530. background: #fff;
  531. &:nth-child(2) {
  532. border-top: 1rpx solid #e4e7ed;
  533. }
  534. .list_l {
  535. width: 208rpx;
  536. text {
  537. font-size: 28rpx;
  538. color: #666666;
  539. margin-left: 10rpx;
  540. margin-right: 10rpx;
  541. }
  542. }
  543. .list_r {
  544. width: calc(100% - 208rpx);
  545. }
  546. }
  547. .statistical {
  548. padding: 20rpx;
  549. background: #fff;
  550. margin: 10rpx 0;
  551. .statisticalList {
  552. &:first-child {
  553. width: 210rpx;
  554. }
  555. }
  556. text {
  557. &:last-child {
  558. color: $uni-color-warning;
  559. font-weight: 600;
  560. }
  561. }
  562. }
  563. }
  564. .chooseCon {
  565. flex-grow: 1;
  566. flex-basis: 0;
  567. overflow: auto;
  568. background-color: #fff;
  569. }
  570. .footerCon {
  571. background-color: #f8f8f8;
  572. padding: 10rpx 20rpx;
  573. box-sizing: border-box;
  574. .f-mid {
  575. flex: 1;
  576. color: #666;
  577. font-size: 0.8rem;
  578. font-weight: 600;
  579. .fontColor {
  580. color: $uni-color-warning;
  581. vertical-align: middle;
  582. }
  583. .costBtn {
  584. width: 70rpx;
  585. height: 40rpx;
  586. line-height: 40rpx;
  587. text-align: center;
  588. color: #fff;
  589. font-size: 20rpx;
  590. border-radius: 30rpx;
  591. background: #999;
  592. margin-left: 20rpx;
  593. }
  594. }
  595. }
  596. // 历史对账单弹窗
  597. .tabBox {
  598. height: 100vh;
  599. .tabs {
  600. flex-grow: 1;
  601. overflow: auto;
  602. padding: 20rpx;
  603. > view {
  604. flex-wrap: wrap;
  605. justify-content: space-between;
  606. > view {
  607. width: 45%;
  608. border: 1rpx solid #eee;
  609. padding: 15rpx;
  610. border-radius: 50rpx;
  611. text-align: center;
  612. margin-bottom: 15rpx;
  613. }
  614. .active {
  615. border: 0;
  616. background-color: #0485f6;
  617. color: #fff;
  618. }
  619. }
  620. }
  621. .form-item-inp {
  622. border-bottom: 1rpx solid #eee;
  623. }
  624. .form-footer-btn {
  625. margin: 30upx;
  626. display: flex;
  627. justify-content: space-between;
  628. }
  629. .form-footer-btn {
  630. display: flex;
  631. .handle-btn {
  632. font-size: 28upx;
  633. margin: 0 10upx;
  634. flex: 1;
  635. }
  636. }
  637. }
  638. //打折弹窗
  639. .costPopup {
  640. padding: 26rpx 20rpx 40rpx;
  641. box-sizing: border-box;
  642. .costPopupTit {
  643. text-align: center;
  644. font-weight: bold;
  645. }
  646. .costPopupCon {
  647. margin-top: 40rpx;
  648. .costList {
  649. margin-bottom: 20rpx;
  650. .label {
  651. color: $uni-text-color-grey;
  652. }
  653. }
  654. .tip {
  655. color: $uni-color-error;
  656. font-size: 20rpx;
  657. margin-left: 140rpx;
  658. }
  659. .costText {
  660. text-align: center;
  661. color: $uni-text-color-grey;
  662. font-size: 22rpx;
  663. margin-top: 40rpx;
  664. &:last-child {
  665. font-weight: bold;
  666. color: $uni-color-error;
  667. font-size: 32rpx;
  668. line-height: 60rpx;
  669. margin-top: 0rpx;
  670. margin-bottom: 50rpx;
  671. }
  672. }
  673. }
  674. }
  675. .slot-content {
  676. font-size: 28rpx;
  677. color: $u-content-color;
  678. padding: 60rpx 30rpx;
  679. text-align: center;
  680. }
  681. }
  682. </style>