|
@@ -25,6 +25,7 @@ const ProfilePage: React.FC = () => {
|
|
|
const [editingAvatar, setEditingAvatar] = useState<string | undefined>(undefined)
|
|
const [editingAvatar, setEditingAvatar] = useState<string | undefined>(undefined)
|
|
|
const [editingAvatarFileId, setEditingAvatarFileId] = useState<number | undefined>(undefined)
|
|
const [editingAvatarFileId, setEditingAvatarFileId] = useState<number | undefined>(undefined)
|
|
|
const [editingNickname, setEditingNickname] = useState('')
|
|
const [editingNickname, setEditingNickname] = useState('')
|
|
|
|
|
+ const [scrollViewKey, setScrollViewKey] = useState(0)
|
|
|
|
|
|
|
|
// 查询用户信用额度
|
|
// 查询用户信用额度
|
|
|
const {
|
|
const {
|
|
@@ -76,6 +77,7 @@ const ProfilePage: React.FC = () => {
|
|
|
]).finally(() => {
|
|
]).finally(() => {
|
|
|
console.debug('个人中心下拉刷新完成')
|
|
console.debug('个人中心下拉刷新完成')
|
|
|
Taro.stopPullDownRefresh()
|
|
Taro.stopPullDownRefresh()
|
|
|
|
|
+ setScrollViewKey(prev => prev + 1)
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -318,12 +320,13 @@ const ProfilePage: React.FC = () => {
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
{/* 内容区域 - 使用 margin-top 定位 */}
|
|
{/* 内容区域 - 使用 margin-top 定位 */}
|
|
|
- <ScrollView className="flex-1 bg-gray-50 tdesign-user-center-content z-10">
|
|
|
|
|
|
|
+ <ScrollView key={scrollViewKey} className="flex-1 bg-gray-50 tdesign-user-center-content z-10">
|
|
|
|
|
+ <View className="flex flex-col flex-shrink-0">
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 欠款信息卡片 */}
|
|
{/* 欠款信息卡片 */}
|
|
|
{creditBalance && creditBalance.usedAmount > 0 && (
|
|
{creditBalance && creditBalance.usedAmount > 0 && (
|
|
|
- <View className="px-4 pt-4">
|
|
|
|
|
|
|
+ <View className="px-4 pt-2">
|
|
|
<View className="bg-white rounded-2xl overflow-hidden">
|
|
<View className="bg-white rounded-2xl overflow-hidden">
|
|
|
<View className="p-5 border-b border-gray-100">
|
|
<View className="p-5 border-b border-gray-100">
|
|
|
<View className="flex items-center justify-between">
|
|
<View className="flex items-center justify-between">
|
|
@@ -388,7 +391,7 @@ const ProfilePage: React.FC = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 订单状态卡片 */}
|
|
{/* 订单状态卡片 */}
|
|
|
- <View className="px-4 pt-4">
|
|
|
|
|
|
|
+ <View className="px-4 pt-2">
|
|
|
<TDesignOrderGroup
|
|
<TDesignOrderGroup
|
|
|
orderTagInfos={orderTagInfos}
|
|
orderTagInfos={orderTagInfos}
|
|
|
title="我的订单"
|
|
title="我的订单"
|
|
@@ -446,6 +449,7 @@ const ProfilePage: React.FC = () => {
|
|
|
v0.0.14 - 小程序版
|
|
v0.0.14 - 小程序版
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
|
|
+ </View>
|
|
|
</ScrollView>
|
|
</ScrollView>
|
|
|
{/* 客服弹窗 */}
|
|
{/* 客服弹窗 */}
|
|
|
<TDesignPopup
|
|
<TDesignPopup
|