order-payment.vue 24 KB

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