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
提交
3a391f4c
提交
3a391f4c
编写于
12月 05, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加昨日获得奖品弹窗
上级
a7a54c32
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
13 行删除
+37
-13
in-activity.vue
pages/in-activity.vue
+27
-12
activityMainpage.js
service/activityMainpage.js
+10
-1
未找到文件。
pages/in-activity.vue
浏览文件 @
3a391f4c
...
...
@@ -187,6 +187,17 @@
<p
class=
"title"
>
打卡成功
</p>
<p
class=
"message"
>
已获得: {{clockAward.mark}}勤奋分, {{clockAward.bean}}云鹊豆
</p>
<div
@
click=
"hideClockModal"
class=
"bottom-btn"
>
我知道了
</div>
</div>
</div>
<!--昨日个人排名获奖啦 弹窗 -->
<div
v-if=
"yesterdayWinVisible"
class=
"toast-wrap"
@
touchmove
.
prevent
>
<div
class=
"full-screen-mask"
></div>
<div
class=
"content-wrap"
>
<img
class=
"back-image"
src=
"../assets/img/stage-two/win-award-bg.png"
alt=
""
>
<p
class=
"title"
style=
"color: #EC592B;"
>
昨日个人排名获奖啦!
</p>
<p
class=
"message"
>
恭喜您获得了小米电视1台
</p>
<div
class=
"bottom-btn"
>
xxxxxx
</div>
<div
class=
"close-btn"
></div>
</div>
</div>
...
...
@@ -207,7 +218,7 @@
</template>
<
script
>
import
{
getActivityId
,
getUserScoreInfo
,
getInviteList
,
getClockStatus
,
goToUpdateClock
,
getTimsActivityInfo
,
selectAppModuleParam
,
checkToken
,
getRole
,
sayHello
}
from
'@/service/activityMainpage'
;
import
{
getActivityId
,
getUserScoreInfo
,
getInviteList
,
getClockStatus
,
goToUpdateClock
,
getTimsActivityInfo
,
selectAppModuleParam
,
checkToken
,
getRole
,
sayHello
,
getEncryptId
}
from
'@/service/activityMainpage'
;
import
{
checkHospitalStatus
}
from
'@/service'
;
import
h5header
from
'@/components/h5header'
;
import
{
getShareUrl
}
from
'@/utils/index'
;
...
...
@@ -282,6 +293,7 @@
clockSuccessVisible
:
false
,
// 是否显示 打卡成功 弹窗
activityEndVisible
:
false
,
// 是否显示 活动结束 弹窗
yesterdayWinVisible
:
false
,
inviteList
:
[],
// 已邀请的用户列表
notInviteShowList
:
[],
// 未邀请的默认显示
...
...
@@ -316,6 +328,9 @@
returnBeanImg
()
{
let
hospitalScore
=
vm
.
doctorInfo
.
hospitalScore
;
let
arr
=
vm
.
doctorInfo
.
hospitalLevelScore
;
if
(
arr
&&
arr
.
length
<
1
){
return
;
}
if
(
hospitalScore
<
arr
[
0
]){
return
require
(
`../assets/img/stage-two/bean-stage-0.png`
);
}
else
if
(
((
arr
[
0
]
==
hospitalScore
)
||
(
arr
[
0
]
<
hospitalScore
))
&&
(
hospitalScore
<
arr
[
1
])
){
...
...
@@ -350,7 +365,13 @@
},
mounted
()
{
// 取服务器时间,切换不同时间段的显示
// 这里需要删掉!!!
vm
.
getUserActivityInfo
();
// 这里需要删掉!!!
vm
.
isWeb
=
vm
.
$rocNative
.
isWeb
;
// 取服务器时间,切换不同时间段的显示
vm
.
getServerTime
();
// 请求接口获取activityId (经与后端产品确认,默认没传id的话,就取接口;默认有的话就不取接口)
if
(
!
vm
.
activityId
){
...
...
@@ -368,14 +389,6 @@
})
}
},
mounted
()
{
// 这里需要删掉!!!
vm
.
getUserActivityInfo
();
// 这里需要删掉!!!
vm
.
isWeb
=
vm
.
$rocNative
.
isWeb
;
vm
.
$rocNative
.
appInit
();
vm
.
getUserInfo
();
// 判断是否登录
...
...
@@ -462,6 +475,10 @@
loginCallback
()
{
vm
.
getUserActivityInfo
();
vm
.
goToCheckJoin
();
getEncryptId
().
then
(
res
=>
{
alert
(
'获取加密过后的id'
);
alert
(
JSON
.
stringify
(
res
))
})
},
getUserActivityInfo
()
{
// 获取用户及参加活动的具体信息
getUserScoreInfo
().
then
(
res
=>
{
...
...
@@ -885,8 +902,6 @@
}
return
text
;
},
<<<<<<<
HEAD
async
jumpPage
(
url
,
id
)
{
const
_this
=
this
;
if
(
!!
url
)
{
...
...
service/activityMainpage.js
浏览文件 @
3a391f4c
...
...
@@ -52,7 +52,7 @@ export const getActivityId = () => {
return
request
({
url
:
`contents/commonComstant/selectByTypeCode?code=C015`
,
method
:
'get'
,
withCredentials
:
true
,
//
withCredentials: true,
})
}
...
...
@@ -100,3 +100,12 @@ export const sayHello = async ({ token }) => {
url
:
`/diplomat/oauth/sayhello?app_id=pica-crrs`
});
}
// 获取加密过后的id
export
const
getEncryptId
=
()
=>
{
return
request
({
url
:
`campaign/inviteDetail/vinci`
,
method
:
'get'
,
withCredentials
:
true
,
})
}
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录