-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d63864b
commit ea47d60
Showing
7 changed files
with
431 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: {}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// app.js | ||
wx.cloud.init({ | ||
env: 'ck-4g1bxx2x00e7052a', //填上你的云开发环境id | ||
traceUser: true, | ||
}) | ||
App({ | ||
// wx.cloud.init({ | ||
// env: 'ck-4g1bxx2x00e7052a', //填上你的云开发环境id | ||
// traceUser: true, | ||
// }), | ||
// const : db = wx.cloud.database(), | ||
onLaunch:function name(params) { | ||
//云初始化 | ||
if (!wx.cloud) { | ||
console.error('请使用 2.2.3 或以上的基础库以使用云能力') | ||
} else { | ||
wx.cloud.init({ | ||
traceUser: true, | ||
}) | ||
} | ||
|
||
}, | ||
|
||
//点击加载更多 | ||
loadMore:function(){ | ||
const db = wx.cloud.database(); | ||
const cont = db.collection('fitnessRoom'); | ||
db.collection('fitnessRoom').get({ | ||
success(res){ | ||
console.log(res.data); | ||
} | ||
}) | ||
}, | ||
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 | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"pages": [ | ||
"pages/homepage/homepage", | ||
"pages/home/home", | ||
"pages/logs/logs", | ||
"pages/index/index", | ||
"pages/home_child1/welcome", | ||
"custom-tab-bar/index", | ||
"pages/home_child2/index", | ||
"pages/home_child3/index", | ||
"pages/zhuce/zhuce", | ||
"pages/SKD/KDquwen", | ||
"pages/SYS/index", | ||
"pages/can/index", | ||
"pages/xing/index", | ||
"pages/ji/index", | ||
"pages/error_page/index", | ||
"pages/dbtest/dbtest", | ||
"pages/dbtest2/index", | ||
"pages/oneuseradd/oneuseradd", | ||
"pages/twouser/twouser", | ||
"pages/onezhuze/onezhuce", | ||
"pages/twozhuce/twozhuce", | ||
"pages/shangchuan/shangchaun", | ||
"pages/delet/delet", | ||
"pages/labmag/labmag", | ||
"pages/addlab/addlab", | ||
"pages/oupage/oupage", | ||
"pages/onehome/onehome", | ||
"pages/twohome/twohome", | ||
"pages/twopage/twopage" | ||
], | ||
"window": { | ||
"backgroundTextStyle": "light", | ||
"navigationBarBackgroundColor": "#fff", | ||
"navigationBarTitleText": "Weixin", | ||
"navigationBarTextStyle": "black" | ||
}, | ||
"style": "v2", | ||
"sitemapLocation": "sitemap.json", | ||
"tabBar": { | ||
"color": "#111111s", | ||
"selectedColor": "#003344", | ||
"backgroundColor": "#ffffff", | ||
"list": [ | ||
{ | ||
"pagePath": "pages/home_child1/welcome", | ||
"text": "主页", | ||
"iconPath": "pages2/tabBar_pic/home_act.png", | ||
"selectedIconPath": "pages2/tabBar_pic/home_no.png" | ||
}, | ||
{ | ||
"pagePath": "pages/home_child2/index", | ||
"text": "实验 ", | ||
"iconPath": "pages2/tabBar_pic/laboratory_act.png", | ||
"selectedIconPath": "pages2/tabBar_pic/laboratory_no.png" | ||
}, | ||
{ | ||
"pagePath": "pages/home_child3/index", | ||
"text": "我的", | ||
"iconPath": "pages2/tabBar_pic/me_act.png", | ||
"selectedIconPath": "pages2/tabBar_pic/me_no.png" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/**app.wxss**/ | ||
page{ | ||
background-color: rgb(0, 255, 115); | ||
} | ||
.bg-image | ||
{ | ||
width : 100%; | ||
height : 100%; | ||
position: fixed; | ||
z-index: -1; | ||
} | ||
.container { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 200rpx 0; | ||
box-sizing: border-box; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"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, | ||
"ignoreUploadUnusedFiles": false | ||
}, | ||
"compileType": "miniprogram", | ||
"libVersion": "2.19.4", | ||
"appid": "wx8842fee34eb0d3a0", | ||
"projectname": "miniprogram-92", | ||
"condition": {}, | ||
"editorSetting": { | ||
"tabIndent": "insertSpaces", | ||
"tabSize": 2 | ||
}, | ||
"cloudfunctionTemplateRoot": "cloudfunctionTemplate/" | ||
} |
Oops, something went wrong.