order-pay.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. <template>
  2. <view class="container cashier" v-show="isRepuest">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="container-cash clearfix" :style="{marginTop:CustomBar+'px'}">
  5. <view class="container-wrapper">
  6. <view class="pay-content">
  7. <view class="pay-top">
  8. <view class="pay-paid">
  9. <text class="txt-m">待付金额</text>
  10. <text class="txt-b"><text class="small">¥</text>{{payableAmount | NumFormat}}</text>
  11. </view>
  12. <view class="pay-payd">
  13. <view class="pay-paids">
  14. <text class="txt-m">应付总额</text>
  15. <text class="txt-b">¥{{payableAmount | NumFormat}}</text>
  16. </view>
  17. <view class="pay-paids">
  18. <text class="txt-m">已支付金额</text>
  19. <text class="txt-b">¥{{receiptAmount | NumFormat}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="pay-bot">
  24. <view class="bot-title"><text>本次支付金额</text></view>
  25. <view class="bot-input">
  26. <text>¥</text>
  27. <!-- <view class="input" @click.stop="focusInput">
  28. <text class="text" v-if="payAmount>=0">{{payAmount}}</text>
  29. <text class="none" v-else>输入金额不能大于待付金额</text>
  30. </view> -->
  31. <input class="input"
  32. type="digit"
  33. v-model="payAmount"
  34. @focus="focusInput"
  35. @blur="blurInput"
  36. placeholder="输入金额不能大于待付金额"
  37. placeholder-class="placeholder"/>
  38. </view>
  39. <view class="bot-resid">
  40. <text>应付剩余¥{{balanceAmount|NumFormat}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="pay-record" :style="{paddingBottom:isIphoneX ? '156rpx' : '112rpx'}">
  45. <view class="record-title"><text>支付记录</text></view>
  46. <view class="record-list">
  47. <view class="list-main" v-if="discernReceipt.length>0">
  48. <view class="list-item" v-for="(item,index) in discernReceipt" :key="index">
  49. <text class="text row-1">¥{{item.receiptAmount | NumFormat}}</text>
  50. <text class="text row-2">{{payTypeText(item.payType)}}</text>
  51. <text class="text row-3">{{item.receiptDate}}</text>
  52. </view>
  53. </view>
  54. <view class="list-none" v-else>暂无支付记录</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="pay-button" :style="{paddingBottom:isIphoneX ? '68rpx' : '24rpx'}">
  59. <view class="btn" @click.stop="buttonSubMit" :style="{'background':btnColor}">{{buttonText}}</view>
  60. </view>
  61. </view>
  62. <view class="alert spec" :class="specClass" v-if="isShowTip">
  63. <!-- 选择支付弹窗说明 -->
  64. <view class="freight-alert" @tap="hideTips">
  65. <view class="content">
  66. <view class="title">
  67. <text>支付链接</text>
  68. <text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
  69. </view>
  70. <view class="text-content">
  71. <view class="text">请复制以下链接,并发送至电脑端,在浏览器访问该链接并选择银行尽快完成支付</view>
  72. <view class="text-p">{{payHttpUrl}}</view>
  73. <view class="text-b">链接有效期为72小时</view>
  74. </view>
  75. <view class="text-button" @click.stop="clipboard(payHttpUrl)">复制链接</view>
  76. </view>
  77. </view>
  78. </view>
  79. <!--大额转账弹窗 -->
  80. <tui-modal :show="modal" :padding="'30rpx 30rpx'" @cancel="hideMobel(0)" :custom="true" fadeIn >
  81. <view class="tui-modal-custom">
  82. <view class="tui-prompt-title">大额银联转账信息</view>
  83. <view class="tui-prompt-text">
  84. <view class="tui-prompt-tips">请使用银行手机app或者网银输入以下信息进行转账。每次发起支付请求,收款账号都会变化,请使用最新的收款账号进行转账。</view>
  85. <view class="tui-prompt-item">
  86. <text class="text">户名:</text>
  87. {{ bigPayInfo.receiveName }}
  88. <view class="copy" @click.stop="copyClipboard(bigPayInfo.receiveName)"><text class="iconfont icon-fuzhi_o"></text></view>
  89. </view>
  90. <view class="tui-prompt-item">
  91. <text class="text">收款账号:</text>
  92. {{ bigPayInfo.receiveAccountNo }}
  93. <view class="copy" @click.stop="copyClipboard(bigPayInfo.receiveAccountNo)"><text class="iconfont icon-fuzhi_o"></text></view>
  94. </view>
  95. <view class="tui-prompt-item">
  96. <text class="text">银行:</text>
  97. {{ bigPayInfo.accountName }}
  98. </view>
  99. <view class="tui-prompt-item">
  100. <text class="text">收款方开户地:</text>
  101. {{ bigPayInfo.areaInfo }}
  102. </view>
  103. <view class="tui-prompt-item">
  104. <text class="text">收款网点:</text>
  105. {{ bigPayInfo.accountName }}
  106. </view>
  107. </view>
  108. <view class="tui-prompt-flex">
  109. <view class="btn btn-confirm" @click="handleClick">已完成转账,请点击</view>
  110. <view class="btn btn-cancel" @click="hideMobel">关闭</view>
  111. </view>
  112. </view>
  113. </tui-modal>
  114. </view>
  115. </template>
  116. <script>
  117. import authorize from '@/common/config/authorize.js'
  118. import thorui from '@/components/clipboard/clipboard.thorui.js'
  119. export default{
  120. components: {
  121. // keyboard
  122. },
  123. data(){
  124. return{
  125. orderId:'',
  126. payType:'',
  127. payWay:'',
  128. isRepuest:false,
  129. payableAmount:0,
  130. receiptAmount:0,
  131. balanceAmount:0,
  132. payTotalFee:0,
  133. payAmount:0,
  134. nvabarData: { //顶部自定义导航
  135. showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
  136. showSearch: 0,
  137. title: '收银台', // 导航栏 中间的标题
  138. haveBack:true,
  139. textLeft:this.$store.state.isIphone
  140. },
  141. idCardList:[],
  142. isIphoneX:this.$store.state.isIphoneX,
  143. CustomBar:this.CustomBar,// 顶部导航栏高度
  144. tabCurrentIndex:0,
  145. isShowTip:false,
  146. buttonText:'去支付',
  147. btnColor:'#09BB07',
  148. discernReceipt:[],
  149. showDigitKeyboard:false,
  150. payHttpUrl:'',
  151. bigPayInfo:{},// 大额网银转账
  152. mbOrderId:0, // 支付记录订单Id
  153. modal:false,
  154. }
  155. },
  156. onLoad(option) {
  157. this.initData(option)
  158. },
  159. filters: {
  160. NumFormat(value) {
  161. if(!value) return '0.00'
  162. /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
  163. /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
  164. var intPart = Number(value) - Number(value)%1 //获取整数部分(这里是windy93的方法)
  165. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
  166. var floatPart = '.00' //预定义小数部分
  167. var value2Array = value.toString().split('.')
  168. //=2表示数据有小数位
  169. if(value2Array.length == 2) {
  170. floatPart = value2Array[1].toString() //拿到小数部分
  171. if(floatPart.length == 1) { //补0,实际上用不着
  172. return intPartFormat + '.' + floatPart + '0'
  173. } else {
  174. return intPartFormat + '.' + floatPart
  175. }
  176. } else {
  177. return intPartFormat + floatPart
  178. }
  179. }
  180. },
  181. methods:{
  182. initData(e){
  183. this.payType = e.type
  184. console.log(this.payType)
  185. this.orderId = e.orderId
  186. switch(this.payType){
  187. case '0':
  188. this.payWay = 'WEIXIN'
  189. this.btnColor='#09BB07'
  190. this.buttonText = '去支付'
  191. break
  192. case '1':
  193. this.payWay = 'UNIONPAY'
  194. this.btnColor='#034582'
  195. this.buttonText = '生成企业网银支付链接'
  196. break
  197. case '2':
  198. this.payWay = 'UNIONPAY'
  199. this.btnColor='#034582'
  200. this.buttonText = '生成个人网银支付链接'
  201. break
  202. case '3':
  203. this.payWay = 'UNIONPAY'
  204. this.btnColor='#034582'
  205. this.buttonText = '去转账'
  206. break
  207. }
  208. this.GetPayOrderInfo()
  209. },
  210. GetPayOrderInfo(){//初始化支付信息
  211. this.PayService.PayOrderCheckoutCounter({orderId:this.orderId}).then(response =>{
  212. this.isRepuest = true
  213. this.discernReceipt = response.data.discernReceipt // 支付记录
  214. this.payTotalFee = response.data.order.payTotalFee // 订单总额
  215. this.receiptAmount = response.data.order.receiptAmount // 已付金额
  216. this.payableAmount = (response.data.order.payableAmount*100 - this.receiptAmount*100)/100// 已付金额
  217. this.payAmount = this.toFixedFn(this.payableAmount) // 自定义金额
  218. console.log('this.payAmount',this.payAmount)
  219. this.balanceAmount = this.payableAmount - this.payAmount // 计算剩余支付金额
  220. }).catch(error =>{
  221. this.$util.msg(error.msg,2000)
  222. })
  223. },
  224. buttonSubMit(){
  225. switch(this.payType){
  226. case '0':// 微信支付
  227. // 友盟埋点收集微信支付
  228. if(process.env.NODE_ENV != 'development'){
  229. this.$uma.trackEvent('Um_Event_ConfirmWechatPay', {
  230. Um_Key_PageName: '微信支付',
  231. Um_Key_SourcePage: '线上支付',
  232. Um_Key_PayName:`${this.buttonText}`,
  233. Um_Key_PayOrderID:`${this.orderId}`
  234. })
  235. }
  236. this.MiniWxPayFor()
  237. break
  238. case '1':// 企业网银
  239. // 友盟埋点收集企业网银
  240. if(process.env.NODE_ENV != 'development'){
  241. this.$uma.trackEvent('Um_Event_ConfirmEbankPay', {
  242. Um_Key_PageName: '企业网银',
  243. Um_Key_SourcePage: '线上支付',
  244. Um_Key_PayName:`${this.buttonText}`,
  245. Um_Key_PayOrderID:`${this.orderId}`
  246. })
  247. }
  248. this.BuildCatenate()
  249. break
  250. case '2':// 个人网银
  251. // 友盟埋点收集个人网银
  252. if(process.env.NODE_ENV != 'development'){
  253. this.$uma.trackEvent('Um_Event_ConfirmAbankPay', {
  254. Um_Key_PageName: '个人网银',
  255. Um_Key_SourcePage: '线上支付',
  256. Um_Key_PayName:`${this.buttonText}`,
  257. Um_Key_PayOrderID:`${this.orderId}`
  258. })
  259. }
  260. this.BuildCatenate()
  261. break
  262. case '3':// 大额支付
  263. // 友盟埋点收集大额支付
  264. if(process.env.NODE_ENV != 'development'){
  265. this.$uma.trackEvent('Um_Event_ConfirmBigbankPay', {
  266. Um_Key_PageName: '大额支付',
  267. Um_Key_SourcePage: '线上支付',
  268. Um_Key_PayName:`${this.buttonText}`,
  269. Um_Key_PayOrderID:`${this.orderId}`
  270. })
  271. }
  272. this.LargePayment()
  273. break
  274. }
  275. },
  276. LargePayment(){// 大额银联
  277. if(this.payAmount == 0){
  278. this.$util.msg('请输入本次支付的金额',2000)
  279. return
  280. }
  281. if(this.payAmount <=12){
  282. this.$util.msg('网银支付的金额必须大于¥12.00',2000)
  283. return
  284. }
  285. this.PayService.PayOrderTransferUnion({payAmount:this.accMul(this.payAmount,100),orderId:this.orderId}).then(response =>{
  286. this.bigPayInfo = JSON.parse(response.data.data.payInfo)
  287. this.mbOrderId = response.data.data.mbOrderId
  288. this.modal = true
  289. console.log('PayInfo',this.bigPayInfo)
  290. })
  291. },
  292. handleClick(){// 查询是否支付成功
  293. this.PayService.PayOrderFindOrderStatus({mbOrderId:this.mbOrderId}).then(response =>{
  294. const data = response.data.data
  295. const linkData = {
  296. payAmount:this.payAmount,
  297. orderId:this.orderId,
  298. type:data.status === '1' ? 'success' : 'error'
  299. }
  300. if(data.status === '1'){
  301. this.$api.navigateTo(`/pages/user/order/order-success?data=${JSON.stringify({ data: linkData })}`)
  302. }else{
  303. this.$api.navigateTo(`/pages/user/order/order-success-tips?data=${JSON.stringify({ data: linkData })}`)
  304. }
  305. })
  306. },
  307. hideMobel(){
  308. this.modal = false
  309. },
  310. BuildCatenate(){// 企业网银 个人网银
  311. if(this.payAmount == 0){
  312. this.$util.msg('请输入本次支付的金额',2000)
  313. return
  314. }
  315. if(this.payAmount <=10){
  316. this.$util.msg('网银支付的金额必须大于¥10.00',2000)
  317. return
  318. }
  319. this.PayService.PayOrderPayLink({unpaidAmount:this.payAmount,orderId:this.orderId,payType:this.payType}).then(response =>{
  320. this.payHttpUrl = response.data
  321. this.isShowTip = true
  322. })
  323. },
  324. MiniWxPayFor(){// 微信支付
  325. authorize.getCode('weixin').then(wechatcode =>{
  326. if(this.payAmount > 5000){
  327. this.$util.modal('','本次支付金额已超出微信支付限额,请输入小于5千的金额进行支付','知道了','',false,() =>{})
  328. return
  329. }
  330. if(this.payAmount == 0){
  331. this.$util.msg('请输入本次支付的金额',2000)
  332. return
  333. }
  334. if(this.payAmount*100 < 2){
  335. this.$util.msg('本次支付的金额必须大于¥0.02',2000)
  336. return
  337. }
  338. console.log('this.payAmount',this.payAmount)
  339. let params ={
  340. payAmount:this.accMul(this.payAmount,100),
  341. payWay:'WEIXIN',
  342. code:wechatcode,
  343. orderId:this.orderId
  344. }
  345. this.PayService.WeChatMiniWxPay(params).then(response =>{
  346. let PayInfo = JSON.parse(response.data.data.payInfo)
  347. this.WxRequestPayment(PayInfo)
  348. }).catch(error =>{
  349. this.$util.msg(error.msg,2000)
  350. })
  351. })
  352. },
  353. WxRequestPayment(data){
  354. let self = this
  355. console.log('data',data)
  356. wx.requestPayment({
  357. 'timeStamp': data.timeStamp,
  358. 'nonceStr': data.nonceStr,
  359. 'package': data.package,
  360. 'signType': data.signType,
  361. 'paySign': data.paySign,
  362. 'success':function(res){
  363. wx.reLaunch({url: '/pages/tabBar/user/user'})
  364. },
  365. 'fail':function(res){
  366. self.$util.msg('用户取消支付~')
  367. },
  368. 'complete':function(res){
  369. }
  370. })
  371. },
  372. accMul(value1, value2) {
  373. if (value1 == 0 || value2 == 0) {
  374. return 0
  375. }
  376. let m = 0
  377. let v1 = value1.toString()
  378. let v2 = value2.toString()
  379. m += v1.split('.')[1] ? v1.split('.')[1].length : 0
  380. m += v2.split('.')[1] ? v2.split('.')[1].length : 0
  381. let _v1 = Number(v1.replace('.', ''))
  382. let _v2 = Number(v2.replace('.', ''))
  383. return (_v1 * _v2) / Math.pow(10, m)
  384. },
  385. confirmEvent(value){//点击自定义键盘完成的回调函数
  386. this.chechValue(value)
  387. this.showDigitKeyboard = false
  388. },
  389. blurInput(e){
  390. this.chechValue(e.detail.value)
  391. },
  392. focusInput(){
  393. // this.showDigitKeyboard = true
  394. },
  395. hideKeyboard(){
  396. this.showDigitKeyboard = false
  397. },
  398. chechValue(value){
  399. let patern = /\d+\.\d+/g
  400. if(value && value.split('.').length > 2) {
  401. value= patern.exec(value)
  402. }
  403. if(value == '' || value <0 ){
  404. this.payAmount = ''
  405. this.balanceAmount = this.payableAmount
  406. }else if( value > this.payableAmount){
  407. this.payAmount = this.toFixedFn(this.payableAmount)
  408. this.balanceAmount = this.toFixedFn(this.payableAmount - this.payAmount)
  409. }else{
  410. this.payAmount = this.toFixedFn(value)
  411. this.balanceAmount = this.toFixedFn(this.payableAmount - this.payAmount)
  412. }
  413. },
  414. hanldNavigateBack(){//页面返回
  415. uni.navigateBack({
  416. delta: 1
  417. })
  418. },
  419. payTypeText (state){//处理支付记录文字
  420. let stateText = '',
  421. stateTextObject={
  422. 12:'企业网银',
  423. 13:'微信支付',
  424. 14:'支付宝',
  425. 15:'微信支付',
  426. 16:'余额抵扣',
  427. }
  428. Object.keys(stateTextObject).forEach(key => {
  429. if(key == state){
  430. stateText = stateTextObject[key]
  431. }
  432. })
  433. return stateText
  434. },
  435. hideTips(){//隐藏弹窗
  436. this.isShowTip = false
  437. },
  438. toFixedFn(text){//处理小数点后两位数
  439. return Number(text).toFixed(2)
  440. },
  441. copyClipboard(data){
  442. //复制账号
  443. thorui.getClipboardData(data, (res) => {
  444. if (res) {
  445. this.$util.msg('已复制',2000)
  446. } else {
  447. this.$util.msg('复制失败',2000)
  448. }
  449. })
  450. },
  451. clipboard(data) {//复制链接
  452. console.log('data',data)
  453. thorui.getClipboardData(data, (res) => {
  454. if (res) {
  455. this.isShowTip = false
  456. this.$util.msg('已复制',2000)
  457. // 友盟埋点收集复制网银链接
  458. if(process.env.NODE_ENV != 'development'){
  459. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  460. Um_Key_PageName: '网银支付',
  461. Um_Key_SourcePage: '线上支付',
  462. Um_Key_PayName:`${this.buttonText}`,
  463. Um_Key_PayOrderID:`${this.orderId}`
  464. })
  465. }
  466. } else {
  467. this.$util.msg('复制失败',2000)
  468. }
  469. })
  470. },
  471. discard(){
  472. //丢弃
  473. }
  474. },
  475. onShow() {
  476. }
  477. }
  478. </script>
  479. <style lang="scss">
  480. page{height: auto !important;background-color: #FFFFFF;}
  481. .container-cash{
  482. width: 100%;
  483. .container-wrapper{
  484. width:100%;
  485. margin: 0 auto;
  486. .pay-content{
  487. width: 662rpx;
  488. height: 420rpx;
  489. padding: 64rpx 44rpx 0 44rpx;
  490. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
  491. background-size: cover;
  492. float: left;
  493. position: relative;
  494. .pay-top{
  495. width: 100%;
  496. height: auto;
  497. float: left;
  498. margin-bottom: 44rpx;
  499. .pay-paid{
  500. width: 100%;
  501. height: auto;
  502. margin-bottom: 38rpx;
  503. text{
  504. line-height: 48rpx;
  505. text-align: left;
  506. color: #FFFFFF;
  507. width: 100%;
  508. }
  509. .txt-m{
  510. font-size: $font-size-26;
  511. opacity: 0.7;
  512. display: inline-block;
  513. }
  514. .txt-b{
  515. font-size: $font-size-48;
  516. display: inline-block;
  517. .small{
  518. font-size: $font-size-32;
  519. }
  520. }
  521. }
  522. .pay-payd{
  523. width: 100%;
  524. height: auto;
  525. .pay-paids{
  526. height: auto;
  527. float: left;
  528. margin-right: 48rpx;
  529. text{
  530. line-height: 48rpx;
  531. text-align: left;
  532. color: #FFFFFF;
  533. }
  534. .txt-m{
  535. width: 100%;
  536. display: inline-block;
  537. font-size: $font-size-26;
  538. opacity: 0.7;
  539. }
  540. .txt-b{
  541. width: 100%;
  542. display: inline-block;
  543. font-size: $font-size-32;
  544. }
  545. }
  546. }
  547. }
  548. .pay-bot{
  549. width: 614rpx;
  550. height: 184rpx;
  551. padding: 24rpx;
  552. background: #FFFFFF;
  553. border-radius: 20rpx;
  554. box-shadow:0 2px 6px rgba(255, 77, 0, .17);
  555. position: absolute;
  556. bottom: -92rpx;
  557. left:44rpx;
  558. .bot-title{
  559. line-height: 36rpx;
  560. font-size: $font-size-26;
  561. color: #666666;
  562. }
  563. .bot-input{
  564. width: 100%;
  565. height: 66rpx;
  566. margin: 15rpx 0;
  567. border-bottom: 1px solid #EBEBEB;
  568. line-height: 66rpx;
  569. font-size: $font-size-32;
  570. color: $text-color;
  571. text{
  572. display: block;
  573. float: left;
  574. }
  575. .input{
  576. font-size: $font-size-40;
  577. width: 500rpx;
  578. height: 66rpx;
  579. padding: 0 10rpx;
  580. line-height: 66rpx;
  581. float: left;
  582. .none{
  583. color:$text-color;
  584. opacity: 0.3;
  585. }
  586. .text{
  587. color:$text-color;
  588. }
  589. }
  590. .placeholder{
  591. font-size: $font-size-26;
  592. }
  593. }
  594. .bot-resid{
  595. line-height: 36rpx;
  596. font-size: $font-size-26;
  597. color: #666666;
  598. margin-top: 24rpx;
  599. color: $color-system;
  600. }
  601. }
  602. }
  603. .pay-record{
  604. float: left;
  605. background: #FFFFFF;
  606. width: 702rpx;
  607. height: auto;
  608. padding: 0 24rpx;
  609. margin-top: 112rpx;
  610. .record-title{
  611. width: 100%;
  612. float: left;
  613. font-size: $font-size-28;
  614. color: $text-color;
  615. line-height: 80rpx;
  616. height: 80rpx;
  617. border-bottom: 1px solid #F8F8F8;
  618. }
  619. .record-list{
  620. width: 100%;
  621. height: auto;
  622. float: left;
  623. .list-none{
  624. line-height: 80rpx;
  625. font-size: $font-size-26;
  626. color: #999999;
  627. text-align: left;
  628. }
  629. .list-main{
  630. height: auto;
  631. display: flex;
  632. flex-direction:column;
  633. .list-item{
  634. width: 100%;
  635. height:80rpx;
  636. display: flex;
  637. flex: 1;
  638. line-height: 80rpx;
  639. font-size: $font-size-26;
  640. color: $text-color;
  641. .text{
  642. &.row-1{
  643. flex: 3;
  644. }
  645. &.row-2{
  646. flex: 3;
  647. }
  648. &.row-3{
  649. flex: 4;
  650. text-align: right;
  651. color: #999999;
  652. }
  653. }
  654. }
  655. }
  656. }
  657. }
  658. }
  659. .pay-button{
  660. width: 100%;
  661. background-color: #FFFFFF;
  662. position: fixed;
  663. height: 88rpx;
  664. padding-top: 24rpx;
  665. bottom: 0;
  666. .btn{
  667. width: 702rpx;
  668. height: 88rpx;
  669. border-radius: 44rpx;
  670. font-size: $font-size-28;
  671. line-height: 88rpx;
  672. color: #FFFFFF;
  673. margin: 0 auto;
  674. text-align: center;
  675. background: $btn-confirm;
  676. }
  677. }
  678. }
  679. .freight-alert{
  680. width: 100%;
  681. height: 100%;
  682. background: rgba(0,0,0,.5);
  683. position: fixed;
  684. top: 0;
  685. left: 0;
  686. z-index: 8888;
  687. transition: all 0.4s;
  688. &.none{
  689. display: none;
  690. }
  691. &.show{
  692. display: block;
  693. }
  694. .content{
  695. width: 422rpx;
  696. height:434rpx;
  697. position: absolute;
  698. background: $bg-color;
  699. left: 0;
  700. right: 0;
  701. bottom: 0;
  702. top: 0;
  703. margin: auto;
  704. padding: 20rpx 32rpx;
  705. border-radius: 12rpx;
  706. .title{
  707. width: 100%;
  708. height: 68rpx;
  709. line-height: 68rpx;
  710. font-size: $font-size-28;
  711. color: $text-color;
  712. text-align: center;
  713. position: relative;
  714. .icon-iconfontguanbi{
  715. width: 68rpx;
  716. height: 68rpx;
  717. text-align: center;
  718. line-height: 68rpx;
  719. position: absolute;
  720. right: 0;
  721. top: 0;
  722. font-size: $font-size-36;
  723. color: #999999;
  724. }
  725. }
  726. .text-content{
  727. width: 100%;
  728. height: auto;
  729. .text{
  730. padding: 20rpx 0 0 0;
  731. line-height: 44rpx;
  732. font-size: $font-size-26;
  733. color:#666666;
  734. text-align: justify;
  735. }
  736. .text-p{
  737. width: 100%;
  738. line-height: 44rpx;
  739. font-size: $font-size-26;
  740. color:$color-system;
  741. text-align: left;
  742. text-overflow:ellipsis;
  743. display: -webkit-box;
  744. word-break: break-all;
  745. -webkit-box-orient: vertical;
  746. -webkit-line-clamp: 1;
  747. overflow: hidden;
  748. }
  749. .text-b{
  750. line-height: 44rpx;
  751. font-size: $font-size-24;
  752. color:#999999;
  753. text-align: left;
  754. }
  755. }
  756. .text-button{
  757. width: 100%;
  758. height: 88rpx;
  759. line-height: 88rpx;
  760. background: $btn-confirm;
  761. font-size: $font-size-28;
  762. border-radius: 44rpx;
  763. color:#FFFFFF;
  764. text-align: center;
  765. margin-top: 20rpx;
  766. }
  767. }
  768. }
  769. .tui-prompt-title{
  770. width: 100%;
  771. height: 44rpx;
  772. line-height: 44rpx;
  773. padding: 20rpx 0;
  774. text-align: center;
  775. color: #333333;
  776. border-bottom: 1px solid #E2E7EF;
  777. }
  778. .tui-prompt-text{
  779. padding-top: 20rpx;
  780. .tui-prompt-tips{
  781. width: 100%;
  782. line-height: 36rpx;
  783. font-size: $font-size-22;
  784. color: #F3B574;
  785. text-align: justify;
  786. margin-bottom: 24rpx;
  787. }
  788. .tui-prompt-item{
  789. width: 100%;
  790. line-height: 60rpx;
  791. color: #333333;
  792. font-size: $font-size-26;
  793. .text{
  794. font-weight: bold;
  795. }
  796. .copy{
  797. height: 38rpx;
  798. box-sizing: border-box;
  799. padding: 0 24rpx;
  800. text-align: center;
  801. line-height: 36rpx;
  802. display: inline-block;
  803. .iconfont{
  804. font-size: $font-size-40;
  805. color: #666666;
  806. }
  807. }
  808. }
  809. }
  810. .tui-prompt-flex{
  811. width: 100%;
  812. height: auto;
  813. margin-top: 20rpx;
  814. box-sizing: border-box;
  815. padding: 0 35rpx;
  816. .btn{
  817. width: 100%;
  818. line-height: 84rpx;
  819. font-size: $font-size-26;
  820. text-align: center;
  821. color: #FFFFFF;
  822. border-radius: 44rpx;
  823. margin: 20rpx 0;
  824. &.btn-cancel{
  825. background: #FFFFFF;
  826. color: #333333;
  827. border: 1px solid #979797;
  828. }
  829. &.btn-confirm{
  830. background: $btn-confirm;
  831. }
  832. }
  833. }
  834. </style>