sms.vue 19 KB

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