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
提交
5279e6da
提交
5279e6da
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
8f4348f7
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
main.js
src/main.js
+2
-2
index.vue
src/views/appointDetails/index.vue
+12
-12
未找到文件。
src/main.js
浏览文件 @
5279e6da
...
@@ -40,8 +40,8 @@ vueApp.$rocNative.appInit();
...
@@ -40,8 +40,8 @@ vueApp.$rocNative.appInit();
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
vueApp
.
$rocNative
.
WXInstance
.
miniProgram
.
getEnv
(
function
(
res
)
{
vueApp
.
$rocNative
.
WXInstance
.
miniProgram
.
getEnv
(
function
(
res
)
{
console
.
log
(
res
.
miniprogram
);
// true
console
.
log
(
'_miniprogram'
,
res
.
miniprogram
);
// true
window
.
miniprogram
=
res
.
miniprogram
;
window
.
_
miniprogram
=
res
.
miniprogram
;
});
});
});
});
...
...
src/views/appointDetails/index.vue
浏览文件 @
5279e6da
...
@@ -220,16 +220,6 @@ export default {
...
@@ -220,16 +220,6 @@ export default {
const
latitude
=
this
.
detailInfo
.
latitude
;
const
latitude
=
this
.
detailInfo
.
latitude
;
const
longitude
=
this
.
detailInfo
.
longitude
;
const
longitude
=
this
.
detailInfo
.
longitude
;
if
(
window
.
miniProgram
)
{
const
addressInfo
=
{
address
:
this
.
detailInfo
.
hospitalAddress
,
latitude
:
this
.
detailInfo
.
latitude
,
longitude
:
this
.
detailInfo
.
longitude
,
name
:
this
.
detailInfo
.
hospitalName
,
};
this
.
$rocNative
.
WXInstance
.
miniProgram
.
openLocation
(
addressInfo
);
return
;
}
if
(
geolocation
&&
geolocation
.
lat
&&
geolocation
.
lng
)
{
if
(
geolocation
&&
geolocation
.
lat
&&
geolocation
.
lng
)
{
// https://uri.amap.com/navigation
// https://uri.amap.com/navigation
}
else
{
}
else
{
...
@@ -259,8 +249,8 @@ export default {
...
@@ -259,8 +249,8 @@ export default {
},
},
bindingCode
()
{
bindingCode
()
{
const
{
pprotocolType
,
detectionServiceRecordId
}
=
this
.
detailInfo
;
const
{
pprotocolType
,
detectionServiceRecordId
}
=
this
.
detailInfo
;
console
.
log
(
'window.miniProgram'
,
window
.
miniP
rogram
);
console
.
log
(
'window.miniProgram'
,
window
.
_minip
rogram
);
if
(
window
.
miniP
rogram
)
{
if
(
window
.
_minip
rogram
)
{
this
.
$rocNative
.
WXInstance
.
miniProgram
.
navigateTo
({
this
.
$rocNative
.
WXInstance
.
miniProgram
.
navigateTo
({
url
:
`/pagesInsurance/binding-code/index?yunOrderNo=
${
this
.
yunOrderNo
}
&detectionRecordId=
${
detectionServiceRecordId
}
&pprotocolType=
${
pprotocolType
}
`
url
:
`/pagesInsurance/binding-code/index?yunOrderNo=
${
this
.
yunOrderNo
}
&detectionRecordId=
${
detectionServiceRecordId
}
&pprotocolType=
${
pprotocolType
}
`
});
});
...
@@ -276,6 +266,16 @@ export default {
...
@@ -276,6 +266,16 @@ export default {
}
}
},
},
navigation
()
{
navigation
()
{
if
(
window
.
_miniprogram
)
{
const
addressInfo
=
{
address
:
this
.
detailInfo
.
hospitalAddress
,
latitude
:
this
.
detailInfo
.
latitude
,
longitude
:
this
.
detailInfo
.
longitude
,
name
:
this
.
detailInfo
.
hospitalName
,
};
this
.
$rocNative
.
WXInstance
.
miniProgram
.
openLocation
(
addressInfo
);
return
;
}
this
.
showSsheet
=
true
;
this
.
showSsheet
=
true
;
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录