-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] 取消App内所有更新字眼和提示 - [x] UGC (用户产生内容) 功能,必须提供用户协议 (应付审核用) - [x] 社区指导原则页面 (应付审核用) - [x] 举报入口, 只是个样子 (应付审核用)
- Loading branch information
Showing
27 changed files
with
928 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/* | ||
* @Author: czy0729 | ||
* @Date: 2019-05-29 16:08:10 | ||
* @Last Modified by: czy0729 | ||
* @Last Modified time: 2019-08-22 16:59:26 | ||
*/ | ||
import React from 'react' | ||
import { StyleSheet, ScrollView, View } from 'react-native' | ||
import PropTypes from 'prop-types' | ||
import { Touchable, Image, Text, Flex } from '@components' | ||
import { HOST } from '@constants' | ||
import _ from '@styles' | ||
|
||
function Award(props, { navigation }) { | ||
return ( | ||
<ScrollView | ||
contentContainerStyle={styles.container} | ||
horizontal | ||
showsHorizontalScrollIndicator={false} | ||
> | ||
<Touchable | ||
style={styles.item} | ||
withoutFeedback | ||
onPress={() => | ||
navigation.push('Award', { | ||
uri: `${HOST}/award/2018` | ||
}) | ||
} | ||
> | ||
<View style={styles.image}> | ||
<Image | ||
style={styles.imageHero} | ||
src={require('@assets/images/hero.png')} | ||
size={148} | ||
placeholder={false} | ||
/> | ||
</View> | ||
<Image | ||
style={styles.imageTitle} | ||
src={require('@assets/images/hero_title.png')} | ||
size={184} | ||
height={148} | ||
resizeMode='contain' | ||
placeholder={false} | ||
/> | ||
</Touchable> | ||
{[2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010].map((item, index) => ( | ||
<Touchable | ||
key={item} | ||
style={_.ml.md} | ||
withoutFeedback | ||
onPress={() => | ||
navigation.push('Award', { | ||
uri: `${HOST}/award/${item}` | ||
}) | ||
} | ||
> | ||
<Flex | ||
style={[ | ||
styles.itemSquare, | ||
{ | ||
backgroundColor: index % 2 === 0 ? _.colorDark : _.colorDanger | ||
} | ||
]} | ||
justify='center' | ||
direction='column' | ||
> | ||
{index === 0 && ( | ||
<Text size={20} type='plain' bold> | ||
BEST OF | ||
</Text> | ||
)} | ||
<Text size={20} type='plain' bold> | ||
{item} | ||
</Text> | ||
</Flex> | ||
</Touchable> | ||
))} | ||
</ScrollView> | ||
) | ||
} | ||
|
||
Award.contextTypes = { | ||
navigation: PropTypes.object | ||
} | ||
|
||
export default Award | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
padding: _.wind | ||
}, | ||
item: { | ||
width: 312 | ||
}, | ||
itemSquare: { | ||
width: 148, | ||
height: 148, | ||
borderRadius: _.radiusMd, | ||
overflow: 'hidden' | ||
}, | ||
image: { | ||
backgroundColor: _.colorDanger, | ||
borderRadius: _.radiusMd, | ||
overflow: 'hidden' | ||
}, | ||
imageTitle: { | ||
position: 'absolute', | ||
top: 0, | ||
right: 0, | ||
marginRight: -8 | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* @Author: czy0729 | ||
* @Date: 2019-08-10 17:53:18 | ||
* @Last Modified by: czy0729 | ||
* @Last Modified time: 2019-08-18 21:40:03 | ||
*/ | ||
import React from 'react' | ||
import { View } from 'react-native' | ||
import PropTypes from 'prop-types' | ||
import { observer } from 'mobx-react' | ||
import { Text } from '@components' | ||
import { StatusBarPlaceholder } from '@screens/_' | ||
import _ from '@styles' | ||
import Award from './award' | ||
import Section from './section' | ||
import Section2 from './section2' | ||
|
||
function Header(props, { $ }) { | ||
const { today } = $.home | ||
return ( | ||
<> | ||
<StatusBarPlaceholder style={{ backgroundColor: _.colorBg }} /> | ||
<Award /> | ||
<Section /> | ||
<Section2 /> | ||
<View style={[_.container.wind, _.mt.lg]}> | ||
<Text align='right'>{today}</Text> | ||
</View> | ||
</> | ||
) | ||
} | ||
|
||
Header.contextTypes = { | ||
$: PropTypes.object | ||
} | ||
|
||
export default observer(Header) |
Oops, something went wrong.