Commit 0c535296 by cocomilk2012

update

parent 0dddce7b
Showing with 6 additions and 5 deletions
......@@ -11,7 +11,7 @@ class Bridge {
* @param {Object=} args 请求数据
* @param {String} args.barColor 栏颜色 #0978e7
*/
setBarColor(args = {}) {
setBarColor (args = {}) {
return new Promise((resolve, reject) => {
try {
jsBridge.callHandler('setBarColor', args, function (response) {
......@@ -28,7 +28,7 @@ class Bridge {
*
* @param {Object=} args 请求参数
*/
getBarHeight(args = {}) {
getBarHeight (args = {}) {
return new Promise((resolve, reject) => {
try {
jsBridge.callHandler("getBarHeight", args, function (response) {
......@@ -51,7 +51,7 @@ class Bridge {
* @param {Boolean} args.isShowNav 是否显示导航栏
* @param {Boolean} args.isCloseWebView 是否关闭WebView
*/
setPageNavState(args = {}) {
setPageNavState (args = {}) {
return new Promise((resolve, reject) => {
try {
jsBridge.callHandler("setPageNavState", args, function (response) {
......@@ -69,7 +69,7 @@ class Bridge {
*
* @param {Object=} args 请求对象
*/
closeWebView(args = {}) {
closeWebView (args = {}) {
return new Promise((resolve, reject) => {
try {
jsBridge.callHandler("closeWebView", args, function (response) {
......@@ -86,10 +86,11 @@ class Bridge {
*
* @param {Object=} args 请求对象
*/
getActionUrl(args = {}) {
getActionUrl (args = {}) {
console.log('bridge.getActionUrl');
return new Promise((resolve, reject) => {
try {
console.log('try bridge.getActionUrl');
jsBridge.callHandler("getActionUrl", args, function (response) {
resolve(response);
});
......
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