order-payment.vue 24 KB

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