Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
cbfdc056
提交
cbfdc056
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
3b0c240c
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
25 行删除
+34
-25
.eslintrc.js
.eslintrc.js
+2
-1
index.html
public/index.html
+15
-15
main.js
src/main.js
+8
-0
index.vue
src/views/appoint/index.vue
+9
-9
未找到文件。
.eslintrc.js
浏览文件 @
cbfdc056
...
...
@@ -14,7 +14,8 @@ module.exports = {
globals
:
{
'gdp'
:
true
,
'uni'
:
true
,
'wx'
:
true
'wx'
:
true
,
'qq'
:
true
},
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
...
...
public/index.html
浏览文件 @
cbfdc056
...
...
@@ -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/vconsole-3.3.4.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>
//
!(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
//
{
//
pid:"bj53rb58f5@29641a9002f6545",
//
appType:"web",
//
imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",
//
sendResource:true,
//
enableLinkTrace:true,
//
behavior:true,
//
useFmp:true,
//
enableSPA:true,
//
enableConsole:true
//
};
//
with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)
//
})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
!
(
function
(
c
,
b
,
d
,
a
){
c
[
a
]
||
(
c
[
a
]
=
{});
c
[
a
].
config
=
{
pid
:
"bj53rb58f5@29641a9002f6545"
,
appType
:
"web"
,
imgUrl
:
"https://arms-retcode.aliyuncs.com/r.png?"
,
sendResource
:
true
,
enableLinkTrace
:
true
,
behavior
:
true
,
useFmp
:
true
,
enableSPA
:
true
,
enableConsole
:
true
};
with
(
b
)
with
(
body
)
with
(
insertBefore
(
createElement
(
"script"
),
firstChild
))
setAttribute
(
"crossorigin"
,
""
,
src
=
d
)
})(
window
,
document
,
"https://retcode.alicdn.com/retcode/bl.js"
,
"__bl"
);
</script>
</body>
</html>
src/main.js
浏览文件 @
cbfdc056
...
...
@@ -61,5 +61,13 @@ window.Vue.use(Loading);
window
.
_AMapSecurityConfig
=
{
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
(
'window :>> '
,
window
);
src/views/appoint/index.vue
浏览文件 @
cbfdc056
...
...
@@ -298,7 +298,7 @@ export default {
console
.
log
(
'yunOrderNo'
,
yunOrderNo
);
this
.
getDetectionName
(
yunOrderNo
);
this
.
getOrderInfo
(
yunOrderNo
);
this
.
initMap
();
//
this.initMap();
// document.addEventListener('UniAppJSBridgeReady', function() {
// console.log('UniAppJSBridgeReady', uni);
...
...
@@ -321,12 +321,12 @@ export default {
var
that
=
this
;
// latitude: 70
// longitude: 50.2
const
data
=
{
projectEquityNo
:
that
.
projectEquityNo
,
latitude
:
70
,
longitude
:
50.2
,
};
that
.
getHospitalList
(
data
);
//
const data = {
//
projectEquityNo: that.projectEquityNo,
//
latitude: 70,
//
longitude: 50.2,
//
};
//
that.getHospitalList(data);
AMapLoader
.
load
({
key
:
'd22c1f112c97cb93b8d343b18420b98d'
,
// 申请好的Web端开发者Key,首次调用 load 时必填
version
:
'2.0'
,
// 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
...
...
@@ -347,8 +347,8 @@ export default {
});
geolocation
.
getCurrentPosition
((
status
,
result
)
=>
{
console
.
log
(
'geolocation,'
,
status
,
result
);
if
(
geolocation
.
result
)
{
store
.
set
(
'geolocation'
,
geolocation
.
result
.
position
);
if
(
result
)
{
store
.
set
(
'geolocation'
,
result
.
position
);
}
that
.
position
.
latitude
=
result
.
position
.
lat
||
''
;
that
.
position
.
longitude
=
result
.
position
.
lng
||
''
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录