|
@@ -15,7 +15,7 @@ import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
|
|
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
// 必须导入需要用到的页面生命周期(即使在当前页面上没有直接使用到)
|
|
// 必须导入需要用到的页面生命周期(即使在当前页面上没有直接使用到)
|
|
|
|
|
|
-import { getWalletInfo as _getWalletInfo, envelopeList } from '@/api/wallet'
|
|
|
|
|
|
+import { getAccountInfo as _getAccountInfo, envelopeList } from '@/api/wallet'
|
|
import { formatNumber } from '@/utils'
|
|
import { formatNumber } from '@/utils'
|
|
import { toPage } from '@/utils/page'
|
|
import { toPage } from '@/utils/page'
|
|
|
|
|
|
@@ -33,8 +33,8 @@ const dayType = ref(1)
|
|
// 搜索结果
|
|
// 搜索结果
|
|
const dataList = ref([])
|
|
const dataList = ref([])
|
|
const walletInfo = ref<any>({})
|
|
const walletInfo = ref<any>({})
|
|
-async function getWalletInfo() {
|
|
|
|
- const res = await _getWalletInfo()
|
|
|
|
|
|
+async function getAccountInfo() {
|
|
|
|
+ const res = await _getAccountInfo()
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.code === '200') {
|
|
if (res.code === '200') {
|
|
walletInfo.value = res.data
|
|
walletInfo.value = res.data
|
|
@@ -55,7 +55,7 @@ async function queryList(pageNo, pageSize) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
onShow(() => {
|
|
onShow(() => {
|
|
- getWalletInfo()
|
|
|
|
|
|
+ getAccountInfo()
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|