order-payment.vue 20 KB

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