order-payhlb.vue 19 KB

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