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
提交
6bc84dc4
提交
6bc84dc4
编写于
3月 17, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
点赞页面问题优化
上级
43842e07
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
88 行增加
和
13 行删除
+88
-13
common-loading.vue
components/bussiness/common-loading.vue
+58
-0
index.vue
pages/index.vue
+10
-9
index.vue
pages/login-point/index.vue
+20
-4
未找到文件。
components/bussiness/common-loading.vue
0 → 100644
浏览文件 @
6bc84dc4
<
template
>
<div
class=
"common-loader loader--style3"
title=
"2"
>
<div
class=
"loader-mask"
></div>
<svg
version=
"1.1"
id=
"loader-1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"40"
height=
"40"
viewBox=
"0 0 60 60"
style=
"enable-background:new 0 0 80 80;"
xml:space=
"preserve"
>
<path
fill=
"#000"
d=
"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"
>
<animateTransform
attributeType=
"xml"
attributeName=
"transform"
type=
"rotate"
from=
"0 25 25"
to=
"360 25 25"
dur=
"0.6s"
repeatCount=
"indefinite"
/>
</path>
</svg>
</div>
</
template
>
<
style
lang=
"less"
scoped
>
.common-loader {
.loader-mask {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 1000000020;
background: rgba(0, 0, 0, 0.1);
}
svg {
position: fixed;
top: 300px;
left: 172px;
z-index: 1000000021;
}
}
svg path,
svg rect {
fill: #449284;
}
</
style
>
pages/index.vue
浏览文件 @
6bc84dc4
...
@@ -245,6 +245,7 @@ export default {
...
@@ -245,6 +245,7 @@ export default {
},
},
// 首次进入活动页面
// 首次进入活动页面
firstEnterActivity
(
data
)
{
firstEnterActivity
(
data
)
{
if
(
getCookie
(
'token'
))
{
checkFirstEnter
({
checkFirstEnter
({
activityId
:
this
.
activityId
activityId
:
this
.
activityId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -253,7 +254,7 @@ export default {
...
@@ -253,7 +254,7 @@ export default {
this
.
showFirstEnter
=
true
;
this
.
showFirstEnter
=
true
;
}
}
})
})
}
},
},
getUserInfo
()
{
getUserInfo
()
{
this
.
$rocNative
this
.
$rocNative
...
...
pages/login-point/index.vue
浏览文件 @
6bc84dc4
...
@@ -22,16 +22,22 @@
...
@@ -22,16 +22,22 @@
<van-count-down
v-if=
"!notSend"
:time=
"time"
@
finish=
"finishCount"
:format=
"'ss' + 's'"
/>
<van-count-down
v-if=
"!notSend"
:time=
"time"
@
finish=
"finishCount"
:format=
"'ss' + 's'"
/>
</div>
</div>
<button
class=
"btn-post"
@
click=
"gotoPoint"
v-bp=
"
{ component_tag: '361#360009'}">登录点赞 助力好友
</button>
<button
class=
"btn-post"
@
click=
"gotoPoint"
v-bp=
"
{ component_tag: '361#360009'}">登录点赞 助力好友
</button>
<loading
v-if=
"loadingFlag"
class=
"load-container"
></loading>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
loading
from
'../../components/bussiness/common-loading'
;
import
{
getCaptchaGet
,
getAuthCode
,
pointResult
,
getPublicKey
}
from
'@/service'
;
import
{
getCaptchaGet
,
getAuthCode
,
pointResult
,
getPublicKey
}
from
'@/service'
;
import
{
CryptoJS
}
from
'../../utils/aes'
;
import
{
CryptoJS
}
from
'../../utils/aes'
;
const
TIMEALL
=
60000
;
// 倒计时常量 60 秒
const
TIMEALL
=
60000
;
// 倒计时常量 60 秒
export
default
{
export
default
{
components
:
{
loading
},
data
()
{
data
()
{
return
{
return
{
loadingFlag
:
false
,
notSend
:
true
,
notSend
:
true
,
regMobile
:
/^1
[
3456789
]\d{9}
$/
,
regMobile
:
/^1
[
3456789
]\d{9}
$/
,
mobilePhone
:
''
,
mobilePhone
:
''
,
...
@@ -101,7 +107,7 @@ export default {
...
@@ -101,7 +107,7 @@ export default {
return
;
return
;
}
}
// 校验图形验证码
// 校验图形验证码
if
(
this
.
captchaAnswer
==
''
){
if
(
this
.
captchaAnswer
==
''
){
this
.
$toast
(
'请输入图形验证码'
);
this
.
$toast
(
'请输入图形验证码'
);
return
;
return
;
}
}
...
@@ -157,20 +163,26 @@ export default {
...
@@ -157,20 +163,26 @@ export default {
},
},
// 点赞登录
// 点赞登录
gotoPoint
()
{
gotoPoint
()
{
this
.
loadingFlag
=
true
;
let
param
=
{
let
param
=
{
mobile
:
this
.
mobilePhone
,
mobile
:
this
.
mobilePhone
,
authCode
:
this
.
authCode
,
authCode
:
this
.
authCode
,
id
:
this
.
userId
,
id
:
this
.
userId
,
taskId
:
this
.
taskId
,
taskId
:
this
.
taskId
,
activityId
:
this
.
activityId
activityId
:
this
.
activityId
}
}
;
pointResult
(
param
).
then
(
res
=>
{
pointResult
(
param
).
then
(
res
=>
{
this
.
loadingFlag
=
false
;
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
==
'900001'
)
{
if
(
res
.
data
==
'900001'
)
{
this
.
$toast
(
'不能给自己点赞哦'
);
this
.
$toast
(
'不能给自己点赞哦'
);
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
"/login-point/point-result"
,
query
:
{
code
:
res
.
data
}});
this
.
$router
.
push
({
path
:
"/login-point/point-result"
,
query
:
{
code
:
res
.
data
}});
}
}
}
else
if
(
res
.
code
==
'300000'
)
{
this
.
$toast
(
res
.
message
);
this
.
captchaAnswer
=
''
;
this
.
getCaptcha
();
}
else
{
}
else
{
this
.
$toast
(
res
.
message
);
this
.
$toast
(
res
.
message
);
}
}
...
@@ -181,9 +193,13 @@ export default {
...
@@ -181,9 +193,13 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.point-container {
.point-container {
position: fixed;
top: 0;
left: 0;
background-image: url('../../static/images/background.png');
width: 100%;
width: 100%;
height:
100vh
;
height:
auto
;
background-image:url('../../static/images/background.png')
;
min-height: 100%
;
background-size: 100% 100%;
background-size: 100% 100%;
.info-text {
.info-text {
padding: 30px 0;
padding: 30px 0;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录