Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
Y
year-end-activitiy
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.foundation.frontend
year-end-activitiy
提交
242b6462
提交
242b6462
编写于
11月 26, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pretty-code 代码格式排版
上级
2026b8a4
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
160 行增加
和
166 行删除
+160
-166
prehot.vue
pages/prehot.vue
+160
-166
未找到文件。
pages/prehot.vue
浏览文件 @
242b6462
<
template
>
<
template
>
<section
class=
"index-wrap"
>
<section
class=
"index-wrap"
>
<h5header
v-if=
"!isWeb"
<h5header
v-if=
"!isWeb"
title=
"云鹊奖"
:scrollVal=
"scrollVal"
:baseShowHeight=
"25"
:shareObj=
"shareObj"
:setedScroll=
"true"
/>
title=
"云鹊奖"
:scrollVal=
"scrollVal"
:baseShowHeight=
"25"
:shareObj=
"shareObj"
:setedScroll=
"true"
/>
<div
id=
"imgHeight1"
>
<div
id=
"imgHeight1"
>
<img
src=
"../assets/img/img1.png"
/>
<img
src=
"../assets/img/img1.png"
/>
<img
src=
"../assets/img/img2.png"
/>
<img
src=
"../assets/img/img2.png"
/>
...
@@ -23,7 +17,6 @@
...
@@ -23,7 +17,6 @@
<h5>
已参与机构
</h5>
<h5>
已参与机构
</h5>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"btn-appoint btn-app-share"
id=
"imgHeight3"
>
<div
class=
"btn-appoint btn-app-share"
id=
"imgHeight3"
>
<img
v-if=
"!remindStatus"
@
click=
"setRemind"
src=
"../assets/img/btn_appoint.png"
/>
<img
v-if=
"!remindStatus"
@
click=
"setRemind"
src=
"../assets/img/btn_appoint.png"
/>
...
@@ -93,12 +86,12 @@ export default {
...
@@ -93,12 +86,12 @@ export default {
shareObj
:
{}
shareObj
:
{}
}
}
},
},
created
(){
created
()
{
getCnt
().
then
(
res
=>
{
getCnt
().
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
doctorIdCnt
=
res
.
data
.
doctorIdCnt
;
this
.
doctorIdCnt
=
res
.
data
.
doctorIdCnt
;
this
.
hospitalIdCnt
=
res
.
data
.
hospitalIdCnt
;
this
.
hospitalIdCnt
=
res
.
data
.
hospitalIdCnt
;
}
else
{
}
else
{
this
.
$toast
(
res
.
message
)
this
.
$toast
(
res
.
message
)
}
}
});
});
...
@@ -113,7 +106,7 @@ export default {
...
@@ -113,7 +106,7 @@ export default {
this
.
isWeb
=
this
.
$rocNative
.
isWeb
;
this
.
isWeb
=
this
.
$rocNative
.
isWeb
;
this
.
$rocNative
.
getToken
().
then
(
res
=>
{
this
.
$rocNative
.
getToken
().
then
(
res
=>
{
const
{
userToken
}
=
res
;
const
{
userToken
}
=
res
;
getRemindStatus
(
userToken
).
then
(
res
=>
{
getRemindStatus
(
userToken
).
then
(
res
=>
{
this
.
remindStatus
=
res
.
data
;
this
.
remindStatus
=
res
.
data
;
});
});
});
});
...
@@ -121,33 +114,34 @@ export default {
...
@@ -121,33 +114,34 @@ export default {
},
},
methods
:
{
methods
:
{
// 处理滚动按钮悬浮事件
// 处理滚动按钮悬浮事件
scrollHandle
()
{
scrollHandle
()
{
const
_self
=
this
;
const
_self
=
this
;
const
imgHeight1
=
document
.
getElementById
(
'imgHeight1'
).
offsetHeight
;
const
imgHeight1
=
document
.
getElementById
(
'imgHeight1'
).
offsetHeight
;
const
imgHeight2
=
document
.
getElementById
(
'imgHeight2'
).
offsetHeight
;
const
imgHeight2
=
document
.
getElementById
(
'imgHeight2'
).
offsetHeight
;
const
imgHeight3
=
document
.
getElementById
(
'imgHeight3'
).
offsetHeight
;
const
imgHeight3
=
document
.
getElementById
(
'imgHeight3'
).
offsetHeight
;
let
bodyScrollTop
=
0
,
documentScrollTop
=
0
;
let
bodyScrollTop
=
0
,
documentScrollTop
=
0
;
window
.
onscroll
=
()
=>
{
window
.
onscroll
=
()
=>
{
if
(
document
.
body
)
{
if
(
document
.
body
)
{
bodyScrollTop
=
document
.
body
.
scrollTop
;
bodyScrollTop
=
document
.
body
.
scrollTop
;
}
}
if
(
document
.
documentElement
)
{
if
(
document
.
documentElement
)
{
documentScrollTop
=
document
.
documentElement
.
scrollTop
;
documentScrollTop
=
document
.
documentElement
.
scrollTop
;
}
}
const
heightVal
=
imgHeight1
+
imgHeight2
+
imgHeight3
;
const
heightVal
=
imgHeight1
+
imgHeight2
+
imgHeight3
;
const
scrollVal
=
bodyScrollTop
||
documentScrollTop
;
const
scrollVal
=
bodyScrollTop
||
documentScrollTop
;
this
.
scrollVal
=
scrollVal
;
this
.
scrollVal
=
scrollVal
;
if
(
scrollVal
>=
heightVal
)
{
if
(
scrollVal
>=
heightVal
)
{
_self
.
showFixed
=
true
;
_self
.
showFixed
=
true
;
}
else
{
}
else
{
_self
.
showFixed
=
false
;
_self
.
showFixed
=
false
;
}
}
}
}
},
},
// 提醒预约
// 提醒预约
setRemind
()
{
setRemind
()
{
if
(
this
.
isWeb
)
{
if
(
this
.
isWeb
)
{
this
.
$dialog
.
confirm
({
this
.
$dialog
.
confirm
({
title
:
'提醒'
,
title
:
'提醒'
,
message
:
'请前往云鹊医APP参与活动'
,
message
:
'请前往云鹊医APP参与活动'
,
...
@@ -157,14 +151,14 @@ export default {
...
@@ -157,14 +151,14 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
window
.
location
.
href
=
'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile'
;
window
.
location
.
href
=
'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile'
;
});
});
}
else
{
}
else
{
this
.
$rocNative
.
getToken
().
then
(
data
=>
{
this
.
$rocNative
.
getToken
().
then
(
data
=>
{
const
{
userToken
}
=
data
;
const
{
userToken
}
=
data
;
checkHospitalStatus
(
userToken
).
then
(
res
=>
{
checkHospitalStatus
(
userToken
).
then
(
res
=>
{
const
status
=
res
.
data
.
status
;
const
status
=
res
.
data
.
status
;
if
(
status
==
1
){
// 机构状态正常
if
(
status
==
1
)
{
// 机构状态正常
remind
({
token
:
userToken
}).
then
(
res
=>
{
remind
({
token
:
userToken
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
$dialog
.
alert
({
this
.
$dialog
.
alert
({
title
:
'设置提醒成功'
,
title
:
'设置提醒成功'
,
message
:
'云鹊奖活动正式时间:12月16日 10:00开始,我们将会以APP消息提醒和短信形式提醒道您,请记得及时参与活动'
,
message
:
'云鹊奖活动正式时间:12月16日 10:00开始,我们将会以APP消息提醒和短信形式提醒道您,请记得及时参与活动'
,
...
@@ -172,13 +166,13 @@ export default {
...
@@ -172,13 +166,13 @@ export default {
className
:
'remind-success'
className
:
'remind-success'
});
});
this
.
remindStatus
=
true
;
this
.
remindStatus
=
true
;
}
else
{
}
else
{
this
.
$toast
(
res
.
message
)
this
.
$toast
(
res
.
message
)
}
}
})
})
}
else
if
(
status
==
15
){
// 15创建机构审核中
}
else
if
(
status
==
15
)
{
// 15创建机构审核中
let
hospital
=
'默认机构名称'
;
let
hospital
=
'默认机构名称'
;
if
(
res
.
data
&&
res
.
data
.
hospital
)
{
if
(
res
.
data
&&
res
.
data
.
hospital
)
{
hospital
=
res
.
data
.
hospital
hospital
=
res
.
data
.
hospital
}
}
this
.
$dialog
.
confirm
({
this
.
$dialog
.
confirm
({
...
@@ -188,12 +182,12 @@ export default {
...
@@ -188,12 +182,12 @@ export default {
cancelButtonText
:
'我知道了'
,
cancelButtonText
:
'我知道了'
,
className
:
'remind-success'
,
className
:
'remind-success'
,
}).
then
(()
=>
{
}).
then
(()
=>
{
if
(
this
.
$rocNative
.
isAndroid
)
{
if
(
this
.
$rocNative
.
isAndroid
)
{
this
.
$rocNative
.
setNeedClearUrl
({
url
:
'year_end_ssr'
});
this
.
$rocNative
.
setNeedClearUrl
({
url
:
'year_end_ssr'
});
}
}
this
.
$rocNative
.
gotoInstitutionalReview
({
url
:
window
.
location
.
href
});
this
.
$rocNative
.
gotoInstitutionalReview
({
url
:
window
.
location
.
href
});
});
});
}
else
{
// 除了1都是未加入机构
}
else
{
// 除了1都是未加入机构
this
.
$dialog
.
confirm
({
this
.
$dialog
.
confirm
({
title
:
'提醒'
,
title
:
'提醒'
,
message
:
'抱歉,您暂未加入机构,需加入机构才可参与活动'
,
message
:
'抱歉,您暂未加入机构,需加入机构才可参与活动'
,
...
@@ -201,10 +195,10 @@ export default {
...
@@ -201,10 +195,10 @@ export default {
cancelButtonText
:
'我知道了'
,
cancelButtonText
:
'我知道了'
,
className
:
'remind-success'
,
className
:
'remind-success'
,
}).
then
(()
=>
{
}).
then
(()
=>
{
if
(
this
.
$rocNative
.
isAndroid
)
{
if
(
this
.
$rocNative
.
isAndroid
)
{
this
.
$rocNative
.
setNeedClearUrl
({
url
:
'year_end_ssr'
});
this
.
$rocNative
.
setNeedClearUrl
({
url
:
'year_end_ssr'
});
}
}
this
.
$rocNative
.
gotoActivityHospital
({
url
:
window
.
location
.
href
});
this
.
$rocNative
.
gotoActivityHospital
({
url
:
window
.
location
.
href
});
});
});
}
}
})
})
...
@@ -212,19 +206,19 @@ export default {
...
@@ -212,19 +206,19 @@ export default {
}
}
},
},
// 微信分享
// 微信分享
goShare
()
{
goShare
()
{
this
.
$rocNative
.
shareWechat
(
this
.
shareObj
);
this
.
$rocNative
.
shareWechat
(
this
.
shareObj
);
},
},
// 活动规则
// 活动规则
ruleLink
()
{
ruleLink
()
{
window
.
location
.
href
=
'https://phome.yunqueyi.com/template_v2/?id=594'
;
window
.
location
.
href
=
'https://phome.yunqueyi.com/template_v2/?id=594'
;
}
}
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import '../assets/style/index.less';
@import '../assets/style/index.less';
</
style
>
</
style
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
@import '../assets/style/revant.less';
@import '../assets/style/revant.less';
</
style
>
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录