Commit 58e583aa authored by WangRui's avatar WangRui

[feature]融资意向调整

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