-
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] [小圣杯] 我的持仓显示圣殿 (等我弄懂怎么玩再对接小圣杯新功能)
- [x] [个人中心] 在看、抛弃也显示天数
- Loading branch information
Showing
17 changed files
with
273 additions
and
70 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
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,63 @@ | ||
/* | ||
* @Author: czy0729 | ||
* @Date: 2019-10-05 16:22:34 | ||
* @Last Modified by: czy0729 | ||
* @Last Modified time: 2019-10-05 16:34:28 | ||
*/ | ||
import React from 'react' | ||
import { StyleSheet, View } from 'react-native' | ||
import PropTypes from 'prop-types' | ||
import { observer } from 'mobx-react' | ||
import { Touchable, Text, Image } from '@components' | ||
import { HTMLDecode } from '@utils/html' | ||
import { tinygrailOSS } from '@utils/app' | ||
import { info } from '@utils/ui' | ||
import _ from '@styles' | ||
import { colorText } from '../styles' | ||
|
||
const imageWidth = _.window.width * 0.24 | ||
const marginLeft = (_.window.width - 3 * imageWidth) / 4 | ||
|
||
function ItemTemple({ cover, name, sacrifices }) { | ||
return ( | ||
<View style={styles.item}> | ||
<Image | ||
size={imageWidth} | ||
height={imageWidth * 1.28} | ||
src={tinygrailOSS(cover)} | ||
radius | ||
onPress={() => info('开发中')} | ||
/> | ||
<Touchable style={_.mt.sm} withoutFeedback onPress={() => info('开发中')}> | ||
<Text type='plain' numberOfLines={2} align='center'> | ||
{HTMLDecode(name)} | ||
</Text> | ||
<Text | ||
style={[ | ||
_.mt.xs, | ||
{ | ||
color: colorText | ||
} | ||
]} | ||
align='center' | ||
> | ||
{sacrifices} | ||
</Text> | ||
</Touchable> | ||
</View> | ||
) | ||
} | ||
|
||
ItemTemple.contextTypes = { | ||
$: PropTypes.object | ||
} | ||
|
||
export default observer(ItemTemple) | ||
|
||
const styles = StyleSheet.create({ | ||
item: { | ||
width: imageWidth, | ||
marginTop: _.lg, | ||
marginLeft | ||
} | ||
}) |
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
Oops, something went wrong.