order-payment.vue 21 KB

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