一、项目资源文件
1、pages,小程序页面文件夹。
2、app.js
App({
onLaunch: function () {
},
globalData: {
},
})
3、app.json
{
"pages": [
"pages/index/index",
"pages/login/login",
"pages/register/register",
"pages/scan/scan",
"pages/start/start",
"pages/chargeing/chargeing",
"pages/request/request",
"pages/person/person",
"pages/order/order",
"pages/orderdetail/orderdetail",
"pages/balance/balance",
"pages/deposit/deposit",
"pages/map/map",
"pages/station/station",
"pages/overdetail/overdetail",
"pages/coupon/coupon",
"pages/about/about",
"pages/vehicle/vehicle",
"pages/setting/setting",
"pages/collect/collect",
"pages/modify/modify",
"pages/my/my",
"pages/authorize/authorize",
"pages/attention/attention"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#13bf6d",
"navigationBarTitleText": "云充电",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#999999",
"selectedColor": "#333333",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"text": "附近",
"iconPath": "pages/images/index.png",
"selectedIconPath": "pages/images/indexselected.png"
},
{
"pagePath": "pages/scan/scan",
"text": "充电",
"iconPath": "pages/images/charge.png",
"selectedIconPath": "pages/images/chargeselected.png"
},
{
"pagePath": "pages/order/order",
"text": "订单",
"iconPath": "pages/images/order.png",
"selectedIconPath": "pages/images/orderselected.png"
},
{
"pagePath": "pages/my/my",
"text": "我的",
"iconPath": "pages/images/my.png",
"selectedIconPath": "pages/images/myselected.png"
}
]
},
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
4、project.config.json
{
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"packOptions": {
"ignore": [],
"include": []
},
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"coverView": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"checkInvalidKey": true,
"checkSiteMap": false,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"lazyloadPlaceholderEnable": false,
"preloadBackgroundData": false,
"uglifyFileName": false,
"enhance": true,
"useMultiFrameRuntime": true,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"useStaticServer": true,
"showES6CompileOption": false,
"disableUseStrict": false,
"useCompilerPlugins": false,
"minifyWXML": true
},
"compileType": "miniprogram",
"libVersion": "2.10.2",
"appid": "微信公众号生成appid",
"projectname": "sfcharge",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"miniprogram": {
"list": [
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "",
"scene": null
},
{
"name": "pages/person/person",
"pathName": "pages/person/person",
"query": "",
"scene": null
},
{
"name": "pages/order/order",
"pathName": "pages/order/order",
"query": "",
"scene": null
},
{
"name": "pages/orderdetail/orderdetail",
"pathName": "pages/orderdetail/orderdetail",
"query": "",
"scene": null
},
{
"name": "pages/my/my",
"pathName": "pages/my/my",
"query": "",
"scene": null
},
{
"name": "pages/balance/balance",
"pathName": "pages/balance/balance",
"query": "",
"scene": null
},
{
"name": "pages/deposit/deposit",
"pathName": "pages/deposit/deposit",
"query": "",
"scene": null
},
{
"name": "pages/map/map",
"pathName": "pages/map/map",
"query": "",
"scene": null
},
{
"name": "pages/station/station",
"pathName": "pages/station/station",
"query": "",
"scene": null
},
{
"name": "pages/chargeing/chargeing",
"pathName": "pages/chargeing/chargeing",
"query": "",
"scene": null
},
{
"name": "pages/charge/charge",
"pathName": "pages/charge/charge",
"query": "",
"scene": null
},
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "",
"scene": null
},
{
"name": "pages/login/login",
"pathName": "pages/login/login",
"query": "",
"scene": null
},
{
"name": "pages/register/register",
"pathName": "pages/register/register",
"query": "",
"scene": null
},
{
"name": "pages/coupon/coupon",
"pathName": "pages/coupon/coupon",
"query": "",
"scene": null
},
{
"name": "pages/about/about",
"pathName": "pages/about/about",
"query": "",
"scene": null
},
{
"name": "pages/vehicle/vehicle",
"pathName": "pages/vehicle/vehicle",
"query": "",
"scene": null
},
{
"name": "pages/modify/modify",
"pathName": "pages/modify/modify",
"query": "",
"scene": null
},
{
"name": "pages/start/start",
"pathName": "pages/start/start",
"query": "",
"scene": null
},
{
"name": "pages/scan/scan",
"pathName": "pages/scan/scan",
"query": "",
"scene": null
},
{
"name": "pages/overdetail/overdetail",
"pathName": "pages/overdetail/overdetail",
"query": "",
"scene": null
},
{
"name": "pages/authorize/authorize",
"pathName": "pages/authorize/authorize",
"query": "",
"scene": null
},
{
"name": "pages/attention/attention",
"pathName": "pages/attention/attention",
"query": "",
"scene": null
},
{
"name": "pages/request/request",
"pathName": "pages/request/request",
"query": "",
"scene": null
}
]
}
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}
5、project.private.config.json
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "%E5%85%85%E7%94%B5APP",
"setting": {
"compileHotReLoad": true
}
}
6、sitemap.json
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}