Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
06e8f4b8
authored
May 13, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
898ee81e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
src/main.js
src/views/Bill/index.vue
src/main.js
View file @
06e8f4b8
...
...
@@ -29,18 +29,18 @@ FastClick.prototype.focus = function (targetElement) {
}
};
Vue
.
prototype
.
setPageNavState
=
function
()
{
Vue
.
prototype
.
setPageNavState
=
function
(
params
=
{
headerColor
,
isShowClose
,
isShowBack
,
isCloseLeft
,
isShowTitle
,
isShowNav
,
isCloseWebView
}
)
{
try
{
initJsBridge
(()
=>
{
window
.
WebViewJavascriptBridge
.
callHandler
(
"setPageNavState"
,
{
isShowClose
:
false
,
isShowBack
:
false
,
isCloseLeft
:
false
,
isShowTitle
:
false
,
isShowNav
:
false
,
isCloseWebView
:
false
isShowClose
:
params
.
isShowClose
?
params
.
isShowClose
:
false
,
isShowBack
:
params
.
isShowBack
?
params
.
isShowBack
:
false
,
isCloseLeft
:
params
.
isCloseLeft
?
params
.
isCloseLeft
:
false
,
isShowTitle
:
params
.
isShowTitle
?
params
.
isShowTitle
:
false
,
isShowNav
:
params
.
isShowNav
?
params
.
isShowNav
:
false
,
isCloseWebView
:
params
.
isCloseWebView
?
params
.
isCloseWebView
:
false
},
function
(
response
)
{
console
.
log
(
"setPageNavState来自 ios/android的回传数据: "
,
response
);
...
...
@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () {
window
.
WebViewJavascriptBridge
.
callHandler
(
"setBarColor"
,
{
"barColor"
:
"#0978e7"
},
{
"barColor"
:
params
.
headerColor
?
param
.
headerColor
:
"#0978e7"
},
function
(
response
)
{
console
.
log
(
"main setBarColor的回传数据:"
,
response
);
}
...
...
src/views/Bill/index.vue
View file @
06e8f4b8
...
...
@@ -234,6 +234,7 @@ export default {
"loadPayUrl"
]),
toPay
()
{
this
.
setPageNavState
({
headerColor
=
'#fff'
,
isShowClose
=
true
,
isShowBack
=
true
,
isCloseLeft
=
true
,
isShowTitle
=
true
,
isShowNav
=
true
,
isCloseWebView
=
true
,})
const
failUrl
=
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
);
...
...
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