order-payhlb.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. <template>
  2. <view class="container cashier" v-show="isRepuest">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="container-cash clearfix" :style="{marginTop:CustomBar+'px'}">
  5. <view class="container-wrapper">
  6. <view class="pay-content">
  7. <view class="pay-top">
  8. <view class="pay-paid">
  9. <text class="txt-m">待付金额</text>
  10. <text class="txt-b"><text class="small">¥</text>{{obligation | NumFormat}}</text>
  11. </view>
  12. <view class="pay-payd">
  13. <view class="pay-paids">
  14. <text class="txt-m">应付总额</text>
  15. <text class="txt-b">¥{{payableAmount | NumFormat}}</text>
  16. </view>
  17. <view class="pay-paids">
  18. <text class="txt-m">已支付金额</text>
  19. <text class="txt-b">¥{{receiptAmount | NumFormat}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="pay-bot">
  24. <view class="bot-title"><text>本次支付金额</text></view>
  25. <view class="bot-input">
  26. <text>¥</text>
  27. <!-- <view class="input" @click.stop="focusInput">
  28. <text class="text" v-if="payAmount>=0">{{payAmount}}</text>
  29. <text class="none" v-else>输入金额不能大于待付金额</text>
  30. </view> -->
  31. <input class="input"
  32. type="digit"
  33. v-model="payAmount"
  34. @focus="focusInput"
  35. @blur="blurInput"
  36. placeholder="输入金额不能大于待付金额"
  37. placeholder-class="placeholder"/>
  38. </view>
  39. <view class="bot-resid">
  40. <text>应付剩余¥{{balanceAmount|NumFormat}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="pay-record" :style="{paddingBottom:isIphoneX ? '156rpx' : '112rpx'}">
  45. <view class="record-title"><text>支付记录</text></view>
  46. <view class="record-list">
  47. <view class="list-main" v-if="discernReceipt.length>0">
  48. <view class="list-item" v-for="(item,index) in discernReceipt" :key="index">
  49. <text class="text row-1">¥{{item.receiptAmount | NumFormat}}</text>
  50. <text class="text row-2">{{payTypeText(item.payType)}}</text>
  51. <text class="text row-3">{{item.receiptDate}}</text>
  52. </view>
  53. </view>
  54. <view class="list-none" v-else>暂无支付记录</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="pay-button" :style="{paddingBottom:isIphoneX ? '68rpx' : '24rpx'}">
  59. <view class="btn" @click.stop="buttonSubMit" :style="{'background':btnColor}">{{buttonText}}</view>
  60. </view>
  61. </view>
  62. <view class="alert spec" :class="specClass" v-if="isShowTip">
  63. <!-- 选择支付弹窗说明 -->
  64. <view class="freight-alert" @tap="hideTips">
  65. <view class="content">
  66. <view class="title">
  67. <text>支付链接</text>
  68. <text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
  69. </view>
  70. <view class="text-content">
  71. <view class="text">请复制以下链接,并发送至电脑端,在浏览器访问该链接并选择银行尽快完成支付</view>
  72. <view class="text-p">{{payHttpUrl}}</view>
  73. <view class="text-b">链接有效期为72小时</view>
  74. </view>
  75. <view class="text-button" @click.stop="clipboard(payHttpUrl)">复制链接</view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </template>
  81. <script>
  82. import authorize from '@/common/config/authorize.js'
  83. import thorui from '@/components/clipboard/clipboard.thorui.js'
  84. import wechatPay from '@/utils/mixins/wechatPay.js'
  85. export default{
  86. mixins: [wechatPay],
  87. data(){
  88. return{
  89. orderId:0,
  90. shopOrderId:0,
  91. payType:'',
  92. payWay:'',
  93. isRepuest:false,
  94. realPay:0,//应付金额
  95. receiptAmount:0,// 已付金额
  96. obligation:0,//待付金额
  97. balanceAmount:0,
  98. payAmount:0,
  99. nvabarData: { //顶部自定义导航
  100. showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
  101. showSearch: 0,
  102. title: '收银台', // 导航栏 中间的标题
  103. haveBack:true,
  104. textLeft:this.$store.state.isIphone
  105. },
  106. idCardList:[],
  107. isIphoneX:this.$store.state.isIphoneX,
  108. CustomBar:this.CustomBar,// 顶部导航栏高度
  109. tabCurrentIndex:0,
  110. isShowTip:false,
  111. buttonText:'去支付',
  112. btnColor:'#09BB07',
  113. discernReceipt:[],
  114. showDigitKeyboard:false,
  115. payHttpUrl:'',
  116. mbOrderId:0, // 支付记录订单Id
  117. modal:false,
  118. }
  119. },
  120. onLoad(option) {
  121. this.initData(option)
  122. },
  123. filters: {
  124. NumFormat(value) {
  125. if(!value) return '0.00'
  126. /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
  127. /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
  128. var intPart = Number(value) - Number(value)%1 //获取整数部分(这里是windy93的方法)
  129. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
  130. var floatPart = '.00' //预定义小数部分
  131. var value2Array = value.toString().split('.')
  132. //=2表示数据有小数位
  133. if(value2Array.length == 2) {
  134. floatPart = value2Array[1].toString() //拿到小数部分
  135. if(floatPart.length == 1) { //补0,实际上用不着
  136. return intPartFormat + '.' + floatPart + '0'
  137. } else {
  138. return intPartFormat + '.' + floatPart
  139. }
  140. } else {
  141. return intPartFormat + floatPart
  142. }
  143. }
  144. },
  145. methods:{
  146. initData(e){
  147. this.payType = e.type
  148. console.log(this.payType)
  149. this.shopOrderId = e.shopOrderId
  150. switch(this.payType){
  151. case '0':
  152. this.payWay = 'WEIXIN'
  153. this.btnColor='#09BB07'
  154. this.buttonText = '去支付'
  155. break
  156. case '1':
  157. this.payWay = 'UNIONPAY'
  158. this.btnColor='#034582'
  159. this.buttonText = '生成企业网银支付链接'
  160. break
  161. case '2':
  162. this.payWay = 'UNIONPAY'
  163. this.btnColor='#034582'
  164. this.buttonText = '生成个人网银支付链接'
  165. break
  166. }
  167. this.GetPayOrderInfo()
  168. },
  169. GetPayOrderInfo(){//初始化支付信息
  170. this.PayService.PayOrderCheckoutShoporders({shopOrderId:this.shopOrderId}).then(response =>{
  171. let data = response.data
  172. this.discernReceipt = data.discernReceipt // 支付记录
  173. this.obligation = data.shopOrder.obligation // 待付金额
  174. this.receiptAmount = data.shopOrder.receiptAmount // 已付金额
  175. this.payableAmount = data.shopOrder.realPay // 应付金额
  176. this.payAmount = this.toFixedFn(this.payableAmount) // 自定义金额
  177. this.balanceAmount = this.obligation - this.payAmount // 计算剩余支付金额
  178. this.isRepuest = true
  179. }).catch(error =>{
  180. this.$util.msg(error.msg,2000)
  181. })
  182. },
  183. buttonSubMit(){
  184. switch(this.payType){
  185. case '0':// 微信支付
  186. // 友盟埋点收集微信支付
  187. if(process.env.NODE_ENV != 'development'){
  188. this.$uma.trackEvent('Um_Event_ConfirmWechatPay', {
  189. Um_Key_PageName: '微信支付',
  190. Um_Key_SourcePage: '线上支付',
  191. Um_Key_PayName:`${this.buttonText}`,
  192. Um_Key_PayOrderID:`${this.shopOrderId}`
  193. })
  194. }
  195. this.MiniWxPayFor()
  196. break
  197. case '1':// 企业网银
  198. // 友盟埋点收集企业网银
  199. if(process.env.NODE_ENV != 'development'){
  200. this.$uma.trackEvent('Um_Event_ConfirmEbankPay', {
  201. Um_Key_PageName: '企业网银',
  202. Um_Key_SourcePage: '线上支付',
  203. Um_Key_PayName:`${this.buttonText}`,
  204. Um_Key_PayOrderID:`${this.shopOrderId}`
  205. })
  206. }
  207. this.BuildCatenate()
  208. break
  209. case '2':// 个人网银
  210. // 友盟埋点收集个人网银
  211. if(process.env.NODE_ENV != 'development'){
  212. this.$uma.trackEvent('Um_Event_ConfirmAbankPay', {
  213. Um_Key_PageName: '个人网银',
  214. Um_Key_SourcePage: '线上支付',
  215. Um_Key_PayName:`${this.buttonText}`,
  216. Um_Key_PayOrderID:`${this.shopOrderId}`
  217. })
  218. }
  219. this.BuildCatenate()
  220. break
  221. }
  222. },
  223. BuildCatenate(){// 企业网银 个人网银
  224. if(this.payAmount == 0){
  225. this.$util.msg('请输入本次支付的金额',2000)
  226. return
  227. }
  228. if(this.payAmount <=10){
  229. this.$util.msg('网银支付的金额必须大于¥10.00',2000)
  230. return
  231. }
  232. this.PayService.PayOrderPayLink({unpaidAmount:this.payAmount,shopOrderId:this.shopOrderId,payType:this.payType}).then(response =>{
  233. this.payHttpUrl = response.data
  234. this.isShowTip = true
  235. })
  236. },
  237. async MiniWxPayFor(){// 微信支付
  238. if(this.payAmount > 5000){
  239. this.$util.modal('','本次支付金额已超出微信支付限额,请输入小于5千的金额进行支付','知道了','',false,() =>{})
  240. return
  241. }
  242. if(this.payAmount == 0){
  243. this.$util.msg('请输入本次支付的金额',2000)
  244. return
  245. }
  246. if(this.payAmount*100 < 2){
  247. this.$util.msg('本次支付的金额必须大于¥0.02',2000)
  248. return
  249. }
  250. // 获取微信code
  251. const wechatCode = await authorize.getCode('weixin')
  252. const params = {
  253. payAmount:this.payAmount,
  254. payType:'XCX',
  255. code:wechatCode,
  256. shopOrderId:this.shopOrderId
  257. }
  258. this.weChatMiniOrderWxPay(params)
  259. },
  260. confirmEvent(value){//点击自定义键盘完成的回调函数
  261. this.chechValue(value)
  262. this.showDigitKeyboard = false
  263. },
  264. blurInput(e){
  265. this.chechValue(e.detail.value)
  266. },
  267. focusInput(){
  268. // this.showDigitKeyboard = true
  269. },
  270. hideKeyboard(){
  271. this.showDigitKeyboard = false
  272. },
  273. chechValue(value){
  274. let patern = /\d+\.\d+/g
  275. if(value && value.split('.').length > 2) {
  276. value= patern.exec(value)
  277. }
  278. if(value == '' || value <0 ){
  279. this.payAmount = ''
  280. this.balanceAmount = this.obligation
  281. }else if( value > this.obligation){
  282. this.payAmount = this.toFixedFn(this.obligation)
  283. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  284. }else{
  285. this.payAmount = this.toFixedFn(value)
  286. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  287. }
  288. },
  289. hanldNavigateBack(){//页面返回
  290. uni.navigateBack({
  291. delta: 1
  292. })
  293. },
  294. payTypeText (state){//处理支付记录文字
  295. let stateText = '',
  296. stateTextObject={
  297. 12:'企业网银',
  298. 13:'微信支付',
  299. 14:'支付宝',
  300. 15:'微信支付',
  301. 16:'余额抵扣',
  302. }
  303. Object.keys(stateTextObject).forEach(key => {
  304. if(key == state){
  305. stateText = stateTextObject[key]
  306. }
  307. })
  308. return stateText
  309. },
  310. hideTips(){//隐藏弹窗
  311. this.isShowTip = false
  312. },
  313. toFixedFn(text){//处理小数点后两位数
  314. return Number(text).toFixed(2)
  315. },
  316. copyClipboard(data){
  317. //复制账号
  318. thorui.getClipboardData(data, (res) => {
  319. if (res) {
  320. this.$util.msg('已复制',2000)
  321. } else {
  322. this.$util.msg('复制失败',2000)
  323. }
  324. })
  325. },
  326. clipboard(data) {//复制链接
  327. console.log('data',data)
  328. thorui.getClipboardData(data, (res) => {
  329. if (res) {
  330. this.isShowTip = false
  331. this.$util.msg('已复制',2000)
  332. // 友盟埋点收集复制网银链接
  333. if(process.env.NODE_ENV != 'development'){
  334. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  335. Um_Key_PageName: '网银支付',
  336. Um_Key_SourcePage: '线上支付',
  337. Um_Key_PayName:`${this.buttonText}`,
  338. Um_Key_PayOrderID:`${this.shopOrderId}`
  339. })
  340. }
  341. } else {
  342. this.$util.msg('复制失败',2000)
  343. }
  344. })
  345. },
  346. discard(){
  347. //丢弃
  348. }
  349. },
  350. onShow() {
  351. }
  352. }
  353. </script>
  354. <style lang="scss">
  355. page{height: auto !important;background-color: #FFFFFF;}
  356. .container-cash{
  357. width: 100%;
  358. .container-wrapper{
  359. width:100%;
  360. margin: 0 auto;
  361. .pay-content{
  362. width: 662rpx;
  363. height: 420rpx;
  364. padding: 64rpx 44rpx 0 44rpx;
  365. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
  366. background-size: cover;
  367. float: left;
  368. position: relative;
  369. .pay-top{
  370. width: 100%;
  371. height: auto;
  372. float: left;
  373. margin-bottom: 44rpx;
  374. .pay-paid{
  375. width: 100%;
  376. height: auto;
  377. margin-bottom: 38rpx;
  378. text{
  379. line-height: 48rpx;
  380. text-align: left;
  381. color: #FFFFFF;
  382. width: 100%;
  383. }
  384. .txt-m{
  385. font-size: $font-size-26;
  386. opacity: 0.7;
  387. display: inline-block;
  388. }
  389. .txt-b{
  390. font-size: $font-size-48;
  391. display: inline-block;
  392. .small{
  393. font-size: $font-size-32;
  394. }
  395. }
  396. }
  397. .pay-payd{
  398. width: 100%;
  399. height: auto;
  400. .pay-paids{
  401. height: auto;
  402. float: left;
  403. margin-right: 48rpx;
  404. text{
  405. line-height: 48rpx;
  406. text-align: left;
  407. color: #FFFFFF;
  408. }
  409. .txt-m{
  410. width: 100%;
  411. display: inline-block;
  412. font-size: $font-size-26;
  413. opacity: 0.7;
  414. }
  415. .txt-b{
  416. width: 100%;
  417. display: inline-block;
  418. font-size: $font-size-32;
  419. }
  420. }
  421. }
  422. }
  423. .pay-bot{
  424. width: 614rpx;
  425. height: 184rpx;
  426. padding: 24rpx;
  427. background: #FFFFFF;
  428. border-radius: 20rpx;
  429. box-shadow:0 2px 6px rgba(255, 77, 0, .17);
  430. position: absolute;
  431. bottom: -92rpx;
  432. left:44rpx;
  433. .bot-title{
  434. line-height: 36rpx;
  435. font-size: $font-size-26;
  436. color: #666666;
  437. }
  438. .bot-input{
  439. width: 100%;
  440. height: 66rpx;
  441. margin: 15rpx 0;
  442. border-bottom: 1px solid #EBEBEB;
  443. line-height: 66rpx;
  444. font-size: $font-size-32;
  445. color: $text-color;
  446. text{
  447. display: block;
  448. float: left;
  449. }
  450. .input{
  451. font-size: $font-size-40;
  452. width: 500rpx;
  453. height: 66rpx;
  454. padding: 0 10rpx;
  455. line-height: 66rpx;
  456. float: left;
  457. .none{
  458. color:$text-color;
  459. opacity: 0.3;
  460. }
  461. .text{
  462. color:$text-color;
  463. }
  464. }
  465. .placeholder{
  466. font-size: $font-size-26;
  467. }
  468. }
  469. .bot-resid{
  470. line-height: 36rpx;
  471. font-size: $font-size-26;
  472. color: #666666;
  473. margin-top: 24rpx;
  474. color: $color-system;
  475. }
  476. }
  477. }
  478. .pay-record{
  479. float: left;
  480. background: #FFFFFF;
  481. width: 702rpx;
  482. height: auto;
  483. padding: 0 24rpx;
  484. margin-top: 112rpx;
  485. .record-title{
  486. width: 100%;
  487. float: left;
  488. font-size: $font-size-28;
  489. color: $text-color;
  490. line-height: 80rpx;
  491. height: 80rpx;
  492. border-bottom: 1px solid #F8F8F8;
  493. }
  494. .record-list{
  495. width: 100%;
  496. height: auto;
  497. float: left;
  498. .list-none{
  499. line-height: 80rpx;
  500. font-size: $font-size-26;
  501. color: #999999;
  502. text-align: left;
  503. }
  504. .list-main{
  505. height: auto;
  506. display: flex;
  507. flex-direction:column;
  508. .list-item{
  509. width: 100%;
  510. height:80rpx;
  511. display: flex;
  512. flex: 1;
  513. line-height: 80rpx;
  514. font-size: $font-size-26;
  515. color: $text-color;
  516. .text{
  517. &.row-1{
  518. flex: 3;
  519. }
  520. &.row-2{
  521. flex: 3;
  522. }
  523. &.row-3{
  524. flex: 4;
  525. text-align: right;
  526. color: #999999;
  527. }
  528. }
  529. }
  530. }
  531. }
  532. }
  533. }
  534. .pay-button{
  535. width: 100%;
  536. background-color: #FFFFFF;
  537. position: fixed;
  538. height: 88rpx;
  539. padding-top: 24rpx;
  540. bottom: 0;
  541. .btn{
  542. width: 702rpx;
  543. height: 88rpx;
  544. border-radius: 44rpx;
  545. font-size: $font-size-28;
  546. line-height: 88rpx;
  547. color: #FFFFFF;
  548. margin: 0 auto;
  549. text-align: center;
  550. background: $btn-confirm;
  551. }
  552. }
  553. }
  554. .freight-alert{
  555. width: 100%;
  556. height: 100%;
  557. background: rgba(0,0,0,.5);
  558. position: fixed;
  559. top: 0;
  560. left: 0;
  561. z-index: 8888;
  562. transition: all 0.4s;
  563. &.none{
  564. display: none;
  565. }
  566. &.show{
  567. display: block;
  568. }
  569. .content{
  570. width: 422rpx;
  571. height:434rpx;
  572. position: absolute;
  573. background: $bg-color;
  574. left: 0;
  575. right: 0;
  576. bottom: 0;
  577. top: 0;
  578. margin: auto;
  579. padding: 20rpx 32rpx;
  580. border-radius: 12rpx;
  581. .title{
  582. width: 100%;
  583. height: 68rpx;
  584. line-height: 68rpx;
  585. font-size: $font-size-28;
  586. color: $text-color;
  587. text-align: center;
  588. position: relative;
  589. .icon-iconfontguanbi{
  590. width: 68rpx;
  591. height: 68rpx;
  592. text-align: center;
  593. line-height: 68rpx;
  594. position: absolute;
  595. right: 0;
  596. top: 0;
  597. font-size: $font-size-36;
  598. color: #999999;
  599. }
  600. }
  601. .text-content{
  602. width: 100%;
  603. height: auto;
  604. .text{
  605. padding: 20rpx 0 0 0;
  606. line-height: 44rpx;
  607. font-size: $font-size-26;
  608. color:#666666;
  609. text-align: justify;
  610. }
  611. .text-p{
  612. width: 100%;
  613. line-height: 44rpx;
  614. font-size: $font-size-26;
  615. color:$color-system;
  616. text-align: left;
  617. text-overflow:ellipsis;
  618. display: -webkit-box;
  619. word-break: break-all;
  620. -webkit-box-orient: vertical;
  621. -webkit-line-clamp: 1;
  622. overflow: hidden;
  623. }
  624. .text-b{
  625. line-height: 44rpx;
  626. font-size: $font-size-24;
  627. color:#999999;
  628. text-align: left;
  629. }
  630. }
  631. .text-button{
  632. width: 100%;
  633. height: 88rpx;
  634. line-height: 88rpx;
  635. background: $btn-confirm;
  636. font-size: $font-size-28;
  637. border-radius: 44rpx;
  638. color:#FFFFFF;
  639. text-align: center;
  640. margin-top: 20rpx;
  641. }
  642. }
  643. }
  644. .tui-prompt-title{
  645. width: 100%;
  646. height: 44rpx;
  647. line-height: 44rpx;
  648. padding: 20rpx 0;
  649. text-align: center;
  650. color: #333333;
  651. border-bottom: 1px solid #E2E7EF;
  652. }
  653. .tui-prompt-text{
  654. padding-top: 20rpx;
  655. .tui-prompt-tips{
  656. width: 100%;
  657. line-height: 36rpx;
  658. font-size: $font-size-22;
  659. color: #E15616;
  660. text-align: justify;
  661. margin-bottom: 24rpx;
  662. }
  663. .tui-prompt-item{
  664. width: 100%;
  665. line-height: 60rpx;
  666. color: #333333;
  667. font-size: $font-size-26;
  668. .text{
  669. font-weight: bold;
  670. }
  671. .copy{
  672. height: 38rpx;
  673. box-sizing: border-box;
  674. padding: 0 24rpx;
  675. text-align: center;
  676. line-height: 36rpx;
  677. display: inline-block;
  678. .iconfont{
  679. font-size: $font-size-40;
  680. color: #666666;
  681. }
  682. }
  683. }
  684. }
  685. .tui-prompt-flex{
  686. width: 100%;
  687. height: auto;
  688. margin-top: 20rpx;
  689. box-sizing: border-box;
  690. padding: 0 35rpx;
  691. .btn{
  692. width: 100%;
  693. line-height: 84rpx;
  694. font-size: $font-size-26;
  695. text-align: center;
  696. color: #FFFFFF;
  697. border-radius: 44rpx;
  698. margin: 20rpx 0;
  699. &.btn-cancel{
  700. background: #FFFFFF;
  701. color: #333333;
  702. border: 1px solid #979797;
  703. }
  704. &.btn-confirm{
  705. background: $btn-confirm;
  706. }
  707. }
  708. }
  709. </style>