diff --git a/app.js b/app.js new file mode 100644 index 0000000..032b752 --- /dev/null +++ b/app.js @@ -0,0 +1,19 @@ +// app.js +App({ + onLaunch() { + let that = this; + // 展示本地存储能力 + const logs = wx.getStorageSync('logs') || [] + logs.unshift(Date.now()) + wx.setStorageSync('logs', logs) + }, + //是全局的数据存储 + globalData: { + userInfo: null, + url:'http://192.168.123.163:8099', //真实上线是一个域名 + // url:'http://localhost:8099', //真实上线是一个域名 + openid:'', + session_key:'', + token:'' + } +}) diff --git a/app.json b/app.json new file mode 100644 index 0000000..71641c2 --- /dev/null +++ b/app.json @@ -0,0 +1,36 @@ +{ + "pages":[ + "pages/login/login", + "pages/user/info", + "pages/home/home", + "pages/mypage/mypage", + "pages/index/index", + "pages/detail/index", + "pages/answer/index", + "pages/logs/logs", + "pages/myanswer/index" + ], + "window":{ + "backgroundTextStyle":"light", + "navigationBarBackgroundColor": "#8EE5EE", + "navigationBarTitleText": "都都调查问卷", + "navigationBarTextStyle":"white" + }, + "tabBar": { + "color":"#000000", + "selectedColor":"#10BFFC", + "list": [{ + "pagePath": "pages/home/home", + "text": "首页", + "iconPath":"/images/home_.png", + "selectedIconPath":"/images/home_act.png" + }, { + "pagePath": "pages/mypage/mypage", + "text": "我的", + "iconPath":"/images/my_.png", + "selectedIconPath":"/images/my_act.png" + }] + }, + "style": "v2", + "sitemapLocation": "sitemap.json" +} diff --git a/app.wxss b/app.wxss new file mode 100644 index 0000000..7bc5978 --- /dev/null +++ b/app.wxss @@ -0,0 +1,13 @@ +/**app.wxss**/ +page{ + height: 100%; +} +.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/project.config.json b/project.config.json new file mode 100644 index 0000000..82c769c --- /dev/null +++ b/project.config.json @@ -0,0 +1,77 @@ +{ + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": false, + "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": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": false, + "useApiHook": false, + "useApiHostProcess": false, + "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.18.0", + "appid": "wx9b8ebbaa5f9ba987", + "projectname": "wx-question-project5", + "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/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