pages.json 分文件配置
This commit is contained in:
commit
a4bacd6018
@ -110,12 +110,12 @@ export default {
|
|||||||
ZBGJs: {
|
ZBGJs: {
|
||||||
title: "压缩因子表格",
|
title: "压缩因子表格",
|
||||||
url: "/pagesPackage/ngtools_Par/ZBgJs",
|
url: "/pagesPackage/ngtools_Par/ZBgJs",
|
||||||
icon:'zt'
|
icon:'zt.png'
|
||||||
},
|
},
|
||||||
srjBGJs: {
|
srjBGJs: {
|
||||||
title: "水容积表格",
|
title: "水容积表格",
|
||||||
url: "/pagesPackage/ngtools_CNG/srjBgJs",
|
url: "/pagesPackage/ngtools_CNG/srjBgJs",
|
||||||
icon:'vt'
|
icon:'vt.png'
|
||||||
}
|
}
|
||||||
// ,
|
// ,
|
||||||
// SqgyJs: {
|
// SqgyJs: {
|
||||||
|
2
main.js
2
main.js
@ -1,6 +1,6 @@
|
|||||||
import App from './App'
|
import App from './App'
|
||||||
import i18n from './lang/i18n'
|
import i18n from './lang/i18n'
|
||||||
Vue.prototype.staticDir = 'https://ngtools.cn/pic/static/';
|
Vue.prototype.staticDir = 'https://ngtools.cn:3000/pic/static/';
|
||||||
Vue.prototype.getStaticFilePath = function(url) {
|
Vue.prototype.getStaticFilePath = function(url) {
|
||||||
return Vue.prototype.staticDir + url;
|
return Vue.prototype.staticDir + url;
|
||||||
}
|
}
|
||||||
|
76
pages-config-template.json
Normal file
76
pages-config-template.json
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/* ===pages-tool===
|
||||||
|
该文件是pages-tool插件的配置文件模板,仅供参考。可以删除,不影响插件的使用。
|
||||||
|
pages-tool插件可实现将pages.josn中的配置拆分到多个配置文件中,以便实现模块化配置。
|
||||||
|
在应用中配置项较多、页面较多时,分别在不同文件中进行配置,可使项目代码更为清晰。
|
||||||
|
在团队多人合作时,按模块分工,分别管理不同的配置文件,可避免同时修改pages.json带来的代码冲突问题。
|
||||||
|
|
||||||
|
注意:启用该插件并设置了配置文件之后,pages.json配置文件中相关配置项的内容可能会被替换,应根据paes-config.json的设置情况决定哪些配置应该在pages.josn中设置,哪些应该在指定的文件中设置。
|
||||||
|
提示:插件只会处理已设置的相关项点,不会覆盖pages.json中未指定的项点。详见配置示例
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
//可指定一个文件路径,从该文件读取globalStyle配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"globalStyle" : "pages-config/globalStyle.json"
|
||||||
|
//文件的格式同pages.json,但只应包含globalStyle配置项
|
||||||
|
"globalStyle" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取easycom配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"easycom" : "pages-config/easycom.json"
|
||||||
|
//文件的格式同pages.json,但只应包含easycom配置项
|
||||||
|
"easycom" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取tabBar配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"tabBar" : "pages-config/tabBar.json"
|
||||||
|
//文件的格式同pages.json,但只应包含tabBar配置项
|
||||||
|
"tabBar" : "",
|
||||||
|
|
||||||
|
//可指定多个文件路径,合并多个文件的内容作为pages配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置为:"pages" : ["pages-config/pages-moduleA.json", "pages-config/pages-moduleB.json", "pages-config/pages-moduleC.json", ...]
|
||||||
|
//每个文件的格式同pages.json,但只应包含pages配置项
|
||||||
|
"pages" : [],
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取condition配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"condition" : "pages-config/condition.json"
|
||||||
|
//文件的格式同pages.json,但只应包含condition配置项
|
||||||
|
"condition" : "",
|
||||||
|
|
||||||
|
//可对每个分包指定一个文件路径,从该文件读取对应分包的pages配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"subPackages" : [pages-config/subPackages-moduleNameA.json, pages-config/subPackages-moduleNameB.json, ...],
|
||||||
|
//文件的格式同pages.json,但只应包含subPackages配置项
|
||||||
|
//需要注意:分包中的pages不能再拆分为多个文件
|
||||||
|
"subPackages" : [],
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取preloadRule配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"preloadRule" : "pages-config/preloadRule.json"
|
||||||
|
//文件的格式同pages.json,但只应包含preloadRule配置项
|
||||||
|
"preloadRule" : "",
|
||||||
|
|
||||||
|
//推荐配置:"workers" : "pages-config/workers.json"
|
||||||
|
//格式同pages.json
|
||||||
|
"workers" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取leftWindow配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"leftWindow" : "pages-config/leftWindow.json"
|
||||||
|
//文件的格式同pages.json,但只应包含leftWindow配置项
|
||||||
|
"leftWindow" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取topWindow配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"topWindow" : "pages-config/topWindow.json"
|
||||||
|
//文件的格式同pages.json,但只应包含topWindow配置项
|
||||||
|
"topWindow" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取rightWindow配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"rightWindow" : "pages-config/rightWindow.json"
|
||||||
|
//文件的格式同pages.json,但只应包含rightWindow配置项
|
||||||
|
"rightWindow" : "",
|
||||||
|
|
||||||
|
//可指定一个文件路径,从该文件读取uniIdRouter配置;如果不设置,仍然使用pages.json中的配置项
|
||||||
|
//推荐配置:"uniIdRouter" : "pages-config/uniIdRouter.json"
|
||||||
|
//文件的格式同pages.json,但只应包含uniIdRouter配置项
|
||||||
|
"uniIdRouter" : "",
|
||||||
|
|
||||||
|
//默认启动首页,字符串配置(可以引入文件,也可以不引入文件),也可以直接在page.json中配置
|
||||||
|
//推荐配置:"entryPagePath" : "/...." 或 "entryPagePath" : "pages-config/entryPagePath.json"
|
||||||
|
"entryPagePath": ""
|
||||||
|
}
|
40
pages-config.json
Normal file
40
pages-config.json
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/* ===pages-tool===
|
||||||
|
该文件是pages-tool插件的配置文件
|
||||||
|
pages-tool插件可实现将pages.josn中的配置拆分到多个配置文件中,以便实现模块化配置。
|
||||||
|
在应用中配置项较多、页面较多时,分别在不同文件中进行配置,可使项目代码更为清晰。
|
||||||
|
在团队多人合作时,按模块分工,分别管理不同的配置文件,可避免同时修改pages.json带来的代码冲突问题。
|
||||||
|
|
||||||
|
注意:启用该插件并设置了配置文件之后,pages.json配置文件中相关配置项的内容可能会被替换,应根据paes-config.json的设置情况决定哪些配置应该在pages.josn中设置,哪些应该在指定的文件中设置。
|
||||||
|
提示:插件只会处理已设置的相关项点,不会覆盖pages.json中未指定的项点。详见配置示例
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
"globalStyle" : "pages-config/globalStyle.json",
|
||||||
|
|
||||||
|
"easycom" : "",
|
||||||
|
|
||||||
|
"tabBar" : "pages-config/tabBar.json",
|
||||||
|
|
||||||
|
"pages" : ["pages-config/pages-all.json"],
|
||||||
|
|
||||||
|
"condition" : "pages-config/condition.json",
|
||||||
|
|
||||||
|
"leftWindow" : "",
|
||||||
|
|
||||||
|
"topWindow" : "",
|
||||||
|
|
||||||
|
"rightWindow" : "",
|
||||||
|
|
||||||
|
"uniIdRouter" : "pages-config/uniIdRouter.json",
|
||||||
|
|
||||||
|
///以下各项为小程序特有配置
|
||||||
|
|
||||||
|
"subPackages" : ["pages-config/subPackages-all.json"],
|
||||||
|
|
||||||
|
"preloadRule" : "",
|
||||||
|
|
||||||
|
"workers" : "",
|
||||||
|
|
||||||
|
"entryPagePath": ""
|
||||||
|
}
|
18
pages-config/condition.json
Normal file
18
pages-config/condition.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"condition": {
|
||||||
|
"list": [
|
||||||
|
// {
|
||||||
|
// "path": "pages/list/detail"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "path": "pages/list/list"
|
||||||
|
// },
|
||||||
|
|
||||||
|
// {
|
||||||
|
// "path": "pages/ucenter/settings/settings"
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
"current": 1
|
||||||
|
}
|
||||||
|
}
|
19
pages-config/globalStyle.json
Normal file
19
pages-config/globalStyle.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"globalStyle": {
|
||||||
|
// #ifdef H5
|
||||||
|
"h5": {
|
||||||
|
"titleNView": false
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
// "navigationBarTitleText": "uni-starter",
|
||||||
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
|
"backgroundColor": "#F8F8F8",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
// "maxWidth":375,
|
||||||
|
"rpxCalcMaxDeviceWidth": 375,
|
||||||
|
"rpxCalcBaseDeviceWidth": 375
|
||||||
|
// "rpxCalcIncludeWidth":0
|
||||||
|
}
|
||||||
|
}
|
57
pages-config/pages-all.json
Normal file
57
pages-config/pages-all.json
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"pages": [
|
||||||
|
// {
|
||||||
|
// "path": "pages/grid/login",
|
||||||
|
// "style": {
|
||||||
|
// "navigationStyle": "custom"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ,
|
||||||
|
|
||||||
|
{
|
||||||
|
"path": "pages/grid/grid",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path": "pages/ucenter",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/list/list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/list/detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
,{
|
||||||
|
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
|
||||||
|
"style": {
|
||||||
|
"disableScroll": true,
|
||||||
|
"app-plus": {
|
||||||
|
"backgroundColorTop": "transparent",
|
||||||
|
"background": "transparent",
|
||||||
|
"titleNView": false,
|
||||||
|
"scrollIndicator": false,
|
||||||
|
"popGesture": "none",
|
||||||
|
"animationType": "fade-in",
|
||||||
|
"animationDuration": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
]
|
||||||
|
}
|
561
pages-config/subPackages-all.json
Normal file
561
pages-config/subPackages-all.json
Normal file
@ -0,0 +1,561 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"subPackages": [{
|
||||||
|
"root": "pagesPackage/components",
|
||||||
|
"pages": [{
|
||||||
|
"path": "popup",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"app-plus": {
|
||||||
|
"animationType": "fade-in", // 设置fade-in淡入动画,为最合理的动画类型
|
||||||
|
"background": "transparent", // 背景透明
|
||||||
|
"backgroundColor": "transparent", // 背景透明
|
||||||
|
"webviewBGTransparent": true,
|
||||||
|
"mask": "none",
|
||||||
|
"popGesture": "none", // 关闭IOS屏幕左边滑动关闭当前页面的功能
|
||||||
|
"bounce": "none" // 将回弹属性关掉
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/opendb-banner",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "新增"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "编辑"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/uni-agree",
|
||||||
|
"pages": [{
|
||||||
|
"path": "uni-agree",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"app-plus": {
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ucenter",
|
||||||
|
"pages": [{
|
||||||
|
"path": "invite/invite",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "settings/settings",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "设置"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "read-news-log/read-news-log",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "阅读记录",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pay/index",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "about/about",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "关于",
|
||||||
|
"app-plus": {
|
||||||
|
"titleNView": {
|
||||||
|
"buttons": [{
|
||||||
|
"type": "share"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "uni_modules/uni-feedback",
|
||||||
|
"pages": [{
|
||||||
|
"path": "pages/opendb-feedback/opendb-feedback",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "意见反馈",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"root": "uni_modules/uni-id-pages/pages",
|
||||||
|
"pages": [{
|
||||||
|
"path": "userinfo/userinfo",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "个人资料"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "userinfo/realname-verify/realname-verify",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTitleText": "实名认证"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "login/login-withoutpwd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "login/login-withpwd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "userinfo/deactivate/deactivate",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "注销账号"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "userinfo/bind-mobile/bind-mobile",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "绑定手机号码"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "login/login-smscode",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "手机验证码登录"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "register/register",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "注册"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "retrieve/retrieve",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "重置密码"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "common/webview/webview",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "userinfo/change_pwd/change_pwd",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTitleText": "修改密码"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "register/register-by-email",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "邮箱验证码注册"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "retrieve/retrieve-by-email",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "通过邮箱重置密码"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "userinfo/set-pwd/set-pwd",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTitleText": "设置密码"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #ifdef H5
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"path": "userinfo/cropImage/cropImage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "register/register-admin",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTitleText": "注册管理员账号"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
"root": "pagesPackage/ngtools_Flow",
|
||||||
|
"pages": [{
|
||||||
|
"path": "cysllJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "差压式流量计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "sdsllJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "速度式流量计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "ljlllJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "临界流流量计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "SqgyJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "输气工艺",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
"root": "pagesPackage/ngtools_Par",
|
||||||
|
"pages": [{
|
||||||
|
"path": "zJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "压缩因子计算GB/T 17747",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "mdRzJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "密度热值计算GB/T 11062",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "qtJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "其他物性参数计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "ZBgJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "压缩因子表格",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
"root": "pagesPackage/ngtools_CNG",
|
||||||
|
"pages": [{
|
||||||
|
"path": "LNGQhJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "LNG气化计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "srjJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "罐车水容积计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "zxcJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "装卸量计算",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"path": "srjBgJs",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "水容积表格",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
"root": "pagesPackage/ngTools_depart",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "departList/departList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngTools_Dict",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngTools_DictItem",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngtools_information",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "新增"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "编辑"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngtools_categories",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "新增"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "编辑"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngTools_SamplingLocation",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngTools_MeterList",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pagesPackage/ngtools-goods",
|
||||||
|
"pages": [{
|
||||||
|
"path": "add",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "新增"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "edit",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "编辑"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "list",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "列表"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "详情"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "uni_modules/uni-pay",
|
||||||
|
"pages": [{
|
||||||
|
"path": "pages/success/success",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/ad-interactive-webview/ad-interactive-webview",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/pay-desk/pay-desk",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
28
pages-config/tabBar.json
Normal file
28
pages-config/tabBar.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#7A7E83",
|
||||||
|
"selectedColor": "#007AFF",
|
||||||
|
"borderStyle": "black",
|
||||||
|
"backgroundColor": "#FFFFFF",
|
||||||
|
"list": [{
|
||||||
|
"pagePath": "pages/grid/grid",
|
||||||
|
"iconPath": "static/tabbar/list.png",
|
||||||
|
"selectedIconPath": "static/tabbar/list_active.png",
|
||||||
|
"text": "首页"
|
||||||
|
}
|
||||||
|
// , {
|
||||||
|
// "pagePath": "pages/list/list",
|
||||||
|
// "iconPath": "static/tabbar/grid.png",
|
||||||
|
// "selectedIconPath": "static/tabbar/grid_active.png",
|
||||||
|
// "text": "常用资料"
|
||||||
|
// }
|
||||||
|
, {
|
||||||
|
"pagePath": "pages/ucenter",
|
||||||
|
"iconPath": "static/tabbar/me.png",
|
||||||
|
"selectedIconPath": "static/tabbar/me_active.png",
|
||||||
|
"text": "我的"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
10
pages-config/uniIdRouter.json
Normal file
10
pages-config/uniIdRouter.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/* /// Pages-Tool: 该文件是pages-tool插件的配置文件,根据pages-config.json的配置,本文件的内容可能合并到pages.json*/
|
||||||
|
{
|
||||||
|
"uniIdRouter": {
|
||||||
|
"loginPage": "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
|
||||||
|
"needLogin": [
|
||||||
|
"/uni_modules/uni-id-pages/pages/userinfo/userinfo"
|
||||||
|
],
|
||||||
|
"resToLogin": true
|
||||||
|
}
|
||||||
|
}
|
@ -36,7 +36,8 @@
|
|||||||
<view class="Grid-Item" v-for="(item,index) in wxcsJsgridList" :key="index">
|
<view class="Grid-Item" v-for="(item,index) in wxcsJsgridList" :key="index">
|
||||||
<navigator :url="item.url">
|
<navigator :url="item.url">
|
||||||
<view class="GSimg">
|
<view class="GSimg">
|
||||||
<image class="Image" :src="getStaticFilePath('/logomain.png')" mode="aspectFit"></image>
|
<image class="Image" :src="getStaticFilePath('mianicon/'+item.icon)" mode="aspectFit">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class="GStitle">{{ item.type }}</view>
|
<view class="GStitle">{{ item.type }}</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
@ -52,7 +53,8 @@
|
|||||||
<view class="Grid-Item" v-for="(item,index) in CNGJsgridList" :key="index">
|
<view class="Grid-Item" v-for="(item,index) in CNGJsgridList" :key="index">
|
||||||
<navigator :url="item.url">
|
<navigator :url="item.url">
|
||||||
<view class="GSimg">
|
<view class="GSimg">
|
||||||
<image class="Image" :src="getStaticFilePath('/logomain.png')" mode="aspectFill"></image>
|
<image class="Image" :src="getStaticFilePath('mianicon/'+item.icon)" mode="aspectFill">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class="GStitle">{{ item.type }}</view>
|
<view class="GStitle">{{ item.type }}</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
@ -68,7 +70,8 @@
|
|||||||
<view class="Grid-Item" v-for="(item,index) in QtJsgridList" :key="index">
|
<view class="Grid-Item" v-for="(item,index) in QtJsgridList" :key="index">
|
||||||
<navigator :url="item.url">
|
<navigator :url="item.url">
|
||||||
<view class="GSimg">
|
<view class="GSimg">
|
||||||
<image class="Image" :src="getStaticFilePath('/logomain.png')" mode="aspectFill"></image>
|
<image class="Image" :src="getStaticFilePath('mianicon/'+item.icon)" mode="aspectFill">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
<view class="GStitle">{{ item.type }}</view>
|
<view class="GStitle">{{ item.type }}</view>
|
||||||
</navigator>
|
</navigator>
|
||||||
@ -173,15 +176,18 @@
|
|||||||
gridList = []
|
gridList = []
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('wxcsJs.ysyzJs.title'),
|
"type": this.$t('wxcsJs.ysyzJs.title'),
|
||||||
"url": this.$t('wxcsJs.ysyzJs.url')
|
"url": this.$t('wxcsJs.ysyzJs.url'),
|
||||||
|
"icon": this.$t('wxcsJs.ysyzJs.icon')
|
||||||
})
|
})
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('wxcsJs.rzJs.title'),
|
"type": this.$t('wxcsJs.rzJs.title'),
|
||||||
"url": this.$t('wxcsJs.rzJs.url')
|
"url": this.$t('wxcsJs.rzJs.url'),
|
||||||
|
"icon": this.$t('wxcsJs.rzJs.icon')
|
||||||
})
|
})
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('wxcsJs.qtJs.title'),
|
"type": this.$t('wxcsJs.qtJs.title'),
|
||||||
"url": this.$t('wxcsJs.qtJs.url')
|
"url": this.$t('wxcsJs.qtJs.url'),
|
||||||
|
"icon": this.$t('wxcsJs.qtJs.icon')
|
||||||
})
|
})
|
||||||
this.wxcsJsgridList = gridList
|
this.wxcsJsgridList = gridList
|
||||||
|
|
||||||
@ -189,26 +195,31 @@
|
|||||||
|
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('CNGJs.srjJs.title'),
|
"type": this.$t('CNGJs.srjJs.title'),
|
||||||
"url": this.$t('CNGJs.srjJs.url')
|
"url": this.$t('CNGJs.srjJs.url'),
|
||||||
|
"icon": this.$t('CNGJs.srjJs.icon')
|
||||||
})
|
})
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('CNGJs.zxcJs.title'),
|
"type": this.$t('CNGJs.zxcJs.title'),
|
||||||
"url": this.$t('CNGJs.zxcJs.url')
|
"url": this.$t('CNGJs.zxcJs.url'),
|
||||||
|
"icon": this.$t('CNGJs.zxcJs.icon')
|
||||||
})
|
})
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('CNGJs.LNGQhJs.title'),
|
"type": this.$t('CNGJs.LNGQhJs.title'),
|
||||||
"url": this.$t('CNGJs.LNGQhJs.url')
|
"url": this.$t('CNGJs.LNGQhJs.url'),
|
||||||
|
"icon": this.$t('CNGJs.LNGQhJs.icon')
|
||||||
})
|
})
|
||||||
this.CNGJsgridList = gridList
|
this.CNGJsgridList = gridList
|
||||||
gridList = []
|
gridList = []
|
||||||
|
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('QtJs.ZBGJs.title'),
|
"type": this.$t('QtJs.ZBGJs.title'),
|
||||||
"url": this.$t('QtJs.ZBGJs.url')
|
"url": this.$t('QtJs.ZBGJs.url'),
|
||||||
|
"icon": this.$t('QtJs.ZBGJs.icon')
|
||||||
})
|
})
|
||||||
gridList.push({
|
gridList.push({
|
||||||
"type": this.$t('QtJs.srjBGJs.title'),
|
"type": this.$t('QtJs.srjBGJs.title'),
|
||||||
"url": this.$t('QtJs.srjBGJs.url')
|
"url": this.$t('QtJs.srjBGJs.url'),
|
||||||
|
"icon": this.$t('QtJs.srjBGJs.icon')
|
||||||
})
|
})
|
||||||
// gridList.push({
|
// gridList.push({
|
||||||
// "type": this.$t('QtJs.SqgyJs.title'),
|
// "type": this.$t('QtJs.SqgyJs.title'),
|
||||||
@ -329,6 +340,7 @@
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.GStitle {
|
.GStitle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 34rpx;
|
height: 34rpx;
|
||||||
|
@ -127,11 +127,13 @@
|
|||||||
// }
|
// }
|
||||||
// // #endif
|
// // #endif
|
||||||
],
|
],
|
||||||
[{
|
[
|
||||||
"title": this.$t('mine.feedback'),
|
// {
|
||||||
"to": '/uni_modules/uni-feedback/pages/opendb-feedback/opendb-feedback',
|
// "title": this.$t('mine.feedback'),
|
||||||
"icon": "help"
|
// "to": '/uni_modules/uni-feedback/pages/opendb-feedback/opendb-feedback',
|
||||||
}, {
|
// "icon": "help"
|
||||||
|
// },
|
||||||
|
{
|
||||||
"title": this.$t('mine.settings'),
|
"title": this.$t('mine.settings'),
|
||||||
"to": '/pagesPackage/ucenter/settings/settings',
|
"to": '/pagesPackage/ucenter/settings/settings',
|
||||||
"icon": "gear"
|
"icon": "gear"
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
.mask-header {
|
.mask-header {
|
||||||
height: 400rpx;
|
height: 400rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-image: url('http://h5.ngtools.cn/pic/static/logomain.png');
|
background-image: url('https://ngtools.cn:3000/pic/static/logomain.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
image {
|
image {
|
||||||
|
@ -9,7 +9,7 @@ export default {
|
|||||||
// //左侧显示的应用名称
|
// //左侧显示的应用名称
|
||||||
"appname": '天然气计算',
|
"appname": '天然气计算',
|
||||||
// //应用的图标
|
// //应用的图标
|
||||||
"logo": "https://ngtools.cnhttps://ngtools.cn/pic/static/logomain.png",
|
"logo": "https://ngtools.cn:3000/pic/static/logomain.png",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mp": {
|
"mp": {
|
||||||
@ -23,7 +23,7 @@ export default {
|
|||||||
//应用名称
|
//应用名称
|
||||||
"appName": "天然气计算",
|
"appName": "天然气计算",
|
||||||
//应用logo
|
//应用logo
|
||||||
"logo": "https://ngtools.cnhttps://ngtools.cn/pic/static/logomain.png",
|
"logo": "https://ngtools.cn:3000/pic/static/logomain.png",
|
||||||
//公司名称
|
//公司名称
|
||||||
"company": "妍杰丽云工作室",
|
"company": "妍杰丽云工作室",
|
||||||
//口号
|
//口号
|
||||||
|
@ -1,66 +1,56 @@
|
|||||||
{
|
{
|
||||||
"passwordSecret": "test-passwordSecret",
|
"passwordSecret": "passwordSecret-demo",
|
||||||
"tokenSecret": "test-tokenSecret",
|
"tokenSecret": "tokenSecret-demo",
|
||||||
"tokenExpiresIn": 7200,
|
"tokenExpiresIn": 7200,
|
||||||
"tokenExpiresThreshold": 600,
|
"tokenExpiresThreshold": 600,
|
||||||
"passwordErrorLimit": 6,
|
"passwordErrorLimit": 6,
|
||||||
"bindTokenToDevice": false,
|
"bindTokenToDevice": false,
|
||||||
"passwordErrorRetryTime": 3600,
|
"passwordErrorRetryTime": 3600,
|
||||||
"autoSetInviteCode": true,
|
"autoSetInviteCode": false,
|
||||||
"forceInviteCode": false,
|
"forceInviteCode": false,
|
||||||
"preferedAppPlatform": "app",
|
|
||||||
"requestAuthSecret": "testSecret",
|
|
||||||
"app": {
|
"app": {
|
||||||
"tokenExpiresIn": 2592000,
|
"tokenExpiresIn": 2592000,
|
||||||
"oauth": {
|
"oauth": {
|
||||||
"weixin": {
|
"weixin": {
|
||||||
"appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
|
"appid": "wx97a8f7019d175ced",
|
||||||
"appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
|
"appsecret": "db8d0cfabbd2f920d3c1eb2ed0fc5ded"
|
||||||
},
|
},
|
||||||
"apple": {
|
"apple": {
|
||||||
"bundleId": "苹果开发者后台获取的bundleId"
|
"bundleId": "苹果开发者后台获取的bundleId"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"web": {
|
|
||||||
"oauth": {
|
|
||||||
"weixin-h5": {
|
|
||||||
"appid": "微信浏览器内微信登录,所用的微信公众号appid",
|
|
||||||
"appsecret": "微信公众号后台获取的appsecret"
|
|
||||||
},
|
|
||||||
"weixin-web": {
|
|
||||||
"appid": "手机微信扫码登录,所用的微信开放平台(https://open.weixin.qq.com/)-网站应用的appid",
|
|
||||||
"appsecret": "微信开放平台-网站应用的appsecret"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mp-weixin": {
|
"mp-weixin": {
|
||||||
"oauth": {
|
"oauth": {
|
||||||
"weixin": {
|
"weixin": {
|
||||||
"appid": "wx9f9b7d747d261686",
|
"appid": "wx9f9b7d747d261686",
|
||||||
"appsecret": "86f3c4ca07a79a34ebb23e790151b999"
|
"appsecret": "f9b0f2fa1a83c4b14908e88192042bda"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mp-alipay": {
|
"mp-alipay": {
|
||||||
"oauth": {
|
"oauth": {
|
||||||
"alipay": {
|
"alipay": {
|
||||||
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
|
"appid": "alipay appid",
|
||||||
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
|
"privateKey": "alipay privateKey"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"service": {
|
"service": {
|
||||||
"sms": {
|
"sms": {
|
||||||
"name": "应用名称,对应短信模版的name",
|
"name": "应用名称,对应短信模版的name",
|
||||||
"codeExpiresIn": 300,
|
"codeExpiresIn": 180,
|
||||||
"smsKey": "ec5fba39363dc30af7f21bbb5ac6e857",
|
"smsKey": "短信密钥key,开通短信服务处可以看到",
|
||||||
"smsSecret": "09abff426ab62fd2e104c3be794b84c7"
|
"smsSecret": "短信密钥secret,开通短信服务处可以看到",
|
||||||
|
"scene": {
|
||||||
|
"bind-mobile-by-sms": {
|
||||||
|
"templateId": "绑定手机号使用的短信验证码模板",
|
||||||
|
"codeExpiresIn": 240
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"univerify": {
|
"univerify": {
|
||||||
"appid": "当前应用的appid,使用云函数URL化,此项必须配置",
|
"appid": "当前应用的appid,使用云函数URL化,此项必须配置"
|
||||||
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
|
|
||||||
"apiSecret": ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,12 +9,12 @@
|
|||||||
<uni-file-picker file-mediatype="image" :limit="6" return-type="array" v-model="formData.imgs">
|
<uni-file-picker file-mediatype="image" :limit="6" return-type="array" v-model="formData.imgs">
|
||||||
</uni-file-picker>
|
</uni-file-picker>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item name="contact" label="联系人">
|
<!-- <uni-forms-item name="contact" label="联系人">
|
||||||
<uni-easyinput v-model="formData.contact" trim="both"></uni-easyinput>
|
<uni-easyinput v-model="formData.contact" trim="both"></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item name="mobile" label="联系电话">
|
<uni-forms-item name="mobile" label="联系电话">
|
||||||
<uni-easyinput v-model="formData.mobile" trim="both"></uni-easyinput>
|
<uni-easyinput v-model="formData.mobile" trim="both"></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item> -->
|
||||||
<view class="uni-button-group">
|
<view class="uni-button-group">
|
||||||
<button type="primary" class="uni-button" @click="submit">提交</button>
|
<button type="primary" class="uni-button" @click="submit">提交</button>
|
||||||
</view>
|
</view>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"code": "",
|
"code": "",
|
||||||
"phone": "",
|
"phone": "",
|
||||||
"captcha": "",
|
"captcha": "",
|
||||||
"logo": "https://ngtools.cnhttps://ngtools.cn/pic/static/logomain.png"
|
"logo": "https://ngtools.cn:3000/pic/static/logomain.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
type: "", //快捷登录方式
|
type: "", //快捷登录方式
|
||||||
phone: "", //手机号码
|
phone: "", //手机号码
|
||||||
focusPhone: false,
|
focusPhone: false,
|
||||||
logo: "https://ngtools.cnhttps://ngtools.cn/pic/static/logomain.png"
|
logo: "https://ngtools.cn:3000/pic/static/logomain.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
"needCaptcha": false,
|
"needCaptcha": false,
|
||||||
"focusUsername": false,
|
"focusUsername": false,
|
||||||
"focusPassword": false,
|
"focusPassword": false,
|
||||||
"logo": "https://ngtools.cnhttps://ngtools.cn/pic/static/logomain.png"
|
"logo": "https://ngtools.cn:3000/pic/static/logomain.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
Loading…
Reference in New Issue
Block a user