order-payhlb.vue 18 KB

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