Authored by 李奇

切换频道修改

@@ -308,6 +308,17 @@ @@ -308,6 +308,17 @@
308 this.reload(); 308 this.reload();
309 } 309 }
310 }); 310 });
  311 + },
  312 + created(){
  313 + yoho.addNativeMethod('changeChannel', val => {
  314 + let label;
  315 +
  316 + val = val - 1;
  317 + label = channelLabel[val];
  318 + this.curChannel = label;
  319 + cookie.set('_ChannelIndex', val);
  320 + cookie.set('_Channel', label.toLowerCase());
  321 + });
311 } 322 }
312 }; 323 };
313 </script> 324 </script>