Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-new-compaign
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-new-compaign
提交
eea3cdac
提交
eea3cdac
编写于
3月 13, 2020
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
云鹊豆瓜分状态接口字段变更
上级
2632e0c7
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
11 行删除
+18
-11
index.vue
components/carve-up/index.vue
+10
-4
index.vue
pages/index.vue
+8
-7
未找到文件。
components/carve-up/index.vue
浏览文件 @
eea3cdac
...
@@ -43,10 +43,10 @@
...
@@ -43,10 +43,10 @@
</div>
</div>
<div
class=
"defeat-content carve-container"
v-if=
"!isFirstCarve && !hasQualification"
>
<div
class=
"defeat-content carve-container"
v-if=
"!isFirstCarve && !hasQualification"
>
<div
class=
"defeat-bg"
>
<div
class=
"defeat-bg"
>
<div
class=
"content content2"
v-show=
"unableReason
== 3 || unableReason == 4
"
>
<div
class=
"content content2"
v-show=
"unableReason
1 == 4 || unableReason2 == 3
"
>
<p
class=
"title"
>
您未参加本次活动
</p>
<p
class=
"title"
>
您未参加本次活动
</p>
</div>
</div>
<div
class=
"content content1"
v-show=
"unableReason
== 1 || unableReason
== 2"
>
<div
class=
"content content1"
v-show=
"unableReason
1 == 3 || unableReason2
== 2"
>
<p
class=
"title"
>
很遗憾
</p>
<p
class=
"title"
>
很遗憾
</p>
<p
class=
"text"
>
您的勤奋分小于100不能瓜分云鹊豆
</p>
<p
class=
"text"
>
您的勤奋分小于100不能瓜分云鹊豆
</p>
</div>
</div>
...
@@ -92,12 +92,18 @@
...
@@ -92,12 +92,18 @@
return
0
return
0
}
}
},
},
unableReason
:
{
//不可瓜分原因1或2是资格不够,3或4是
未参加
unableReason
1
:
{
//判断红包状态接口返回的结果,3分数不够,4
未参加
type
:
Number
,
type
:
Number
,
default
()
{
default
()
{
return
0
return
0
}
}
}
},
unableReason2
:
{
//第一次拆红包后返回的结果,2分数不够,3未参加
type
:
Number
,
default
()
{
return
0
}
},
},
},
data
()
{
data
()
{
return
{
return
{
...
...
pages/index.vue
浏览文件 @
eea3cdac
...
@@ -170,7 +170,8 @@ export default {
...
@@ -170,7 +170,8 @@ export default {
isFirstCarve
:
true
,
//红包是否是未拆状态
isFirstCarve
:
true
,
//红包是否是未拆状态
hasQualification
:
true
,
//是否有资格瓜分
hasQualification
:
true
,
//是否有资格瓜分
beanCarveCount
:
0
,
//可瓜分云鹊豆数量
beanCarveCount
:
0
,
//可瓜分云鹊豆数量
unableReason
:
0
,
//不可瓜分的原因,1或2是资格不够,3或4是未参加
unableReason1
:
0
,
//判断红包状态接口返回的结果,不可瓜分的原因,3分数不够,4未参加
unableReason2
:
0
,
//第一次拆红包后返回的结果, 不可瓜分的原因,2分数不够,3未参加
}
}
},
},
async
asyncData
({
$axios
})
{
async
asyncData
({
$axios
})
{
...
@@ -208,7 +209,7 @@ export default {
...
@@ -208,7 +209,7 @@ export default {
this
.
taskTimeFlag
=
false
;
this
.
taskTimeFlag
=
false
;
}
}
//判断是否到瓜分云鹊豆的时间
//判断是否到瓜分云鹊豆的时间
let
carveTime
=
(
new
Date
(
"2020/0
4
/07 17:00:00"
)).
getTime
();
//"2020/04/07 17:00:00"
let
carveTime
=
(
new
Date
(
"2020/0
3
/07 17:00:00"
)).
getTime
();
//"2020/04/07 17:00:00"
if
(
carveTime
<=
nowTime
)
{
if
(
carveTime
<=
nowTime
)
{
this
.
getRedPacketsLog
();
this
.
getRedPacketsLog
();
}
}
...
@@ -412,7 +413,7 @@ export default {
...
@@ -412,7 +413,7 @@ export default {
this
.
beanCarveCount
=
res
.
data
.
totalBonus
;
this
.
beanCarveCount
=
res
.
data
.
totalBonus
;
}
else
{
//2分数不够,3未参加
}
else
{
//2分数不够,3未参加
this
.
hasQualification
=
false
;
this
.
hasQualification
=
false
;
this
.
unableReason
=
res
.
data
.
status
;
this
.
unableReason
2
=
res
.
data
.
status
;
}
}
})
})
},
},
...
@@ -420,16 +421,16 @@ export default {
...
@@ -420,16 +421,16 @@ export default {
getRedPacketsLog
({
getRedPacketsLog
({
activityId
:
this
.
activityId
activityId
:
this
.
activityId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
status
==
2
)
{
//红包未拆
if
(
res
.
data
.
status
==
1
)
{
//红包未拆
this
.
isFirstCarve
=
true
;
this
.
isFirstCarve
=
true
;
}
else
{
}
else
{
this
.
isFirstCarve
=
false
;
this
.
isFirstCarve
=
false
;
if
(
res
.
data
.
status
==
3
)
{
if
(
res
.
data
.
status
==
2
)
{
this
.
hasQualification
=
true
;
this
.
hasQualification
=
true
;
this
.
beanCarveCount
=
res
.
data
.
totalBonus
;
this
.
beanCarveCount
=
res
.
data
.
totalBonus
;
}
else
{
//
1
分数不够,4未参加
}
else
{
//
3
分数不够,4未参加
this
.
hasQualification
=
false
;
this
.
hasQualification
=
false
;
this
.
unableReason
=
res
.
data
.
status
;
this
.
unableReason
1
=
res
.
data
.
status
;
}
}
}
}
this
.
showCarveUp
=
true
;
//展示瓜分组件
this
.
showCarveUp
=
true
;
//展示瓜分组件
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录