order-payment.vue 20 KB

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