Kaynağa Gözat

1.朗读小咖秀改10次包统计为终身会员统计
2.所有查询条件调整为默认最近30天

sunzhilei 9 ay önce
ebeveyn
işleme
81f35ea655

+ 1 - 1
src/api/reader.js

@@ -53,7 +53,7 @@ service.interceptors.response.use(
 
 export function getReaderData(params) {
   return service({
-    url: 'https://reader-xiaoai-api.ai160.com/statistics/userView',
+    url: 'https://reader-api.ai160.com/wx/statistics/userView',
     method: 'get',
     params
   })

+ 6 - 2
src/pages/baidu/Skill.vue

@@ -300,7 +300,7 @@ export default {
     this.$store.dispatch("clearList");
 
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -339,8 +339,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     skillChange(val) {

+ 6 - 2
src/pages/mobile/Mobile.vue

@@ -219,7 +219,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     this.$store.dispatch("getEfunChannelList",'PHONE');
-    this.efunParams.startDate = this.getYesterDay();
+    this.efunParams.startDate = this.getYesterMonth();
     this.efunParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -257,8 +257,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     columnZero() {

+ 6 - 2
src/pages/oppo/xxtbfd.vue

@@ -266,7 +266,7 @@ export default {
   },
   created() {
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -319,8 +319,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     columnZero() {

+ 6 - 2
src/pages/order/Order.vue

@@ -274,7 +274,7 @@ export default {
 
     // this.$store.dispatch("getChannelList", { pageNo: "", pageSize: "" });
     // this.$store.dispatch("getOrderList", this.orderParams);
-    this.orderParams.startDate = this.getYesterDay();
+    this.orderParams.startDate = this.getYesterMonth();
     this.orderParams.endDate = this.getYesterDay();
     console.log(
       "document.documentElement.clientHeight",
@@ -314,8 +314,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     changeDate(date) {

+ 6 - 2
src/pages/order/Order_bak.vue

@@ -291,7 +291,7 @@ export default {
   created() {
     this.$store.dispatch("getChannelList", { pageNo: "", pageSize: "" });
     // this.$store.dispatch("getOrderList", this.orderParams);
-    this.orderParams.startDate = this.getYesterDay();
+    this.orderParams.startDate = this.getYesterMonth();
     this.orderParams.endDate = this.getYesterDay();
     console.log(
       "document.documentElement.clientHeight",
@@ -329,8 +329,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     changeDate(date) {

+ 6 - 2
src/pages/reader/develop.vue

@@ -169,7 +169,7 @@ export default {
     };
   },
   async created() {
-    this.skillParams.startDay = this.getYesterDay();
+    this.skillParams.startDay = this.getYesterMonth();
     this.skillParams.endDay = this.getYesterDay();
     let res = await getCascaderChannel()
     this.options = this.filterEmptyChildren(res.data)
@@ -254,8 +254,12 @@ export default {
       })
       return arr
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     changeDate(date) {

+ 6 - 2
src/pages/reader/develop2.vue

@@ -139,7 +139,7 @@ export default {
     };
   },
   async created() {
-    this.skillParams.startDay = this.getYesterDay();
+    this.skillParams.startDay = this.getYesterMonth();
     this.skillParams.endDay = this.getYesterDay();
     let res = await getSaleUser()
     this.options = res.data
@@ -173,8 +173,12 @@ export default {
         }
       });
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 13 - 5
src/pages/reader/index.vue

@@ -191,11 +191,11 @@
             prop="yearlyPayment"
           ></el-table-column>
           <el-table-column
-            label="10次包 | -Qc"
+            label="终身 | -Qc"
             align="right"
             header-align="center"
             :render-header="renderheader"
-            prop="experiencePayment"
+            prop="lifeLongPayment"
           ></el-table-column>
           <el-table-column
             label="付费订单数量| Q=Qm1+Qm2+Qy+Qc"
@@ -234,7 +234,7 @@
             align="right"
             header-align="center"
             :render-header="renderheader"
-            prop="experienceConversion"
+            prop="lifeLongConversion"
             min-width="130px"
           ></el-table-column>
           <el-table-column
@@ -287,7 +287,7 @@ export default {
     this.$store.dispatch("clearList");
 
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDay = this.getYesterDay();
+    this.skillParams.startDay = this.getYesterMonth();
     this.skillParams.endDay = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -325,8 +325,16 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/skill/Skill.vue

@@ -331,7 +331,7 @@ export default {
   },
   created() {
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -382,8 +382,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/skill/xqb.vue

@@ -296,7 +296,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -344,8 +344,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/skill/xxms.vue

@@ -296,7 +296,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -344,8 +344,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/skill/yey.vue

@@ -296,7 +296,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -344,8 +344,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/tv/TV.vue

@@ -218,7 +218,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     this.$store.dispatch("getEfunChannelList",'TV');
-    this.efunParams.startDate = this.getYesterDay();
+    this.efunParams.startDate = this.getYesterMonth();
     this.efunParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -256,8 +256,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     columnZero() {

+ 6 - 2
src/pages/xyyf/Adaline.vue

@@ -270,7 +270,7 @@ export default {
   },
   created() {
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
     this.$store.dispatch("clearList");
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -308,8 +308,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/xyyf/AppStore.vue

@@ -269,7 +269,7 @@ export default {
   created() {
     this.$store.dispatch("clearList");
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -307,8 +307,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {

+ 6 - 2
src/pages/xyyf/SoundBox.vue

@@ -268,7 +268,7 @@ export default {
     this.$store.dispatch("clearList");
 
     // this.$store.dispatch("getOrderList", this.skillParams);
-    this.skillParams.startDate = this.getYesterDay();
+    this.skillParams.startDate = this.getYesterMonth();
     this.skillParams.endDate = this.getYesterDay();
 
     this.tableHeight = document.documentElement.clientHeight * 0.75;
@@ -306,8 +306,12 @@ export default {
         h("span", {}, column.label.split("|")[1])
       ]);
     },
+    getYesterMonth() {
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 30 * 1000;
+      return formatDate(yesterday, 2);
+    },
     getYesterDay() {
-      let yesterday = new Date().getTime() - 86400000;
+      let yesterday = new Date().getTime() - 60 * 60 * 24 * 1000;
       return formatDate(yesterday, 2);
     },
     channelChange(val) {