bill.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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. if(this.curTab !=6 && this.curTab !=7){
  227. this.cycleName = this.changeShowTime();
  228. }
  229. },
  230. onReady() {
  231. setTimeout(()=>{
  232. this.changeTime();
  233. },500)
  234. },
  235. onBackPress() {
  236. if (this.showSearch) {
  237. this.showSearch = false;
  238. } else {
  239. uni.removeStorageSync('curTab');
  240. uni.removeStorageSync('chooseList');
  241. }
  242. },
  243. onUnload() {
  244. uni.removeStorageSync('curTab');
  245. uni.removeStorageSync('chooseList');
  246. },
  247. computed: {
  248. //经销商信息
  249. userData() {
  250. return this.$store.state.vuex_userData;
  251. },
  252. totalPayPrice() {
  253. let totalPrice = 0;
  254. for (let i = 0; i < this.bill.length; i++) {
  255. this.bill[i].unsettleAmount = this.bill[i].unsettleAmount ? this.bill[i].unsettleAmount : 0;
  256. totalPrice += this.bill[i].unsettleAmount;
  257. }
  258. return totalPrice.toFixed(2);
  259. },
  260. chooseTotalPayPrice() {
  261. let price = 0;
  262. this.chooseList.forEach(item => {
  263. item.unsettleAmount = item.unsettleAmount ? item.unsettleAmount : 0;
  264. price += item.unsettleAmount;
  265. });
  266. return price.toFixed(2);
  267. },
  268. settlement() {
  269. let totalPrice=this.chooseTotalPayPrice?this.chooseTotalPayPrice:0;
  270. let discountPrice=this.discountVal?this.discountVal:0
  271. let priceNum=totalPrice - discountPrice;
  272. const ret = priceNum.toFixed(2)
  273. return Number(this.chooseTotalPayPrice)>=Number(this.backDiscountVal) ? ret : 0
  274. }
  275. },
  276. methods: {
  277. closeCost(){
  278. this.costShow = false
  279. },
  280. chooseCycleData() {
  281. uni.setStorageSync('chooseList', this.chooseList);
  282. this.showSearch = true;
  283. },
  284. handleClean() {
  285. this.showSearch = false;
  286. // 清空选择周期时组件值
  287. this.$refs.rangeDate.init();
  288. let systemList = this.$store.state.vuex_systemSetList;
  289. let cycleObj = systemList.find(item => {
  290. return item.remarks == 'sales_bill_period';
  291. });
  292. this.curTab = this.placeTab.findIndex(con => con.name == cycleObj.valueShow);
  293. this.cycleName = this.changeShowTime();
  294. this.changeTime();
  295. },
  296. //选择客户
  297. goChooseCustomer() {
  298. uni.setStorageSync('curTab', this.curTab);
  299. this.jumpPage('/pages/sales/chooseCustomerBill');
  300. this.allChecked = false
  301. },
  302. changeTime() {
  303. if (this.curTab != 6 && this.curTab != 7) {
  304. this.params.bizBeginDate = this.getQueryDate().beginDate;
  305. this.params.bizEndDate = this.getQueryDate().endDate;
  306. this.cycleName = this.changeShowTime();
  307. } else if (this.curTab == 7) {
  308. this.cycleName = this.placeTab[this.curTab].name;
  309. this.params.bizBeginDate = undefined;
  310. this.params.bizEndDate = undefined;
  311. }
  312. this.dateArray = '';
  313. this.getList();
  314. },
  315. getList() {
  316. const _this = this;
  317. queryUnsettleSaleList(this.params).then(res => {
  318. if (res.status == 200) {
  319. let chooseArr = uni.getStorageSync('chooseList');
  320. if (chooseArr && chooseArr.length > 0) {
  321. res.data.forEach(item => {
  322. const row = chooseArr.findIndex(k => k.bizSn == item.bizSn);
  323. item.checked = row > -1;
  324. });
  325. }
  326. this.bill = res.data;
  327. this.$refs.bill.setData(res.data);
  328. this.getChooseList()
  329. }
  330. });
  331. },
  332. getChooseList(){
  333. this.chooseList=this.bill.filter(item=>item.checked);
  334. },
  335. // 时间 change
  336. dateChange(date) {
  337. this.dateArray = date.startDate + ' ~ ' + date.endDate;
  338. this.params.bizBeginDate = date.startDate + ' 00:00:00';
  339. this.params.bizEndDate = date.endDate + ' 23:59:59';
  340. this.cycleNameShow = date.startDate + '至' + date.endDate;
  341. },
  342. // 更改日期格式显示
  343. changeShowTime() {
  344. const fun = [
  345. getDate.getTodayInfo,
  346. getDate.getYesterdayInfo,
  347. getDate.getCurrWeekDaysInfo,
  348. getDate.getLastWeekDaysInfo,
  349. getDate.getCurrLastMonthDaysInfo,
  350. getDate.getLastMonthDaysInfo
  351. ];
  352. return fun[this.curTab]();
  353. },
  354. tabChange(data) {
  355. this.curTab = data.val;
  356. },
  357. getQueryDate() {
  358. const fun = [getDate.getToday, getDate.getYesterday, getDate.getCurrWeekDays, getDate.getLastWeekDays, getDate.getCurrLastMonthDays, getDate.getLastMonthDays];
  359. return {
  360. beginDate: fun[this.curTab]().starttime,
  361. endDate: fun[this.curTab]().endtime
  362. };
  363. },
  364. handleSearch() {
  365. this.showSearch = false;
  366. if(this.curTab == 6){
  367. this.cycleName = this.cycleNameShow;
  368. }else{
  369. this.cycleNameShow = ''
  370. }
  371. this.changeTime();
  372. },
  373. jumpPage(url) {
  374. uni.navigateTo({
  375. url
  376. });
  377. },
  378. openCostShow(){
  379. this.costShow = true
  380. this.discountVal = this.backDiscountVal||''
  381. },
  382. handleDisCount() {
  383. if (this.discountVal*1 > this.chooseTotalPayPrice*1) {
  384. uni.showToast({
  385. title: '折让金额不能大于待收金额,请重新输入',
  386. icon: 'none'
  387. });
  388. return;
  389. }
  390. let reg = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;
  391. console.log(this.discountVal,!reg.test(this.discountVal),this.discountVal && !reg.test(this.discountVal))
  392. if(this.discountVal!=0){
  393. if (!reg.test(this.discountVal)) {
  394. uni.showToast({
  395. title: '折让金额格式不正确,请重新输入',
  396. icon: 'none'
  397. });
  398. return;
  399. }
  400. }
  401. this.costShow = false;
  402. this.backDiscountPrice = this.settlement
  403. this.backDiscountVal = Number(this.discountVal||0).toFixed(2)
  404. },
  405. submitOrder() {
  406. //发送对账单
  407. if (this.chooseList.length == 0) {
  408. uni.showToast({
  409. title: '请选择要发送的对账单',
  410. icon: 'none'
  411. });
  412. return;
  413. }
  414. this.shareShow = true;
  415. this.submitLoading = true;
  416. },
  417. allCheckeChange(e) {
  418. this.$refs.bill.allSelect(e.value);
  419. const list = this.$refs.bill.getAllData();
  420. list.map(item => {
  421. this.allCheckedCallback(true,item)
  422. })
  423. },
  424. // 选中事件
  425. allCheckedCallback(isAllChecked, row) {
  426. const has = this.chooseList.findIndex(k => k.bizSn == row.bizSn);
  427. // 在已选列表中
  428. if (has >= 0) {
  429. // 取消选中
  430. if (!row.checked) {
  431. this.chooseList.splice(has, 1);
  432. }
  433. } else {
  434. if (row.checked) {
  435. this.chooseList.push(row);
  436. // this.backDiscountVal = 0
  437. }
  438. }
  439. this.backDiscountPrice = this.settlement
  440. if(Number(this.chooseTotalPayPrice)<Number(this.backDiscountVal)){
  441. this.backDiscountVal = 0
  442. this.discountVal = 0
  443. }
  444. // 是否全选
  445. this.allChecked = isAllChecked;
  446. },
  447. // 分享图文
  448. handleShare() {
  449. this.submitLoading = false;
  450. let verifyId = Date.now()+this.nanoid();
  451. this.verifyIdNum = verifyId
  452. let settlement=this.chooseTotalPayPrice - this.backDiscountVal
  453. let jumpUrl = getApp().globalData.baseUrl.replace('qpls-md/','')
  454. let url = jumpUrl +'dzd/index.html?' + this.userData.orgSn + '&'+verifyId;
  455. if (uni.getSystemInfoSync().platform == 'ios') {
  456. this.setBillOrder();
  457. uni.share({
  458. provider: 'weixin',
  459. scene: 'WXSceneSession',
  460. type: 0,
  461. href: url,
  462. title: this.customerObj.customerName+'的对账单',
  463. summary: '共' + settlement + '元,请您查阅',
  464. imageUrl: '../../static/logo.png',
  465. success: (res)=> {
  466. console.log('success:' + JSON.stringify(res));
  467. },
  468. fail: (err)=> {
  469. console.log('fail:' + JSON.stringify(err));
  470. }
  471. });
  472. } else {
  473. uni.shareWithSystem({
  474. summary: this.customerObj.customerName + '您好,您有一个对账单共' + settlement + '元,请您查阅',
  475. href: url,
  476. success:()=> {
  477. this.setBillOrder();
  478. console.log('调取微信列表成功,分享不一定成功')
  479. },
  480. fail:()=> {
  481. console.log('分享失败')
  482. }
  483. });
  484. }
  485. },
  486. // 生成历史对账单
  487. setBillOrder(){
  488. let obj = {
  489. detailNum: this.chooseList.length,
  490. totalAmount: this.chooseTotalPayPrice,
  491. discountAmount: this.backDiscountVal || 0,
  492. settleAmount: this.chooseTotalPayPrice - this.backDiscountVal ,
  493. detailList: this.chooseList,
  494. verifySn:this.verifyIdNum
  495. };
  496. let ajaxData = Object.assign(this.params, obj);
  497. insert(ajaxData).then(res => {
  498. this.shareShow = false;
  499. if (res.status == 200) {
  500. console.log('生成历史对账单成功')
  501. } else {
  502. uni.showToast({
  503. title: res.message,
  504. icon: 'none'
  505. });
  506. }
  507. });
  508. },
  509. // 生成随机对账单id
  510. nanoid (size = 5) {
  511. let urlAlphabet ='0123456789'
  512. let id = ''
  513. let i = size
  514. while (i--) {
  515. id += urlAlphabet[(Math.random() * 10) | 0]
  516. }
  517. return id
  518. }
  519. }
  520. };
  521. </script>
  522. <style lang="scss" scoped>
  523. .content {
  524. width: 100%;
  525. height: 100vh;
  526. .header {
  527. width: 100%;
  528. .headerList {
  529. width: 100%;
  530. box-sizing: border-box;
  531. padding: 16rpx 20rpx;
  532. background: #fff;
  533. &:nth-child(2) {
  534. border-top: 1rpx solid #e4e7ed;
  535. }
  536. .list_l {
  537. width: 208rpx;
  538. text {
  539. font-size: 28rpx;
  540. color: #666666;
  541. margin-left: 10rpx;
  542. margin-right: 10rpx;
  543. }
  544. }
  545. .list_r {
  546. width: calc(100% - 208rpx);
  547. }
  548. }
  549. .statistical {
  550. padding: 20rpx;
  551. background: #fff;
  552. margin: 10rpx 0;
  553. .statisticalList {
  554. &:first-child {
  555. width: 210rpx;
  556. }
  557. }
  558. text {
  559. &:last-child {
  560. color: $uni-color-warning;
  561. font-weight: 600;
  562. }
  563. }
  564. }
  565. }
  566. .chooseCon {
  567. flex-grow: 1;
  568. flex-basis: 0;
  569. overflow: auto;
  570. background-color: #fff;
  571. }
  572. .footerCon {
  573. background-color: #f8f8f8;
  574. padding: 10rpx 20rpx;
  575. box-sizing: border-box;
  576. .f-mid {
  577. flex: 1;
  578. color: #666;
  579. font-size: 0.8rem;
  580. font-weight: 600;
  581. .fontColor {
  582. color: $uni-color-warning;
  583. vertical-align: middle;
  584. }
  585. .costBtn {
  586. width: 70rpx;
  587. height: 40rpx;
  588. line-height: 40rpx;
  589. text-align: center;
  590. color: #fff;
  591. font-size: 20rpx;
  592. border-radius: 30rpx;
  593. background: #999;
  594. margin-left: 20rpx;
  595. }
  596. }
  597. }
  598. // 历史对账单弹窗
  599. .tabBox {
  600. height: 100vh;
  601. .tabs {
  602. flex-grow: 1;
  603. overflow: auto;
  604. padding: 20rpx;
  605. > view {
  606. flex-wrap: wrap;
  607. justify-content: space-between;
  608. > view {
  609. width: 45%;
  610. border: 1rpx solid #eee;
  611. padding: 15rpx;
  612. border-radius: 50rpx;
  613. text-align: center;
  614. margin-bottom: 15rpx;
  615. }
  616. .active {
  617. border: 0;
  618. background-color: #0485f6;
  619. color: #fff;
  620. }
  621. }
  622. }
  623. .form-item-inp {
  624. border-bottom: 1rpx solid #eee;
  625. }
  626. .form-footer-btn {
  627. margin: 30upx;
  628. display: flex;
  629. justify-content: space-between;
  630. }
  631. .form-footer-btn {
  632. display: flex;
  633. .handle-btn {
  634. font-size: 28upx;
  635. margin: 0 10upx;
  636. flex: 1;
  637. }
  638. }
  639. }
  640. //打折弹窗
  641. .costPopup {
  642. padding: 26rpx 20rpx 40rpx;
  643. box-sizing: border-box;
  644. .costPopupTit {
  645. text-align: center;
  646. font-weight: bold;
  647. }
  648. .costPopupCon {
  649. margin-top: 40rpx;
  650. .costList {
  651. margin-bottom: 20rpx;
  652. .label {
  653. color: $uni-text-color-grey;
  654. }
  655. }
  656. .tip {
  657. color: $uni-color-error;
  658. font-size: 20rpx;
  659. margin-left: 140rpx;
  660. }
  661. .costText {
  662. text-align: center;
  663. color: $uni-text-color-grey;
  664. font-size: 22rpx;
  665. margin-top: 40rpx;
  666. &:last-child {
  667. font-weight: bold;
  668. color: $uni-color-error;
  669. font-size: 32rpx;
  670. line-height: 60rpx;
  671. margin-top: 0rpx;
  672. margin-bottom: 50rpx;
  673. }
  674. }
  675. }
  676. }
  677. .slot-content {
  678. font-size: 28rpx;
  679. color: $u-content-color;
  680. padding: 60rpx 30rpx;
  681. text-align: center;
  682. }
  683. }
  684. </style>