order-payment.vue 23 KB

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