order-payment.vue 20 KB

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