Commit 231b31c0 by 赵艳波

update

parent c543ece3
Showing with 11 additions and 11 deletions
...@@ -29,7 +29,7 @@ FastClick.prototype.focus = function (targetElement) { ...@@ -29,7 +29,7 @@ FastClick.prototype.focus = function (targetElement) {
} }
}; };
Vue.prototype.setPageNavState = function (params = { headerColor, isShowClose, isShowBack, isCloseLeft, isShowTitle, isShowNav, isCloseWebView }) { Vue.prototype.setPageNavState = function (params = { headerColor: false, isShowClose: false, isShowBack: false, isCloseLeft: false, isShowTitle: false, isShowNav: false, isCloseWebView: false }) {
try { try {
initJsBridge(() => { initJsBridge(() => {
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
...@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function (params = { headerColor, isShowClose, i ...@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function (params = { headerColor, isShowClose, i
window.WebViewJavascriptBridge.callHandler( window.WebViewJavascriptBridge.callHandler(
"setBarColor", "setBarColor",
{ "barColor": params.headerColor?param.headerColor:"#0978e7" }, { "barColor": params.headerColor ? param.headerColor : "#0978e7" },
function (response) { function (response) {
console.log("main setBarColor的回传数据:", response); console.log("main setBarColor的回传数据:", response);
} }
......
...@@ -234,15 +234,15 @@ export default { ...@@ -234,15 +234,15 @@ export default {
"loadPayUrl" "loadPayUrl"
]), ]),
toPay() { toPay() {
this.setPageNavState({ // this.setPageNavState({
headerColor: "#fff", // headerColor: "#fff",
isShowClose: true, // isShowClose: true,
isShowBack: true, // isShowBack: true,
isCloseLeft: true, // isCloseLeft: true,
isShowTitle: true, // isShowTitle: true,
isShowNav: true, // isShowNav: true,
isCloseWebView: true // isCloseWebView: true
}); // });
const failUrl = encodeURIComponent( const failUrl = encodeURIComponent(
"https://pay.qinqinxiaobao.com/callback/fail" "https://pay.qinqinxiaobao.com/callback/fail"
); );
......
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 sign in to comment