liyongli 1 year ago
parent
commit
b0a2232681
5 changed files with 10 additions and 7 deletions
  1. 2 1
      src/api/index.js
  2. 1 1
      src/utils/request.js
  3. 1 1
      src/views/Jugou/Jugou.vue
  4. 3 1
      src/views/LiveChannel.vue
  5. 3 3
      src/views/Program.vue

+ 2 - 1
src/api/index.js

@@ -51,7 +51,7 @@ export function liveRealDataMinApi(data) {
  */
 export function liveRealDataApi(data) {
   return ajax({
-    url: '/api/min_ratings',
+    url: '/api//rtmin',
     method: 'get',
     data,
   });
@@ -97,6 +97,7 @@ export function list(data) {
   return ajax({
     url: '/api/proepglb',
     method: 'get',
+    resType: 't200',
     data,
   });
 }

+ 1 - 1
src/utils/request.js

@@ -70,7 +70,7 @@ export default function (ori) {
 
       data && data.response && (data = data.response);
       if (!ori.urlType && !data.status) return reject(data.message);
-      if (data.code) return reject(data);
+      if (ori.resType != 't200' && data.code) return reject(data);
       resolve(data.data || data.response || data);
     };
   });

+ 1 - 1
src/views/Jugou/Jugou.vue

@@ -175,7 +175,7 @@ export default {
         nowDate = d.getTime();
       startDate = startDate - (startDate % 86400000);
       nowDate = nowDate - (nowDate % 86400000);
-      let out = nowDate < startDate || nowDate >= Date.now()
+      let out = nowDate < startDate || nowDate >= Date.now() - 172800000
       return out;
     },
     getData() {

+ 3 - 1
src/views/LiveChannel.vue

@@ -255,7 +255,9 @@ export default {
       if (Interval) clearInterval(Interval);
       liveRealDataApi({
         tv_id: this.row.id,
-        area_id: this.row.area_id,
+        area: this.row.area_id,
+        sd: '20231016',
+        t: 2,
         vs: (params.channel.join(",") + ",")
           .replace(this.row.id + ",", "")
           .replace(/,$/, "")

+ 3 - 3
src/views/Program.vue

@@ -206,7 +206,7 @@
 // @ is an alias to /src
 import bilateralBarChart from "@/components/bilateralBarChart";
 
-import { list, listcsv, heightlightApi } from "@/api/index";
+import { list, listcsv,heightlightApi } from "@/api/index";
 import config from "@/config/index";
 let milestone = [];
 export default {
@@ -298,7 +298,7 @@ export default {
       else return "<el-icon><document-add /></el-icon>";
     },
     clickRow(row) {
-      if (row.heightlight === "否") return;
+      if (!row.heightlight || row.heightlight === "否") return;
       this.$router.push({
         path: "/heightlight",
         query: { id: row.ca_id, t: row.tv_id },
@@ -404,7 +404,7 @@ export default {
     },
   },
   beforeUnmount: function() {
-    milestone = null;
+    // milestone = null;
   },
   components: { bilateralBarChart },
 };