feat(profile): 在个人资料页面显示免费AI使用次数
This commit is contained in:
@@ -215,6 +215,14 @@ export default function PersonalScreen() {
|
|||||||
{userProfile.memberNumber && (
|
{userProfile.memberNumber && (
|
||||||
<Text style={styles.userMemberNumber}>会员编号: {userProfile.memberNumber}</Text>
|
<Text style={styles.userMemberNumber}>会员编号: {userProfile.memberNumber}</Text>
|
||||||
)}
|
)}
|
||||||
|
{userProfile.freeUsageCount !== undefined && (
|
||||||
|
<View style={styles.aiUsageContainer}>
|
||||||
|
<Ionicons name="sparkles-outline" size={12} color="#9370DB" />
|
||||||
|
<Text style={styles.aiUsageText}>
|
||||||
|
免费AI次数: {userProfile.isVip ? '无限' : userProfile.freeUsageCount}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
{isLgAvaliable ? (
|
{isLgAvaliable ? (
|
||||||
<TouchableOpacity onPress={() => pushIfAuthedElseLogin('/profile/edit')}>
|
<TouchableOpacity onPress={() => pushIfAuthedElseLogin('/profile/edit')}>
|
||||||
@@ -501,6 +509,17 @@ const styles = StyleSheet.create({
|
|||||||
color: '#6C757D',
|
color: '#6C757D',
|
||||||
marginTop: 4,
|
marginTop: 4,
|
||||||
},
|
},
|
||||||
|
aiUsageContainer: {
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
marginTop: 4,
|
||||||
|
},
|
||||||
|
aiUsageText: {
|
||||||
|
fontSize: 10,
|
||||||
|
color: '#9370DB',
|
||||||
|
marginLeft: 2,
|
||||||
|
fontWeight: '500',
|
||||||
|
},
|
||||||
editButton: {
|
editButton: {
|
||||||
backgroundColor: '#9370DB',
|
backgroundColor: '#9370DB',
|
||||||
paddingHorizontal: 16,
|
paddingHorizontal: 16,
|
||||||
|
|||||||
Reference in New Issue
Block a user