调试接口

This commit is contained in:
wangxiaowei
2025-12-20 22:44:32 +08:00
parent fcd1e10129
commit dcf36df5aa
12 changed files with 219 additions and 130 deletions

View File

@ -30,7 +30,7 @@
</view>
<view class="flex flex-col items-center justify-start">
<view class="font-400 text-24rpx text-[#606266] text-34rpx">待提现</view>
<view class="font-bold text-32rpx text-[#303133] leading-34rpx mt-14rpx">{{ userFinance.user_money }}</view>
<view class="font-bold text-32rpx text-[#303133] leading-34rpx mt-14rpx">{{ userFinance.balance }}</view>
</view>
</view>
</view>
@ -81,7 +81,7 @@
import { router } from '@/utils/tools'
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js"
import { getStoreIncomeList } from '@/api/store'
import { getStoreIncomeList, getStoreDetails } from '@/api/store'
import { useStoreStore } from '@/store'
import { getUserInfo } from '@/api/user'
@ -115,10 +115,10 @@
*/
handleGetFinanceData: async () => {
try {
const res = await getUserInfo()
userFinance.value = res
} catch(e) {
}
const res = await getStoreDetails(useStore.defaultStore.id)
userFinance.value = res.details
console.log("🚀 ~ userFinance.value:", userFinance.value)
} catch(e) { }
},
upCallback: (mescroll) => {
@ -130,7 +130,6 @@
}
getStoreIncomeList(filter).then((res) => {
console.log("🚀 ~ res:", res)
const curPageData = res.list || [] // 当前页数据
if(mescroll.num == 1) list.value = [] // 第一页需手动制空列表
list.value = list.value.concat(curPageData) //追加新数据