@@ -207,6 +207,8 @@ export default {
207
207
this .loading .movie = ' loading' ;
208
208
this .$store .dispatch (' getMovieDetail' , params).then (function (response ) {
209
209
let res = response .data ;
210
+ res = JSON .parse (res);
211
+ // console.log(res)
210
212
if (response .ok && response .status === 200 ) {
211
213
_self .loading .movie = ' loaded' ;
212
214
_self .movie = res;
@@ -250,7 +252,6 @@ export default {
250
252
this .$store .dispatch (' getMovieComments' , params).then (function (response ) {
251
253
let res = response .data ;
252
254
// res = JSON.parse(res);
253
- console .log (res);
254
255
if (response .ok && response .status === 200 ) {
255
256
_self .loading .comments = ' loaded' ;
256
257
if (params .pageIndex > 1 ) {
@@ -285,7 +286,7 @@ export default {
285
286
arr = Store .get (' view_list' );
286
287
if (arr) {
287
288
arr = arr .filter ((item ) => {
288
- return item .id != _self .movie .id ;
289
+ return item .videoId != _self .movie .videoId ;
289
290
})
290
291
arr .unshift (this .movie );
291
292
// 仅仅保留最近浏览的30个数据
@@ -303,7 +304,7 @@ export default {
303
304
arr = Store .get (' favorite_list' );
304
305
if (arr) {
305
306
arr = arr .filter ((item ) => {
306
- return item .id != _self .movie .id ;
307
+ return item .videoId != _self .movie .videoId ;
307
308
})
308
309
arr .unshift (this .movie );
309
310
} else {
@@ -335,7 +336,6 @@ export default {
335
336
opt .url = location .href ;
336
337
opt .message = ` 《${ this .movie .titleCn } 》在线观看_电视剧_美剧_免费电影在线看_2017最新电影` ;
337
338
window .plugins .socialsharing .shareWithOptions (opt, (onSuccess ) => {
338
- console .log (onSuccess);
339
339
}, (onError ) => {
340
340
console .log (onError);
341
341
});
@@ -353,12 +353,9 @@ export default {
353
353
})
354
354
},
355
355
initScrollDom () {
356
- console .log (this .$el );
357
356
this .$el .onscroll = () => {
358
357
var h = document .documentElement .scrollTop || document .body .scrollTop || this .$el .scrollTop ;
359
358
var scrollHeight = this .$el .scrollHeight ;
360
- console .log (scrollHeight);
361
- console .log (h);
362
359
if (h >= 550 ) {
363
360
this .show_bar = true ;
364
361
} else {
0 commit comments