diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/.eslintrc.js" "b/\347\231\275\351\241\272\346\226\207-2020303092/.eslintrc.js"
new file mode 100644
index 0000000000000000000000000000000000000000..115cc02b049fd21c82bc61a7200f51fcec66e528
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/.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/\347\231\275\351\241\272\346\226\207-2020303092/app.js" "b/\347\231\275\351\241\272\346\226\207-2020303092/app.js"
new file mode 100644
index 0000000000000000000000000000000000000000..1ed57c47fc86716c337dee0e196bdbbac27abfe5
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/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/\347\231\275\351\241\272\346\226\207-2020303092/app.json" "b/\347\231\275\351\241\272\346\226\207-2020303092/app.json"
new file mode 100644
index 0000000000000000000000000000000000000000..3d7616ff47d13a172108e6f7516cf389c2d888db
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/app.json"
@@ -0,0 +1,14 @@
+{
+ "pages":[
+ "pages/index/index",
+ "pages/logs/logs"
+ ],
+ "window":{
+ "backgroundTextStyle":"light",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTitleText": "Weixin",
+ "navigationBarTextStyle":"black"
+ },
+ "style": "v2",
+ "sitemapLocation": "sitemap.json"
+}
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/app.wxss" "b/\347\231\275\351\241\272\346\226\207-2020303092/app.wxss"
new file mode 100644
index 0000000000000000000000000000000000000000..06c6fc9ce35b7d02e031b1e8f4636147321dedc1
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/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/\347\231\275\351\241\272\346\226\207-2020303092/images/bg.png" "b/\347\231\275\351\241\272\346\226\207-2020303092/images/bg.png"
new file mode 100644
index 0000000000000000000000000000000000000000..5a11f5d606d6fd065433c4fdd7daf26333b63e6e
Binary files /dev/null and "b/\347\231\275\351\241\272\346\226\207-2020303092/images/bg.png" differ
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/images/img.png" "b/\347\231\275\351\241\272\346\226\207-2020303092/images/img.png"
new file mode 100644
index 0000000000000000000000000000000000000000..dc4c81e120e2a92a2f6484b72157a7e206c6debe
Binary files /dev/null and "b/\347\231\275\351\241\272\346\226\207-2020303092/images/img.png" differ
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/images/lock_icon.png" "b/\347\231\275\351\241\272\346\226\207-2020303092/images/lock_icon.png"
new file mode 100644
index 0000000000000000000000000000000000000000..ce9a3122da4a2193b9e8d9bcdcd0229f3ea1e68a
Binary files /dev/null and "b/\347\231\275\351\241\272\346\226\207-2020303092/images/lock_icon.png" differ
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/images/user_icno.png" "b/\347\231\275\351\241\272\346\226\207-2020303092/images/user_icno.png"
new file mode 100644
index 0000000000000000000000000000000000000000..def107a5107d486cd68b9cfd3f40499181dcb14c
Binary files /dev/null and "b/\347\231\275\351\241\272\346\226\207-2020303092/images/user_icno.png" differ
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/images/\350\256\276\350\256\241\345\233\276.png" "b/\347\231\275\351\241\272\346\226\207-2020303092/images/\350\256\276\350\256\241\345\233\276.png"
new file mode 100644
index 0000000000000000000000000000000000000000..7f2727a0830f64292857902a5835cf30cc8dddab
Binary files /dev/null and "b/\347\231\275\351\241\272\346\226\207-2020303092/images/\350\256\276\350\256\241\345\233\276.png" differ
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.js" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.js"
new file mode 100644
index 0000000000000000000000000000000000000000..0bc1771e0cc0d108cafecb8af2fc8ae31af71eee
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.js"
@@ -0,0 +1,48 @@
+// index.js
+// 获取应用实例
+const app = getApp()
+
+Page({
+ data: {
+ motto: 'Hello World',
+ userInfo: {},
+ hasUserInfo: false,
+ canIUse: wx.canIUse('button.open-type.getUserInfo'),
+ canIUseGetUserProfile: false,
+ canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
+ },
+ // 事件处理函数
+ bindViewTap() {
+ wx.navigateTo({
+ url: '../logs/logs'
+ })
+ },
+ onLoad() {
+ if (wx.getUserProfile) {
+ this.setData({
+ canIUseGetUserProfile: true
+ })
+ }
+ },
+ getUserProfile(e) {
+ // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
+ wx.getUserProfile({
+ desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
+ success: (res) => {
+ console.log(res)
+ this.setData({
+ userInfo: res.userInfo,
+ hasUserInfo: true
+ })
+ }
+ })
+ },
+ getUserInfo(e) {
+ // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息
+ console.log(e)
+ this.setData({
+ userInfo: e.detail.userInfo,
+ hasUserInfo: true
+ })
+ }
+})
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.json" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.json"
new file mode 100644
index 0000000000000000000000000000000000000000..8835af0699ccec004cbe685ef938cd2d63ea7037
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.json"
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxml" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxml"
new file mode 100644
index 0000000000000000000000000000000000000000..d96c76f433b172d7efd648cc37eaa67289d4e20e
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxml"
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 记住我
+
+
+
+
+
+ 注册账户
+ 忘记密码
+
+
+
+
+
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxss" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxss"
new file mode 100644
index 0000000000000000000000000000000000000000..ab91d96bdd62dc36c8c28330715bd871a50fc026
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/index/index.wxss"
@@ -0,0 +1,109 @@
+page{
+ width: 100%;
+ height: 100%;
+}
+
+.bgImg{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+}
+.block{
+ width: 100%;
+ height: 100%;
+
+ /* 子组件布局 flex */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction:column;
+}
+.loginBlock{
+ width: 85%;
+ position: absolute;
+ border-radius:25px;
+ background-color: white;
+
+ /* 子组件布局 flex */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction:inherit;
+}
+
+.img{
+ width: 85% ;
+ margin-bottom: 8%;
+}
+
+.user{
+ height: 80rpx;
+ width: 80%;
+ border:1px solid rgba(119, 119, 243);
+ border-radius: 50rpx;
+ margin-bottom: 20rpx;
+
+ display: flex;
+ flex-direction: row;
+}
+.userImg{
+ width: 50rpx;
+ height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ margin-top: 15rpx;
+ margin-bottom: 15rpx;
+}
+.userInput{
+ font-size: 30rpx;
+ height: 80rpx;
+}
+
+.Input{
+ color: rgba(119, 119, 243);
+}
+
+.password{
+ height: 80rpx;
+ width: 80%;
+ border:1px solid rgba(119, 119, 243);
+ border-radius: 50rpx;
+ margin-bottom: 25rpx;
+
+ display: flex;
+ flex-direction: row;
+}
+.passwordImg{
+ width: 50rpx;
+ height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ margin-top: 15rpx;
+ margin-bottom: 15rpx;
+}
+.passwordInput{
+ font-size: 30rpx;
+ height: 80rpx;
+}
+
+.rememberMe{
+ width: 80%;
+ color: rgba(119, 119, 243);
+ margin-bottom: 90rpx;
+}
+
+.loginButton{
+ background-image:linear-gradient(to right,#64c2ab,#10ecb6);
+ color: white;
+ border-radius: 100rpx;
+ font-weight: 500;
+ font-size: 35rpx;
+ margin-bottom: 40rpx;
+}
+
+.optionText{
+ width: 220rpx;
+ font-size: 22rpx;
+ color: rgba(119, 119, 243);
+ margin-bottom: 100rpx;
+}
\ No newline at end of file
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.js" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.js"
new file mode 100644
index 0000000000000000000000000000000000000000..85f6aac5ab16db728fa27cdf75c4ab2126b1105b
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/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/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.json" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.json"
new file mode 100644
index 0000000000000000000000000000000000000000..3ee76c183c748834923c80f78292e46d739d556e
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.json"
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "查看启动日志",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxml" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxml"
new file mode 100644
index 0000000000000000000000000000000000000000..0b6b6456f7ac8b92181e8aff296890fd7d3d86a3
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxml"
@@ -0,0 +1,6 @@
+
+
+
+ {{index + 1}}. {{log.date}}
+
+
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxss" "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxss"
new file mode 100644
index 0000000000000000000000000000000000000000..94d4b88a27dcea1fbaa6da8fc19c6a8821983924
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/pages/logs/logs.wxss"
@@ -0,0 +1,8 @@
+.log-list {
+ display: flex;
+ flex-direction: column;
+ padding: 40rpx;
+}
+.log-item {
+ margin: 10rpx;
+}
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/project.config.json" "b/\347\231\275\351\241\272\346\226\207-2020303092/project.config.json"
new file mode 100644
index 0000000000000000000000000000000000000000..00fb438e7f35bdcfde7620d18da2a5e145ba681b
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/project.config.json"
@@ -0,0 +1,69 @@
+{
+ "description": "项目配置文件",
+ "packOptions": {
+ "ignore": []
+ },
+ "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
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.20.0",
+ "appid": "wx154372a45c8a93f8",
+ "projectname": "miniprogram-1",
+ "debugOptions": {
+ "hidedInDevtools": []
+ },
+ "scripts": {},
+ "staticServerOptions": {
+ "baseURL": "",
+ "servePath": ""
+ },
+ "isGameTourist": false,
+ "condition": {
+ "search": {
+ "list": []
+ },
+ "conversation": {
+ "list": []
+ },
+ "game": {
+ "list": []
+ },
+ "plugin": {
+ "list": []
+ },
+ "gamePlugin": {
+ "list": []
+ },
+ "miniprogram": {
+ "list": []
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\231\275\351\241\272\346\226\207-2020303092/sitemap.json" "b/\347\231\275\351\241\272\346\226\207-2020303092/sitemap.json"
new file mode 100644
index 0000000000000000000000000000000000000000..ca02add20b581be471b8d17f887b8e8337070546
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/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/\347\231\275\351\241\272\346\226\207-2020303092/utils/util.js" "b/\347\231\275\351\241\272\346\226\207-2020303092/utils/util.js"
new file mode 100644
index 0000000000000000000000000000000000000000..764bc2ce26ab9b55a21cbb069dcf084a8418dffd
--- /dev/null
+++ "b/\347\231\275\351\241\272\346\226\207-2020303092/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
+}