Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
phobos-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
phobos-ui
Commits
8135bb1e
Commit
8135bb1e
authored
Mar 01, 2023
by
贾慧斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 羊小咩h5代码测试
parent
e88f8b41
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
105 additions
and
112 deletions
+105
-112
package.json
package.json
+1
-1
FZz8NUb3x0.txt
public/FZz8NUb3x0.txt
+0
-1
fixIosTitle.html
public/fixIosTitle.html
+0
-0
logo.png
public/logo.png
+0
-0
pages.js
src/pages.js
+6
-11
pages.json
src/pages.json
+0
-95
common.js
src/subPackages/common/common.js
+94
-0
pay.js
src/subPackages/pay/pay.js
+4
-4
No files found.
package.json
View file @
8135bb1e
...
...
@@ -24,7 +24,7 @@
"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: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-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"
,
...
...
public/FZz8NUb3x0.txt
deleted
100644 → 0
View file @
e88f8b41
ca1c52b4801a7741ccdbbe47797d574e
\ No newline at end of file
public/fixIosTitle.html
deleted
100644 → 0
View file @
e88f8b41
public/logo.png
deleted
100644 → 0
View file @
e88f8b41
2.3 KB
src/page.js
→
src/page
s
.js
View file @
8135bb1e
const
{
hot
}
=
require
(
"
uni-pages-hot-modules
"
);
module
.
exports
=
hot
((
pagesJson
)
=>
{
module
.
exports
=
(
pagesJson
)
=>
{
let
basePages
=
[...
require
(
"
./router/tabbar.js
"
)];
//todo 首页不应该依赖子包
let
baseSubPackages
=
[...
require
(
"
./subPackages/takeOut/takeOut.js
"
)];
let
arr
=
[
// 'address',
// 'member',
// 'notice',
// 'pay',
// 'set',
];
let
baseSubPackages
=
[];
let
arr
=
[
"
pay
"
];
if
(
process
.
env
.
NODE_ENV
===
"
development
"
)
{
// 开发模式下不需要开启预加载
delete
pagesJson
.
preloadRule
;
...
...
@@ -35,10 +29,11 @@ module.exports = hot((pagesJson) => {
}
});
console
.
log
(
"
jhb arr
"
,
arr
);
return
{
// 合并pages.json的内容
...
pagesJson
,
pages
:
[...
basePages
],
subPackages
:
[...
baseSubPackages
],
};
}
)
;
};
src/pages.json
View file @
8135bb1e
{
"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"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
""
,
...
...
src/subPackages/common/common.js
View file @
8135bb1e
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
:
"
收银台
"
,
},
},
],
},
];
src/subPackages/pay.js
→
src/subPackages/pay
/pay
.js
View file @
8135bb1e
...
...
@@ -3,25 +3,25 @@ module.exports = [
root
:
"
subPackages/pay
"
,
pages
:
[
{
path
:
"
pages/pay/
index
"
,
path
:
"
index
"
,
style
:
{
navigationBarTitleText
:
"
收银台
"
,
},
},
{
path
:
"
pa
ges/pay/pa
yFail
"
,
path
:
"
payFail
"
,
style
:
{
navigationBarTitleText
:
"
支付失败
"
,
},
},
{
path
:
"
pa
ges/pay/pa
ySuccess
"
,
path
:
"
paySuccess
"
,
style
:
{
navigationBarTitleText
:
"
支付成功
"
,
},
},
{
path
:
"
pa
ges/pay/pa
yLoading
"
,
path
:
"
payLoading
"
,
style
:
{
navigationBarTitleText
:
"
正在支付
"
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment