Authored by 于良

删除无用的代码 review by 草莓

... ... @@ -12,10 +12,7 @@ import Guang from './guang/Guang';
import Message from './message/Message';
import NewArrival from './newArrival/NewArrival';
import Mine from './mine/Mine';
// import Search from './search/Search';
import RedPersonBrand from './redPersonBrand/RedPersonBrand';
import Installment from './installment/Installment';
import Home from './home/Home';
import Outlet from './outlet/Outlet'
import BLK from './blk/BLK'
... ... @@ -30,7 +27,6 @@ export default function native(platform) {
Message(platform)
NewArrival(platform)
RedPersonBrand(platform);
Installment(platform);
Home(platform);
Outlet(platform);
BLK(platform)
... ...
... ... @@ -75,7 +75,7 @@ class BrandContainer extends Component {
}
componentWillUnmount() {
this.subscription && this.subscription.remove();
}
//原生跳转
... ...
... ... @@ -79,7 +79,7 @@ class CategoryBContainer extends Component {
}
componentWillUnmount() {
this.subscription && this.subscription.remove();
}
_onSelectChannel(channel) {
... ...
... ... @@ -73,7 +73,7 @@ class CategoryContainer extends Component {
}
componentWillUnmount() {
this.subscription && this.subscription.remove();
}
_onSelectChannel(channel) {
... ...
... ... @@ -54,12 +54,7 @@ class ListContainer extends Component {
this._onPressShare = this._onPressShare.bind(this);
this._onPressLike = this._onPressLike.bind(this);
this._onPressHeader = this._onPressHeader.bind(this);
this.subscription = NativeAppEventEmitter.addListener(
'ChannelDidChangeEvent',
(reminder) => {
this.home && this.home.trigggePullToRefresh();
}
);
}
componentDidMount() {
... ... @@ -68,7 +63,7 @@ class ListContainer extends Component {
}
componentWillUnmount() {
this.subscription && this.subscription.remove();
}
_onPressCell(url) {
... ...