order-payment.vue 24 KB

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