增加日记本说明

This commit is contained in:
mx1700 2019-08-04 20:40:42 +08:00
parent 7ba58507b7
commit 4a45614695

View file

@ -173,6 +173,20 @@ export default class NotebookEditPage extends Component {
} }
render() { render() {
const tip = this.props.notebook ? (
<View style={{padding: 15}}>
<Text style={localStyle.tip}>提示写过的日记本不能被删除</Text>
</View>
) : (
<View style={{padding: 15}}>
<Text style={[localStyle.tip, { paddingBottom: 3 }]}>什么是胶囊日记</Text>
<Text style={localStyle.tip}>胶囊日记是一个记录生活的日记本</Text>
<Text style={localStyle.tip}>
首先你需要建立一个胶囊日记本公开或是私密并为它设定一个期限这个期限决定了这个日记本的厚度然后你就可以开始写日记了 你可以在上面记录喜悦悲伤发牢骚流水账甚至只是一张相片一条电话号码 之后你会发现一觉醒来前一天你和所有人的日记都不见了放心它们并没有被删除只是存放在你建好的日记本里 等到日记本写满那天你所有的日记就都可以再次被浏览
</Text>
</View>
);
return ( return (
<View style={localStyle.wrap}> <View style={localStyle.wrap}>
<Loading visible={this.state.uploading}></Loading> <Loading visible={this.state.uploading}></Loading>
@ -234,10 +248,10 @@ export default class NotebookEditPage extends Component {
<Text style={localStyle.delete}>删除</Text> <Text style={localStyle.delete}>删除</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<Text style={localStyle.tip}>提示写过的日记本不能被删除</Text>
</View> </View>
) : null ) : null
} }
{tip}
</View> </View>
); );
@ -298,10 +312,10 @@ const localStyle = StyleSheet.create({
}, },
tip: { tip: {
fontSize: 12, fontSize: 12,
padding: 10, color: '#89A',
paddingTop: 8, lineHeight: 18,
color: Color.inactiveText },
}
}); });
const customDatePickerStyle = StyleSheet.create({ const customDatePickerStyle = StyleSheet.create({