diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b601dc1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+# 本地生活
+
\ No newline at end of file
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..042e029
--- /dev/null
+++ b/app.json
@@ -0,0 +1,15 @@
+{
+ "pages": [
+ "pages/index/index",
+ "pages/logs/logs"
+ ],
+ "window": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "Weixin",
+ "navigationBarBackgroundColor": "#ffffff"
+ },
+ "style": "v2",
+ "componentFramework": "glass-easel",
+ "sitemapLocation": "sitemap.json",
+ "lazyCodeLoading": "requiredComponents"
+}
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/images/chang (1).png b/images/chang (1).png
new file mode 100644
index 0000000..2fb6767
Binary files /dev/null and b/images/chang (1).png differ
diff --git a/images/chang.png b/images/chang.png
new file mode 100644
index 0000000..2fb6767
Binary files /dev/null and b/images/chang.png differ
diff --git a/images/che (1).png b/images/che (1).png
new file mode 100644
index 0000000..be4827d
Binary files /dev/null and b/images/che (1).png differ
diff --git a/images/che.png b/images/che.png
new file mode 100644
index 0000000..be4827d
Binary files /dev/null and b/images/che.png differ
diff --git a/images/fang.png b/images/fang.png
new file mode 100644
index 0000000..285c194
Binary files /dev/null and b/images/fang.png differ
diff --git a/images/gong.png b/images/gong.png
new file mode 100644
index 0000000..acd4ced
Binary files /dev/null and b/images/gong.png differ
diff --git a/images/hun.png b/images/hun.png
new file mode 100644
index 0000000..f1c2f75
Binary files /dev/null and b/images/hun.png differ
diff --git a/images/shi.png b/images/shi.png
new file mode 100644
index 0000000..b45c0b3
Binary files /dev/null and b/images/shi.png differ
diff --git a/images/swiper01.jpg b/images/swiper01.jpg
new file mode 100644
index 0000000..632daca
Binary files /dev/null and b/images/swiper01.jpg differ
diff --git a/images/swiper02.jpg b/images/swiper02.jpg
new file mode 100644
index 0000000..3008816
Binary files /dev/null and b/images/swiper02.jpg differ
diff --git a/images/xiu.png b/images/xiu.png
new file mode 100644
index 0000000..56ae5f7
Binary files /dev/null and b/images/xiu.png differ
diff --git a/images/xue.png b/images/xue.png
new file mode 100644
index 0000000..35b5f1c
Binary files /dev/null and b/images/xue.png differ
diff --git a/images/yu.png b/images/yu.png
new file mode 100644
index 0000000..002229d
Binary files /dev/null and b/images/yu.png differ
diff --git a/pages/grid/grid.js b/pages/grid/grid.js
new file mode 100644
index 0000000..e69de29
diff --git a/pages/grid/grid.json b/pages/grid/grid.json
new file mode 100644
index 0000000..e69de29
diff --git a/pages/grid/grid.wxml b/pages/grid/grid.wxml
new file mode 100644
index 0000000..6b915e2
--- /dev/null
+++ b/pages/grid/grid.wxml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+ 美食
+
+
+
+ 洗浴
+
+
+
+ 汽车
+
+
+
+ 唱歌
+
+
+
+ 住宿
+
+
+
+ 学习
+
+
+
+ 工作
+
+
+
+ 结婚
+
+
\ No newline at end of file
diff --git a/pages/grid/grid.wxss b/pages/grid/grid.wxss
new file mode 100644
index 0000000..9dba76e
--- /dev/null
+++ b/pages/grid/grid.wxss
@@ -0,0 +1,39 @@
+.grids {
+ display: flex;
+ flex-wrap: wrap;
+}
+
+.grids .item {
+ width: 250rpx;
+ height: 250rpx;
+ border-right: 1rpx solid #eee;
+ border-bottom: 1rpx solid #eee;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+
+.grids .item:nth-child(3) {
+ border-right: 0;
+}
+
+.grids .item:nth-child(6) {
+ border-right: 0;
+}
+
+.grids .item:nth-child(9) {
+ border-right: 0;
+}
+
+.grids .item image {
+ width: 70rpx;
+ height: 70rpx;
+}
+
+.grids .item text {
+ color: #999;
+ font-size: 28rpx;
+ margin-top: 20rpx;
+}
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
new file mode 100644
index 0000000..96c667f
--- /dev/null
+++ b/pages/index/index.js
@@ -0,0 +1,8 @@
+Page({
+ data: {
+ // 这里可以定义页面的数据
+ },
+ onLoad: function () {
+ // 页面加载时的逻辑
+ }
+})
\ No newline at end of file
diff --git a/pages/index/index.json b/pages/index/index.json
new file mode 100644
index 0000000..02dae81
--- /dev/null
+++ b/pages/index/index.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "本地生活"
+}
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
new file mode 100644
index 0000000..6b915e2
--- /dev/null
+++ b/pages/index/index.wxml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+ 美食
+
+
+
+ 洗浴
+
+
+
+ 汽车
+
+
+
+ 唱歌
+
+
+
+ 住宿
+
+
+
+ 学习
+
+
+
+ 工作
+
+
+
+ 结婚
+
+
\ No newline at end of file
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
new file mode 100644
index 0000000..9dba76e
--- /dev/null
+++ b/pages/index/index.wxss
@@ -0,0 +1,39 @@
+.grids {
+ display: flex;
+ flex-wrap: wrap;
+}
+
+.grids .item {
+ width: 250rpx;
+ height: 250rpx;
+ border-right: 1rpx solid #eee;
+ border-bottom: 1rpx solid #eee;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+
+.grids .item:nth-child(3) {
+ border-right: 0;
+}
+
+.grids .item:nth-child(6) {
+ border-right: 0;
+}
+
+.grids .item:nth-child(9) {
+ border-right: 0;
+}
+
+.grids .item image {
+ width: 70rpx;
+ height: 70rpx;
+}
+
+.grids .item text {
+ color: #999;
+ font-size: 28rpx;
+ margin-top: 20rpx;
+}
\ 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..b55b5a2
--- /dev/null
+++ b/pages/logs/logs.json
@@ -0,0 +1,4 @@
+{
+ "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..85cf1bf
--- /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..33f9d9e
--- /dev/null
+++ b/pages/logs/logs.wxss
@@ -0,0 +1,16 @@
+page {
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+.scrollarea {
+ flex: 1;
+ overflow-y: hidden;
+}
+.log-item {
+ margin-top: 20rpx;
+ text-align: center;
+}
+.log-item:last-child {
+ padding-bottom: env(safe-area-inset-bottom);
+}
diff --git a/project.config.json b/project.config.json
new file mode 100644
index 0000000..1ebeae3
--- /dev/null
+++ b/project.config.json
@@ -0,0 +1,41 @@
+{
+ "compileType": "miniprogram",
+ "libVersion": "3.10.2",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "minified": true,
+ "enhance": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmRelationList": [],
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "compileWorklet": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "packNpmManually": false,
+ "minifyWXSS": true,
+ "minifyWXML": true,
+ "localPlugins": false,
+ "condition": false,
+ "swc": false,
+ "disableSWC": true,
+ "disableUseStrict": false,
+ "useCompilerPlugins": false
+ },
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "auto",
+ "tabSize": 2
+ },
+ "appid": "wx6e52167a149f40ff",
+ "simulatorPluginLibVersion": {}
+}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
new file mode 100644
index 0000000..cdb25ed
--- /dev/null
+++ b/project.private.config.json
@@ -0,0 +1,24 @@
+{
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "projectname": "%2525E6%25259C%2525AC%2525E5%25259C%2525B0%2525E7%252594%25259F%2525E6%2525B4%2525BB",
+ "setting": {
+ "compileHotReLoad": true,
+ "urlCheck": true,
+ "coverView": true,
+ "lazyloadPlaceholderEnable": false,
+ "skylineRenderEnable": false,
+ "preloadBackgroundData": false,
+ "autoAudits": false,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "showShadowRootInWxmlPanel": true,
+ "useStaticServer": false,
+ "useLanDebug": false,
+ "showES6CompileOption": false,
+ "bigPackageSizeSupport": false,
+ "checkInvalidKey": true,
+ "ignoreDevUnusedFiles": true
+ },
+ "libVersion": "3.10.2",
+ "condition": {}
+}
\ No newline at end of file
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..108d08f
Binary files /dev/null and b/screenshot.png differ
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/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
+}