diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..115cc02
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,31 @@
+/*
+ * 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: {},
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..14ea590
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+# Windows
+[Dd]esktop.ini
+Thumbs.db
+$RECYCLE.BIN/
+
+# macOS
+.DS_Store
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+
+# Node.js
+node_modules/
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..1ed57c4
--- /dev/null
+++ b/app.js
@@ -0,0 +1,19 @@
+// 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
+ }
+})
diff --git a/app.json b/app.json
new file mode 100644
index 0000000..a83f194
--- /dev/null
+++ b/app.json
@@ -0,0 +1,39 @@
+{
+ "pages": [
+ "pages/index/index",
+ "pages/logs/logs",
+ "pages/commemorate/commemorate",
+ "pages/recommend/recommend"
+ ],
+ "window": {
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#ddd",
+ "navigationBarTitleText": "银幕之旅",
+ "navigationBarTextStyle": "black"
+ },
+ "tabBar": {
+ "selectedColor": "#CD5C5C",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "text": "首页",
+ "iconPath": "static/tabbar/home.png",
+ "selectedIconPath": "static/tabbar/home_selected.png"
+ },
+ {
+ "pagePath": "pages/recommend/recommend",
+ "text": "推荐",
+ "iconPath": "static/tabbar/recommend.png",
+ "selectedIconPath": "static/tabbar/recommend_selected.png"
+ },
+ {
+ "pagePath": "pages/commemorate/commemorate",
+ "text": "纪念",
+ "iconPath": "static/tabbar/commemorate.png",
+ "selectedIconPath": "static/tabbar/commemorate_selected.png"
+ }
+ ]
+ },
+ "style": "v2",
+ "sitemapLocation": "sitemap.json"
+}
\ No newline at end of file
diff --git a/app.wxss b/app.wxss
new file mode 100644
index 0000000..06c6fc9
--- /dev/null
+++ b/app.wxss
@@ -0,0 +1,10 @@
+/**app.wxss**/
+.container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-between;
+ padding: 200rpx 0;
+ box-sizing: border-box;
+}
diff --git a/pages/commemorate/commemorate.js b/pages/commemorate/commemorate.js
new file mode 100644
index 0000000..0bc814c
--- /dev/null
+++ b/pages/commemorate/commemorate.js
@@ -0,0 +1,66 @@
+// pages/commemorate/commemorate.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/commemorate/commemorate.json b/pages/commemorate/commemorate.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/commemorate/commemorate.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/commemorate/commemorate.wxml b/pages/commemorate/commemorate.wxml
new file mode 100644
index 0000000..dfc92bb
--- /dev/null
+++ b/pages/commemorate/commemorate.wxml
@@ -0,0 +1 @@
+纪念哦
diff --git a/pages/commemorate/commemorate.wxss b/pages/commemorate/commemorate.wxss
new file mode 100644
index 0000000..e79c65b
--- /dev/null
+++ b/pages/commemorate/commemorate.wxss
@@ -0,0 +1 @@
+/* pages/commemorate/commemorate.wxss */
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
new file mode 100644
index 0000000..d8bb8be
--- /dev/null
+++ b/pages/index/index.js
@@ -0,0 +1,66 @@
+// index.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/index/index.json b/pages/index/index.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/index/index.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
new file mode 100644
index 0000000..27d39f7
--- /dev/null
+++ b/pages/index/index.wxml
@@ -0,0 +1,40 @@
+
+当季热映🔥
+
\ No newline at end of file
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
new file mode 100644
index 0000000..b739c86
--- /dev/null
+++ b/pages/index/index.wxss
@@ -0,0 +1,25 @@
+/**index.wxss**/
+ image{
+ width: 100rpx;
+ height: 100rpx;
+ border-radius: 50rpx;
+}
+/**容器**/
+ .menu{
+ height: 2000rpx;
+ border: 1rpx solid #ddd;
+/**flex布局**/
+ display:flex;
+/**主轴方向布局,行排列row或者列排列column**/
+ flex-direction: column;
+/**控制孩子布局,flex-start,center,space-around,space-between**/
+ justify-content: space-around;
+/**副轴方向布局**/
+ align-items: center;
+}
+ .menu .item{
+ display:flex;
+ flex-direction: column;
+/**控制了文本的**/
+ align-items: center;
+}
\ No newline at end of file
diff --git a/pages/logs/logs.js b/pages/logs/logs.js
new file mode 100644
index 0000000..85f6aac
--- /dev/null
+++ b/pages/logs/logs.js
@@ -0,0 +1,18 @@
+// logs.js
+const util = require('../../utils/util.js')
+
+Page({
+ data: {
+ logs: []
+ },
+ onLoad() {
+ this.setData({
+ logs: (wx.getStorageSync('logs') || []).map(log => {
+ return {
+ date: util.formatTime(new Date(log)),
+ timeStamp: log
+ }
+ })
+ })
+ }
+})
diff --git a/pages/logs/logs.json b/pages/logs/logs.json
new file mode 100644
index 0000000..3ee76c1
--- /dev/null
+++ b/pages/logs/logs.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "查看启动日志",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/logs/logs.wxml b/pages/logs/logs.wxml
new file mode 100644
index 0000000..0b6b645
--- /dev/null
+++ b/pages/logs/logs.wxml
@@ -0,0 +1,6 @@
+
+
+
+ {{index + 1}}. {{log.date}}
+
+
diff --git a/pages/logs/logs.wxss b/pages/logs/logs.wxss
new file mode 100644
index 0000000..94d4b88
--- /dev/null
+++ b/pages/logs/logs.wxss
@@ -0,0 +1,8 @@
+.log-list {
+ display: flex;
+ flex-direction: column;
+ padding: 40rpx;
+}
+.log-item {
+ margin: 10rpx;
+}
diff --git a/pages/recommend/recommend.js b/pages/recommend/recommend.js
new file mode 100644
index 0000000..768b074
--- /dev/null
+++ b/pages/recommend/recommend.js
@@ -0,0 +1,66 @@
+// pages/recommend/recommend.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/recommend/recommend.json b/pages/recommend/recommend.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/recommend/recommend.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/recommend/recommend.wxml b/pages/recommend/recommend.wxml
new file mode 100644
index 0000000..b00e0bc
--- /dev/null
+++ b/pages/recommend/recommend.wxml
@@ -0,0 +1,39 @@
+可能喜欢(๑•̀ㅂ•́)و✧
+
diff --git a/pages/recommend/recommend.wxss b/pages/recommend/recommend.wxss
new file mode 100644
index 0000000..5ff64c0
--- /dev/null
+++ b/pages/recommend/recommend.wxss
@@ -0,0 +1 @@
+/* pages/recommend/recommend.wxss */
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
new file mode 100644
index 0000000..5a0f86f
--- /dev/null
+++ b/project.config.json
@@ -0,0 +1,52 @@
+{
+ "description": "项目配置文件",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false,
+ "minifyWXML": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "condition": false
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.19.4",
+ "appid": "wx7f67447c72994c39",
+ "projectname": "miniprogram-92",
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ }
+}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
new file mode 100644
index 0000000..bc4582a
--- /dev/null
+++ b/project.private.config.json
@@ -0,0 +1,7 @@
+{
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "projectname": "%E9%93%B6%E5%B9%95%E4%B9%8B%E6%97%85",
+ "setting": {
+ "compileHotReLoad": true
+ }
+}
\ No newline at end of file
diff --git a/sitemap.json b/sitemap.json
new file mode 100644
index 0000000..ca02add
--- /dev/null
+++ b/sitemap.json
@@ -0,0 +1,7 @@
+{
+ "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
+ "rules": [{
+ "action": "allow",
+ "page": "*"
+ }]
+}
\ No newline at end of file
diff --git a/static/tabbar/commemorate.png b/static/tabbar/commemorate.png
new file mode 100644
index 0000000..cdc8d56
Binary files /dev/null and b/static/tabbar/commemorate.png differ
diff --git a/static/tabbar/commemorate_selected.png b/static/tabbar/commemorate_selected.png
new file mode 100644
index 0000000..5d23b1e
Binary files /dev/null and b/static/tabbar/commemorate_selected.png differ
diff --git a/static/tabbar/home.png b/static/tabbar/home.png
new file mode 100644
index 0000000..bf5b370
Binary files /dev/null and b/static/tabbar/home.png differ
diff --git a/static/tabbar/home_selected.png b/static/tabbar/home_selected.png
new file mode 100644
index 0000000..f2df2dd
Binary files /dev/null and b/static/tabbar/home_selected.png differ
diff --git a/static/tabbar/movie.png b/static/tabbar/movie.png
new file mode 100644
index 0000000..99f7985
Binary files /dev/null and b/static/tabbar/movie.png differ
diff --git a/static/tabbar/recommend.png b/static/tabbar/recommend.png
new file mode 100644
index 0000000..c9e3e5a
Binary files /dev/null and b/static/tabbar/recommend.png differ
diff --git a/static/tabbar/recommend_selected.png b/static/tabbar/recommend_selected.png
new file mode 100644
index 0000000..0ff76fc
Binary files /dev/null and b/static/tabbar/recommend_selected.png differ
diff --git a/utils/util.js b/utils/util.js
new file mode 100644
index 0000000..764bc2c
--- /dev/null
+++ b/utils/util.js
@@ -0,0 +1,19 @@
+const formatTime = date => {
+ const year = date.getFullYear()
+ const month = date.getMonth() + 1
+ const day = date.getDate()
+ const hour = date.getHours()
+ const minute = date.getMinutes()
+ const second = date.getSeconds()
+
+ return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
+}
+
+const formatNumber = n => {
+ n = n.toString()
+ return n[1] ? n : `0${n}`
+}
+
+module.exports = {
+ formatTime
+}