Showing
1 changed file
with
11 additions
and
0 deletions
@@ -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> |
-
Please register or login to post a comment