order-payment.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. <template>
  2. <view class="container cashier" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <template v-if="isPaySwitch">
  5. <view class="container-cash clearfix">
  6. <view class="pay-bring-title">线上支付功能正在维护中,请使用线下转账方式支付订单</view>
  7. <view class="container-wrapper">
  8. <view class="pay-content">
  9. <view class="pay-p"><text>待付金额</text></view>
  10. <view class="pay-money">
  11. <text class="pay-sm">¥</text>
  12. <text class="pay-bg">{{payableAmount | NumFormat}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="pay-bring-wrapper clearfix">
  17. <view class="pay-bring-content">
  18. <view class="text-v title">转账信息</view>
  19. <view class="text-v">开户行:{{ bankInfo.bankOfDeposit }}</view>
  20. <view class="text-v">银行卡号:{{ bankInfo.bankCardNo }}</view>
  21. <view class="text-v">户名:{{ bankInfo.bankUserName }}</view>
  22. <view class="text-v">订单标识:{{payOrderId}} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
  23. <view class="text-v title">特别注意</view>
  24. <view class="text-v bg-color">请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <template v-else>
  30. <view class="container-cash clearfix" v-if="onlinePay == 2">
  31. <view class="pay-bring-title">{{payBringTitle}}</view>
  32. <view class="container-wrapper">
  33. <view class="pay-content">
  34. <view class="pay-p"><text>待付金额</text></view>
  35. <view class="pay-money">
  36. <text class="pay-sm">¥</text>
  37. <text class="pay-bg">{{payableAmount | NumFormat}}</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="pay-bring-wrapper clearfix">
  42. <view class="pay-bring-content">
  43. <view class="text-v title">转账信息</view>
  44. <view class="text-v">开户行:{{ bankInfo.bankOfDeposit }}</view>
  45. <view class="text-v">银行卡号:{{ bankInfo.bankCardNo }}</view>
  46. <view class="text-v">户名:{{ bankInfo.bankUserName }}</view>
  47. <view class="text-v">订单标识:{{payOrderId}} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
  48. <view class="text-v title">特别注意</view>
  49. <view class="text-v bg-color">请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="container-cash clearfix" v-else>
  54. <view class="container-wrapper">
  55. <view class="pay-content">
  56. <view class="pay-p"><text>待付金额</text></view>
  57. <view class="pay-money">
  58. <text class="pay-sm">¥</text>
  59. <text class="pay-bg">{{payableAmount | NumFormat}}</text>
  60. </view>
  61. </view>
  62. <view class="pay-check">
  63. <view class="check-title"><view class="text">选择支付方式</view></view>
  64. <view class="pay-checked">
  65. <view class="pay-item" :class="{ 'current' : tabCurrentIndex === 0}" @click="tabClick(0)" v-if="weChatFlag" >
  66. <view class="item-l">
  67. <view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
  68. <view class="item-texts"><text>微信支付</text></view>
  69. </view>
  70. <view class="item-r">
  71. <text class="iconfont icon-duigou"></text>
  72. </view>
  73. </view>
  74. <view v-if="B2BpayFlag === 1" class="pay-item" :class="{ 'current' : tabCurrentIndex === 1}" @click="tabClick(1)" >
  75. <view class="item-l">
  76. <view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
  77. <view class="item-text">
  78. <view class="txt-p">企业网银支付</view>
  79. <view class="txt-t">需要在电脑端汇款</view>
  80. </view>
  81. </view>
  82. <view class="item-r">
  83. <text class="iconfont icon-duigou"></text>
  84. </view>
  85. </view>
  86. <view class="pay-item" :class="{ 'current' : tabCurrentIndex === 2}" @click="tabClick(2)" >
  87. <view class="item-l">
  88. <view class="item-icon"><text class="iconfont icon-gerenwangyinzhifu"></text></view>
  89. <view class="item-text">
  90. <view class="txt-p">个人网银支付</view>
  91. <view class="txt-t">需要在电脑端汇款</view>
  92. </view>
  93. </view>
  94. <view class="item-r">
  95. <text class="iconfont icon-duigou"></text>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="pay-button">
  102. <view class="btn" @click.stop="goOrderCash" :style="{'background':btnColor}">{{buttonText}}</view>
  103. </view>
  104. <view class="pay-statustext">
  105. <view class="pay-statustext-inner">
  106. <view class="pay-icon">
  107. <text class="iconfont icon-gantanhao-yuankuang"></text>
  108. </view>
  109. <view class="pay-text">
  110. <view>{{payStatusText}}</view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </template>
  116. </view>
  117. </template>
  118. <script>
  119. const thorui = require('@/components/clipboard/clipboard.thorui.js')
  120. import bankMixins from '@/mixins/bankMixins.js'
  121. export default{
  122. mixins: [bankMixins],
  123. data(){
  124. return{
  125. orderId:0,
  126. shopOrderId:0,
  127. payableAmount:0,
  128. emptyWrapperH: '',
  129. bankNumber:'6230 2100 9221 2400',
  130. payOrderId:'',
  131. B2BpayFlag:1,
  132. nvabarData: { //顶部自定义导航
  133. showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
  134. showSearch: 0,
  135. title: '选择支付方式', // 导航栏 中间的标题
  136. haveBack:false,
  137. haveHome:true,
  138. textLeft:this.$store.state.isIphone
  139. },
  140. isIphoneX:this.$store.state.isIphoneX,
  141. CustomBar:this.CustomBar,// 顶部导航栏高度
  142. tabCurrentIndex:0,
  143. buttonText:'使用微信支付',
  144. btnColor:'#09BB07',
  145. onlinePay:1,
  146. isPaySwitch:false,
  147. optionType:'',
  148. payBringTitle:'本次交易暂不支持线上支付,请使用线下转账方式付款',
  149. payStatusText:'使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。',
  150. pageType:'',
  151. weChatFlag: true // 判断微信支付是否可用
  152. }
  153. },
  154. onLoad(option) {
  155. this.initData(option)
  156. },
  157. filters: {
  158. NumFormat(value) {
  159. if(!value) return '0.00'
  160. /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
  161. /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
  162. var intPart = Number(value) - Number(value)%1 //获取整数部分(这里是windy93的方法)
  163. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
  164. var floatPart = '.00' //预定义小数部分
  165. var value2Array = value.toString().split('.')
  166. //=2表示数据有小数位
  167. if(value2Array.length == 2) {
  168. floatPart = value2Array[1].toString() //拿到小数部分
  169. if(floatPart.length == 1) { //补0,实际上用不着
  170. return intPartFormat + '.' + floatPart + '0'
  171. } else {
  172. return intPartFormat + '.' + floatPart
  173. }
  174. } else {
  175. return intPartFormat + floatPart
  176. }
  177. }
  178. },
  179. methods:{
  180. initData(e){
  181. console.log(e)
  182. this.shopOrderId = e.shopOrderId
  183. this.payOrderId ='#'+e.shopOrderId+'#'
  184. this.nvabarData.haveBack = true
  185. this.nvabarData.haveHome = false
  186. this.nvabarData.title = '选择支付方式'
  187. this.PayOrderOnLineSwitch()
  188. this.PayOrderCheckoutCounter(this.shopOrderId)
  189. this.cmGetBankTypeLists()
  190. switch(e.type){
  191. case 'confirm':
  192. this.nvabarData.haveBack = false
  193. this.nvabarData.haveHome = true
  194. this.nvabarData.title = '支付'
  195. this.PayOrderOnLineSwitch()
  196. this.PayOrderCheckoutCounter(this.shopOrderId)
  197. break
  198. case 'payfirm':
  199. this.nvabarData.haveBack = true
  200. this.nvabarData.haveHome = false
  201. this.nvabarData.title = '选择支付方式'
  202. this.PayOrderOnLineSwitch()
  203. this.PayOrderCheckoutCounter(this.shopOrderId)
  204. break
  205. case 'onlinePay':
  206. this.onlinePay = 2
  207. this.isPaySwitch = false
  208. this.nvabarData.haveBack = true
  209. this.nvabarData.haveHome = false
  210. this.nvabarData.title = '付款提示'
  211. this.payableAmount = e.Amount
  212. this.payBringTitle = '您已通过线下转账的方式支付了订单部分款项,剩余款项依然需要使用线下转账方式,给您带来的不便敬请谅解'
  213. break
  214. }
  215. },
  216. PayOrderOnLineSwitch(){
  217. this.PayService.PayOrderOnLineSwitch().then(response=>{
  218. if(response.data === 0 ){
  219. this.isPaySwitch = true
  220. }else{
  221. this.isPaySwitch = false
  222. }
  223. }).catch(error =>{
  224. this.$util.msg(error.msg,2000)
  225. })
  226. },
  227. PayOrderCheckoutCounter(shopOrderId){
  228. this.PayService.PayOrderCheckoutShoporders({shopOrderId:shopOrderId}).then(response =>{
  229. let data = response.data.shopOrder
  230. this.B2BpayFlag = response.data.B2BpayFlag //待付金额
  231. this.payableAmount = data.obligation //待付金额
  232. // 判断微信支付是否可用
  233. this.weChatFlag = response.data.weChatFlag === '1'
  234. if(!this.weChatFlag){
  235. if(this.B2BpayFlag ===1){
  236. this.tabCurrentIndex = 1
  237. this.btnColor='#034582'
  238. this.buttonText='使用企业网银支付'
  239. }else{
  240. this.tabCurrentIndex = 2
  241. this.btnColor='#034582'
  242. this.buttonText='使用个人网银支付'
  243. }
  244. }
  245. //判断线上线下显示
  246. if(this.optionType == 'onlinePay'){
  247. this.onlinePay = 2
  248. }else{
  249. this.onlinePay = response.data.onlinePay
  250. }
  251. if(data.obligation>0){
  252. this.payStatusText = '使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。'
  253. }else{
  254. this.payStatusText = '使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。'
  255. }
  256. }).catch(error =>{
  257. this.$util.msg(error.msg,2000)
  258. })
  259. },
  260. goOrderCash(){
  261. if(this.onlinePay == 2){
  262. this.$util.modal('','本次交易暂不支持线上支付开票,请使用线下转账的方式付款','知道了','',false,() =>{})
  263. this.payStatusText = '使用微信和网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
  264. }else{
  265. // 友盟埋点收集选择支付方式
  266. if(process.env.NODE_ENV != 'development'){
  267. this.$uma.trackEvent('Um_Event_ChooseWechatPay', {
  268. Um_Key_PageName: '线上支付',
  269. Um_Key_SourcePage: '选择支付',
  270. Um_Key_PayName:`${this.buttonText}`,
  271. Um_Key_PayOrderID:`${this.shopOrderId}`
  272. })
  273. }
  274. switch(this.tabCurrentIndex){
  275. case 0:
  276. this.$api.navigateTo(`/pages/user/order/order-payhlb?type=0&shopOrderId=${this.shopOrderId}`)
  277. break
  278. case 1:
  279. this.$api.navigateTo(`/pages/user/order/order-payhlb?type=1&shopOrderId=${this.shopOrderId}`)
  280. break
  281. case 2:
  282. this.$api.navigateTo(`/pages/user/order/order-payhlb?type=2&shopOrderId=${this.shopOrderId}`)
  283. break
  284. case 3:
  285. this.$api.navigateTo(`/pages/user/order/order-payhlb?type=3&shopOrderId=${this.shopOrderId}`)
  286. break
  287. }
  288. }
  289. },
  290. tabClick(index) {//tab切换
  291. this.tabCurrentIndex = index
  292. switch(index){
  293. case 0:
  294. this.btnColor='#09BB07'
  295. this.buttonText='使用微信支付'
  296. break
  297. case 1:
  298. this.btnColor='#034582'
  299. this.buttonText='使用企业网银支付'
  300. break
  301. case 2:
  302. this.btnColor='#034582'
  303. this.buttonText='使用个人网银支付'
  304. break
  305. case 3:
  306. this.btnColor='#034582'
  307. this.buttonText='使用大额银联转账'
  308. break
  309. }
  310. },
  311. hanldNavigateBack(){//页面返回
  312. uni.navigateBack({
  313. delta: 1
  314. })
  315. },
  316. clipboard(data) {
  317. thorui.getClipboardData(data, (res) => {
  318. if (res) {
  319. this.$util.msg('复制成功',2000,true,'success')
  320. } else {
  321. this.$util.msg('复制失败',2000,true,'none')
  322. }
  323. })
  324. },
  325. },
  326. onShow() {
  327. }
  328. }
  329. </script>
  330. <style lang="scss">
  331. page{
  332. height: auto !important;
  333. background-color: #FFFFFF;
  334. }
  335. .container-cash{
  336. width: 100%;
  337. padding-bottom: 250rpx;
  338. .pay-bring-title{
  339. box-sizing: border-box;
  340. width: 100%;
  341. min-height: 96rpx;
  342. padding: 20rpx 24rpx;
  343. line-height: 48rpx;
  344. text-align: left;
  345. font-size: $font-size-24;
  346. background:rgba(255,234,221,1);
  347. color: $color-system;
  348. }
  349. .container-wrapper{
  350. width:662rpx;
  351. margin: 0 auto;
  352. .pay-title{
  353. font-size: $font-size-32;
  354. line-height: 44rpx;
  355. text-align: center;
  356. color: #2A86FF;
  357. margin: 40rpx 0 0 0;
  358. width: 100%;
  359. float: left;
  360. }
  361. .pay-content{
  362. width: 574rpx;
  363. height: 136rpx;
  364. padding: 52rpx 44rpx;
  365. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218ekFyAHoAzAALhR3oBpDI049.png) no-repeat;
  366. background-size: cover;
  367. float: left;
  368. margin-top: 40rpx;
  369. .pay-p{
  370. font-size: $font-size-26;
  371. color: #FFFFFF;
  372. line-height: 36rpx;
  373. }
  374. .pay-money{
  375. color: #FFFFFF;
  376. line-height: 84rpx;
  377. font-weight: bold;
  378. .pay-sm{
  379. font-size: $font-size-26;
  380. }
  381. .pay-bg{
  382. font-size: 50rpx;
  383. }
  384. }
  385. }
  386. .pay-check{
  387. width: 100%;
  388. height: auto;
  389. float: left;
  390. .check-title{
  391. width: 622rpx;
  392. height: 40rpx;
  393. line-height: 40rpx;
  394. padding: 0 20rpx;
  395. margin-top: 24rpx;
  396. .text{
  397. font-size: $font-size-28;
  398. color: $text-color;
  399. text-align: left;
  400. float: left;
  401. }
  402. .icon{
  403. width: 40rpx;
  404. height: 40rpx;
  405. border-radius: 50%;
  406. line-height: 40rpx;
  407. text-align: center;
  408. color: #FFFFFF;
  409. font-size: $font-size-24;
  410. background: radial-gradient(circle,rgba(225,86,22,1) 0%,rgba(255,170,0,1) 67%,rgba(249,185,156,1) 100%);
  411. float: right;
  412. }
  413. }
  414. .pay-checked{
  415. width: 100%;
  416. height: auto;
  417. .pay-item{
  418. width: 618rpx;
  419. height: 96rpx;
  420. border: 2px solid #F5F5F5;
  421. border-radius: 30rpx;
  422. padding: 20rpx;
  423. margin: 24rpx 0;
  424. display: flex;
  425. background-color: #FFFFFF;
  426. &.current{
  427. border-color:$color-system;
  428. .item-r{
  429. .icon-duigou{
  430. color: $color-system;
  431. }
  432. }
  433. }
  434. .item-l{
  435. flex: 8;
  436. .item-icon{
  437. width: 96rpx;
  438. height: 96rpx;
  439. float: left;
  440. text-align: center;
  441. line-height: 96rpx;
  442. margin-right: 20rpx;
  443. .iconfont{
  444. font-size:88rpx;
  445. }
  446. .icon-weixinzhifu{
  447. color: #09BB07;
  448. }
  449. .icon-gerenwangyinzhifu{
  450. color: #034582;
  451. }
  452. .icon-daewangyinzhuanzhang{
  453. font-size: 68rpx;
  454. color: #034582;
  455. }
  456. .icon-qiyewangyinzhifu{
  457. color: #004889;
  458. }
  459. }
  460. .item-texts{
  461. line-height: 96rpx;
  462. font-size:$font-size-26;
  463. color: $text-color;
  464. }
  465. .item-text{
  466. line-height: 48rpx;
  467. font-size:$font-size-26;
  468. .txt-p{
  469. color: $text-color;
  470. }
  471. .txt-t{
  472. font-size: $font-size-24;
  473. color: #999999;
  474. }
  475. }
  476. }
  477. .item-r{
  478. flex: 2;
  479. text-align: center;
  480. line-height: 96rpx;
  481. .icon-duigou{
  482. font-size: 60rpx;
  483. color: #FFFFFF;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. .pay-button{
  491. width: 100%;
  492. float: left;
  493. margin-top:30rpx;
  494. .btn{
  495. width: 662rpx;
  496. height: 88rpx;
  497. border-radius: 44rpx;
  498. font-size: $font-size-28;
  499. line-height: 88rpx;
  500. color: #FFFFFF;
  501. margin: 0 auto;
  502. text-align: center;
  503. background:$btn-confirm;
  504. }
  505. }
  506. .pay-statustext{
  507. width: 100%;
  508. height: auto;
  509. float: left;
  510. margin-top:40rpx;
  511. .pay-statustext-inner{
  512. width: 662rpx;
  513. height: 100%;
  514. margin: 0 auto;
  515. .pay-icon{
  516. width: 62rpx;
  517. height: 100%;
  518. float: left;
  519. text-align: center;
  520. .iconfont{
  521. color: #FF2A2A;
  522. font-size:$font-size-36;
  523. line-height: 20rpx;
  524. }
  525. }
  526. .pay-text{
  527. width: 560rpx;
  528. height: 100%;
  529. float: left;
  530. line-height: 40rpx;
  531. font-size: $font-size-24;
  532. color: #FF2A2A;
  533. text-align: justify;
  534. }
  535. }
  536. }
  537. .pay-bring{
  538. width: 100%;
  539. min-height: 190rpx;
  540. padding: 24rpx 0;
  541. background-color: #FFFFFF;
  542. box-shadow:0px 3px 6px rgba(0,0,0,0.16);
  543. position: fixed;
  544. bottom: 0;
  545. left: 0;
  546. border-radius: 30rpx 30rpx 0 0;
  547. display: flex;
  548. align-items: center;
  549. flex-direction: column;
  550. .pay-bring-line{
  551. display: flex;
  552. align-items: center;
  553. .line{
  554. display: inline-block;
  555. width: 48rpx;
  556. height: 2px;
  557. background-color: #707070;
  558. }
  559. }
  560. .pay-bring-content{
  561. width: 654rpx;
  562. height: auto;
  563. padding: 0 24rpx;
  564. .text{
  565. font-size: $font-size-24;
  566. color: #666;
  567. line-height: 44rpx;
  568. text-align: center;
  569. &.bg-color{
  570. color: $color-system;
  571. line-height: 88rpx;
  572. }
  573. }
  574. .text-v{
  575. font-size: $font-size-28;
  576. color: #999;
  577. line-height: 70rpx;
  578. text-align: left;
  579. &.title{
  580. font-size: $font-size-26;
  581. color: #666666;
  582. }
  583. &.bg-color{
  584. line-height: 44rpx;
  585. color: $color-system;
  586. }
  587. .clipboard{
  588. width: 84rpx;
  589. height: 36rpx;
  590. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  591. text-align: center;
  592. font-size: $font-size-24;
  593. color: #FFFFFF;
  594. border-radius: 4rpx;
  595. line-height: 36rpx;
  596. display: inline-block;
  597. margin-left: 10rpx;
  598. }
  599. }
  600. }
  601. }
  602. .pay-bring-wrapper{
  603. width: 100%;
  604. padding: 24rpx 0;
  605. background-color: #FFFFFF;
  606. display: flex;
  607. align-items: center;
  608. flex-direction: column;
  609. .pay-bring-content{
  610. width: 654rpx;
  611. height: auto;
  612. padding: 0 24rpx;
  613. .text{
  614. font-size: $font-size-24;
  615. color: #666;
  616. line-height: 44rpx;
  617. text-align: center;
  618. &.bg-color{
  619. color: $color-system;
  620. line-height: 88rpx;
  621. }
  622. }
  623. .text-v{
  624. font-size: $font-size-28;
  625. color: #999;
  626. line-height: 70rpx;
  627. text-align: left;
  628. &.title{
  629. font-size: $font-size-28;
  630. color: #666666;
  631. }
  632. &.bg-color{
  633. line-height: 44rpx;
  634. color: $color-system;
  635. }
  636. .clipboard{
  637. width: 84rpx;
  638. height: 36rpx;
  639. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  640. text-align: center;
  641. font-size: $font-size-24;
  642. color: #FFFFFF;
  643. border-radius: 4rpx;
  644. line-height: 36rpx;
  645. display: inline-block;
  646. margin-left: 10rpx;
  647. }
  648. }
  649. }
  650. }
  651. }
  652. .freight-alert{
  653. width: 100%;
  654. height: 100%;
  655. background: rgba(0,0,0,.5);
  656. position: fixed;
  657. top: 0;
  658. left: 0;
  659. z-index: 8888;
  660. transition: all 0.4s;
  661. &.none{
  662. display: none;
  663. }
  664. &.show{
  665. display: block;
  666. }
  667. .content{
  668. width: 422rpx;
  669. height:434rpx;
  670. position: absolute;
  671. background: $bg-color;
  672. left: 0;
  673. right: 0;
  674. bottom: 0;
  675. top: 0;
  676. margin: auto;
  677. padding: 20rpx 32rpx;
  678. border-radius: 12rpx;
  679. .title{
  680. width: 100%;
  681. height: 68rpx;
  682. line-height: 68rpx;
  683. font-size: $font-size-28;
  684. color: $text-color;
  685. text-align: center;
  686. position: relative;
  687. .icon-iconfontguanbi{
  688. width: 68rpx;
  689. height: 68rpx;
  690. text-align: center;
  691. line-height: 68rpx;
  692. position: absolute;
  693. right: 0;
  694. top: 0;
  695. font-size: $font-size-36;
  696. color: #999999;
  697. }
  698. }
  699. .text-content{
  700. width: 100%;
  701. height: auto;
  702. .text{
  703. padding: 20rpx 0;
  704. line-height: 44rpx;
  705. font-size: $font-size-26;
  706. color:#666666;
  707. text-align: justify;
  708. }
  709. .text-p{
  710. line-height: 44rpx;
  711. font-size: $font-size-26;
  712. color:$color-system;
  713. text-align: left;
  714. }
  715. }
  716. }
  717. }
  718. </style>