sms.vue 18 KB

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