Authored by 张文文

佣金订单数链接修改&邀请人名称缩短和省略

... ... @@ -25,7 +25,7 @@ export default class InvitedFriends extends Component {
<View style={styles.rowView}>
<View style={styles.rowItemStyle}>
<Text style={styles.rowTextStyle}>{rowData.get("name")}</Text>
<Text style={styles.nameItemStyle} numberOfLines={1}>{rowData.get("name")}</Text>
</View>
<View style={styles.rowItemStyle}>
... ... @@ -161,6 +161,13 @@ const styles = StyleSheet.create({
alignItems: 'center',
paddingVertical: 15,
},
nameItemStyle: {
width: width/4-25,
fontFamily: 'PingFang-SC-Regular',
fontSize: 11,
color: '#444444',
textAlign: 'center',
},
rowTextStyle: {
fontFamily: 'PingFang-SC-Regular',
fontSize: 11,
... ...
... ... @@ -46,7 +46,7 @@ export default class Mine extends Component {
let fansShow = this.props.shareTotalInfo.shareTotalInfoData.showFans;
let fansShowStyle = fansShow ? {width: width, height: 50, backgroundColor: '#FFFFFF', flexDirection: 'row',
paddingLeft: 15, alignItems: 'center', justifyContent: 'space-between'} : {height: 0, width: 0};
let spaceShowStyle = fansShow ? {height: 10, backgroundColor: '#f0f0f0'} : {height: 0};
let lineShowStyle = fansShow ? {height: 1.0, backgroundColor: '#f0f0f0'} : {height: 0};
//邀请好友数空值判断
let invitesAmount = this.props.shareTotalInfo.shareTotalInfoData.inviteNum;
... ... @@ -82,7 +82,7 @@ export default class Mine extends Component {
</View>
</TouchableOpacity>
<View style={spaceShowStyle}/>
<View style={lineShowStyle}/>
<TouchableOpacity activeOpacity={1} style={fansShowStyle} onPress={() => {
... ... @@ -110,16 +110,15 @@ export default class Mine extends Component {
<MineCell
resource={rowData.get('data')}
resourceJumpWithUrl={this.props.resourceJumpWithUrl}
styles={styles}
/>
styles={styles} />
);
} else if (templatename === 'newSingleImage' && rowData) {
console.log(rowData.toJS());
return (
<SingleImage
data={rowData}
resourceJumpWithUrl={this.props.resourceJumpWithUrl}
/>)
resourceJumpWithUrl={this.props.resourceJumpWithUrl} />
)
} else {
return null
}
... ...
... ... @@ -53,29 +53,43 @@ export default class Statistics extends Component {
</TouchableOpacity>
</View>
<View style={styles.lineView}/>
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"全部佣金","type":"orderIncome"}}`;
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
}} >
<View style={styles.statisticsView}>
<View style={styles.statisticsView}>
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"预估佣金","type":"estimateDetails","time_type":${currentTab}, "tab_type":"1"}}`;
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
}} >
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
<Text style={styles.numberText}>{statisticsInfo.orderNum}</Text>
<Text style={styles.tipsText}>订单数</Text>
</View>
<View style={styles.spaceView}/>
</TouchableOpacity>
<View style={styles.spaceView}/>
<TouchableOpacity activeOpacity={1} style={styles.container} onPress={() => {
let url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.minealliance","params":{"title":"全部佣金","type":"orderIncome"}}`;
this.props.resourceJumpWithUrl && this.props.resourceJumpWithUrl(url);
}} >
<View style={{width: width / 2, paddingLeft: 30, marginTop: -10}}>
<Text style={styles.numberText}>{statisticsInfo.clickNum}</Text>
<Text style={styles.tipsText}>点击数</Text>
</View>
</View>
</TouchableOpacity>
</TouchableOpacity>
</View>
<View style={styles.lineView}/>
</View>
);
}
... ...