Authored by yoho-js001

Remove dislike from home. reviewed by redding.

... ... @@ -143,7 +143,6 @@ export default class Home extends Component {
onPressProduct={this.props.onPressProductListProduct}
onLongPressProduct={this.props.onLongPressProduct}
onPressFindSimilar={this.props.onPressFindSimilar}
onPressDislike={this.props.onPressDislike}
/>
</View>
);
... ...
... ... @@ -88,6 +88,9 @@ export default class MineList extends React.Component {
renderHeader={this._renderHeader}
onScroll={(event) => {
ReactNative.NativeModules.YH_MineHelper.updateNavBarState(event.nativeEvent.contentOffset.y);
if (Platform.OS === 'ios' && event.nativeEvent.contentOffset.y < -60) {
this.props.onRefresh && this.props.onRefresh();
}
}}
/>
</View>
... ... @@ -129,4 +132,4 @@ let styles = StyleSheet.create({
height: 9,
width: 9,
}
});
\ No newline at end of file
});
... ...
... ... @@ -192,10 +192,14 @@ export default class MineListHeader extends React.Component {
oHigh = oHigh + rowheight * this.props.activityListInfo.list.size;
}
oHigh = topHeight + oHigh;
let bgImage = Platform.OS === 'ios' ? require('../../image/mine_top_boy.png') : require('../../image/mine_banner_boy.jpg');
let bgHeight = Platform.OS === 'ios' ? 245 : 175;
let bgMarginTop = Platform.OS === 'ios' ? -60 : 0;
let bgPaddingTop = Platform.OS === 'ios' ? 115: 45;
return (
<View style={[styles.container,{height:oHigh}]}>
<Image source={require('../../image/mine_banner_boy.jpg')}
style={{width: width, height: 175,paddingTop:45, }}
<Image source={bgImage}
style={{width: width, height: bgHeight,paddingTop:bgPaddingTop, marginTop: bgMarginTop}}
resizeMode={'stretch'}>
{
... ... @@ -732,6 +736,7 @@ let styles = StyleSheet.create({
height: 50,
paddingTop: 3,
backgroundColor: 'black',
opacity: Platform.OS === 'ios' ? 0.7 : 1.0,
},
mine_row_container: {
flexDirection: 'row',
... ... @@ -899,7 +904,7 @@ let styles = StyleSheet.create({
textAlignVertical: 'center',
color: 'white',
fontSize: 15,
borderRadius: 3,
borderRadius: Platform.OS === 'ios' ? 0 : 3,
borderWidth: (Platform.OS === 'ios' ? 3 : 5) / PixelRatio.get(),
borderColor: 'white',
backgroundColor: 'transparent',
... ...
... ... @@ -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}
/>
... ...