order-payhlb.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  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. border-radius: 0 0 60rpx 60rpx;
  366. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
  367. background-size: cover;
  368. float: left;
  369. position: relative;
  370. .pay-top{
  371. width: 100%;
  372. height: auto;
  373. float: left;
  374. margin-bottom: 44rpx;
  375. .pay-paid{
  376. width: 100%;
  377. height: auto;
  378. margin-bottom: 38rpx;
  379. text{
  380. line-height: 48rpx;
  381. text-align: left;
  382. color: #FFFFFF;
  383. width: 100%;
  384. }
  385. .txt-m{
  386. font-size: $font-size-26;
  387. opacity: 0.7;
  388. display: inline-block;
  389. }
  390. .txt-b{
  391. font-size: $font-size-48;
  392. display: inline-block;
  393. .small{
  394. font-size: $font-size-32;
  395. }
  396. }
  397. }
  398. .pay-payd{
  399. width: 100%;
  400. height: auto;
  401. .pay-paids{
  402. height: auto;
  403. float: left;
  404. margin-right: 48rpx;
  405. text{
  406. line-height: 48rpx;
  407. text-align: left;
  408. color: #FFFFFF;
  409. }
  410. .txt-m{
  411. width: 100%;
  412. display: inline-block;
  413. font-size: $font-size-26;
  414. opacity: 0.7;
  415. }
  416. .txt-b{
  417. width: 100%;
  418. display: inline-block;
  419. font-size: $font-size-32;
  420. }
  421. }
  422. }
  423. }
  424. .pay-bot{
  425. width: 614rpx;
  426. height: 184rpx;
  427. padding: 24rpx;
  428. background: #FFFFFF;
  429. border-radius: 28rpx;
  430. box-shadow:0 2px 6px rgba(255, 77, 0, .17);
  431. position: absolute;
  432. bottom: -92rpx;
  433. left:44rpx;
  434. .bot-title{
  435. line-height: 36rpx;
  436. font-size: $font-size-26;
  437. color: #666666;
  438. }
  439. .bot-input{
  440. width: 100%;
  441. height: 66rpx;
  442. margin: 15rpx 0;
  443. border-bottom: 1px solid #EBEBEB;
  444. line-height: 66rpx;
  445. font-size: $font-size-32;
  446. color: $text-color;
  447. text{
  448. display: block;
  449. float: left;
  450. }
  451. .input{
  452. font-size: $font-size-40;
  453. width: 500rpx;
  454. height: 66rpx;
  455. padding: 0 10rpx;
  456. line-height: 66rpx;
  457. float: left;
  458. .none{
  459. color:$text-color;
  460. opacity: 0.3;
  461. }
  462. .text{
  463. color:$text-color;
  464. }
  465. }
  466. .placeholder{
  467. font-size: $font-size-26;
  468. }
  469. }
  470. .bot-resid{
  471. line-height: 36rpx;
  472. font-size: $font-size-26;
  473. color: #666666;
  474. margin-top: 24rpx;
  475. color: $color-system;
  476. }
  477. }
  478. }
  479. .pay-record{
  480. float: left;
  481. background: #FFFFFF;
  482. width: 702rpx;
  483. height: auto;
  484. padding: 0 24rpx;
  485. margin-top: 112rpx;
  486. .record-title{
  487. width: 100%;
  488. float: left;
  489. font-size: $font-size-28;
  490. color: $text-color;
  491. line-height: 80rpx;
  492. height: 80rpx;
  493. border-bottom: 1px solid #F8F8F8;
  494. }
  495. .record-list{
  496. width: 100%;
  497. height: auto;
  498. float: left;
  499. .list-none{
  500. line-height: 80rpx;
  501. font-size: $font-size-26;
  502. color: #999999;
  503. text-align: left;
  504. }
  505. .list-main{
  506. height: auto;
  507. display: flex;
  508. flex-direction:column;
  509. .list-item{
  510. width: 100%;
  511. height:80rpx;
  512. display: flex;
  513. flex: 1;
  514. line-height: 80rpx;
  515. font-size: $font-size-26;
  516. color: $text-color;
  517. .text{
  518. &.row-1{
  519. flex: 3;
  520. }
  521. &.row-2{
  522. flex: 3;
  523. }
  524. &.row-3{
  525. flex: 4;
  526. text-align: right;
  527. color: #999999;
  528. }
  529. }
  530. }
  531. }
  532. }
  533. }
  534. }
  535. .pay-button{
  536. width: 100%;
  537. background-color: #FFFFFF;
  538. position: fixed;
  539. height: 88rpx;
  540. padding-top: 24rpx;
  541. bottom: 0;
  542. .btn{
  543. width: 702rpx;
  544. height: 88rpx;
  545. border-radius: 44rpx;
  546. font-size: $font-size-28;
  547. line-height: 88rpx;
  548. color: #FFFFFF;
  549. margin: 0 auto;
  550. text-align: center;
  551. background: $btn-confirm;
  552. }
  553. }
  554. }
  555. .freight-alert{
  556. width: 100%;
  557. height: 100%;
  558. background: rgba(0,0,0,.5);
  559. position: fixed;
  560. top: 0;
  561. left: 0;
  562. z-index: 8888;
  563. transition: all 0.4s;
  564. &.none{
  565. display: none;
  566. }
  567. &.show{
  568. display: block;
  569. }
  570. .content{
  571. width: 422rpx;
  572. height:434rpx;
  573. position: absolute;
  574. background: $bg-color;
  575. left: 0;
  576. right: 0;
  577. bottom: 0;
  578. top: 0;
  579. margin: auto;
  580. padding: 20rpx 32rpx;
  581. border-radius: 12rpx;
  582. .title{
  583. width: 100%;
  584. height: 68rpx;
  585. line-height: 68rpx;
  586. font-size: $font-size-28;
  587. color: $text-color;
  588. text-align: center;
  589. position: relative;
  590. .icon-iconfontguanbi{
  591. width: 68rpx;
  592. height: 68rpx;
  593. text-align: center;
  594. line-height: 68rpx;
  595. position: absolute;
  596. right: 0;
  597. top: 0;
  598. font-size: $font-size-36;
  599. color: #999999;
  600. }
  601. }
  602. .text-content{
  603. width: 100%;
  604. height: auto;
  605. .text{
  606. padding: 20rpx 0 0 0;
  607. line-height: 44rpx;
  608. font-size: $font-size-26;
  609. color:#666666;
  610. text-align: justify;
  611. }
  612. .text-p{
  613. width: 100%;
  614. line-height: 44rpx;
  615. font-size: $font-size-26;
  616. color:$color-system;
  617. text-align: left;
  618. text-overflow:ellipsis;
  619. display: -webkit-box;
  620. word-break: break-all;
  621. -webkit-box-orient: vertical;
  622. -webkit-line-clamp: 1;
  623. overflow: hidden;
  624. }
  625. .text-b{
  626. line-height: 44rpx;
  627. font-size: $font-size-24;
  628. color:#999999;
  629. text-align: left;
  630. }
  631. }
  632. .text-button{
  633. width: 100%;
  634. height: 88rpx;
  635. line-height: 88rpx;
  636. background: $btn-confirm;
  637. font-size: $font-size-28;
  638. border-radius: 44rpx;
  639. color:#FFFFFF;
  640. text-align: center;
  641. margin-top: 20rpx;
  642. }
  643. }
  644. }
  645. .tui-prompt-title{
  646. width: 100%;
  647. height: 44rpx;
  648. line-height: 44rpx;
  649. padding: 20rpx 0;
  650. text-align: center;
  651. color: #333333;
  652. border-bottom: 1px solid #E2E7EF;
  653. }
  654. .tui-prompt-text{
  655. padding-top: 20rpx;
  656. .tui-prompt-tips{
  657. width: 100%;
  658. line-height: 36rpx;
  659. font-size: $font-size-22;
  660. color: #E15616;
  661. text-align: justify;
  662. margin-bottom: 24rpx;
  663. }
  664. .tui-prompt-item{
  665. width: 100%;
  666. line-height: 60rpx;
  667. color: #333333;
  668. font-size: $font-size-26;
  669. .text{
  670. font-weight: bold;
  671. }
  672. .copy{
  673. height: 38rpx;
  674. box-sizing: border-box;
  675. padding: 0 24rpx;
  676. text-align: center;
  677. line-height: 36rpx;
  678. display: inline-block;
  679. .iconfont{
  680. font-size: $font-size-40;
  681. color: #666666;
  682. }
  683. }
  684. }
  685. }
  686. .tui-prompt-flex{
  687. width: 100%;
  688. height: auto;
  689. margin-top: 20rpx;
  690. box-sizing: border-box;
  691. padding: 0 35rpx;
  692. .btn{
  693. width: 100%;
  694. line-height: 84rpx;
  695. font-size: $font-size-26;
  696. text-align: center;
  697. color: #FFFFFF;
  698. border-radius: 44rpx;
  699. margin: 20rpx 0;
  700. &.btn-cancel{
  701. background: #FFFFFF;
  702. color: #333333;
  703. border: 1px solid #979797;
  704. }
  705. &.btn-confirm{
  706. background: $btn-confirm;
  707. }
  708. }
  709. }
  710. </style>