order-payment.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  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. <!-- 线上支付维护提示 -->
  5. <template v-if="isPaySwitch">
  6. <view class="container-cash clearfix">
  7. <view class="pay-bring-title">线上支付功能正在维护中,请使用线下转账方式支付订单</view>
  8. <view class="container-wrapper">
  9. <view class="pay-content">
  10. <view class="pay-p"><text>待付金额</text></view>
  11. <view class="pay-money">
  12. <text class="pay-sm">¥</text>
  13. <text class="pay-bg">{{ showIndexOfMoney }}</text>
  14. <text class="pay-sm">{{ smallMoney }}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="pay-bring-wrapper clearfix">
  19. <view class="pay-bring-content">
  20. <view class="text-v title"><text class="line"></text>转账信息</view>
  21. <view class="text-v">开户行:中信银行(深圳泰然支行)</view>
  22. <view class="text-v">银行卡号:{{ bankNumber }}</view>
  23. <view class="text-v">户名:周仁声</view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <template v-else>
  29. <!-- 有发票 -->
  30. <view class="container-cash clearfix" v-if="invoiceStatus">
  31. <view class="pay-bring-title">
  32. <text class="iconfont icon-tongzhi"></text>
  33. {{payBringTitle}}
  34. </view>
  35. <view class="container-wrapper">
  36. <view class="pay-content">
  37. <view class="pay-p"><text>待付金额</text></view>
  38. <view class="pay-money">
  39. <text class="pay-sm">¥</text>
  40. <text class="pay-bg">{{ showIndexOfMoney }}</text>
  41. <text class="pay-sm">{{ smallMoney }}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="pay-bring-wrapper clearfix">
  46. <view class="pay-bring-content">
  47. <view class="text-v title"><text class="line"></text>转账信息</view>
  48. <view class="text-v">开户行:<text class="span">中信银行(深圳泰然支行)</text></view>
  49. <view class="text-v">银行卡号:<text class="span">{{ bankNumber }}</text> </view>
  50. <view class="text-v">户名: <text class="span">周仁声</text></view>
  51. <!-- <view class="text-v">订单标识:{{ payorderId }} <text class="clipboard" @click.stop="clipboard(payorderId)">复制</text></view>
  52. <view class="text-v title">特别注意</view>
  53. <view class="text-v bg-color">请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view> -->
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 不用发票 -->
  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. <!-- 选择支付弹窗说明 -->
  129. <!-- <view class="alert spec" :class="specClass" v-if="isHttpUrlShowTip">
  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:'', //订单id
  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. console.log(e);
  219. this.payorderId ='#'+e.orderId+'#';
  220. this.optionType = e.type;
  221. switch(e.type){
  222. // 选择支付方式
  223. case 'payfirm':
  224. this.nvabarData.haveBack = true
  225. this.nvabarData.haveHome = false
  226. this.nvabarData.title = '选择支付方式'
  227. this.PayOrderOnLineSwitch()
  228. this.PayOrderCheckoutCounter(this.orderId)
  229. break;
  230. // 如果当前订单已经通过线下付款支付了部分款项,剩下的款项就只能通过线下支付
  231. case 'onlinePay':
  232. this.invoiceStatus = true
  233. this.isPaySwitch = false
  234. this.nvabarData.haveBack = true
  235. this.nvabarData.haveHome = false
  236. this.nvabarData.title = '付款提示'
  237. this.payableAmount = this.ableUserMoney = e.Amount
  238. this.payBringTitle = '您已通过线下转账的方式支付了订单部分款项,剩余款项依然需要使用线下转账方式,给您带来的不便敬请谅解'
  239. this.initAbleUserMoney(this.payableAmount)
  240. break;
  241. }
  242. },
  243. //线上支付开关
  244. PayOrderOnLineSwitch(){
  245. this.PayService.PayOrderOnLineSwitch().then(response=>{
  246. if(response.data === 0 ){
  247. this.isPaySwitch = true
  248. }else{
  249. this.isPaySwitch = false
  250. }
  251. }).catch(error =>{
  252. this.$util.msg(error.msg,2000)
  253. })
  254. },
  255. PayOrderCheckoutCounter(orderId){
  256. this.PayService.PayOrderCheckoutCounter({orderId:orderId}).then(response =>{
  257. let data = response.data.order
  258. // 待支付金额 = 总支付金额 - 已支付金额
  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. //判断线上线下显示
  264. if(this.optionType == 'onlinePay'){
  265. this.invoiceStatus = true
  266. }else{
  267. this.invoiceStatus = data.invoiceStatus
  268. }
  269. if(data.receiptAmount > 0){
  270. this.payStatusText = '使用微信和网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。'
  271. this.isReceiptStatus = false
  272. }else{
  273. this.payStatusText = '使用微信和网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
  274. this.isReceiptStatus = true
  275. }
  276. }).catch(error =>{
  277. this.$util.msg(error.msg,2000)
  278. })
  279. },
  280. goOrderCash(){
  281. if(this.invoiceStatus){
  282. this.$util.modal('','本次交易暂不支持线上支付开票,请使用线下转账的方式付款','知道了','',false,() =>{})
  283. this.payStatusText = '使用微信和网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
  284. this.isReceiptStatus = true
  285. }else{
  286. const pagePath = `/pages/user/order/order-pay?orderId=${this.orderId}&payType=${this.tabCurrentIndex}`
  287. this.$api.navigateTo(pagePath)
  288. }
  289. },
  290. //拆分金额并转千分位格式显示
  291. initAbleUserMoney(money){
  292. if(money == 0){
  293. this.showIndexOfMoney ='0';
  294. this.smallMoney=".00"
  295. }else{
  296. this.ableUserMoney = this.$api.FormatMoney(money) ;
  297. let i = this.ableUserMoney.toString().lastIndexOf('.');
  298. if(i==-1){
  299. this.showIndexOfMoney=this.$api.FormatMoney(this.ableUserMoney)
  300. this.smallMoney=".00"
  301. }else{
  302. this.smallMoney = this.ableUserMoney.toString().substring(i);
  303. this.showIndexOfMoney= this.$api.FormatMoney(this.ableUserMoney.toString().substring(0,i))
  304. if(this.smallMoney.length == 2) { //补0,实际上用不着
  305. this.smallMoney = this.smallMoney + '0';
  306. }
  307. }
  308. console.log(this.smallMoney)
  309. }
  310. },
  311. tabClick(index) {//tab切换
  312. this.tabCurrentIndex = index;
  313. switch(index){
  314. case 0:
  315. this.btnColor="#09BB07"
  316. this.buttonText='使用微信支付';
  317. break;
  318. case 1:
  319. this.btnColor="#034582"
  320. this.buttonText='使用企业网银支付';
  321. break;
  322. case 2:
  323. this.btnColor="#034582"
  324. this.buttonText='使用个人网银支付';
  325. break;
  326. }
  327. },
  328. //页面返回
  329. hanldNavigateBack(){
  330. uni.navigateBack({
  331. delta: 1
  332. });
  333. },
  334. //隐藏弹窗
  335. hideTips(){
  336. this.isHttpUrlShowTip = false
  337. },
  338. showTips(){
  339. this.isShowTip=!this.isShowTip
  340. },
  341. // 获得胶囊按钮位置信息
  342. setHeaderBtnPosi(){
  343. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  344. return headerBtnPosi
  345. },
  346. setSysteminfo(){
  347. let systeminfo;
  348. // 获取设备信息
  349. uni.getSystemInfo({
  350. success: (res) => {
  351. systeminfo = res
  352. },
  353. })
  354. return systeminfo
  355. },
  356. }
  357. }
  358. </script>
  359. <style lang="scss">
  360. page{
  361. height: auto !important;
  362. background-color: #FFFFFF;
  363. }
  364. .container-cash{
  365. width: 100%;
  366. .pay-bring-title{
  367. box-sizing: border-box;
  368. width: 100%;
  369. min-height: 90rpx;
  370. padding: 0 24rpx;
  371. line-height: 90rpx;
  372. text-align: left;
  373. font-size: $font-size-24;
  374. background:#fff3e2;
  375. color: #ff9723;
  376. padding-left: 84rpx;
  377. position: relative;
  378. .icon-tongzhi{
  379. width: 60rpx;
  380. line-height: 90rpx;
  381. text-align: center;
  382. display: block;
  383. position: absolute;
  384. left: 24rpx;
  385. top: 0;
  386. color: #ff9723;
  387. font-size: 36rpx;
  388. }
  389. }
  390. .container-wrapper{
  391. width:100%;
  392. margin: 0 auto;
  393. .pay-content{
  394. width: 100%;
  395. height: 220rpx;
  396. background: url(https://static.caimei365.com/app/wisa/img/icon/pay_bg.png) no-repeat;
  397. background-size: cover;
  398. float: left;
  399. box-sizing: border-box;
  400. padding: 40rpx 84rpx;
  401. border-bottom: 10px solid #F7F7F7;
  402. .pay-p{
  403. font-size: $font-size-26;
  404. color: #fff3e2;
  405. line-height: 36rpx;
  406. }
  407. .pay-money{
  408. color: #ff9723;
  409. line-height: 100rpx;
  410. font-weight: bold;
  411. .pay-sm{
  412. font-size: 42rpx;
  413. font-weight: normal;
  414. }
  415. .pay-bg{
  416. font-size: 64rpx;
  417. }
  418. }
  419. }
  420. .pay-check{
  421. width: 100%;
  422. height: auto;
  423. float: left;
  424. .check-title{
  425. width: 622rpx;
  426. height: 40rpx;
  427. line-height: 40rpx;
  428. padding: 0 20rpx;
  429. margin-top: 24rpx;
  430. .text{
  431. font-size: $font-size-28;
  432. color: $text-color;
  433. text-align: left;
  434. float: left;
  435. }
  436. .icon{
  437. width: 40rpx;
  438. height: 40rpx;
  439. border-radius: 50%;
  440. line-height: 40rpx;
  441. text-align: center;
  442. color: #FFFFFF;
  443. font-size: $font-size-24;
  444. background: radial-gradient(circle,rgba(225,86,22,1) 0%,rgba(255,170,0,1) 67%,rgba(249,185,156,1) 100%);
  445. float: right;
  446. }
  447. }
  448. .pay-checked{
  449. width: 100%;
  450. height: auto;
  451. box-sizing: border-box;
  452. padding: 0 24rpx;
  453. .pay-item{
  454. width: 100%;
  455. height: 120rpx;
  456. border: 1px solid #F5F5F5;
  457. border-radius: 8rpx;
  458. padding: 20rpx;
  459. margin: 24rpx 0;
  460. display: flex;
  461. background-color: #FFFFFF;
  462. box-sizing: border-box;
  463. &.current{
  464. border-color:#c4761f;
  465. }
  466. .item-l{
  467. flex: 8;
  468. .item-icon{
  469. width: 76rpx;
  470. height: 76rpx;
  471. float: left;
  472. text-align: center;
  473. line-height: 76rpx;
  474. margin-right: 20rpx;
  475. .iconfont{
  476. font-size:66rpx;
  477. }
  478. .icon-weixinzhifu{
  479. color: #09BB07;
  480. }
  481. .icon-gerenwangyinzhifu{
  482. color: #034582;
  483. }
  484. .icon-qiyewangyinzhifu{
  485. color: #004889;
  486. }
  487. }
  488. .item-texts{
  489. line-height: 76rpx;
  490. font-size:$font-size-26;
  491. color: $text-color;
  492. }
  493. .item-text{
  494. line-height: 38rpx;
  495. font-size:$font-size-26;
  496. .txt-p{
  497. color: $text-color;
  498. }
  499. .txt-t{
  500. color: #999999;
  501. }
  502. }
  503. }
  504. }
  505. }
  506. }
  507. }
  508. .pay-button{
  509. width: 100%;
  510. float: left;
  511. margin-top:30rpx;
  512. .btn{
  513. width: 662rpx;
  514. height: 88rpx;
  515. border-radius: 44rpx;
  516. font-size: $font-size-28;
  517. line-height: 88rpx;
  518. color: #FFFFFF;
  519. margin: 0 auto;
  520. text-align: center;
  521. background:$btn-confirm;
  522. }
  523. }
  524. .pay-statustext{
  525. width: 100%;
  526. height: 120rpx;
  527. float: left;
  528. margin-top:40rpx;
  529. .pay-statustext-inner{
  530. width: 662rpx;
  531. height: 100%;
  532. margin: 0 auto;
  533. .pay-icon{
  534. width: 62rpx;
  535. height: 100%;
  536. float: left;
  537. text-align: center;
  538. .iconfont{
  539. color: #FF2A2A;
  540. font-size:$font-size-36;
  541. line-height: 20rpx;
  542. }
  543. }
  544. .pay-text{
  545. width: 560rpx;
  546. height: 100%;
  547. float: left;
  548. line-height: 40rpx;
  549. font-size: $font-size-26;
  550. color: #FF2A2A;
  551. text-align: justify;
  552. }
  553. }
  554. }
  555. .pay-bring{
  556. width: 100%;
  557. min-height: 190rpx;
  558. padding: 24rpx 0;
  559. background-color: #FFFFFF;
  560. box-shadow:0px 3px 6px rgba(0,0,0,0.16);
  561. position: fixed;
  562. bottom: 0;
  563. left: 0;
  564. border-radius: 30rpx 30rpx 0 0;
  565. display: flex;
  566. align-items: center;
  567. flex-direction: column;
  568. .pay-bring-line{
  569. display: flex;
  570. align-items: center;
  571. .line{
  572. display: inline-block;
  573. width: 48rpx;
  574. height: 2px;
  575. background-color: #707070;
  576. }
  577. }
  578. .pay-bring-content{
  579. width: 654rpx;
  580. height: auto;
  581. padding: 0 24rpx;
  582. .text{
  583. font-size: $font-size-24;
  584. color: #666;
  585. line-height: 44rpx;
  586. text-align: center;
  587. &.bg-color{
  588. color:#ff2a2a;
  589. line-height: 88rpx;
  590. }
  591. }
  592. .text-v{
  593. font-size: $font-size-28;
  594. color: #999;
  595. line-height: 70rpx;
  596. text-align: left;
  597. &.title{
  598. padding-left: 10rpx;
  599. font-size: $font-size-26;
  600. color: #666666;
  601. }
  602. &.bg-color{
  603. line-height: 44rpx;
  604. color: #ff2a2a;
  605. }
  606. .clipboard{
  607. width: 84rpx;
  608. height: 36rpx;
  609. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  610. text-align: center;
  611. font-size: $font-size-24;
  612. color: #FFFFFF;
  613. border-radius: 4rpx;
  614. line-height: 36rpx;
  615. display: inline-block;
  616. margin-left: 10rpx;
  617. }
  618. }
  619. }
  620. }
  621. .pay-bring-wrapper{
  622. width: 100%;
  623. padding: 24rpx 0;
  624. background-color: #FFFFFF;
  625. display: flex;
  626. align-items: center;
  627. flex-direction: column;
  628. .pay-bring-content{
  629. width: 654rpx;
  630. height: auto;
  631. padding: 0 24rpx;
  632. .text{
  633. font-size: $font-size-24;
  634. color: #666;
  635. line-height: 44rpx;
  636. text-align: center;
  637. &.bg-color{
  638. color: #ff2a2a;
  639. line-height: 88rpx;
  640. }
  641. }
  642. .text-v{
  643. font-size: $font-size-28;
  644. color: #999;
  645. line-height: 70rpx;
  646. text-align: left;
  647. .span{
  648. color: #333333;
  649. }
  650. &.title{
  651. font-size: $font-size-28;
  652. color: #666666;
  653. position: relative;
  654. padding-left: 20rpx;
  655. font-weight: bold;
  656. .line{
  657. display: block;
  658. width: 6rpx;
  659. height: 22rpx;
  660. background-color: #c4761f;
  661. border-radius: 3rpx;
  662. position: absolute;
  663. left: 0;
  664. top: 26rpx;
  665. }
  666. }
  667. &.bg-color{
  668. line-height: 44rpx;
  669. color: #ff2a2a;
  670. }
  671. .clipboard{
  672. width: 84rpx;
  673. height: 36rpx;
  674. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  675. text-align: center;
  676. font-size: $font-size-24;
  677. color: #FFFFFF;
  678. border-radius: 4rpx;
  679. line-height: 36rpx;
  680. display: inline-block;
  681. margin-left: 10rpx;
  682. }
  683. }
  684. }
  685. }
  686. }
  687. .freight-alert{
  688. width: 100%;
  689. height: 100%;
  690. background: rgba(0,0,0,.5);
  691. position: fixed;
  692. top: 0;
  693. left: 0;
  694. z-index: 8888;
  695. transition: all 0.4s;
  696. &.none{
  697. display: none;
  698. }
  699. &.show{
  700. display: block;
  701. }
  702. .content{
  703. width: 422rpx;
  704. height:434rpx;
  705. position: absolute;
  706. background: $bg-color;
  707. left: 0;
  708. right: 0;
  709. bottom: 0;
  710. top: 0;
  711. margin: auto;
  712. padding: 20rpx 32rpx;
  713. border-radius: 12rpx;
  714. .title{
  715. width: 100%;
  716. height: 68rpx;
  717. line-height: 68rpx;
  718. font-size: $font-size-28;
  719. color: $text-color;
  720. text-align: center;
  721. position: relative;
  722. .icon-iconfontguanbi{
  723. width: 68rpx;
  724. height: 68rpx;
  725. text-align: center;
  726. line-height: 68rpx;
  727. position: absolute;
  728. right: 0;
  729. top: 0;
  730. font-size: $font-size-36;
  731. color: #999999;
  732. }
  733. }
  734. .text-content{
  735. width: 100%;
  736. height: auto;
  737. .text{
  738. padding: 20rpx 0 0 0;
  739. line-height: 44rpx;
  740. font-size: $font-size-26;
  741. color:#666666;
  742. text-align: justify;
  743. }
  744. .text-p{
  745. width: 100%;
  746. line-height: 44rpx;
  747. font-size: $font-size-26;
  748. color:$color-system;
  749. text-align: left;
  750. text-overflow:ellipsis;
  751. display: -webkit-box;
  752. word-break: break-all;
  753. -webkit-box-orient: vertical;
  754. -webkit-line-clamp: 1;
  755. overflow: hidden;
  756. }
  757. .text-b{
  758. line-height: 44rpx;
  759. font-size: $font-size-24;
  760. color:#999999;
  761. text-align: left;
  762. }
  763. }
  764. .text-button{
  765. width: 100%;
  766. height: 88rpx;
  767. line-height: 88rpx;
  768. background: $btn-confirm;
  769. font-size: $font-size-28;
  770. border-radius: 44rpx;
  771. color:#FFFFFF;
  772. text-align: center;
  773. margin-top: 20rpx;
  774. }
  775. }
  776. }
  777. </style>