提交 ba3c10b6 编写于 作者: 杜庆泉's avatar 杜庆泉

long-list 示例修改数据结构

上级 e27835aa
...@@ -57,7 +57,7 @@ import { readFile, ReadFileOptions,ReadFileSuccessResult } from '@/uni_modules/u ...@@ -57,7 +57,7 @@ import { readFile, ReadFileOptions,ReadFileSuccessResult } from '@/uni_modules/u
const items = [] as Item[]; const items = [] as Item[];
const jsonArr = JSON.parse(content); const jsonArr = JSON.parse(content);
jsonArr?.forEach((res)=>{ jsonArr?.forEach((res)=>{
const json = res as JSONObject; const json = res as UTSJSONObject;
const title = json["title"] as string; const title = json["title"] as string;
const subTitle = json["subTitle"] as string; const subTitle = json["subTitle"] as string;
const img = json["img"] as string; const img = json["img"] as string;
......
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
*/ */
{ {
name: 'list(新闻)', name: 'list(新闻)',
url: "pages/component/list/list", url: "/pages/component/list/list",
}, },
{ {
name: 'list', name: 'list',
url: "pages/component/long-list/long-list", url: "/pages/component/long-list/long-list",
} }
] as Page[] ] as Page[]
}, { }, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册