diff --git a/pages.json b/pages.json index 494ccef..dfca67d 100755 --- a/pages.json +++ b/pages.json @@ -1,27 +1,35 @@ { - "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + "pages": [ { "path": "pages/index/index", "style": { - "navigationBarTitleText": "资产" + "navigationBarTitleText": "资产", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" } }, { "path": "pages/strategies/strategies", "style": { - "navigationBarTitleText": "策略库" + "navigationBarTitleText": "策略库", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" } }, { "path": "pages/me/me", "style": { - "navigationBarTitleText": "我的" + "navigationBarTitleText": "我的", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" } }, { "path": "pages/detail/detail", "style": { - "navigationBarTitleText": "" + "navigationBarTitleText": "", + "enablePullDownRefresh": true, + "backgroundTextStyle": "dark" } }, { @@ -75,4 +83,4 @@ "^u-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue" } } -} \ No newline at end of file +} diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index be54a7b..d4e0b11 100755 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -257,9 +257,16 @@ 最近交易记录 + 共 {{ logTotal }} 条 - + + + + 暂无交易记录 + + + {{ log.date }} @@ -281,6 +288,13 @@ {{ log.type === 'buy' ? '买入' : '卖出' }} 操作 + + + + 加载中... + 没有更多了 + 上拉加载更多 + @@ -551,6 +565,7 @@ \ No newline at end of file diff --git a/pages/me/me.vue b/pages/me/me.vue index 14f66e7..c2d48f7 100755 --- a/pages/me/me.vue +++ b/pages/me/me.vue @@ -80,6 +80,7 @@ diff --git a/todo.md b/todo.md index 8b0db90..cb2b5de 100644 --- a/todo.md +++ b/todo.md @@ -47,10 +47,10 @@ - [x] config.vue: 替换 4 处 u-input 为原生 input - [x] detail.vue: 替换 1 处 u-input 为原生 input -### P3 - 功能增强 -- [ ] 下拉刷新 -- [ ] 上拉加载更多 -- [ ] 空状态优化 +### P3 - 功能增强 ✅ 完成 +- [x] 下拉刷新(index / strategies / me / detail) +- [x] 上拉加载(detail 交易记录分页) +- [x] 空状态优化(index / strategies / detail) ### P4 - TypeScript 迁移 🚀 进行中 详细计划见 `TYPESCRIPT_MIGRATION.md` diff --git a/tsconfig.json b/tsconfig.json index 9c53db1..f0efbb0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,7 @@ "lib": ["ES2019", "DOM"], "skipLibCheck": true, "noEmit": true, + "ignoreDeprecations": "6.0", "baseUrl": ".", "paths": { "@/*": ["./*"],