order-payment.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  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. if(money == 0){
  354. this.showIndexOfMoney ='0';
  355. this.smallMoney=".00"
  356. }else{
  357. this.ableUserMoney = this.$api.FormatMoney(money) ;
  358. let i = this.ableUserMoney.toString().lastIndexOf('.');
  359. if(i==-1){
  360. this.showIndexOfMoney=this.$api.FormatMoney(this.ableUserMoney)
  361. this.smallMoney=".00"
  362. }else{
  363. this.smallMoney = this.ableUserMoney.toString().substring(i);
  364. this.showIndexOfMoney= this.$api.FormatMoney(this.ableUserMoney.toString().substring(0,i))
  365. if(this.smallMoney.length == 2) { //补0,实际上用不着
  366. this.smallMoney = this.smallMoney + '0';
  367. }
  368. }
  369. console.log(this.smallMoney)
  370. }
  371. },
  372. tabClick(index) {//tab切换
  373. this.tabCurrentIndex = index;
  374. switch(index){
  375. case 0:
  376. this.btnColor="#09BB07"
  377. this.buttonText='使用微信支付';
  378. break;
  379. case 1:
  380. this.btnColor="#034582"
  381. this.buttonText='使用企业网银支付';
  382. break;
  383. case 2:
  384. this.btnColor="#034582"
  385. this.buttonText='使用个人网银支付';
  386. break;
  387. }
  388. },
  389. hanldNavigateBack(){//页面返回
  390. uni.navigateBack({
  391. delta: 1
  392. });
  393. },
  394. hideTips(){//隐藏弹窗
  395. this.isHttpUrlShowTip = false
  396. },
  397. showTips(){
  398. this.isShowTip=!this.isShowTip
  399. },
  400. clipboard(data) {
  401. thorui.getClipboardData(data, (res) => {
  402. if (res) {
  403. this.$util.msg("复制成功",2000,true,'success');
  404. setTimeout(()=>{
  405. this.$api.navigateTo(`/pages/user/order/order-details?state=0&orderId=${this.orderId}`)
  406. },2000)
  407. } else {
  408. this.$util.msg("复制失败",2000,true,'none');
  409. }
  410. })
  411. },
  412. setHeaderBtnPosi(){
  413. // 获得胶囊按钮位置信息
  414. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  415. return headerBtnPosi
  416. },
  417. setSysteminfo(){
  418. let systeminfo;
  419. uni.getSystemInfo({ // 获取设备信息
  420. success: (res) => {
  421. systeminfo = res
  422. },
  423. })
  424. return systeminfo
  425. },
  426. },
  427. onShow() {
  428. }
  429. }
  430. </script>
  431. <style lang="scss">
  432. page{
  433. height: auto !important;
  434. background-color: #FFFFFF;
  435. }
  436. .container-cash{
  437. width: 100%;
  438. .pay-bring-title{
  439. box-sizing: border-box;
  440. width: 100%;
  441. min-height: 90rpx;
  442. padding: 0 24rpx;
  443. line-height: 90rpx;
  444. text-align: left;
  445. font-size: $font-size-24;
  446. background:#fff3e2;
  447. color: #ff9723;
  448. padding-left: 84rpx;
  449. position: relative;
  450. .icon-tongzhi{
  451. width: 60rpx;
  452. line-height: 90rpx;
  453. text-align: center;
  454. display: block;
  455. position: absolute;
  456. left: 24rpx;
  457. top: 0;
  458. color: #ff9723;
  459. font-size: 36rpx;
  460. }
  461. }
  462. .container-wrapper{
  463. width:100%;
  464. margin: 0 auto;
  465. .pay-content{
  466. width: 100%;
  467. height: 220rpx;
  468. background: url(https://static-b.caimei365.com/app/wisa/img/icon/pay_bg.png) no-repeat;
  469. background-size: cover;
  470. float: left;
  471. box-sizing: border-box;
  472. padding: 40rpx 84rpx;
  473. border-bottom: 10px solid #F7F7F7;
  474. .pay-p{
  475. font-size: $font-size-26;
  476. color: #fff3e2;
  477. line-height: 36rpx;
  478. }
  479. .pay-money{
  480. color: #ff9723;
  481. line-height: 100rpx;
  482. font-weight: bold;
  483. .pay-sm{
  484. font-size: 42rpx;
  485. font-weight: normal;
  486. }
  487. .pay-bg{
  488. font-size: 64rpx;
  489. }
  490. }
  491. }
  492. .pay-check{
  493. width: 100%;
  494. height: auto;
  495. float: left;
  496. .check-title{
  497. width: 622rpx;
  498. height: 40rpx;
  499. line-height: 40rpx;
  500. padding: 0 20rpx;
  501. margin-top: 24rpx;
  502. .text{
  503. font-size: $font-size-28;
  504. color: $text-color;
  505. text-align: left;
  506. float: left;
  507. }
  508. .icon{
  509. width: 40rpx;
  510. height: 40rpx;
  511. border-radius: 50%;
  512. line-height: 40rpx;
  513. text-align: center;
  514. color: #FFFFFF;
  515. font-size: $font-size-24;
  516. background: radial-gradient(circle,rgba(225,86,22,1) 0%,rgba(255,170,0,1) 67%,rgba(249,185,156,1) 100%);
  517. float: right;
  518. }
  519. }
  520. .pay-checked{
  521. width: 100%;
  522. height: auto;
  523. box-sizing: border-box;
  524. padding: 0 24rpx;
  525. .pay-item{
  526. width: 100%;
  527. height: 120rpx;
  528. border: 1px solid #F5F5F5;
  529. border-radius: 8rpx;
  530. padding: 20rpx;
  531. margin: 24rpx 0;
  532. display: flex;
  533. background-color: #FFFFFF;
  534. box-sizing: border-box;
  535. &.current{
  536. border-color:#c4761f;
  537. }
  538. .item-l{
  539. flex: 8;
  540. .item-icon{
  541. width: 76rpx;
  542. height: 76rpx;
  543. float: left;
  544. text-align: center;
  545. line-height: 76rpx;
  546. margin-right: 20rpx;
  547. .iconfont{
  548. font-size:66rpx;
  549. }
  550. .icon-weixinzhifu{
  551. color: #09BB07;
  552. }
  553. .icon-gerenwangyinzhifu{
  554. color: #034582;
  555. }
  556. .icon-qiyewangyinzhifu{
  557. color: #004889;
  558. }
  559. }
  560. .item-texts{
  561. line-height: 76rpx;
  562. font-size:$font-size-26;
  563. color: $text-color;
  564. }
  565. .item-text{
  566. line-height: 38rpx;
  567. font-size:$font-size-26;
  568. .txt-p{
  569. color: $text-color;
  570. }
  571. .txt-t{
  572. color: #999999;
  573. }
  574. }
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .pay-button{
  581. width: 100%;
  582. float: left;
  583. margin-top:30rpx;
  584. .btn{
  585. width: 662rpx;
  586. height: 88rpx;
  587. border-radius: 44rpx;
  588. font-size: $font-size-28;
  589. line-height: 88rpx;
  590. color: #FFFFFF;
  591. margin: 0 auto;
  592. text-align: center;
  593. background:$btn-confirm;
  594. }
  595. }
  596. .pay-statustext{
  597. width: 100%;
  598. height: 120rpx;
  599. float: left;
  600. margin-top:40rpx;
  601. .pay-statustext-inner{
  602. width: 662rpx;
  603. height: 100%;
  604. margin: 0 auto;
  605. .pay-icon{
  606. width: 62rpx;
  607. height: 100%;
  608. float: left;
  609. text-align: center;
  610. .iconfont{
  611. color: #FF2A2A;
  612. font-size:$font-size-36;
  613. line-height: 20rpx;
  614. }
  615. }
  616. .pay-text{
  617. width: 560rpx;
  618. height: 100%;
  619. float: left;
  620. line-height: 40rpx;
  621. font-size: $font-size-26;
  622. color: #FF2A2A;
  623. text-align: justify;
  624. }
  625. }
  626. }
  627. .pay-bring{
  628. width: 100%;
  629. min-height: 190rpx;
  630. padding: 24rpx 0;
  631. background-color: #FFFFFF;
  632. box-shadow:0px 3px 6px rgba(0,0,0,0.16);
  633. position: fixed;
  634. bottom: 0;
  635. left: 0;
  636. border-radius: 30rpx 30rpx 0 0;
  637. display: flex;
  638. align-items: center;
  639. flex-direction: column;
  640. .pay-bring-line{
  641. display: flex;
  642. align-items: center;
  643. .line{
  644. display: inline-block;
  645. width: 48rpx;
  646. height: 2px;
  647. background-color: #707070;
  648. }
  649. }
  650. .pay-bring-content{
  651. width: 654rpx;
  652. height: auto;
  653. padding: 0 24rpx;
  654. .text{
  655. font-size: $font-size-24;
  656. color: #666;
  657. line-height: 44rpx;
  658. text-align: center;
  659. &.bg-color{
  660. color:#ff2a2a;
  661. line-height: 88rpx;
  662. }
  663. }
  664. .text-v{
  665. font-size: $font-size-28;
  666. color: #999;
  667. line-height: 70rpx;
  668. text-align: left;
  669. &.title{
  670. padding-left: 10rpx;
  671. font-size: $font-size-26;
  672. color: #666666;
  673. }
  674. &.bg-color{
  675. line-height: 44rpx;
  676. color: #ff2a2a;
  677. }
  678. .clipboard{
  679. width: 84rpx;
  680. height: 36rpx;
  681. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  682. text-align: center;
  683. font-size: $font-size-24;
  684. color: #FFFFFF;
  685. border-radius: 4rpx;
  686. line-height: 36rpx;
  687. display: inline-block;
  688. margin-left: 10rpx;
  689. }
  690. }
  691. }
  692. }
  693. .pay-bring-wrapper{
  694. width: 100%;
  695. padding: 24rpx 0;
  696. background-color: #FFFFFF;
  697. display: flex;
  698. align-items: center;
  699. flex-direction: column;
  700. .pay-bring-content{
  701. width: 654rpx;
  702. height: auto;
  703. padding: 0 24rpx;
  704. .text{
  705. font-size: $font-size-24;
  706. color: #666;
  707. line-height: 44rpx;
  708. text-align: center;
  709. &.bg-color{
  710. color: #ff2a2a;
  711. line-height: 88rpx;
  712. }
  713. }
  714. .text-v{
  715. font-size: $font-size-28;
  716. color: #999;
  717. line-height: 70rpx;
  718. text-align: left;
  719. .span{
  720. color: #333333;
  721. }
  722. &.title{
  723. font-size: $font-size-28;
  724. color: #666666;
  725. position: relative;
  726. padding-left: 20rpx;
  727. font-weight: bold;
  728. .line{
  729. display: block;
  730. width: 6rpx;
  731. height: 22rpx;
  732. background-color: #c4761f;
  733. border-radius: 3rpx;
  734. position: absolute;
  735. left: 0;
  736. top: 26rpx;
  737. }
  738. }
  739. &.bg-color{
  740. line-height: 44rpx;
  741. color: #ff2a2a;
  742. }
  743. .clipboard{
  744. width: 84rpx;
  745. height: 36rpx;
  746. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  747. text-align: center;
  748. font-size: $font-size-24;
  749. color: #FFFFFF;
  750. border-radius: 4rpx;
  751. line-height: 36rpx;
  752. display: inline-block;
  753. margin-left: 10rpx;
  754. }
  755. }
  756. }
  757. }
  758. }
  759. .freight-alert{
  760. width: 100%;
  761. height: 100%;
  762. background: rgba(0,0,0,.5);
  763. position: fixed;
  764. top: 0;
  765. left: 0;
  766. z-index: 8888;
  767. transition: all 0.4s;
  768. &.none{
  769. display: none;
  770. }
  771. &.show{
  772. display: block;
  773. }
  774. .content{
  775. width: 422rpx;
  776. height:434rpx;
  777. position: absolute;
  778. background: $bg-color;
  779. left: 0;
  780. right: 0;
  781. bottom: 0;
  782. top: 0;
  783. margin: auto;
  784. padding: 20rpx 32rpx;
  785. border-radius: 12rpx;
  786. .title{
  787. width: 100%;
  788. height: 68rpx;
  789. line-height: 68rpx;
  790. font-size: $font-size-28;
  791. color: $text-color;
  792. text-align: center;
  793. position: relative;
  794. .icon-iconfontguanbi{
  795. width: 68rpx;
  796. height: 68rpx;
  797. text-align: center;
  798. line-height: 68rpx;
  799. position: absolute;
  800. right: 0;
  801. top: 0;
  802. font-size: $font-size-36;
  803. color: #999999;
  804. }
  805. }
  806. .text-content{
  807. width: 100%;
  808. height: auto;
  809. .text{
  810. padding: 20rpx 0 0 0;
  811. line-height: 44rpx;
  812. font-size: $font-size-26;
  813. color:#666666;
  814. text-align: justify;
  815. }
  816. .text-p{
  817. width: 100%;
  818. line-height: 44rpx;
  819. font-size: $font-size-26;
  820. color:$color-system;
  821. text-align: left;
  822. text-overflow:ellipsis;
  823. display: -webkit-box;
  824. word-break: break-all;
  825. -webkit-box-orient: vertical;
  826. -webkit-line-clamp: 1;
  827. overflow: hidden;
  828. }
  829. .text-b{
  830. line-height: 44rpx;
  831. font-size: $font-size-24;
  832. color:#999999;
  833. text-align: left;
  834. }
  835. }
  836. .text-button{
  837. width: 100%;
  838. height: 88rpx;
  839. line-height: 88rpx;
  840. background: $btn-confirm;
  841. font-size: $font-size-28;
  842. border-radius: 44rpx;
  843. color:#FFFFFF;
  844. text-align: center;
  845. margin-top: 20rpx;
  846. }
  847. }
  848. }
  849. </style>