order-payment.vue 20 KB

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