sms.vue 19 KB

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