new-pag4.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <style>
  17. .screenroll::-webkit-scrollbar {
  18. display: none;
  19. }
  20. .van-pull-refresh{
  21. height:calc(100vh - 2.3rem);
  22. }
  23. .bycloud{
  24. margin-left:0 !important;
  25. }
  26. .detailinfo{
  27. justify-content:space-between !important;
  28. }
  29. /*.mtr{
  30. text-align:right;
  31. }
  32. */
  33. .jcsb div{
  34. flex:1;
  35. }
  36. </style>
  37. </head>
  38. <body class="bgc-back pb0 ovh">
  39. <div class="iphonetitle"> </div>
  40. <div id="app" v-cloak>
  41. <van-nav-bar class="camp_title user_title_normal f16" title="盟主中心" @click-left="goback" v-if="toptitleisshow" left-arrow v-cloak>
  42. <template #left>
  43. <van-icon name="arrow-left" color="#333" size="20"></van-icon>
  44. </template>
  45. </van-nav-bar>
  46. <div class="screenroll">
  47. <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
  48. <div class="performance_toppanel ovh">
  49. <div class="title df mt8 c333">
  50. <div class="time" @click="showDate = true"></div>
  51. <div class="f12"> </div>
  52. </div>
  53. </div>
  54. <div class="performance_panel bgcfff">
  55. <div class="title df">
  56. <div class="f14 c333 b"> </div>
  57. <div class="pic" @click="trendpic('个人交易')"><span class="f12"> </span></div>
  58. </div>
  59. </div>
  60. </van-pull-refresh>
  61. </div>
  62. <van-popup class="product_mymerchant_transaction" v-model="showDate" position="bottom" :style="{ height: '50%' }" v-cloak>
  63. <van-datetime-picker v-model="currentDate" type="year-month" :min-date="minDate" :max-date="maxDate" :formatter="formatter" @cancel="showDate = false" @confirm="onConfirmDate"></van-datetime-picker>
  64. </van-popup>
  65. </div>
  66. <script src="./static/js/echarts.min.js"></script>
  67. <script src="./static/js/klm-vv.min.js"></script>
  68. <script src="./static/js/appfunc.min.js"></script>
  69. <script src="./static/js/klm-axios-config.js"></script>
  70. <script src="./static/js/publicfn.js"></script>
  71. <script>
  72. function OnStart(){
  73. PublicLib.SetStatusBarStyle({type:'light', isShow:1});
  74. };
  75. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  76. // 可以通过下面的方式手动注册
  77. Vue.use(vant.Lazyload);
  78. //--- PublicLib.SetStatusBarStyle({type:'light', isShow:1});
  79. // 在 #app 标签下渲染一个按钮组件
  80. let app = new Vue({
  81. el: '#app',
  82. data() {
  83. return {
  84. refreshing: false,
  85. toptitleisshow:true,
  86. showDate: false,
  87. currentDate: new Date(),
  88. minDate: new Date(new Date().getFullYear(),(new Date().getMonth() - 5)),
  89. maxDate: new Date(),
  90. nowdate: '',
  91. isme:false,
  92. ismelist:[
  93. 14,1,598
  94. ],
  95. };
  96. },
  97. created(){
  98. this.onConfirmDate();
  99. this.isme = PublicLib.GetAppVersion() === '1.4.2' ? true : false;
  100. this.ismelist.forEach(item=>{
  101. if(item === Number(PublicLib.getCookieInfo('userId'))){
  102. this.isme = true;
  103. };
  104. });
  105. },
  106. methods: {
  107. onRefresh() {
  108. // 清空列表数据
  109. this.onConfirmDate();
  110. },
  111. formatter(type, val) {
  112. if (type === 'year') {
  113. return `${val}年`;
  114. } else if (type === 'month') {
  115. return `${val}月`;
  116. } else if (type === 'day') {
  117. return `${val}日`;
  118. }
  119. return val;
  120. },
  121. onConfirmDate() {
  122. this.showDate = false;
  123. this.nowdate = this.currentDate.getFullYear() + '-' + (this.currentDate.getMonth() + 1);
  124. },
  125. onConformateDate(){
  126. return fillzero(formatDate(this.currentDate.getFullYear(),this.currentDate.getMonth() + 1));
  127. },
  128. trendpic(val){
  129. PublicLib.putCookieInfo('trendtype', val);
  130. PublicLib.Goto({Url:'product-trendchart'});
  131. },
  132. goback(){
  133. PublicLib.GoBack({Level:1});
  134. },
  135. }
  136. });
  137. </script>
  138. </body>
  139. </html>