product-profit-flow-detail.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>详情-流量卡分佣-产品中心-创业帮</title>
  6. <meta name="keywords" content="详情-流量卡分佣-产品中心-创业帮">
  7. <meta name="description" content="详情-流量卡分佣-产品中心-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="详情-流量卡分佣-产品中心-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back h100p ovh pt0" style="padding-top:0;">
  18. <div id="app">
  19. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="流量卡分佣详情" v-if="toptitleisshow" @click-left="goback">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <van-sticky>
  23. <van-cell class="van-cell--link" :title="time"></van-cell>
  24. </van-sticky>
  25. <van-row>
  26. <van-col class="bgcfff" span="24">
  27. <div class="ovh-x" ref="wrapper1">
  28. <van-pull-refresh v-model="refreshing" @refresh="onRefresh" style="height:calc(100% - 44px);" :class="transactions.length === 0 ? 'isnodata':''">
  29. <van-empty class="custom-image" image="./static/images/empty-img.png" description="暂无数据" v-if="isnodata"></van-empty>
  30. <van-list v-model="loading" :finished="finished" finished-text="没有更多数据了" @load="onLoad" :immediate-check="false">
  31. <van-cell-group class="boot-detail-list" v-for="item,index in transactions">
  32. <van-cell :border="false" :title="item.TradeDate+' '+item.RealName+' '+item.Mobile" :value="item.FluxProfitAmt+'元'" title-class="f12 c333" value-class="f12 c333" center></van-cell>
  33. </van-cell-group>
  34. </van-list>
  35. </van-pull-refresh>
  36. </div>
  37. </van-col>
  38. </van-row>
  39. </div>
  40. <script src="./static/js/klm-vv.min.js"></script>
  41. <script src="./static/js/appfunc.min.js"></script>
  42. <script src="./static/js/klm-axios-config.js"></script>
  43. <script src="./static/js/publicfn.js"></script>
  44. <script>
  45. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  46. // 可以通过下面的方式手动注册
  47. Vue.use(vant.Lazyload);
  48. PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
  49. // 在 #app 标签下渲染一个按钮组件
  50. let app = new Vue({
  51. el: '#app',
  52. data() {
  53. return {
  54. isnodata:false,
  55. toptitleisshow:false,
  56. transactions: [
  57. ],
  58. loading: false,
  59. finished: false,
  60. refreshing: false,
  61. pageinfo:{
  62. PageSize:10,
  63. PageNum:1
  64. },
  65. time:'',
  66. };
  67. },
  68. created(){
  69. this.toptitleisshow = toptitleisshow;
  70. this.time = PublicLib.getCookieInfo('profitDetailTimeshow');
  71. this.getactivedetail();
  72. },
  73. beforeUpdate() {
  74. this.$nextTick(() => {
  75. this.$refs.wrapper1.style.height = `${document.documentElement.clientHeight}px`;
  76. });
  77. },
  78. methods: {
  79. onLoad() {
  80. if (this.refreshing) {
  81. this.transactions = [];
  82. this.refreshing = false;
  83. this.pageinfo.PageNum = 0;
  84. };
  85. this.pageinfo.PageNum++;
  86. this.getactivedetail();
  87. },
  88. onRefresh() {
  89. // 清空列表数据
  90. this.finished = false;
  91. // 重新加载数据
  92. this.loading = true;
  93. this.onLoad();
  94. },
  95. async getactivedetail(){
  96. //- PublicLib.ShowLoading({Message:''});
  97. const ProductType = PublicLib.getCookieInfo('productMachineId');
  98. const TradeMonth = PublicLib.getCookieInfo('profitDetailTime');
  99. const UserId = PublicLib.getCookieInfo('userId');
  100. const res = await getRequest('api/v1/pos/fluxprofitsummary/bydate?t='+Math.random(6),JSON.stringify({...this.pageinfo,TradeMonth,UserId,ProductType}));
  101. if(res.status !== '1')return tips('流量卡分佣详情获取失败!');
  102. //- PublicLib.HideLoading();
  103. if(res.data.length < this.pageinfo.PageSize) {
  104. this.finished = true;
  105. };
  106. res.data.forEach(item=>{
  107. item.Mobile = hidemiddlenum(item.Mobile,3,4);
  108. });
  109. this.transactions.push(...res.data);
  110. this.loading = false;
  111. if(this.transactions.length === 0) {this.isnodata = true}else{this.isnodata = false};
  112. },
  113. goback(){
  114. PublicLib.GoBack({Level:1});
  115. },
  116. }
  117. });
  118. </script>
  119. </body>
  120. </html>