提交 cbfdc056 编写于 作者: 张敬贤's avatar 张敬贤

fix

上级 3b0c240c
...@@ -14,7 +14,8 @@ module.exports = { ...@@ -14,7 +14,8 @@ module.exports = {
globals: { globals: {
'gdp': true, 'gdp': true,
'uni': true, 'uni': true,
'wx':true 'wx': true,
'qq':true
}, },
// add your custom rules here // add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue //it is base on https://github.com/vuejs/eslint-config-vue
......
...@@ -28,22 +28,22 @@ ...@@ -28,22 +28,22 @@
<script src="<%= VUE_APP_OSS_URL %>static/js/crypto.min-4.0.0.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/crypto.min-4.0.0.js"></script>
<script src="<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"></script>
<script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script>
<script type="text/javascript" src="https://mapapi.qq.com/web/mapComponents/geoLocation/v/geolocation.min.js"></script>
<script> <script>
// !(function(c,b,d,a){c[a]||(c[a]={});c[a].config= !(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
// { {
// pid:"bj53rb58f5@29641a9002f6545", pid:"bj53rb58f5@29641a9002f6545",
// appType:"web", appType:"web",
// imgUrl:"https://arms-retcode.aliyuncs.com/r.png?", imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",
// sendResource:true, sendResource:true,
// enableLinkTrace:true, enableLinkTrace:true,
// behavior:true, behavior:true,
// useFmp:true, useFmp:true,
// enableSPA:true, enableSPA:true,
// enableConsole:true enableConsole:true
// }; };
// with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d) with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)
// })(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl"); })(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
</script> </script>
</body> </body>
</html> </html>
...@@ -61,5 +61,13 @@ window.Vue.use(Loading); ...@@ -61,5 +61,13 @@ window.Vue.use(Loading);
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
securityJsCode: '5dfc1ae6a14ad5c005ffb2ad6d718ae4' securityJsCode: '5dfc1ae6a14ad5c005ffb2ad6d718ae4'
}; };
var geolocation = new qq.maps.Geolocation('GCUBZ-6O6K3-VVB3E-3PNKF-HY77K-G6BTN', 'myapp');
console.log('geolocation', geolocation.getLocation);
geolocation.getLocation(function (result) {
console.log('result', result);
}, function (result) {
console.log(result);
});
console.log('router, store, vueApp: ', router, store, vueApp); console.log('router, store, vueApp: ', router, store, vueApp);
console.log('window :>> ', window); console.log('window :>> ', window);
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
console.log('yunOrderNo', yunOrderNo); console.log('yunOrderNo', yunOrderNo);
this.getDetectionName(yunOrderNo); this.getDetectionName(yunOrderNo);
this.getOrderInfo(yunOrderNo); this.getOrderInfo(yunOrderNo);
this.initMap(); // this.initMap();
// document.addEventListener('UniAppJSBridgeReady', function() { // document.addEventListener('UniAppJSBridgeReady', function() {
// console.log('UniAppJSBridgeReady', uni); // console.log('UniAppJSBridgeReady', uni);
...@@ -321,12 +321,12 @@ export default { ...@@ -321,12 +321,12 @@ export default {
var that = this; var that = this;
// latitude: 70 // latitude: 70
// longitude: 50.2 // longitude: 50.2
const data = { // const data = {
projectEquityNo: that.projectEquityNo, // projectEquityNo: that.projectEquityNo,
latitude: 70, // latitude: 70,
longitude: 50.2, // longitude: 50.2,
}; // };
that.getHospitalList(data); // that.getHospitalList(data);
AMapLoader.load({ AMapLoader.load({
key:'d22c1f112c97cb93b8d343b18420b98d', // 申请好的Web端开发者Key,首次调用 load 时必填 key:'d22c1f112c97cb93b8d343b18420b98d', // 申请好的Web端开发者Key,首次调用 load 时必填
version:'2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 version:'2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
...@@ -347,8 +347,8 @@ export default { ...@@ -347,8 +347,8 @@ export default {
}); });
geolocation.getCurrentPosition((status, result) => { geolocation.getCurrentPosition((status, result) => {
console.log('geolocation,', status, result); console.log('geolocation,', status, result);
if (geolocation.result) { if (result) {
store.set('geolocation', geolocation.result.position); store.set('geolocation', result.position);
} }
that.position.latitude = result.position.lat || ''; that.position.latitude = result.position.lat || '';
that.position.longitude = result.position.lng || ''; that.position.longitude = result.position.lng || '';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册