Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
alumni-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
alumni-show-h5
Commits
84a24482
提交
84a24482
authored
1月 05, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
投票增加限制
上级
2c1c5478
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
3 行删除
+16
-3
favicon.ico
public/favicon.ico
+0
-0
Login.vue
src/views/login/Login.vue
+1
-1
Primary.vue
src/views/vote/Primary.vue
+15
-2
没有找到文件。
public/favicon.ico
查看替换文件 @
2c1c5478
浏览文件 @
84a24482
16.6 KB
|
W:
|
H:
2.0 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/login/Login.vue
浏览文件 @
84a24482
...
...
@@ -180,7 +180,7 @@ export default {
.logo
{
width
:
136px
;
height
:
44px
;
background
:
url('
~@/assets/img/logo.pn
g')
no-repeat
;
background
:
url('
https://zws-imgs-pub.ezijing.com/pc/base/logo.sv
g')
no-repeat
;
background-size
:
contain
;
}
.login-hd
{
...
...
src/views/vote/Primary.vue
浏览文件 @
84a24482
...
...
@@ -45,14 +45,25 @@ export default {
}
},
methods
:
{
handSubmit
()
{
async
handSubmit
()
{
const
ids
=
this
.
list
.
reduce
((
results
,
item
)
=>
{
item
.
candidate
.
forEach
(
user
=>
{
user
.
checked
&&
results
.
push
(
user
.
id
)
})
return
results
},
[])
this
.
handleRequest
(
ids
)
const
hasVote
=
await
this
.
checkVote
()
if
(
hasVote
)
{
this
.
$toast
(
'你已经投过票了'
)
}
else
{
this
.
handleRequest
(
ids
)
}
},
// 检测是否投票
checkVote
()
{
return
api
.
checkVote
().
then
(
response
=>
{
return
response
.
flag
})
},
handleRequest
(
ids
)
{
api
.
addVote
(
ids
).
then
(
response
=>
{
...
...
@@ -61,6 +72,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$refs
.
countDown
.
start
()
})
}
else
{
this
.
$toast
(
response
.
message
)
}
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论