|
|
|
@ -26,12 +26,28 @@ export default {
|
|
|
|
|
if('fail' in params)params.fail(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
uni.getLocation = (params) => { |
|
|
|
|
// uni.getLocation = (params) => {
|
|
|
|
|
// try {
|
|
|
|
|
// console.log('getLocation', params)
|
|
|
|
|
// if('compile' in params)params.compile();
|
|
|
|
|
// eshimin.getLocation({
|
|
|
|
|
// onResponse:function (res) {
|
|
|
|
|
// if('success' in params)params.success(res);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }catch (e){
|
|
|
|
|
// console.log(e)
|
|
|
|
|
// if('fail' in params)params.fail(e);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
uni.makePhoneCall = (params) => { |
|
|
|
|
try { |
|
|
|
|
console.log('getLocation', params) |
|
|
|
|
console.log('makePhoneCall', params) |
|
|
|
|
if('compile' in params)params.compile(); |
|
|
|
|
eshimin.getLocation({ |
|
|
|
|
phoneNum:params.phoneNumber, |
|
|
|
|
onResponse:function (res) { |
|
|
|
|
alert(res) |
|
|
|
|
if('success' in params)params.success(res); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -40,21 +56,24 @@ export default {
|
|
|
|
|
if('fail' in params)params.fail(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
uni.makePhoneCall = (params) => { |
|
|
|
|
uni.setNavigationBarTitle = (params) => { |
|
|
|
|
try { |
|
|
|
|
console.log('makePhoneCall', params) |
|
|
|
|
console.log('setTitle', params) |
|
|
|
|
if('compile' in params)params.compile(); |
|
|
|
|
eshimin.getLocation({ |
|
|
|
|
phoneNum:params.phoneNumber, |
|
|
|
|
eshimin.setTitle({ |
|
|
|
|
title:params.title, |
|
|
|
|
onResponse:function (res) { |
|
|
|
|
alert(res) |
|
|
|
|
if('success' in params)params.success(res); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
alert(12) |
|
|
|
|
}catch (e){ |
|
|
|
|
console.log(e) |
|
|
|
|
alert(e); |
|
|
|
|
if('fail' in params)params.fail(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|