mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix: FollowedLiveStrip 样式优化 + getFollowedLiveRooms 参数调整
This commit is contained in:
@@ -46,13 +46,18 @@ export function FollowedLiveStrip() {
|
|||||||
>
|
>
|
||||||
<View style={styles.pulseRow}>
|
<View style={styles.pulseRow}>
|
||||||
<LivePulse />
|
<LivePulse />
|
||||||
<Text style={{ color: "#fff", fontSize: 9,marginLeft:2 }}>直播</Text>
|
<Text style={{ color: "#fff", fontSize: 9, marginLeft: 2 }}>
|
||||||
|
直播
|
||||||
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<Image
|
<Image
|
||||||
source={{ uri: proxyImageUrl(room.face) }}
|
source={{ uri: proxyImageUrl(room.face) }}
|
||||||
style={[styles.avatar, { backgroundColor: theme.card }]}
|
style={[styles.avatar, { backgroundColor: theme.card }]}
|
||||||
/>
|
/>
|
||||||
<Text style={[styles.name, { color: theme.text }]} numberOfLines={1}>
|
<Text
|
||||||
|
style={[styles.name, { color: theme.text }]}
|
||||||
|
numberOfLines={1}
|
||||||
|
>
|
||||||
{room.uname.length > 5 ? room.uname.slice(0, 5) : room.uname}
|
{room.uname.length > 5 ? room.uname.slice(0, 5) : room.uname}
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
@@ -65,7 +70,7 @@ export function FollowedLiveStrip() {
|
|||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
backgroundColor: "#f4f4f4",
|
backgroundColor: "#f4f4f4",
|
||||||
paddingHorizontal: 3,
|
paddingHorizontal: 4,
|
||||||
paddingVertical: 8,
|
paddingVertical: 8,
|
||||||
},
|
},
|
||||||
scrollContent: {
|
scrollContent: {
|
||||||
|
|||||||
@@ -509,8 +509,7 @@ export async function getDanmaku(cid: number): Promise<DanmakuItem[]> {
|
|||||||
|
|
||||||
export async function getFollowedLiveRooms(): Promise<LiveRoom[]> {
|
export async function getFollowedLiveRooms(): Promise<LiveRoom[]> {
|
||||||
const res = await api.get(`${LIVE_BASE}/xlive/web-ucenter/v1/xfetter/FeedList`, {
|
const res = await api.get(`${LIVE_BASE}/xlive/web-ucenter/v1/xfetter/FeedList`, {
|
||||||
params: { page: 1, page_size: 30, platform: 'web' },
|
params: { page: 1, page_size: 10, platform: 'web' },
|
||||||
headers: { Referer: 'https://live.bilibili.com' },
|
|
||||||
});
|
});
|
||||||
if (res.data?.code !== 0) {
|
if (res.data?.code !== 0) {
|
||||||
console.warn('getFollowedLiveRooms error:', res.data?.code, res.data?.message);
|
console.warn('getFollowedLiveRooms error:', res.data?.code, res.data?.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user