Commit 60054e0c authored by Zhuoyu Zhang's avatar Zhuoyu Zhang
Browse files

Initial Commit

parent 141afde5
/*
* Eslint config file
* Documentation: https://eslint.org/docs/user-guide/configuring/
* Install the Eslint extension before using this feature.
*/
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
ecmaFeatures: {
modules: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
globals: {
wx: true,
App: true,
Page: true,
getCurrentPages: true,
getApp: true,
Component: true,
requirePlugin: true,
requireMiniProgram: true,
},
// extends: 'eslint:recommended',
rules: {},
}
# Windows
[Dd]esktop.ini
Thumbs.db
$RECYCLE.BIN/
# macOS
.DS_Store
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
# Node.js
node_modules/
{
"MicroPython.executeButton": [
{
"text": "▶",
"tooltip": "运行",
"alignment": "left",
"command": "extension.executeFile",
"priority": 3.5
}
],
"MicroPython.syncButton": [
{
"text": "$(sync)",
"tooltip": "同步",
"alignment": "left",
"command": "extension.execute",
"priority": 4
}
],
"files.associations": {
"*.vue": "vue",
"*.md": "markdown",
"*.wxml": "html",
"*.wxss": "css"
}
}
\ No newline at end of file
// app.js
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
userInfo: null
}
})
{
"pages": [
"pages/index/index",
"pages/logs/logs",
"pages/video/video",
"pages/wiki/wiki",
"pages/pic/pic",
"pages/music/music"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#b4a1ce",
"navigationBarTitleText": "Rachel Wiki",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#ffffff",
"selectedColor": "#8583bf",
"backgroundColor": "#b4a1ce",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "assets/home.png",
"selectedIconPath": "assets/s_home.png"
},
{
"pagePath": "pages/wiki/wiki",
"text": "百科",
"iconPath": "assets/wiki.png",
"selectedIconPath": "assets/s_wiki.png"
},
{
"pagePath": "pages/music/music",
"text": "音乐",
"iconPath": "assets/music.png",
"selectedIconPath": "assets/s_music.png"
},
{
"pagePath": "pages/video/video",
"text": "视频",
"iconPath": "assets/video.png",
"selectedIconPath": "assets/s_video.png"
},
{
"pagePath": "pages/pic/pic",
"text": "图库",
"iconPath": "assets/pic.png",
"selectedIconPath": "assets/s_pic.png"
}
]
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment