diff --git a/src/pages-sub/asset-detail/index.vue b/src/pages-sub/asset-detail/index.vue
new file mode 100644
index 0000000..dc88dfb
--- /dev/null
+++ b/src/pages-sub/asset-detail/index.vue
@@ -0,0 +1,79 @@
+
+{
+ style: {
+ navigationBarTitleText: '资金明细',
+ navigationBarBackgroundColor: '#fff',
+ navigationStyle: 'custom',
+ },
+}
+
+
+
+
+
+
+
+
+
+ 资金明细
+
+
+
+
+ {{ item.memo }}
+ {{ item.createtime }}
+
+
+
+ {{ item.money }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/asset/index.vue b/src/pages-sub/asset/index.vue
index 62499d5..1b5d5a4 100644
--- a/src/pages-sub/asset/index.vue
+++ b/src/pages-sub/asset/index.vue
@@ -37,18 +37,10 @@ const { list: assetList, onReload } = useListPageRequest(
onLoad((options) => {
tabIndex.value = Number(options.tabIndex ?? 0)
+ onReload({
+ flagdata: unref(tabList)[tabIndex.value].value,
+ })
})
-watch(
- () => tabIndex.value,
- (index) => {
- onReload({
- type: unref(tabList)[index].value,
- })
- },
- {
- immediate: true,
- },
-)
diff --git a/src/pages.json b/src/pages.json
index b7c0cc2..15a5497 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -124,6 +124,15 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "asset-detail/index",
+ "type": "page",
+ "style": {
+ "navigationBarTitleText": "资金明细",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "convert/index",
"type": "page",
diff --git a/src/pages/my/index.vue b/src/pages/my/index.vue
index 95824d9..f8069bb 100644
--- a/src/pages/my/index.vue
+++ b/src/pages/my/index.vue
@@ -152,6 +152,12 @@ const handleAsset = (index = 0) => {
})
}
+const handleAssetDetail = () => {
+ uni.navigateTo({
+ url: '/pages-sub/asset-detail/index',
+ })
+}
+
const handleBankCard = () => {
uni.navigateTo({
url: '/pages-sub/withdrawal-type/index',
@@ -205,7 +211,7 @@ const commonList = [
{
title: '资金明细',
icon: CommonIcon6,
- handle: () => handleAsset(0),
+ handle: handleAssetDetail,
},
{
title: '申请理赔',
diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts
index 3c5ee18..07174e3 100644
--- a/src/types/uni-pages.d.ts
+++ b/src/types/uni-pages.d.ts
@@ -12,6 +12,7 @@ interface NavigateToOptions {
"/pages/my/index" |
"/pages/register/index" |
"/pages-sub/asset/index" |
+ "/pages-sub/asset-detail/index" |
"/pages-sub/convert/index" |
"/pages-sub/demo/index" |
"/pages-sub/hot-news/index" |