...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-04-26 17:15:50
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-04-26 17:47:20
|
|
|
* @Last Modified time: 2017-04-27 11:32:13
|
|
|
*/
|
|
|
'use strict';
|
|
|
import {View} from 'yoho-mvc';
|
...
|
...
|
@@ -10,7 +10,20 @@ import {View} from 'yoho-mvc'; |
|
|
class NavView extends View {
|
|
|
constructor() {
|
|
|
super('#guang-nav');
|
|
|
console.log('NavView', '------->');
|
|
|
this.list = $('#info-list');
|
|
|
this.on('touchend touchcancel', 'li', this.tabClick.bind(this));
|
|
|
}
|
|
|
|
|
|
tabClick(e) {
|
|
|
let $this = $(e.currentTarget);
|
|
|
|
|
|
// tab status change
|
|
|
console.log($this, '------>');
|
|
|
this.emit('navchange');
|
|
|
}
|
|
|
|
|
|
listChange(html) {
|
|
|
this.list.html(html);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|