...
|
...
|
@@ -41,7 +41,7 @@ class MineContainer extends Component { |
|
|
super(props);
|
|
|
this._onPressItem = this._onPressItem.bind(this);
|
|
|
this._onPressProductListProduct = this._onPressProductListProduct.bind(this);
|
|
|
|
|
|
this.onRefresh = this.onRefresh.bind(this);
|
|
|
this.subscription1 = NativeAppEventEmitter.addListener(
|
|
|
'UserDidLoginEvent',
|
|
|
(reminder) => {
|
...
|
...
|
@@ -103,7 +103,21 @@ class MineContainer extends Component { |
|
|
);
|
|
|
}
|
|
|
|
|
|
|
|
|
onRefresh() {
|
|
|
InteractionManager.runAfterInteractions(() => {
|
|
|
this.props.actions.getMineUserInfo();
|
|
|
this.props.actions.getMineUserInfoNum();
|
|
|
this.props.actions.getMineFavProNum();
|
|
|
this.props.actions.getMineRedPackageNum();
|
|
|
this.props.actions.getMineInstalemtInfo();
|
|
|
this.props.actions.getMineActivity();
|
|
|
this.props.actions.getMemberBillTask();
|
|
|
this.props.actions.getEnvelopesItem();
|
|
|
this.props.actions.getCertificationData();
|
|
|
this.props.actions.getAnnouncement();
|
|
|
this.props.actions.getGlobalOrderState();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
this.props.actions.productListForInstallment();
|
...
|
...
|
@@ -131,7 +145,7 @@ class MineContainer extends Component { |
|
|
|
|
|
_onPressItem(viewId, data) {
|
|
|
let url = "";
|
|
|
let params = {};
|
|
|
let params = {};
|
|
|
switch (viewId) {
|
|
|
case 'mineSetting':
|
|
|
url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.setting","params":{}}`;
|
...
|
...
|
@@ -325,7 +339,7 @@ class MineContainer extends Component { |
|
|
announcement={announcement}
|
|
|
globalOrderData={globalOrderData}
|
|
|
iconAll={iconAll}
|
|
|
|
|
|
onRefresh={this.onRefresh}
|
|
|
onPressItem={this._onPressItem}
|
|
|
onPressProductListProduct={this._onPressProductListProduct}
|
|
|
/>
|
...
|
...
|
|