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
提交
eb890294
提交
eb890294
编写于
12月 13, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
根据服务端返回时间显示
上级
7c20e69c
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
31 行增加
和
9 行删除
+31
-9
index.vue
components/h5header/index.vue
+7
-0
activityPage.vue
pages/activityPage.vue
+15
-6
shareResult.vue
pages/shareResult.vue
+7
-1
vue-inject.js
plugins/vue-inject.js
+2
-2
未找到文件。
components/h5header/index.vue
浏览文件 @
eb890294
...
@@ -95,6 +95,13 @@
...
@@ -95,6 +95,13 @@
this
.
$rocNative
.
getStatusBarHeight
().
then
(
res
=>
{
this
.
$rocNative
.
getStatusBarHeight
().
then
(
res
=>
{
const
dpr
=
window
.
devicePixelRatio
;
const
dpr
=
window
.
devicePixelRatio
;
this
.
statusBarHeight
=
this
.
$rocNative
.
isIOS
?
res
.
statusBarHeight
:
res
.
statusBarHeight
/
dpr
;
this
.
statusBarHeight
=
this
.
$rocNative
.
isIOS
?
res
.
statusBarHeight
:
res
.
statusBarHeight
/
dpr
;
// alert(this.$rocNative.isIOS)
// alert(res.homeIndicatorHeight)
// alert(res.statusBarHeight)
if
(
this
.
$rocNative
.
isIOS
&&
res
.
homeIndicatorHeight
&&
res
.
statusBarHeight
===
0
){
this
.
statusBarHeight
=
44
;
}
// alert(this.statusBarHeight)
this
.
$emit
(
'getHeaderHeight'
,
this
.
statusBarHeight
+
44
);
this
.
$emit
(
'getHeaderHeight'
,
this
.
statusBarHeight
+
44
);
})
})
},
},
...
...
pages/activityPage.vue
浏览文件 @
eb890294
...
@@ -242,7 +242,6 @@
...
@@ -242,7 +242,6 @@
yestodayAwards
:
''
,
// 昨日可获得
yestodayAwards
:
''
,
// 昨日可获得
token
:
''
,
token
:
''
,
activityId
:
''
,
// 上线前等产品通知修改默认值
activityId
:
''
,
// 上线前等产品通知修改默认值
scoreAwardTips
:
''
,
scoreAwardTips
:
''
,
encryptId
:
''
,
// 加密后的id,(分享传参用)
encryptId
:
''
,
// 加密后的id,(分享传参用)
serverTime
:
''
,
serverTime
:
''
,
...
@@ -394,6 +393,15 @@
...
@@ -394,6 +393,15 @@
return
item
.
mobile
;
return
item
.
mobile
;
}
}
},
},
checkShowAwardModal
(
currentTime
){
let
msecSixteen
=
new
Date
(
'2019/12/16 00:00:00'
).
getTime
();
let
msecThirty
=
new
Date
(
'2019/12/31 00:00:00'
).
getTime
();
if
(
currentTime
<
msecSixteen
||
currentTime
>
msecThirty
){
vm
.
awardModalShow
=
false
;
}
else
{
vm
.
awardModalShow
=
true
;
}
},
returnScoreAwardTips
()
{
returnScoreAwardTips
()
{
let
award
=
''
;
let
award
=
''
;
if
(
vm
.
doctorInfo
)
{
if
(
vm
.
doctorInfo
)
{
...
@@ -563,18 +571,19 @@
...
@@ -563,18 +571,19 @@
if
(
isYesterdayRankShow
){
if
(
isYesterdayRankShow
){
return
;
return
;
}
}
const
currentDateTime
=
new
Date
(
vm
.
doctorInfo
.
todayDate
).
getTime
()
||
new
Date
().
getTime
();
vm
.
checkShowAwardModal
(
currentDateTime
);
if
(
vm
.
doctorInfo
.
userYesterdayRank
==
1
){
if
(
vm
.
doctorInfo
.
userYesterdayRank
==
1
){
vm
.
awardModalShow
=
true
;
//
vm.awardModalShow = true;
vm
.
yestodayAwards
=
getFirstAwards
(
vm
.
doctorInfo
.
yesterdayDate
)
+
'*1台'
;
vm
.
yestodayAwards
=
getFirstAwards
(
vm
.
doctorInfo
.
yesterdayDate
)
+
'*1台'
;
}
else
if
(
vm
.
doctorInfo
.
userYesterdayRank
>=
2
&&
vm
.
doctorInfo
.
userYesterdayRank
<=
3
){
}
else
if
(
vm
.
doctorInfo
.
userYesterdayRank
>=
2
&&
vm
.
doctorInfo
.
userYesterdayRank
<=
3
){
vm
.
awardModalShow
=
true
;
//
vm.awardModalShow = true;
vm
.
yestodayAwards
=
vm
.
awardList
.
No3
+
'*1支'
;
vm
.
yestodayAwards
=
vm
.
awardList
.
No3
+
'*1支'
;
}
else
if
(
vm
.
doctorInfo
.
userYesterdayRank
>=
4
&&
vm
.
doctorInfo
.
userYesterdayRank
<=
10
){
}
else
if
(
vm
.
doctorInfo
.
userYesterdayRank
>=
4
&&
vm
.
doctorInfo
.
userYesterdayRank
<=
10
){
vm
.
awardModalShow
=
true
;
//
vm.awardModalShow = true;
vm
.
yestodayAwards
=
vm
.
awardList
.
No10
+
'*1支'
;
vm
.
yestodayAwards
=
vm
.
awardList
.
No10
+
'*1支'
;
}
else
{
}
else
{
vm
.
awardModalShow
=
false
;
//
vm.awardModalShow = false;
}
}
if
(
vm
.
awardModalShow
){
if
(
vm
.
awardModalShow
){
...
...
pages/shareResult.vue
浏览文件 @
eb890294
...
@@ -61,10 +61,16 @@
...
@@ -61,10 +61,16 @@
return
{
return
{
statusTxt
:
''
,
statusTxt
:
''
,
// showMask: false,
// showMask: false,
path
:
getShareUrl
()
+
'year_end_ssr/activityPage'
,
// path: getShareUrl() + 'year_end_ssr/activityPage',
path
:
'http://10.177.11.228:3009/year_end_ssr/activityPage'
}
}
},
},
mounted
(){
mounted
(){
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
//获取判断用的对象
if
(
ua
.
match
(
/MicroMessenger/i
)
==
"micromessenger"
)
{
}
else
{
this
.
$callApp
(
this
.
path
);
}
this
.
statusTxt
=
(
this
.
$route
.
query
.
status
.
toString
()
==
'true'
)
?
'领取成功'
:
'您已领取'
;
this
.
statusTxt
=
(
this
.
$route
.
query
.
status
.
toString
()
==
'true'
)
?
'领取成功'
:
'您已领取'
;
document
.
querySelector
(
'body'
).
setAttribute
(
'style'
,
'background: "";'
);
document
.
querySelector
(
'body'
).
setAttribute
(
'style'
,
'background: "";'
);
// 微信分享
// 微信分享
...
...
plugins/vue-inject.js
浏览文件 @
eb890294
import
Vue
from
'vue'
import
Vue
from
'vue'
import
PicaJsBridge
from
'@/utils/jsbridge'
import
PicaJsBridge
from
'@/utils/jsbridge'
//
import Vconsole from 'vconsole';
import
Vconsole
from
'vconsole'
;
//
const vConsole = new Vconsole();
const
vConsole
=
new
Vconsole
();
Vue
.
prototype
.
$rocNative
=
new
PicaJsBridge
();
Vue
.
prototype
.
$rocNative
=
new
PicaJsBridge
();
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录