commit
822f6b2fc7
10 changed files with 70 additions and 0 deletions
@ -0,0 +1,2 @@ |
|||
.tea |
|||
node_modules |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"enableLegacyRemoteDebug": false |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
page { |
|||
background: #f7f7f7; |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
App({ |
|||
onLaunch(options) { |
|||
// 第一次打开
|
|||
// options.query == {number:1}
|
|||
console.info('App onLaunch'); |
|||
}, |
|||
onShow(options) { |
|||
// 从后台被 scheme 重新打开
|
|||
// options.query == {number:1}
|
|||
}, |
|||
}); |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
"pages": [ |
|||
"pages/index/index" |
|||
], |
|||
"window": { |
|||
"defaultTitle": "My App" |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"enableAppxNg": true |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
|
|||
<view> |
|||
this is a blank page |
|||
</view> |
|||
@ -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', |
|||
}; |
|||
}, |
|||
}); |
|||
@ -0,0 +1 @@ |
|||
{} |
|||
|
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in new issue