order-payhlb.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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. if( this.payType == '1'){
  260. if(this.payAmount != this.payableAmount){
  261. this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
  262. this.modal = true
  263. return
  264. }
  265. }
  266. this.PayService.PayOrderPayLink({unpaidAmount:this.payAmount,shopOrderId:this.shopOrderId,payType:this.payType}).then(response =>{
  267. this.payHttpUrl = response.data
  268. this.isShowTip = true
  269. })
  270. },
  271. async MiniWxPayFor(){// 微信支付
  272. if(this.payAmount > 5000){
  273. this.modal = true
  274. return
  275. }
  276. if(this.payAmount == 0){
  277. this.$util.msg('请输入本次支付的金额',2000)
  278. return
  279. }
  280. if(this.payAmount*100 < 2){
  281. this.$util.msg('本次支付的金额必须大于¥0.02',2000)
  282. return
  283. }
  284. // 获取微信code
  285. const wechatCode = await authorize.getCode('weixin')
  286. const params = {
  287. payAmount:this.payAmount,
  288. payType:'XCX',
  289. code:wechatCode,
  290. shopOrderId:this.shopOrderId
  291. }
  292. this.weChatMiniOrderWxPay(params)
  293. },
  294. handleClick(){
  295. this.modal = false
  296. },
  297. confirmEvent(value){//点击自定义键盘完成的回调函数
  298. this.chechValue(value)
  299. this.showDigitKeyboard = false
  300. },
  301. blurInput(e){
  302. this.chechValue(e.detail.value)
  303. },
  304. focusInput(){
  305. // this.showDigitKeyboard = true
  306. },
  307. hideKeyboard(){
  308. this.showDigitKeyboard = false
  309. },
  310. chechValue(value){
  311. let patern = /\d+\.\d+/g
  312. if(value && value.split('.').length > 2) {
  313. value= patern.exec(value)
  314. }
  315. if(value == '' || value <0 ){
  316. this.payAmount = ''
  317. this.balanceAmount = this.obligation
  318. }else if( value > this.obligation){
  319. this.payAmount = this.toFixedFn(this.obligation)
  320. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  321. }else{
  322. this.payAmount = this.toFixedFn(value)
  323. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  324. }
  325. },
  326. hanldNavigateBack(){//页面返回
  327. uni.navigateBack({
  328. delta: 1
  329. })
  330. },
  331. payTypeText (state){//处理支付记录文字
  332. let stateText = '',
  333. stateTextObject={
  334. 12:'企业网银',
  335. 13:'微信支付',
  336. 14:'支付宝',
  337. 15:'微信支付',
  338. 16:'余额抵扣',
  339. }
  340. Object.keys(stateTextObject).forEach(key => {
  341. if(key == state){
  342. stateText = stateTextObject[key]
  343. }
  344. })
  345. return stateText
  346. },
  347. hideTips(){//隐藏弹窗
  348. this.isShowTip = false
  349. },
  350. toFixedFn(text){//处理小数点后两位数
  351. return Number(text).toFixed(2)
  352. },
  353. copyClipboard(data){
  354. //复制账号
  355. thorui.getClipboardData(data, (res) => {
  356. if (res) {
  357. this.$util.msg('已复制',2000)
  358. } else {
  359. this.$util.msg('复制失败',2000)
  360. }
  361. })
  362. },
  363. clipboard(data) {//复制链接
  364. console.log('data',data)
  365. thorui.getClipboardData(data, (res) => {
  366. if (res) {
  367. this.isShowTip = false
  368. this.$util.msg('已复制',2000)
  369. // 友盟埋点收集复制网银链接
  370. if(process.env.NODE_ENV != 'development'){
  371. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  372. Um_Key_PageName: '网银支付',
  373. Um_Key_SourcePage: '线上支付',
  374. Um_Key_PayName:`${this.buttonText}`,
  375. Um_Key_PayOrderID:`${this.shopOrderId}`
  376. })
  377. }
  378. } else {
  379. this.$util.msg('复制失败',2000)
  380. }
  381. })
  382. },
  383. discard(){
  384. //丢弃
  385. }
  386. },
  387. onShow() {
  388. }
  389. }
  390. </script>
  391. <style lang="scss">
  392. page{height: auto !important;background-color: #FFFFFF;}
  393. .container-cash{
  394. width: 100%;
  395. .container-wrapper{
  396. width:100%;
  397. margin: 0 auto;
  398. .pay-content{
  399. width: 662rpx;
  400. height: 420rpx;
  401. padding: 64rpx 44rpx 0 44rpx;
  402. border-radius: 0 0 60rpx 60rpx;
  403. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
  404. background-size: cover;
  405. float: left;
  406. position: relative;
  407. .pay-top{
  408. width: 100%;
  409. height: auto;
  410. float: left;
  411. margin-bottom: 44rpx;
  412. .pay-paid{
  413. width: 100%;
  414. height: auto;
  415. margin-bottom: 38rpx;
  416. text{
  417. line-height: 48rpx;
  418. text-align: left;
  419. color: #FFFFFF;
  420. width: 100%;
  421. }
  422. .txt-m{
  423. font-size: $font-size-26;
  424. opacity: 0.7;
  425. display: inline-block;
  426. }
  427. .txt-b{
  428. font-size: $font-size-48;
  429. display: inline-block;
  430. .small{
  431. font-size: $font-size-32;
  432. }
  433. }
  434. }
  435. .pay-payd{
  436. width: 100%;
  437. height: auto;
  438. .pay-paids{
  439. height: auto;
  440. float: left;
  441. margin-right: 48rpx;
  442. text{
  443. line-height: 48rpx;
  444. text-align: left;
  445. color: #FFFFFF;
  446. }
  447. .txt-m{
  448. width: 100%;
  449. display: inline-block;
  450. font-size: $font-size-26;
  451. opacity: 0.7;
  452. }
  453. .txt-b{
  454. width: 100%;
  455. display: inline-block;
  456. font-size: $font-size-32;
  457. }
  458. }
  459. }
  460. }
  461. .pay-bot{
  462. width: 614rpx;
  463. height: 184rpx;
  464. padding: 24rpx;
  465. background: #FFFFFF;
  466. border-radius: 28rpx;
  467. box-shadow:0 2px 6px rgba(255, 77, 0, .17);
  468. position: absolute;
  469. bottom: -92rpx;
  470. left:44rpx;
  471. .bot-title{
  472. line-height: 36rpx;
  473. font-size: $font-size-26;
  474. color: #666666;
  475. }
  476. .bot-input{
  477. width: 100%;
  478. height: 66rpx;
  479. margin: 15rpx 0;
  480. border-bottom: 1px solid #EBEBEB;
  481. line-height: 66rpx;
  482. font-size: $font-size-32;
  483. color: $text-color;
  484. text{
  485. display: block;
  486. float: left;
  487. }
  488. .input{
  489. font-size: $font-size-40;
  490. width: 500rpx;
  491. height: 66rpx;
  492. padding: 0 10rpx;
  493. line-height: 66rpx;
  494. float: left;
  495. .none{
  496. color:$text-color;
  497. opacity: 0.3;
  498. }
  499. .text{
  500. color:$text-color;
  501. }
  502. }
  503. .placeholder{
  504. font-size: $font-size-26;
  505. }
  506. }
  507. .bot-resid{
  508. line-height: 36rpx;
  509. font-size: $font-size-26;
  510. color: #666666;
  511. margin-top: 24rpx;
  512. color: $color-system;
  513. }
  514. }
  515. }
  516. .pay-record{
  517. float: left;
  518. background: #FFFFFF;
  519. width: 702rpx;
  520. height: auto;
  521. padding: 0 24rpx;
  522. margin-top: 112rpx;
  523. .record-title{
  524. width: 100%;
  525. float: left;
  526. font-size: $font-size-28;
  527. color: $text-color;
  528. line-height: 80rpx;
  529. height: 80rpx;
  530. border-bottom: 1px solid #F8F8F8;
  531. }
  532. .record-list{
  533. width: 100%;
  534. height: auto;
  535. float: left;
  536. .list-none{
  537. line-height: 80rpx;
  538. font-size: $font-size-26;
  539. color: #999999;
  540. text-align: left;
  541. }
  542. .list-main{
  543. height: auto;
  544. display: flex;
  545. flex-direction:column;
  546. .list-item{
  547. width: 100%;
  548. height:80rpx;
  549. display: flex;
  550. flex: 1;
  551. line-height: 80rpx;
  552. font-size: $font-size-26;
  553. color: $text-color;
  554. .text{
  555. &.row-1{
  556. flex: 3;
  557. }
  558. &.row-2{
  559. flex: 3;
  560. }
  561. &.row-3{
  562. flex: 4;
  563. text-align: right;
  564. color: #999999;
  565. }
  566. }
  567. }
  568. }
  569. }
  570. }
  571. }
  572. .pay-button{
  573. width: 100%;
  574. background-color: #FFFFFF;
  575. position: fixed;
  576. height: 88rpx;
  577. padding-top: 24rpx;
  578. bottom: 0;
  579. .btn{
  580. width: 702rpx;
  581. height: 88rpx;
  582. border-radius: 44rpx;
  583. font-size: $font-size-28;
  584. line-height: 88rpx;
  585. color: #FFFFFF;
  586. margin: 0 auto;
  587. text-align: center;
  588. background: $btn-confirm;
  589. }
  590. }
  591. }
  592. .freight-alert{
  593. width: 100%;
  594. height: 100%;
  595. background: rgba(0,0,0,.5);
  596. position: fixed;
  597. top: 0;
  598. left: 0;
  599. z-index: 8888;
  600. transition: all 0.4s;
  601. &.none{
  602. display: none;
  603. }
  604. &.show{
  605. display: block;
  606. }
  607. .content{
  608. width: 422rpx;
  609. height:434rpx;
  610. position: absolute;
  611. background: $bg-color;
  612. left: 0;
  613. right: 0;
  614. bottom: 0;
  615. top: 0;
  616. margin: auto;
  617. padding: 20rpx 32rpx;
  618. border-radius: 12rpx;
  619. .title{
  620. width: 100%;
  621. height: 68rpx;
  622. line-height: 68rpx;
  623. font-size: $font-size-28;
  624. color: $text-color;
  625. text-align: center;
  626. position: relative;
  627. .icon-iconfontguanbi{
  628. width: 68rpx;
  629. height: 68rpx;
  630. text-align: center;
  631. line-height: 68rpx;
  632. position: absolute;
  633. right: 0;
  634. top: 0;
  635. font-size: $font-size-36;
  636. color: #999999;
  637. }
  638. }
  639. .text-content{
  640. width: 100%;
  641. height: auto;
  642. .text{
  643. padding: 20rpx 0 0 0;
  644. line-height: 44rpx;
  645. font-size: $font-size-26;
  646. color:#666666;
  647. text-align: justify;
  648. }
  649. .text-p{
  650. width: 100%;
  651. line-height: 44rpx;
  652. font-size: $font-size-26;
  653. color:$color-system;
  654. text-align: left;
  655. text-overflow:ellipsis;
  656. display: -webkit-box;
  657. word-break: break-all;
  658. -webkit-box-orient: vertical;
  659. -webkit-line-clamp: 1;
  660. overflow: hidden;
  661. }
  662. .text-b{
  663. line-height: 44rpx;
  664. font-size: $font-size-24;
  665. color:#999999;
  666. text-align: left;
  667. }
  668. }
  669. .text-button{
  670. width: 100%;
  671. height: 88rpx;
  672. line-height: 88rpx;
  673. background: $btn-confirm;
  674. font-size: $font-size-28;
  675. border-radius: 44rpx;
  676. color:#FFFFFF;
  677. text-align: center;
  678. margin-top: 20rpx;
  679. }
  680. }
  681. }
  682. .tui-prompt-title{
  683. width: 100%;
  684. height: 44rpx;
  685. line-height: 44rpx;
  686. padding: 20rpx 0;
  687. text-align: center;
  688. color: #333333;
  689. border-bottom: 1px solid #E2E7EF;
  690. }
  691. .tui-prompt-text{
  692. padding-top: 20rpx;
  693. .tui-prompt-tips{
  694. width: 100%;
  695. line-height: 36rpx;
  696. font-size: $font-size-22;
  697. color: #E15616;
  698. text-align: justify;
  699. margin-bottom: 24rpx;
  700. }
  701. .tui-prompt-item{
  702. width: 100%;
  703. line-height: 60rpx;
  704. color: #333333;
  705. font-size: $font-size-26;
  706. .text{
  707. font-weight: bold;
  708. }
  709. .copy{
  710. height: 38rpx;
  711. box-sizing: border-box;
  712. padding: 0 24rpx;
  713. text-align: center;
  714. line-height: 36rpx;
  715. display: inline-block;
  716. .iconfont{
  717. font-size: $font-size-40;
  718. color: #666666;
  719. }
  720. }
  721. }
  722. }
  723. .tui-prompt-flex{
  724. width: 100%;
  725. height: auto;
  726. margin-top: 20rpx;
  727. box-sizing: border-box;
  728. padding: 0 35rpx;
  729. .btn{
  730. width: 100%;
  731. line-height: 84rpx;
  732. font-size: $font-size-26;
  733. text-align: center;
  734. color: #FFFFFF;
  735. border-radius: 44rpx;
  736. margin: 20rpx 0;
  737. &.btn-cancel{
  738. background: #FFFFFF;
  739. color: #333333;
  740. border: 1px solid #979797;
  741. }
  742. &.btn-confirm{
  743. background: $btn-confirm;
  744. }
  745. }
  746. }
  747. </style>