bill.vue 18 KB

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