Commit 58e583aa authored by WangRui's avatar WangRui

[feature]融资意向调整

parent e2ecf9b8
function useLocation(onSuccess = (message) => { console.info(message) }, onError = (error) => { console.error(error) }) { function useLocation() {
return function location() { return function location(onSuccess = (message) => { console.info(message) }, onError = (error) => { console.error(error) }) {
window.onSuccessLoc = onSuccess
window.onErrorLoc = onError
let options = { let options = {
"platform": "gaode",//百度(baidu)或高德(gaode) "platform": "gaode",//百度(baidu)或高德(gaode)
} }
...@@ -7,11 +9,11 @@ function useLocation(onSuccess = (message) => { console.info(message) }, onError ...@@ -7,11 +9,11 @@ function useLocation(onSuccess = (message) => { console.info(message) }, onError
className: "LocationBridge", className: "LocationBridge",
function: "location", function: "location",
params: options, params: options,
successCallBack: "onSuccess", successCallBack: "onSuccessLoc",
failCallBack: "onError" failCallBack: "onErrorLoc"
} }
HandBridge.postMessage(JSON.stringify(arg)); HandBridge.postMessage(JSON.stringify(arg));
} }
} }
export { useLocation } export { useLocation }
\ No newline at end of file
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