order-pay.vue 22 KB

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