Authored by 李奇

切换频道修改

... ... @@ -308,6 +308,17 @@
this.reload();
}
});
},
created(){
yoho.addNativeMethod('changeChannel', val => {
let label;
val = val - 1;
label = channelLabel[val];
this.curChannel = label;
cookie.set('_ChannelIndex', val);
cookie.set('_Channel', label.toLowerCase());
});
}
};
</script>
... ...