sms.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <view class="container mine clearfix">
  3. <!-- <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom> -->
  4. <view
  5. class="tui-header-box first"
  6. :style="{ height: isCmcustomClass == 'fiexd' ? CustomBar + 10 + 'px' : CustomBar + 30 + 'px' }"
  7. :class="isCmcustomClass"
  8. >
  9. <view class="header-top" :style="{ paddingTop: top + 'px', lineHeight: CustomBar + 30 + 'px' }"></view>
  10. <view class="header-sit">
  11. <text class="iconfont icon-fanhui" @click.stop="checkedSms" v-if="receiptType == 2"></text>
  12. <text class="header-sit-text">{{ receiptType == 1 ? '款项识别' : '无短信收款' }}</text>
  13. </view>
  14. </view>
  15. <view
  16. class="tui-header-box"
  17. :style="{
  18. height: CustomBar + 30 + 'px',
  19. backgroundImage: 'url(https://static.caimei365.com/app/crm/image/statistic_bg1.png)'
  20. }"
  21. >
  22. </view>
  23. <view class="distinguish-section" :style="{ top: CustomBar + 'px', left: 0 + 'px' }">
  24. <view class="distinguish-section-conten">
  25. <view class="section-top">
  26. <view class="title" v-if="receiptType == 1">收款短信</view>
  27. <view class="button" @click="toNoSms('/pages/collection/list')">
  28. <text class="iconfont icon-wodedingdan"></text> 收款列表
  29. </view>
  30. </view>
  31. <view class="section-textarea" v-if="receiptType == 1">
  32. <textarea
  33. class="textarea"
  34. placeholder="收款短信内容..."
  35. :disabled="modal"
  36. v-model="params.smsContent"
  37. @blur="onBlurSmsContent"
  38. />
  39. </view>
  40. <template v-if="isConfirm">
  41. <view class="section-rows">
  42. <view class="rows-label">款项类型:</view>
  43. <view class="rows-mains">
  44. <picker
  45. @change="bindPickerChange(1, $event)"
  46. :value="index"
  47. :range="paymentActions"
  48. range-key="name"
  49. >
  50. <input
  51. class="input"
  52. type="text"
  53. disabled="true"
  54. v-model="paymentTypeText"
  55. value=""
  56. placeholder="请选择款项类型"
  57. />
  58. </picker>
  59. </view>
  60. <text class="iconfont icon-xiayibu"></text>
  61. </view>
  62. <view class="section-rows">
  63. <view class="rows-label">收款时间:</view>
  64. <view class="rows-mains">
  65. <input
  66. class="input"
  67. type="text"
  68. v-model="params.receiptDate"
  69. disabled="true"
  70. placeholder="请选择收款时间"
  71. @click="showTuiDateTime"
  72. />
  73. </view>
  74. <text class="iconfont icon-xiayibu"></text>
  75. </view>
  76. <view class="section-rows" :class="isReceiptType ? 'disabled' : ''">
  77. <view class="rows-label">收款类型:</view>
  78. <view class="rows-mains">
  79. <picker
  80. @change="bindPickerChange(2, $event)"
  81. :value="index"
  82. :range="receiptTypeActions"
  83. :disabled="isReceiptType"
  84. range-key="name"
  85. >
  86. <input
  87. class="input"
  88. type="text"
  89. disabled="true"
  90. v-model="banksTypeText"
  91. placeholder="请选择收款类型"
  92. />
  93. </picker>
  94. </view>
  95. <text class="iconfont icon-xiayibu"></text>
  96. </view>
  97. <view class="section-rows">
  98. <view class="rows-label">收款金额:</view>
  99. <view class="rows-mains">
  100. <input
  101. class="input"
  102. v-model="params.receiptAmount"
  103. @blur="changeNumber($event)"
  104. type="number"
  105. placeholder="请输入收款金额"
  106. />
  107. </view>
  108. </view>
  109. <view class="section-rows" :class="isCheckedCharge ? '' : 'disabled'">
  110. <view class="rows-label" @click="checkedCharge">
  111. <text class="iconfont" :class="isCheckedCharge ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
  112. 手续费:
  113. </view>
  114. <view class="rows-mains">
  115. <input
  116. class="input"
  117. v-model="params.handlingFee"
  118. @blur="handlingFeeNumber($event)"
  119. :disabled="!isCheckedCharge"
  120. type="text"
  121. placeholder="请输入手续费"
  122. />
  123. </view>
  124. </view>
  125. <template v-if="receiptType == 2">
  126. <view class="section-text">收款短信(备注,必填)</view>
  127. <view class="section-textarea">
  128. <textarea
  129. class="textarea"
  130. :disabled="modal"
  131. placeholder="请输入收款备注..."
  132. v-model="params.smsContent"
  133. />
  134. </view>
  135. </template>
  136. </template>
  137. </view>
  138. <view class="distinguish-button">
  139. <tui-button
  140. type="primary"
  141. :disabledGray="true"
  142. :disabled="disabled"
  143. :height="'80rpx'"
  144. :shadow="true"
  145. shape="circle"
  146. @click="confirmDistinguish"
  147. >收款</tui-button
  148. >
  149. </view>
  150. <view class="distinguish-button-text" @click="checkedNoSms" v-if="receiptType == 1">无短信收款</view>
  151. </view>
  152. <!-- 时间组件 -->
  153. <tui-datetime
  154. ref="dateTime"
  155. :type="7"
  156. :startYear="startYear"
  157. :endYear="endYear"
  158. cancelColor="#555555"
  159. color="#4688fa"
  160. @confirm="bindStartDateChange"
  161. ></tui-datetime>
  162. <!-- 弹窗提示 -->
  163. <tui-modal
  164. :show="modal"
  165. @click="handleClick"
  166. @cancel="hideMobel"
  167. :title="contentModalTitle"
  168. :content="contentModalText"
  169. :button="modalButton"
  170. color="#333"
  171. :size="32"
  172. shape="circle"
  173. :maskClosable="false"
  174. >
  175. </tui-modal>
  176. </view>
  177. </template>
  178. <script>
  179. import statistic_bg2 from '@/static/temp/statistic_bg2.png'
  180. import statistic_bg1 from '@/static/temp/statistic_bg1.png'
  181. import wxLogin from '@/services/wxLogin.js'
  182. import { mapState, mapMutations } from 'vuex'
  183. const defaultParams = {
  184. smsContent: '', // 收款短信
  185. payType: null,
  186. receiptType: 1, // 收款款项类型:1订单款,2非订单款,3返佣款 4订单款或者非订单款(因财务阶段无法区分订单非订单), 5供应商退款
  187. openid: null, // 微信openid
  188. receiptAmount: '', //收款金额
  189. handlingFee: '', //手续费
  190. receiptDate: null // 收款时间
  191. }
  192. export default {
  193. data() {
  194. return {
  195. nvabarData: {
  196. //顶部自定义导航
  197. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  198. showSearch: 0,
  199. title: '', // 导航栏 中间的标题
  200. haveBack: false,
  201. home: false,
  202. textLeft: this.$store.state.isIphone,
  203. bgColor: '#D33020',
  204. textColor: '#ffffff'
  205. },
  206. receiptType: 1, //收款方式 1 短信收款 2 无短信收款
  207. infoData: {},
  208. isCmcustomClass: 'left',
  209. statistic_bg: statistic_bg2,
  210. statistic_bg1: statistic_bg1,
  211. CustomBar: this.CustomBar, // 顶部导航栏高度
  212. height: 64, //header高度
  213. top: 0, //标题图标距离顶部距离
  214. scrollH: 0, //滚动总高度
  215. opcity: 1,
  216. isConfirm: false,
  217. type: 7,
  218. setDateTime: '',
  219. startYear: 1980,
  220. endYear: 2030,
  221. modalButton: [
  222. {
  223. text: '取消',
  224. type: 'gray',
  225. plain: true //是否空心
  226. },
  227. {
  228. text: '确认',
  229. customStyle: {
  230. color: '#fff',
  231. bgColor: '#4688fa'
  232. },
  233. plain: false
  234. }
  235. ],
  236. paymentActions: [
  237. { name: '普通款项', value: 1 },
  238. { name: '返佣款项', value: 3 },
  239. { name: '供应商退款', value: 5 }
  240. ],
  241. receiptTypeActions: [],
  242. paymentTypeText: '普通款项', // 款项类型显示文案
  243. banksTypeText: '', // 款项类型显示文案
  244. params: {
  245. smsContent:
  246. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。', // 收款短信
  247. payType: null, //付款类型
  248. receiptType: 1, // 收款款项类型:1订单款,2非订单款,3返佣款 4订单款或者非订单款(因财务阶段无法区分订单非订单), 5供应商退款
  249. openid: null, // 微信openid
  250. receiptAmount: '', //收款金额
  251. handlingFee: '', //手续费
  252. receiptDate: null // 收款时间
  253. },
  254. handleCharge: 0,
  255. isCheckedCharge: false,
  256. isReceiptType: false,
  257. contentModalTitle: '',
  258. contentModalText: '', //操作文字提示语句
  259. modal: false
  260. }
  261. },
  262. onLoad() {
  263. let obj = {}
  264. // #ifdef MP-WEIXIN
  265. obj = wx.getMenuButtonBoundingClientRect()
  266. // #endif
  267. // #ifdef MP-BAIDU
  268. obj = swan.getMenuButtonBoundingClientRect()
  269. // #endif
  270. // #ifdef MP-ALIPAY
  271. my.hideAddToDesktopMenu()
  272. // #endif
  273. uni.getSystemInfo({
  274. success: res => {
  275. this.width = obj.left || res.windowWidth
  276. this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44
  277. this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6
  278. this.scrollH = res.windowWidth * 0.6
  279. }
  280. })
  281. this.getOrderReceiptType()
  282. },
  283. filters: {
  284. NumFormat: function(text) {
  285. //处理金额
  286. return Number(text).toFixed(2)
  287. }
  288. },
  289. computed: {
  290. ...mapState(['openid']),
  291. disabled: function() {
  292. let bool = true
  293. if (this.receiptType == 1) {
  294. if (this.params.smsContent || this.params.receiptAmount) {
  295. bool = false
  296. }
  297. } else {
  298. if (this.params.receiptAmount) {
  299. bool = false
  300. }
  301. }
  302. return bool
  303. }
  304. },
  305. methods: {
  306. getOrderReceiptSave() {
  307. // 收款保存
  308. this.OrderService.orderReceiptSave(this.params)
  309. .then(response => {
  310. this.$util.msg('收款成功', 1500, true, 'success')
  311. setTimeout(() => {
  312. this.$api.navigateTo(`/pages/collection/detail?id=${response.data.id}`)
  313. }, 1500)
  314. })
  315. .catch(err => {
  316. this.$util.msg(err.msg, 2000)
  317. })
  318. },
  319. getOrderReceiptType() {
  320. // 获取收款类型列表
  321. this.OrderService.orderReceiptType()
  322. .then(response => {
  323. this.receiptTypeActions = response.data.map(item => ({
  324. ...item,
  325. name: item.type,
  326. value: item.id
  327. }))
  328. })
  329. .catch(err => {
  330. this.$util.msg(err.msg, 2000)
  331. })
  332. },
  333. orderReceiptReadSms() {
  334. // 识别收款短信
  335. this.params.openid = this.openid
  336. this.OrderService.orderReceiptReadSms(this.params)
  337. .then(response => {
  338. const data = response.data
  339. this.params.payType = data.payType
  340. this.params.receiptAmount = data.receiptAmount
  341. this.params.receiptDate = data.receiptDate
  342. this.handleCharge = this.params.handlingFee = data.handlingFee
  343. this.receiptTypeActions.forEach(el => {
  344. if (this.params.payType === el.value) {
  345. this.banksTypeText = el.name
  346. }
  347. })
  348. if (this.params.handlingFee > 0) {
  349. this.isCheckedCharge = true
  350. }
  351. // 处理收款类型禁止点击
  352. this.isReceiptType = true
  353. console.log('isReceiptType', this.isReceiptType)
  354. this.initInput()
  355. })
  356. .catch(err => {
  357. this.$util.msg(err.msg, 2000)
  358. })
  359. },
  360. confirmDistinguish() {
  361. if (this.params.receiptAmount == '') {
  362. this.$util.msg('请输入收款金额', 2000)
  363. return
  364. }
  365. if (this.isCheckedCharge) {
  366. if (this.params.handlingFee == '') {
  367. this.$util.msg('请输入手续费', 2000)
  368. return
  369. }
  370. }
  371. if (this.receiptType == 2) {
  372. if (this.params.smsContent == '') {
  373. this.$util.msg('请填写收款备注', 2000)
  374. return
  375. }
  376. }
  377. if (this.params.receiptType == 1) {
  378. // 普通订单款
  379. this.contentModalTitle = '确定收款吗?'
  380. this.contentModalText = '确认前请仔细检查各项数据是否正确,确认收款后将不能进行修改。' //操作文字提示语句
  381. } else if (this.params.receiptType == 3) {
  382. // 返佣款
  383. this.contentModalTitle = ''
  384. this.contentModalText = '确定返佣收款吗?' //操作文字提示语句
  385. } else if (this.params.receiptType == 5) {
  386. // 供应商退款
  387. this.contentModalTitle = ''
  388. this.contentModalText = '确定供应商退款吗?' //操作文字提示语句
  389. }
  390. this.modal = true
  391. console.log('收款')
  392. },
  393. bindPickerChange(type, e) {
  394. // 选择选项
  395. switch (type) {
  396. case 1:
  397. this.paymentTypeText = this.paymentActions[e.target.value].name
  398. this.params.receiptType = this.paymentActions[e.target.value].value
  399. console.log('款项类型', this.params.receiptType)
  400. break
  401. case 2:
  402. this.banksTypeText = this.receiptTypeActions[e.target.value].name
  403. this.params.payType = this.receiptTypeActions[e.target.value].value
  404. console.log('收款类型', this.params.payType)
  405. break
  406. }
  407. },
  408. checkedNoSms() {
  409. // 切换无短信收款
  410. this.receiptType = 2
  411. this.isConfirm = true
  412. this.isReceiptType = false
  413. this.params = Object.assign(this.params, defaultParams)
  414. this.params.receiptDate = this.$api.getNowFormatDate()
  415. this.params.payType = this.receiptTypeActions[0].value
  416. this.banksTypeText = this.receiptTypeActions[0].name
  417. this.params.openid = this.openid
  418. },
  419. checkedSms() {
  420. // 切换款项识别
  421. this.receiptType = 1
  422. this.isConfirm = false
  423. },
  424. onBlurSmsContent(e) {
  425. this.params.smsContent = e.detail.value
  426. if (this.params.smsContent) {
  427. this.orderReceiptReadSms()
  428. }
  429. },
  430. showTuiDateTime() {
  431. this.$refs.dateTime.show()
  432. },
  433. bindStartDateChange(event) {
  434. //开始时间
  435. console.log('开始时间==>', event.result)
  436. this.params.receiptDate = event.result
  437. },
  438. checkedCharge() {
  439. // 勾选手续费
  440. this.isCheckedCharge = !this.isCheckedCharge
  441. if (this.receiptType == 1) {
  442. // 短信收款处理勾选手续费
  443. if (!this.isCheckedCharge) {
  444. this.params.handlingFee = 0
  445. this.params.receiptAmount = this.params.receiptAmount - this.handleCharge
  446. } else {
  447. this.params.handlingFee = this.handleCharge
  448. this.params.receiptAmount = this.params.receiptAmount + this.params.handlingFee
  449. }
  450. } else {
  451. // 无短信收款处理勾选手续费计算
  452. if (!this.isCheckedCharge) {
  453. this.params.receiptAmount = this.params.receiptAmount - this.params.handlingFee
  454. this.params.handlingFee = ''
  455. } else {
  456. this.params.receiptAmount = this.params.receiptAmount + this.params.handlingFee
  457. }
  458. }
  459. },
  460. handleClick(e) {
  461. // 确认收款
  462. // 确认收款
  463. if (e.index == 1) {
  464. this.getOrderReceiptSave()
  465. }
  466. this.modal = false
  467. },
  468. hideMobel() {
  469. // 取消收款
  470. this.modal = false
  471. },
  472. changeNumber(e) {
  473. // 校验输入为数字
  474. this.params.receiptAmount = this.checkedNumberVal(e.detail.value)
  475. console.log('receiptAmount', this.params.receiptAmount)
  476. },
  477. handlingFeeNumber(e) {
  478. // 校验输入为数字
  479. this.params.handlingFee = Number(this.checkedNumberVal(e.detail.value))
  480. if (this.isCheckedCharge) {
  481. this.params.receiptAmount = Number(this.params.receiptAmount) + this.params.handlingFee
  482. }
  483. },
  484. checkedNumberVal(val) {
  485. // 校验是否输入的是数字
  486. if (!this.$api.isNumber(val)) {
  487. return ''
  488. } else {
  489. return val
  490. }
  491. },
  492. initInput() {
  493. if (this.params.smsContent != '') {
  494. this.isConfirm = true
  495. } else {
  496. this.isConfirm = false
  497. }
  498. },
  499. toNoSms(url) {
  500. this.$api.navigateTo(url)
  501. }
  502. },
  503. onPageScroll(e) {
  504. //实时获取到滚动的值
  505. // if (e.scrollTop > 30) {
  506. // this.isCmcustomClass = 'fiexd'
  507. // } else {
  508. // this.isCmcustomClass = 'left'
  509. // }
  510. },
  511. onPullDownRefresh() {
  512. setTimeout(() => {
  513. // this.initSsoMemberCollectionList()
  514. uni.stopPullDownRefresh()
  515. }, 200)
  516. },
  517. onShow() {
  518. if (this.hasLogin) {
  519. this.GetDataInfo()
  520. }
  521. }
  522. }
  523. </script>
  524. <style lang="scss">
  525. @import '@/uni.scss';
  526. page {
  527. background: #fff;
  528. }
  529. .tui-header-box {
  530. width: 100%;
  531. background: #ffffff;
  532. z-index: 999;
  533. background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
  534. background-size: cover;
  535. &.fiexd {
  536. position: fixed;
  537. top: 0;
  538. left: 0;
  539. }
  540. }
  541. .header-top {
  542. width: 100%;
  543. font-size: 16px;
  544. font-weight: 500;
  545. height: 32px;
  546. display: flex;
  547. align-items: center;
  548. justify-content: center;
  549. position: relative;
  550. padding: 0 40rpx;
  551. }
  552. .header-sit {
  553. width: 100%;
  554. box-sizing: border-box;
  555. height: 80rpx;
  556. line-height: 80rpx;
  557. box-sizing: border-box;
  558. color: #ffffff;
  559. padding: 0 24rpx;
  560. .header-sit-text {
  561. text-align: left;
  562. font-size: $font-size-40;
  563. font-weight: 600;
  564. font-family: '正楷';
  565. }
  566. .icon-fanhui {
  567. display: block;
  568. width: 56rpx;
  569. height: 80rpx;
  570. float: left;
  571. text-align: center;
  572. line-height: 80rpx;
  573. font-size: 42rpx;
  574. }
  575. }
  576. .mine {
  577. width: 100%;
  578. height: 100%;
  579. position: relative;
  580. }
  581. .distinguish-section {
  582. width: 100%;
  583. position: absolute;
  584. padding: 20rpx 20rpx;
  585. box-sizing: border-box;
  586. }
  587. .distinguish-section-conten {
  588. width: 100%;
  589. height: auto;
  590. position: relative;
  591. background-color: #ffffff;
  592. border-radius: 20rpx;
  593. padding: 20rpx;
  594. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  595. .section-top {
  596. width: 100%;
  597. height: 86rpx;
  598. box-sizing: border-box;
  599. padding-bottom: 20rpx;
  600. .title {
  601. float: left;
  602. line-height: 66rpx;
  603. font-size: $font-size-28;
  604. color: #333333;
  605. .iconfont {
  606. color: #666666;
  607. font-size: $font-size-44;
  608. }
  609. }
  610. .button {
  611. float: right;
  612. box-sizing: border-box;
  613. padding: 0 24rpx;
  614. height: 100%;
  615. line-height: 66rpx;
  616. background: $btn-confirm;
  617. border-radius: 8rpx;
  618. text-align: center;
  619. color: #ffffff;
  620. }
  621. }
  622. .section-rows {
  623. width: 100%;
  624. height: 80rpx;
  625. box-sizing: border-box;
  626. padding: 0 20rpx;
  627. border-radius: 8rpx;
  628. background: #f8f8f8;
  629. margin-top: 20rpx;
  630. line-height: 80rpx;
  631. display: flex;
  632. position: relative;
  633. &.disabled {
  634. background: #e1e1e1;
  635. }
  636. .rows-label {
  637. flex: 3;
  638. .iconfont {
  639. margin-right: 8rpx;
  640. &.icon-yixuanze {
  641. color: $color-system;
  642. }
  643. }
  644. }
  645. .rows-mains {
  646. flex: 7;
  647. .input {
  648. width: 100%;
  649. height: 80rpx;
  650. box-sizing: border-box;
  651. padding-right: 40rpx;
  652. text-align: left;
  653. font-size: $font-size-28;
  654. color: #333333;
  655. }
  656. }
  657. .icon-xiayibu {
  658. display: block;
  659. width: 40rpx;
  660. height: 80rpx;
  661. position: absolute;
  662. right: 0;
  663. text-align: center;
  664. font-size: $font-size-32;
  665. }
  666. }
  667. .section-text {
  668. width: 100%;
  669. height: 66rpx;
  670. line-height: 66rpx;
  671. font-size: $font-size-24;
  672. color: #333333;
  673. }
  674. .section-textarea {
  675. width: 100%;
  676. height: 200rpx;
  677. box-sizing: border-box;
  678. padding: 20rpx;
  679. background: #f7f7f7;
  680. border-radius: 8rpx;
  681. .textarea {
  682. width: 100%;
  683. height: 100%;
  684. }
  685. }
  686. }
  687. .distinguish-button {
  688. width: 100%;
  689. height: 80rpx;
  690. margin-top: 100rpx;
  691. box-sizing: border-box;
  692. padding: 0 50rpx;
  693. .button {
  694. width: 100%;
  695. height: 80rpx;
  696. background: $btn-confirm;
  697. border-radius: 40rpx;
  698. text-align: center;
  699. color: #ffffff;
  700. line-height: 80rpx;
  701. font-size: $font-size-28;
  702. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  703. &.disabled {
  704. background: #f7f7f7;
  705. color: #e1e1e1;
  706. }
  707. }
  708. }
  709. .distinguish-button-text {
  710. width: 100%;
  711. height: 80rpx;
  712. line-height: 80rpx;
  713. text-align: center;
  714. color: $btn-confirm;
  715. font-size: $font-size-28;
  716. }
  717. .uni-badge--small {
  718. -webkit-transform: scale(0.8);
  719. -ms-transform: scale(0.8);
  720. transform: scale(0.8);
  721. -webkit-transform-origin: center center;
  722. -ms-transform-origin: center center;
  723. transform-origin: center center;
  724. }
  725. .uni-badge {
  726. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  727. -webkit-box-sizing: border-box;
  728. box-sizing: border-box;
  729. font-size: 12px;
  730. line-height: 1;
  731. display: inline-block;
  732. padding: 3px 6px;
  733. color: #333;
  734. border-radius: 100px;
  735. background-color: #f1f1f1;
  736. }
  737. .uni-badge-error {
  738. color: #fff;
  739. background-color: #dd524d;
  740. }
  741. </style>