order-pay.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  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. wx.requestPayment({
  356. 'timeStamp': data.timeStamp,
  357. 'nonceStr': data.nonceStr,
  358. 'package': data.package,
  359. 'signType': data.signType,
  360. 'paySign': data.paySign,
  361. 'success':function(res){
  362. wx.reLaunch({url: '/pages/tabBar/user/user'})
  363. },
  364. 'fail':function(res){
  365. self.$util.msg('用户取消支付~')
  366. },
  367. 'complete':function(res){
  368. }
  369. })
  370. },
  371. accMul(value1, value2) {
  372. if (value1 == 0 || value2 == 0) {
  373. return 0
  374. }
  375. let m = 0
  376. let v1 = value1.toString()
  377. let v2 = value2.toString()
  378. m += v1.split('.')[1] ? v1.split('.')[1].length : 0
  379. m += v2.split('.')[1] ? v2.split('.')[1].length : 0
  380. let _v1 = Number(v1.replace('.', ''))
  381. let _v2 = Number(v2.replace('.', ''))
  382. return (_v1 * _v2) / Math.pow(10, m)
  383. },
  384. confirmEvent(value){//点击自定义键盘完成的回调函数
  385. this.chechValue(value)
  386. this.showDigitKeyboard = false
  387. },
  388. blurInput(e){
  389. this.chechValue(e.detail.value)
  390. },
  391. focusInput(){
  392. // this.showDigitKeyboard = true
  393. },
  394. hideKeyboard(){
  395. this.showDigitKeyboard = false
  396. },
  397. chechValue(value){
  398. let patern = /\d+\.\d+/g
  399. if(value && value.split('.').length > 2) {
  400. value= patern.exec(value)
  401. }
  402. if(value == '' || value <0 ){
  403. this.payAmount = ''
  404. this.balanceAmount = this.payableAmount
  405. }else if( value > this.payableAmount){
  406. this.payAmount = this.toFixedFn(this.payableAmount)
  407. this.balanceAmount = this.toFixedFn(this.payableAmount - this.payAmount)
  408. }else{
  409. this.payAmount = this.toFixedFn(value)
  410. this.balanceAmount = this.toFixedFn(this.payableAmount - this.payAmount)
  411. }
  412. },
  413. hanldNavigateBack(){//页面返回
  414. uni.navigateBack({
  415. delta: 1
  416. })
  417. },
  418. payTypeText (state){//处理支付记录文字
  419. let stateText = '',
  420. stateTextObject={
  421. 12:'企业网银',
  422. 13:'微信支付',
  423. 14:'支付宝',
  424. 15:'微信支付',
  425. 16:'余额抵扣',
  426. }
  427. Object.keys(stateTextObject).forEach(key => {
  428. if(key == state){
  429. stateText = stateTextObject[key]
  430. }
  431. })
  432. return stateText
  433. },
  434. hideTips(){//隐藏弹窗
  435. this.isShowTip = false
  436. },
  437. toFixedFn(text){//处理小数点后两位数
  438. return Number(text).toFixed(2)
  439. },
  440. copyClipboard(data){
  441. //复制账号
  442. thorui.getClipboardData(data, (res) => {
  443. if (res) {
  444. this.$util.msg('已复制',2000)
  445. } else {
  446. this.$util.msg('复制失败',2000)
  447. }
  448. })
  449. },
  450. clipboard(data) {//复制链接
  451. console.log('data',data)
  452. thorui.getClipboardData(data, (res) => {
  453. if (res) {
  454. this.isShowTip = false
  455. this.$util.msg('已复制',2000)
  456. // 友盟埋点收集复制网银链接
  457. if(process.env.NODE_ENV != 'development'){
  458. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  459. Um_Key_PageName: '网银支付',
  460. Um_Key_SourcePage: '线上支付',
  461. Um_Key_PayName:`${this.buttonText}`,
  462. Um_Key_PayOrderID:`${this.orderId}`
  463. })
  464. }
  465. } else {
  466. this.$util.msg('复制失败',2000)
  467. }
  468. })
  469. },
  470. discard(){
  471. //丢弃
  472. }
  473. },
  474. onShow() {
  475. }
  476. }
  477. </script>
  478. <style lang="scss">
  479. page{height: auto !important;background-color: #FFFFFF;}
  480. .container-cash{
  481. width: 100%;
  482. .container-wrapper{
  483. width:100%;
  484. margin: 0 auto;
  485. .pay-content{
  486. width: 662rpx;
  487. height: 420rpx;
  488. padding: 64rpx 44rpx 0 44rpx;
  489. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218elN6AY6VeAAqw4n3n4nw186.png) no-repeat;
  490. background-size: cover;
  491. float: left;
  492. position: relative;
  493. .pay-top{
  494. width: 100%;
  495. height: auto;
  496. float: left;
  497. margin-bottom: 44rpx;
  498. .pay-paid{
  499. width: 100%;
  500. height: auto;
  501. margin-bottom: 38rpx;
  502. text{
  503. line-height: 48rpx;
  504. text-align: left;
  505. color: #FFFFFF;
  506. width: 100%;
  507. }
  508. .txt-m{
  509. font-size: $font-size-26;
  510. opacity: 0.7;
  511. display: inline-block;
  512. }
  513. .txt-b{
  514. font-size: $font-size-48;
  515. display: inline-block;
  516. .small{
  517. font-size: $font-size-32;
  518. }
  519. }
  520. }
  521. .pay-payd{
  522. width: 100%;
  523. height: auto;
  524. .pay-paids{
  525. height: auto;
  526. float: left;
  527. margin-right: 48rpx;
  528. text{
  529. line-height: 48rpx;
  530. text-align: left;
  531. color: #FFFFFF;
  532. }
  533. .txt-m{
  534. width: 100%;
  535. display: inline-block;
  536. font-size: $font-size-26;
  537. opacity: 0.7;
  538. }
  539. .txt-b{
  540. width: 100%;
  541. display: inline-block;
  542. font-size: $font-size-32;
  543. }
  544. }
  545. }
  546. }
  547. .pay-bot{
  548. width: 614rpx;
  549. height: 184rpx;
  550. padding: 24rpx;
  551. background: #FFFFFF;
  552. border-radius: 20rpx;
  553. box-shadow:0 2px 6px rgba(255, 77, 0, .17);
  554. position: absolute;
  555. bottom: -92rpx;
  556. left:44rpx;
  557. .bot-title{
  558. line-height: 36rpx;
  559. font-size: $font-size-26;
  560. color: #666666;
  561. }
  562. .bot-input{
  563. width: 100%;
  564. height: 66rpx;
  565. margin: 15rpx 0;
  566. border-bottom: 1px solid #EBEBEB;
  567. line-height: 66rpx;
  568. font-size: $font-size-32;
  569. color: $text-color;
  570. text{
  571. display: block;
  572. float: left;
  573. }
  574. .input{
  575. font-size: $font-size-40;
  576. width: 500rpx;
  577. height: 66rpx;
  578. padding: 0 10rpx;
  579. line-height: 66rpx;
  580. float: left;
  581. .none{
  582. color:$text-color;
  583. opacity: 0.3;
  584. }
  585. .text{
  586. color:$text-color;
  587. }
  588. }
  589. .placeholder{
  590. font-size: $font-size-26;
  591. }
  592. }
  593. .bot-resid{
  594. line-height: 36rpx;
  595. font-size: $font-size-26;
  596. color: #666666;
  597. margin-top: 24rpx;
  598. color: $color-system;
  599. }
  600. }
  601. }
  602. .pay-record{
  603. float: left;
  604. background: #FFFFFF;
  605. width: 702rpx;
  606. height: auto;
  607. padding: 0 24rpx;
  608. margin-top: 112rpx;
  609. .record-title{
  610. width: 100%;
  611. float: left;
  612. font-size: $font-size-28;
  613. color: $text-color;
  614. line-height: 80rpx;
  615. height: 80rpx;
  616. border-bottom: 1px solid #F8F8F8;
  617. }
  618. .record-list{
  619. width: 100%;
  620. height: auto;
  621. float: left;
  622. .list-none{
  623. line-height: 80rpx;
  624. font-size: $font-size-26;
  625. color: #999999;
  626. text-align: left;
  627. }
  628. .list-main{
  629. height: auto;
  630. display: flex;
  631. flex-direction:column;
  632. .list-item{
  633. width: 100%;
  634. height:80rpx;
  635. display: flex;
  636. flex: 1;
  637. line-height: 80rpx;
  638. font-size: $font-size-26;
  639. color: $text-color;
  640. .text{
  641. &.row-1{
  642. flex: 3;
  643. }
  644. &.row-2{
  645. flex: 3;
  646. }
  647. &.row-3{
  648. flex: 4;
  649. text-align: right;
  650. color: #999999;
  651. }
  652. }
  653. }
  654. }
  655. }
  656. }
  657. }
  658. .pay-button{
  659. width: 100%;
  660. background-color: #FFFFFF;
  661. position: fixed;
  662. height: 88rpx;
  663. padding-top: 24rpx;
  664. bottom: 0;
  665. .btn{
  666. width: 702rpx;
  667. height: 88rpx;
  668. border-radius: 44rpx;
  669. font-size: $font-size-28;
  670. line-height: 88rpx;
  671. color: #FFFFFF;
  672. margin: 0 auto;
  673. text-align: center;
  674. background: $btn-confirm;
  675. }
  676. }
  677. }
  678. .freight-alert{
  679. width: 100%;
  680. height: 100%;
  681. background: rgba(0,0,0,.5);
  682. position: fixed;
  683. top: 0;
  684. left: 0;
  685. z-index: 8888;
  686. transition: all 0.4s;
  687. &.none{
  688. display: none;
  689. }
  690. &.show{
  691. display: block;
  692. }
  693. .content{
  694. width: 422rpx;
  695. height:434rpx;
  696. position: absolute;
  697. background: $bg-color;
  698. left: 0;
  699. right: 0;
  700. bottom: 0;
  701. top: 0;
  702. margin: auto;
  703. padding: 20rpx 32rpx;
  704. border-radius: 12rpx;
  705. .title{
  706. width: 100%;
  707. height: 68rpx;
  708. line-height: 68rpx;
  709. font-size: $font-size-28;
  710. color: $text-color;
  711. text-align: center;
  712. position: relative;
  713. .icon-iconfontguanbi{
  714. width: 68rpx;
  715. height: 68rpx;
  716. text-align: center;
  717. line-height: 68rpx;
  718. position: absolute;
  719. right: 0;
  720. top: 0;
  721. font-size: $font-size-36;
  722. color: #999999;
  723. }
  724. }
  725. .text-content{
  726. width: 100%;
  727. height: auto;
  728. .text{
  729. padding: 20rpx 0 0 0;
  730. line-height: 44rpx;
  731. font-size: $font-size-26;
  732. color:#666666;
  733. text-align: justify;
  734. }
  735. .text-p{
  736. width: 100%;
  737. line-height: 44rpx;
  738. font-size: $font-size-26;
  739. color:$color-system;
  740. text-align: left;
  741. text-overflow:ellipsis;
  742. display: -webkit-box;
  743. word-break: break-all;
  744. -webkit-box-orient: vertical;
  745. -webkit-line-clamp: 1;
  746. overflow: hidden;
  747. }
  748. .text-b{
  749. line-height: 44rpx;
  750. font-size: $font-size-24;
  751. color:#999999;
  752. text-align: left;
  753. }
  754. }
  755. .text-button{
  756. width: 100%;
  757. height: 88rpx;
  758. line-height: 88rpx;
  759. background: $btn-confirm;
  760. font-size: $font-size-28;
  761. border-radius: 44rpx;
  762. color:#FFFFFF;
  763. text-align: center;
  764. margin-top: 20rpx;
  765. }
  766. }
  767. }
  768. .tui-prompt-title{
  769. width: 100%;
  770. height: 44rpx;
  771. line-height: 44rpx;
  772. padding: 20rpx 0;
  773. text-align: center;
  774. color: #333333;
  775. border-bottom: 1px solid #E2E7EF;
  776. }
  777. .tui-prompt-text{
  778. padding-top: 20rpx;
  779. .tui-prompt-tips{
  780. width: 100%;
  781. line-height: 36rpx;
  782. font-size: $font-size-22;
  783. color: #E15616;
  784. text-align: justify;
  785. margin-bottom: 24rpx;
  786. }
  787. .tui-prompt-item{
  788. width: 100%;
  789. line-height: 60rpx;
  790. color: #333333;
  791. font-size: $font-size-26;
  792. .text{
  793. font-weight: bold;
  794. }
  795. .copy{
  796. height: 38rpx;
  797. box-sizing: border-box;
  798. padding: 0 24rpx;
  799. text-align: center;
  800. line-height: 36rpx;
  801. display: inline-block;
  802. .iconfont{
  803. font-size: $font-size-40;
  804. color: #666666;
  805. }
  806. }
  807. }
  808. }
  809. .tui-prompt-flex{
  810. width: 100%;
  811. height: auto;
  812. margin-top: 20rpx;
  813. box-sizing: border-box;
  814. padding: 0 35rpx;
  815. .btn{
  816. width: 100%;
  817. line-height: 84rpx;
  818. font-size: $font-size-26;
  819. text-align: center;
  820. color: #FFFFFF;
  821. border-radius: 44rpx;
  822. margin: 20rpx 0;
  823. &.btn-cancel{
  824. background: #FFFFFF;
  825. color: #333333;
  826. border: 1px solid #979797;
  827. }
  828. &.btn-confirm{
  829. background: $btn-confirm;
  830. }
  831. }
  832. }
  833. </style>