上传文件至 ''

This commit is contained in:
20653B106 2022-04-27 22:17:28 +08:00
parent 5d47dcfae8
commit 81abd22562
5 changed files with 150 additions and 0 deletions

19
app.js Normal file
View File

@ -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
}
})

32
app.json Normal file
View File

@ -0,0 +1,32 @@
{
"pages": [
"pages/home/home",
"pages/answer/index",
"pages/mypage/mypage",
"pages/detail/index",
"pages/myanswer/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#6ECEB0",
"navigationBarTitleText": "微问卷",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color":"#000000",
"selectedColor":"#6ECEB0",
"list": [{
"pagePath": "pages/home/home",
"text": "首页",
"iconPath":"/images/home.png",
"selectedIconPath":"/images/home_select.png"
}, {
"pagePath": "pages/mypage/mypage",
"text": "我的",
"iconPath":"/images/my.png",
"selectedIconPath":"/images/my_select.png"
}]
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}

10
app.wxss Normal file
View File

@ -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;
}

82
project.config.json Normal file
View File

@ -0,0 +1,82 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": [
{
"type": "file",
"value": ".eslintrc.js"
}
]
},
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": true,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
"appid": "wx9b8ebbaa5f9ba987",
"projectname": "wx-question-project2",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"staticServerOptions": {
"baseURL": "",
"servePath": ""
},
"isGameTourist": false,
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"game": {
"list": []
},
"plugin": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": []
}
}
}

7
sitemap.json Normal file
View File

@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}