order-payment.vue 20 KB

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