|
|
@@ -62,7 +62,7 @@ interface StoreItem {
|
|
|
safeFlag: number;
|
|
|
magicAmount?: number;
|
|
|
fromRelationType: string;
|
|
|
- spu: { id: string; name: string; cover: string };
|
|
|
+ spu: { id: string; name: string; cover: string; marketPrice?: number };
|
|
|
}
|
|
|
|
|
|
interface PickupItem {
|
|
|
@@ -255,6 +255,9 @@ export default function StoreScreen() {
|
|
|
</ImageBackground>
|
|
|
<View style={styles.goodsInfo}>
|
|
|
<Text style={styles.goodsName} numberOfLines={2}>{item.spu?.name}</Text>
|
|
|
+ {(item.spu?.marketPrice ?? 0) > 0 && (
|
|
|
+ <Text style={styles.goodsPrice}>¥{item.spu?.marketPrice}</Text>
|
|
|
+ )}
|
|
|
<Text style={styles.goodsSource}>从{FROM_TYPE_MAP[item.fromRelationType] || '其他'}获得</Text>
|
|
|
</View>
|
|
|
<Text style={styles.arrow}>{'>'}</Text>
|
|
|
@@ -582,7 +585,8 @@ const styles = StyleSheet.create({
|
|
|
goodsImgBg: { width: 65, height: 65, justifyContent: 'center', alignItems: 'center', marginRight: 12, padding: 7 },
|
|
|
goodsImg: { width: '100%', height: '100%' },
|
|
|
goodsInfo: { flex: 1, justifyContent: 'center', paddingRight: 8 },
|
|
|
- goodsName: { fontSize: 15, color: '#333', fontWeight: 'bold', marginBottom: 6 },
|
|
|
+ goodsName: { fontSize: 15, color: '#333', fontWeight: 'bold', marginBottom: 4 },
|
|
|
+ goodsPrice: { fontSize: 14, color: '#ff6b00', fontWeight: 'bold', marginBottom: 4 },
|
|
|
goodsDesc: { fontSize: 12, color: '#999' },
|
|
|
arrowIcon: { fontSize: 18, color: '#ccc', marginLeft: 8 },
|
|
|
|