Authored by 叶弯弯

消息列表页增加未读标识。reviewed by yuliang。

... ... @@ -16,6 +16,7 @@ const {
View,
Text,
ListView,
Image,
TouchableHighlight,
Dimensions,
StyleSheet,
... ... @@ -61,6 +62,7 @@ export default class Meassage extends Component {
<TouchableOpacity activeOpacity={0.5} onPress={() => this.props.onPressItem(rowID)}>
<View style={styles.row}>
<View style={styles.row_top}>
{'N' === item.get('isRead') ? <Image style={{width: 6, height: 6, marginLeft: 15}} source={require('../images/tabbar/red.png')} resizeMode={'contain'} /> : null}
<Text style={styles.title}>{item.get('title')}</Text>
<Text style={styles.time}>{date}</Text>
</View>
... ...
... ... @@ -81,7 +81,7 @@ export function shouldRequestMsgList(message) {
export function setMsgIsRead(shopId, messageId) {
return dispatch => {
dispatch(batchSetMsgRead());
dispatch(batchSetMsgReadSuccess());
return new MessageService().setMsgIsRead(shopId, messageId)
.then(json => {
dispatch(requestUnreadMsgNum(shopId, 'N'));
... ...