order-payment.vue 24 KB

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