diff --git a/2020302358/app.js b/2020302358/app.js new file mode 100644 index 0000000000000000000000000000000000000000..1ed57c47fc86716c337dee0e196bdbbac27abfe5 --- /dev/null +++ b/2020302358/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/2020302358/app.json b/2020302358/app.json new file mode 100644 index 0000000000000000000000000000000000000000..debae6b10d18654aa6227bf3bef2759113838b06 --- /dev/null +++ b/2020302358/app.json @@ -0,0 +1,15 @@ +{ + "pages": [ + "pages/index/index", + "pages/logs/logs", + "pages/cover" + ], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "Weixin", + "navigationBarTextStyle": "black" + }, + "style": "v2", + "sitemapLocation": "sitemap.json" +} \ No newline at end of file diff --git a/2020302358/app.wxss b/2020302358/app.wxss new file mode 100644 index 0000000000000000000000000000000000000000..06c6fc9ce35b7d02e031b1e8f4636147321dedc1 --- /dev/null +++ b/2020302358/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/2020302358/img/bg.png b/2020302358/img/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..5a11f5d606d6fd065433c4fdd7daf26333b63e6e Binary files /dev/null and b/2020302358/img/bg.png differ diff --git a/2020302358/img/img.png b/2020302358/img/img.png new file mode 100644 index 0000000000000000000000000000000000000000..dc4c81e120e2a92a2f6484b72157a7e206c6debe Binary files /dev/null and b/2020302358/img/img.png differ diff --git a/2020302358/img/lock_icon.png b/2020302358/img/lock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce9a3122da4a2193b9e8d9bcdcd0229f3ea1e68a Binary files /dev/null and b/2020302358/img/lock_icon.png differ diff --git a/2020302358/img/user_icno.png b/2020302358/img/user_icno.png new file mode 100644 index 0000000000000000000000000000000000000000..def107a5107d486cd68b9cfd3f40499181dcb14c Binary files /dev/null and b/2020302358/img/user_icno.png differ diff --git "a/2020302358/img/\350\256\276\350\256\241\345\233\276.png" "b/2020302358/img/\350\256\276\350\256\241\345\233\276.png" new file mode 100644 index 0000000000000000000000000000000000000000..7f2727a0830f64292857902a5835cf30cc8dddab Binary files /dev/null and "b/2020302358/img/\350\256\276\350\256\241\345\233\276.png" differ diff --git a/2020302358/pages/cover.js b/2020302358/pages/cover.js new file mode 100644 index 0000000000000000000000000000000000000000..08d46439629db3f16e102b48ee6fc1f6eb06a754 --- /dev/null +++ b/2020302358/pages/cover.js @@ -0,0 +1,66 @@ +// pages/cover.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/2020302358/pages/cover.wxml b/2020302358/pages/cover.wxml new file mode 100644 index 0000000000000000000000000000000000000000..cbc4a5ba0d2d85954c73b1572f256356b46b2bc8 --- /dev/null +++ b/2020302358/pages/cover.wxml @@ -0,0 +1,2 @@ + +pages/cover.wxml diff --git a/2020302358/pages/index/index.js b/2020302358/pages/index/index.js new file mode 100644 index 0000000000000000000000000000000000000000..58380dc2570505bd8dfce14f805cad867f60362a --- /dev/null +++ b/2020302358/pages/index/index.js @@ -0,0 +1,67 @@ +// index.js +// 获取应用实例 +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/2020302358/pages/index/index.json b/2020302358/pages/index/index.json new file mode 100644 index 0000000000000000000000000000000000000000..965b8e80636af3ea5cd3340c04c3b0b3c25d5685 --- /dev/null +++ b/2020302358/pages/index/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationStyle": "custom" +} \ No newline at end of file diff --git a/2020302358/pages/index/index.wxml b/2020302358/pages/index/index.wxml new file mode 100644 index 0000000000000000000000000000000000000000..5849395aa5abfcf0cde84bbadfbb0989558e6595 --- /dev/null +++ b/2020302358/pages/index/index.wxml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + 记住我 + + + + 注册账号 + 忘记密码 + + + \ No newline at end of file diff --git a/2020302358/pages/index/index.wxss b/2020302358/pages/index/index.wxss new file mode 100644 index 0000000000000000000000000000000000000000..9c69b5c050929e75cbf1d977d9918d4c2df258e4 --- /dev/null +++ b/2020302358/pages/index/index.wxss @@ -0,0 +1,93 @@ + + +page{ + width:100%; + height:100% +} +.backgroud{ +height:100%; +width:100; +position:absolute; + +} +.container{ +height:100%; +width:100%; +justify-content:center; +align-items: center; +position:absolute; +display:flex; +position:absolute; + +} +.content{ + width: 600rpx; + background-color: white; + border-radius: 20px; + display: flex; + flex-direction: column; + align-items: center; + color:rgb(134, 134, 206); +} +.content-image{ + width:500rpx; +} +.content-user{ +height:70rpx; +width:400rpx; +display:flex; +border: rgb(134, 134, 206) solid 1px; + color: rgb(134, 134, 206) ; + border-radius: 40rpx; + margin-bottom: 20rpx; +} + +.content-text{ + font-size: 32rpx; + color:rgb(134, 134, 206); +} +.content-password{ + width:80%; + color: rgb(134, 134, 206); + margin-bottom:50rpx; +} +.content-remember{ + width:80%; + color: rgb(134, 134, 206); + margin-bottom:50rpx; +} + + +.content-login{ + width:300rpx!important; + height:100rpx!important; + font-size:50rpx!important; + color:white!important; + background:linear-gradient(to left, rgb(24, 175, 137) , rgb(100,194,171))!important; + border-radius: 50rpx!important; + font-weight:50!important; +} +.content-new{ + width:300rpx; + height:100rpx; + margin-top:30rpx; + margin-bottom:20rpx; + flex-direction:row; + align-items: center; + justify-content:space-between; + display:flex; + font-size:32rpx; + color:rgb(134, 134, 206); +} + +.content-user image{ + width: 50rpx; + height: 50rpx; + margin-left: 40rpx; + margin-right: 20rpx; + color:rgb(134, 134, 206); +} +.content-user input{ + font-size: 32rpx; + color:rgb(134, 134, 206); +} diff --git a/2020302358/pages/logs/logs.js b/2020302358/pages/logs/logs.js new file mode 100644 index 0000000000000000000000000000000000000000..07800be792761a65216b82bfe8b185985a139f22 --- /dev/null +++ b/2020302358/pages/logs/logs.js @@ -0,0 +1,66 @@ +// pages/logs/logs.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/2020302358/pages/logs/logs.wxml b/2020302358/pages/logs/logs.wxml new file mode 100644 index 0000000000000000000000000000000000000000..c49f50c33a80a4e847111b36d6cde66fbec63bfa --- /dev/null +++ b/2020302358/pages/logs/logs.wxml @@ -0,0 +1,2 @@ + +pages/logs/logs.wxml diff --git a/2020302358/project.config.json b/2020302358/project.config.json new file mode 100644 index 0000000000000000000000000000000000000000..017a49070b8a0b362e82d7541da48a4e82f70c4e --- /dev/null +++ b/2020302358/project.config.json @@ -0,0 +1,64 @@ +{ + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "scopeDataCheck": false, + "coverView": true, + "es6": false, + "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, + "packNpmRelationList": [], + "minifyWXSS": true + }, + "compileType": "miniprogram", + "libVersion": "2.20.1", + "appid": "wx6f8ddc325a934494", + "projectname": "task1", + "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/2020302358/sitemap.json b/2020302358/sitemap.json new file mode 100644 index 0000000000000000000000000000000000000000..ca02add20b581be471b8d17f887b8e8337070546 --- /dev/null +++ b/2020302358/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/2020302358/utils/util.js b/2020302358/utils/util.js new file mode 100644 index 0000000000000000000000000000000000000000..764bc2ce26ab9b55a21cbb069dcf084a8418dffd --- /dev/null +++ b/2020302358/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 +}