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
提交
0a72bc63
提交
0a72bc63
编写于
3月 11, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
点赞结果文案修改
上级
bfc3ff37
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
64 行增加
和
28 行删除
+64
-28
index.vue
pages/index.vue
+8
-0
index.vue
pages/login-point/index.vue
+18
-2
point-result.vue
pages/login-point/point-result.vue
+28
-26
index.js
service/index.js
+10
-0
未找到文件。
pages/index.vue
浏览文件 @
0a72bc63
...
@@ -106,6 +106,7 @@ import {
...
@@ -106,6 +106,7 @@ import {
getSelfAllScore
,
getSelfAllScore
,
checkFirstEnter
,
checkFirstEnter
,
getActivityTime
,
getActivityTime
,
inviteFirstEnter
,
getCarveStatus
}
from
"@/service"
;
getCarveStatus
}
from
"@/service"
;
import
{
setEventByModuleCode
}
from
"@/utils"
import
{
setEventByModuleCode
}
from
"@/utils"
import
{
ENV_CONFIG
}
from
'@/utils/enumerate'
;
import
{
ENV_CONFIG
}
from
'@/utils/enumerate'
;
...
@@ -182,8 +183,15 @@ export default {
...
@@ -182,8 +183,15 @@ export default {
_this
.
getUserInfo
();
_this
.
getUserInfo
();
};
};
_this
.
getActivityTime
();
_this
.
getActivityTime
();
_this
.
inviteFirstEnter
();
},
},
methods
:
{
methods
:
{
// 首次邀请进入
inviteFirstEnter
()
{
// inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
// })
},
// 获取服务器当前时间
// 获取服务器当前时间
getActivityTime
()
{
getActivityTime
()
{
getActivityTime
().
then
(
res
=>
{
getActivityTime
().
then
(
res
=>
{
...
...
pages/login-point/index.vue
浏览文件 @
0a72bc63
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getCaptchaGet
,
getAuthCode
}
from
'@/service'
;
import
{
getCaptchaGet
,
getAuthCode
,
pointResult
}
from
'@/service'
;
const
TIMEALL
=
60000
;
// 倒计时常量 60 秒
const
TIMEALL
=
60000
;
// 倒计时常量 60 秒
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -111,8 +111,24 @@ export default {
...
@@ -111,8 +111,24 @@ export default {
this
.
notSend
=
true
;
this
.
notSend
=
true
;
this
.
btnMsg
=
'重新获取'
;
this
.
btnMsg
=
'重新获取'
;
},
},
// 点赞登录
gotoPoint
()
{
gotoPoint
()
{
this
.
$router
.
push
({
path
:
"/login-point/point-result"
,
query
:
{}});
let
param
=
{
mobile
:
this
.
mobilePhone
,
authCode
:
this
.
authCode
,
id
:
this
.
userId
,
taskId
:
this
.
taskId
,
activityId
:
this
.
activityId
}
pointResult
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
.
code
==
'900001'
)
{
this
.
$toast
(
'不能给自己点赞哦'
);
}
else
{
this
.
$router
.
push
({
path
:
"/login-point/point-result"
,
query
:
{
code
:
res
.
data
.
code
}});
}
}
})
}
}
}
}
}
}
...
...
pages/login-point/point-result.vue
浏览文件 @
0a72bc63
<
template
>
<
template
>
<section
class=
"point-container"
>
<section
class=
"point-container"
>
<div
:class=
"
{'point-bg': (status != 3)}
">
<div
class=
"point-bg
"
>
<div
class=
"point-status"
>
<div
class=
"point-status"
>
<img
v-if=
"status == 1 || status == 2"
src=
"../../static/images/point-success-nobg.png"
/>
<img
v-if=
"status == 1 || status == 3"
src=
"../../static/images/point-success.png"
/>
<img
v-if=
"status == 3"
src=
"../../static/images/point-success.png"
/>
<img
v-if=
"status == 2"
src=
"../../static/images/point-fail.png"
/>
<img
v-if=
"status == 4"
src=
"../../static/images/point-fail.png"
/>
</div>
</div>
<div
class=
"status-text"
>
<div
class=
"status-text"
>
<p
:class=
"
{'fw': status != 3}
">
{{
pointText1
}}
</p>
<p
class=
"fw
"
>
{{
pointText1
}}
</p>
<p
:class=
"
{'fw': status != 3}
">
{{
pointText2
}}
</p>
<p
class=
"fw
"
>
{{
pointText2
}}
</p>
</div>
</div>
<div
class=
"point-award"
>
<div
class=
"point-award"
>
<div
v-if=
"status != 3"
class=
"award-con"
>
<div
v-if=
"status != 3"
class=
"award-con"
>
<!--
<div>
达到100勤奋分,即有资格瓜分100W云鹊豆
</div>
-->
<img
src=
"../../static/images/point-award-new.png"
/>
<img
src=
"../../static/images/point-award-new.png"
/>
</div>
</div>
</div>
</div>
...
@@ -25,45 +23,49 @@
...
@@ -25,45 +23,49 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
status
:
{
type
:
String
|
Number
,
default
:
1
}
},
data
()
{
data
()
{
return
{
return
{
pointText1
:
""
,
pointText1
:
""
,
pointText2
:
""
,
pointText2
:
""
,
btnText
:
""
btnText
:
""
,
code
:
''
,
status
:
1
}
}
},
},
created
()
{
created
()
{
if
(
this
.
status
==
1
)
{
this
.
code
=
this
.
$route
.
query
.
code
;
this
.
pointText1
=
"点赞成功,感谢您为TA拿下5勤奋分"
;
if
(
this
.
code
==
'900002'
){
this
.
status
=
1
;
this
.
pointText1
=
"点赞成功"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
}
else
if
(
this
.
status
==
2
)
{
}
else
if
(
this
.
code
==
'900003'
)
{
this
.
status
=
1
;
this
.
pointText1
=
"点赞成功"
;
this
.
pointText1
=
"点赞成功"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
}
else
if
(
this
.
status
==
3
)
{
}
else
if
(
this
.
code
==
'900004'
)
{
this
.
pointText1
=
"该活动已结束"
;
this
.
status
=
1
;
this
.
pointText2
=
"登陆云鹊医APP,查看更多精彩内容"
;
this
.
pointText1
=
"点赞成功,感谢您为TA拿下5勤奋分"
;
this
.
btnText
=
"打开APP"
;
}
else
if
(
this
.
status
=
4
)
{
this
.
pointText1
=
"抱歉!您的点赞次数已达3次上限!"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
}
else
if
(
this
.
status
==
5
){
}
else
if
(
this
.
code
=
'900005'
)
{
this
.
pointText1
=
"点赞成功"
;
this
.
status
=
2
;
this
.
pointText1
=
"抱歉!您的点赞次数已达3次上限!"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
pointText2
=
"登陆云鹊医APP,您也可获得75勤奋分"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
}
else
if
(
this
.
status
==
6
)
{
}
else
if
(
this
.
code
==
'900006'
)
{
this
.
status
=
3
;
this
.
pointText1
=
"该活动已结束"
;
this
.
pointText2
=
"登陆云鹊医APP,查看更多精彩内容"
;
this
.
btnText
=
"打开APP"
;
}
else
if
(
this
.
code
==
'900007'
)
{
this
.
status
=
2
;
this
.
pointText1
=
"抱歉!您的点赞次数已达3次上限!"
;
this
.
pointText1
=
"抱歉!您的点赞次数已达3次上限!"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
}
else
{
}
else
{
this
.
status
=
1
;
this
.
pointText1
=
"点赞成功"
;
this
.
pointText1
=
"点赞成功"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
pointText2
=
"登陆云鹊医APP,参加活动瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
this
.
btnText
=
"打开APP参与瓜分云鹊豆"
;
...
...
service/index.js
浏览文件 @
0a72bc63
...
@@ -120,3 +120,13 @@ export const getCarveStatus = ( data ) => {
...
@@ -120,3 +120,13 @@ export const getCarveStatus = ( data ) => {
withCredentials
:
true
withCredentials
:
true
})
})
}
}
// 登录点赞
export
const
pointResult
=
(
data
)
=>
{
}
// 第一次邀请进入
export
const
inviteFirstEnter
=
()
=>
{
}
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录