Commit 8135bb1e authored by 贾慧斌's avatar 贾慧斌

feat: 羊小咩h5代码测试

parent e88f8b41
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"build:quickapp-webview-union": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-webview-union vue-cli-service uni-build", "build:quickapp-webview-union": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-webview-union vue-cli-service uni-build",
"dev:app-plus": "cross-env NODE_ENV=development UNI_PLATFORM=app-plus vue-cli-service uni-build --watch", "dev:app-plus": "cross-env NODE_ENV=development UNI_PLATFORM=app-plus vue-cli-service uni-build --watch",
"dev:custom": "cross-env NODE_ENV=development uniapp-cli custom", "dev:custom": "cross-env NODE_ENV=development uniapp-cli custom",
"dev:h5": "cross-env VUE_APP_API_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-serve", "dev:h5": "cross-env VUE_APP_API_ENV=development VUE_APP_Module=all UNI_PLATFORM=h5 vue-cli-service uni-serve",
"dev:mp-360": "cross-env NODE_ENV=development UNI_PLATFORM=mp-360 vue-cli-service uni-build --watch", "dev:mp-360": "cross-env NODE_ENV=development UNI_PLATFORM=mp-360 vue-cli-service uni-build --watch",
"dev:mp-alipay": "cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay vue-cli-service uni-build --watch", "dev:mp-alipay": "cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay vue-cli-service uni-build --watch",
"dev:mp-baidu": "cross-env NODE_ENV=development UNI_PLATFORM=mp-baidu vue-cli-service uni-build --watch", "dev:mp-baidu": "cross-env NODE_ENV=development UNI_PLATFORM=mp-baidu vue-cli-service uni-build --watch",
......
ca1c52b4801a7741ccdbbe47797d574e
\ No newline at end of file
const { hot } = require("uni-pages-hot-modules"); module.exports = (pagesJson) => {
module.exports = hot((pagesJson) => {
let basePages = [...require("./router/tabbar.js")]; let basePages = [...require("./router/tabbar.js")];
//todo 首页不应该依赖子包 //todo 首页不应该依赖子包
let baseSubPackages = [...require("./subPackages/takeOut/takeOut.js")]; let baseSubPackages = [];
let arr = [ let arr = ["pay"];
// 'address',
// 'member',
// 'notice',
// 'pay',
// 'set',
];
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
// 开发模式下不需要开启预加载 // 开发模式下不需要开启预加载
delete pagesJson.preloadRule; delete pagesJson.preloadRule;
...@@ -35,10 +29,11 @@ module.exports = hot((pagesJson) => { ...@@ -35,10 +29,11 @@ module.exports = hot((pagesJson) => {
} }
}); });
console.log("jhb arr", arr); console.log("jhb arr", arr);
return { return {
// 合并pages.json的内容 // 合并pages.json的内容
...pagesJson, ...pagesJson,
pages: [...basePages], pages: [...basePages],
subPackages: [...baseSubPackages], subPackages: [...baseSubPackages],
}; };
}); };
{ {
"pages": [],
"subPackages": [
{
"root": "subPackages/common",
"name": "common",
"pages": [
{
"path": "member/index",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"app-plus": {
"titleNView": {
"type": "transparent"
}
},
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES"
}
}
},
{
"path": "member/detail",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"app-plus": {
"titleNView": {
"type": "transparent"
}
},
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES"
}
}
},
{
"path": "member/growStrategy",
"style": {
"navigationBarTitleText": "成长值攻略"
}
},
{
"path": "member/progressDetail",
"style": {
"navigationBarTitleText": "成长值明细",
"navigationStyle": "custom",
"app-plus": {
"titleNView": {
"type": "transparent"
}
}
}
},
{
"path": "address/address",
"style": {
"navigationBarTitleText": "我的地址"
}
},
{
"path": "address/addressManage",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "notice/notice",
"style": {
"navigationBarTitleText": "通知"
}
},
{
"path": "set/set",
"style": {
"navigationBarTitleText": "设置"
}
},
{
"path": "set/logout",
"style": {
"navigationBarTitleText": "账户注销"
}
},
{
"path": "pay/index",
"style": {
"navigationBarTitleText": "收银台"
}
}
]
}
],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "", "navigationBarTitleText": "",
......
module.exports = [
{
root: "subPackages/common",
name: "common",
pages: [
{
path: "member/index",
style: {
navigationBarTitleText: "",
navigationStyle: "custom",
"app-plus": {
titleNView: {
type: "transparent",
},
},
"mp-alipay": {
transparentTitle: "always",
titlePenetrate: "YES",
},
},
},
{
path: "member/detail",
style: {
navigationBarTitleText: "",
navigationStyle: "custom",
"app-plus": {
titleNView: {
type: "transparent",
},
},
"mp-alipay": {
transparentTitle: "always",
titlePenetrate: "YES",
},
},
},
{
path: "member/growStrategy",
style: {
navigationBarTitleText: "成长值攻略",
},
},
{
path: "member/progressDetail",
style: {
navigationBarTitleText: "成长值明细",
navigationStyle: "custom",
"app-plus": {
titleNView: {
type: "transparent",
},
},
},
},
{
path: "address/address",
style: {
navigationBarTitleText: "我的地址",
},
},
{
path: "address/addressManage",
style: {
navigationBarTitleText: "",
},
},
{
path: "notice/notice",
style: {
navigationBarTitleText: "通知",
},
},
{
path: "set/set",
style: {
navigationBarTitleText: "设置",
},
},
{
path: "set/logout",
style: {
navigationBarTitleText: "账户注销",
},
},
{
path: "pay/index",
style: {
navigationBarTitleText: "收银台",
},
},
],
},
];
...@@ -3,25 +3,25 @@ module.exports = [ ...@@ -3,25 +3,25 @@ module.exports = [
root: "subPackages/pay", root: "subPackages/pay",
pages: [ pages: [
{ {
path: "pages/pay/index", path: "index",
style: { style: {
navigationBarTitleText: "收银台", navigationBarTitleText: "收银台",
}, },
}, },
{ {
path: "pages/pay/payFail", path: "payFail",
style: { style: {
navigationBarTitleText: "支付失败", navigationBarTitleText: "支付失败",
}, },
}, },
{ {
path: "pages/pay/paySuccess", path: "paySuccess",
style: { style: {
navigationBarTitleText: "支付成功", navigationBarTitleText: "支付成功",
}, },
}, },
{ {
path: "pages/pay/payLoading", path: "payLoading",
style: { style: {
navigationBarTitleText: "正在支付", navigationBarTitleText: "正在支付",
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment