sms.vue 19 KB

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