commit 822f6b2fc75e902ed40fbfe01f597a9fbf41e363 Author: jiannibang <271381693@qq.com> Date: Thu Jul 28 09:21:36 2022 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b8c06c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.tea +node_modules diff --git a/.mini-ide/project-ide.json b/.mini-ide/project-ide.json new file mode 100644 index 0000000..6b73390 --- /dev/null +++ b/.mini-ide/project-ide.json @@ -0,0 +1,3 @@ +{ + "enableLegacyRemoteDebug": false +} \ No newline at end of file diff --git a/app.acss b/app.acss new file mode 100644 index 0000000..49ffd7d --- /dev/null +++ b/app.acss @@ -0,0 +1,3 @@ +page { + background: #f7f7f7; +} diff --git a/app.js b/app.js new file mode 100644 index 0000000..a8bb15e --- /dev/null +++ b/app.js @@ -0,0 +1,11 @@ +App({ + onLaunch(options) { + // 第一次打开 + // options.query == {number:1} + console.info('App onLaunch'); + }, + onShow(options) { + // 从后台被 scheme 重新打开 + // options.query == {number:1} + }, +}); diff --git a/app.json b/app.json new file mode 100644 index 0000000..c8ddc95 --- /dev/null +++ b/app.json @@ -0,0 +1,8 @@ +{ + "pages": [ + "pages/index/index" + ], + "window": { + "defaultTitle": "My App" + } +} diff --git a/mini.project.json b/mini.project.json new file mode 100644 index 0000000..6a67879 --- /dev/null +++ b/mini.project.json @@ -0,0 +1,3 @@ +{ + "enableAppxNg": true +} \ No newline at end of file diff --git a/pages/index/index.axml b/pages/index/index.axml new file mode 100644 index 0000000..0b4f933 --- /dev/null +++ b/pages/index/index.axml @@ -0,0 +1,4 @@ + + + this is a blank page + diff --git a/pages/index/index.js b/pages/index/index.js new file mode 100644 index 0000000..f225d33 --- /dev/null +++ b/pages/index/index.js @@ -0,0 +1,35 @@ +Page({ + onLoad(query) { + // 页面加载 + console.info(`Page onLoad with query: ${JSON.stringify(query)}`); + }, + onReady() { + // 页面加载完成 + }, + onShow() { + // 页面显示 + }, + onHide() { + // 页面隐藏 + }, + onUnload() { + // 页面被关闭 + }, + onTitleClick() { + // 标题被点击 + }, + onPullDownRefresh() { + // 页面被下拉 + }, + onReachBottom() { + // 页面被拉到底部 + }, + onShareAppMessage() { + // 返回自定义分享信息 + return { + title: 'My App', + desc: 'My App description', + path: 'pages/index/index', + }; + }, +}); diff --git a/pages/index/index.json b/pages/index/index.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/pages/index/index.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/snapshot.png b/snapshot.png new file mode 100644 index 0000000..3a78436 Binary files /dev/null and b/snapshot.png differ