Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
00d08b02
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
00d08b02
编写于
5月 31, 2023
作者:
Y
yyt
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'frontend' of gitcode.net:qq_50679803/great-teamwork into frontend
上级
5781d997
75f8c90c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
75 addition
and
22 deletion
+75
-22
teamwork/pages/team/activity-detail.vue
teamwork/pages/team/activity-detail.vue
+43
-21
teamwork/pages/team/add-team-activity.vue
teamwork/pages/team/add-team-activity.vue
+30
-0
teamwork/pages/team/add-team.vue
teamwork/pages/team/add-team.vue
+1
-1
teamwork/pages/team/main.vue
teamwork/pages/team/main.vue
+1
-0
未找到文件。
teamwork/pages/team/activity-detail.vue
浏览文件 @
00d08b02
...
...
@@ -58,7 +58,7 @@
export
default
{
data
()
{
return
{
signStatus
:
'
报名
'
,
signStatus
:
''
,
userId
:
''
,
icon
:
''
,
activityId
:
''
,
...
...
@@ -73,6 +73,22 @@
}
},
methods
:
{
happenTimeFun
(){
//时间戳数据处理
let
date
=
new
Date
();
//时间戳为10位需*1000,时间戳为13位的话不需乘1000
let
y
=
date
.
getFullYear
();
let
MM
=
date
.
getMonth
()
+
1
;
MM
=
MM
<
10
?
(
'
0
'
+
MM
)
:
MM
;
//月补0
let
d
=
date
.
getDate
();
d
=
d
<
10
?
(
'
0
'
+
d
)
:
d
;
//天补0
let
h
=
date
.
getHours
();
h
=
h
<
10
?
(
'
0
'
+
h
)
:
h
;
//小时补0
let
m
=
date
.
getMinutes
();
m
=
m
<
10
?
(
'
0
'
+
m
)
:
m
;
//分钟补0
let
s
=
date
.
getSeconds
();
s
=
s
<
10
?
(
'
0
'
+
s
)
:
s
;
//秒补0
return
y
+
'
-
'
+
MM
+
'
-
'
+
d
+
'
'
+
h
+
'
:
'
+
m
+
'
:
'
+
s
;
},
goBack
()
{
uni
.
navigateBack
({
delta
:
1
,
//返回层数,2则上上页
...
...
@@ -169,26 +185,32 @@
console
.
log
(
option
.
activityId
)
console
.
log
(
this
.
userId
)
uniCloud
.
callFunction
({
name
:
'
fe-team-activityDetail
'
,
data
:
{
userId
:
this
.
userId
,
activityId
:
this
.
activityId
}
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
name
=
res
.
result
.
data
.
username
this
.
production
=
res
.
result
.
data
.
content
this
.
startDate
=
res
.
result
.
data
.
startDate
this
.
endDate
=
res
.
result
.
data
.
endDate
this
.
object
=
res
.
result
.
data
.
participants
this
.
alreadyObject
=
res
.
result
.
data
.
enrollment
this
.
place
=
res
.
result
.
data
.
place
this
.
contact
=
res
.
result
.
data
.
contact
this
.
icon
=
res
.
result
.
data
.
icon
this
.
signStatus
=
res
.
result
.
qualification
}).
catch
((
err
=>
{
console
.
log
(
err
)
}))
name
:
'
fe-team-activityDetail
'
,
data
:
{
userId
:
this
.
userId
,
activityId
:
this
.
activityId
}
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
name
=
res
.
result
.
data
.
username
this
.
production
=
res
.
result
.
data
.
content
this
.
startDate
=
res
.
result
.
data
.
startDate
this
.
endDate
=
res
.
result
.
data
.
endDate
this
.
object
=
res
.
result
.
data
.
participants
this
.
alreadyObject
=
res
.
result
.
data
.
enrollment
this
.
place
=
res
.
result
.
data
.
place
this
.
contact
=
res
.
result
.
data
.
contact
this
.
icon
=
res
.
result
.
data
.
icon
this
.
signStatus
=
res
.
result
.
qualification
}).
catch
((
err
=>
{
console
.
log
(
err
)
}))
if
(
this
.
happenTimeFun
()
>
this
.
startDate
){
console
.
log
(
this
.
happenTimeFun
(),
'
this.happenTimeFun()
'
)
console
.
log
(
this
.
startDate
,
'
this.startDate
'
)
this
.
signStatus
=
"
报名时间截止
"
}
}
}
</
script
>
...
...
teamwork/pages/team/add-team-activity.vue
浏览文件 @
00d08b02
...
...
@@ -118,6 +118,36 @@
});
return
;
}
uniCloud
.
callFunction
({
name
:
'
fe-team-createActivity
'
,
data
:
{
title
:
this
.
name
,
content
:
this
.
content
,
startDate
:
this
.
start_date
,
endDate
:
this
.
end_date
,
userId
:
this
.
userId
,
place
:
this
.
place
,
participants
:
this
.
object
,
contact
:
this
.
contact
,
}
})
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
.
code
==
200
)
{
uni
.
showToast
({
title
:
'
提交成功
'
,
icon
:
'
success
'
});
this
.
goBack
()
}
else
{
uni
.
showToast
({
title
:
'
提交失败
'
,
icon
:
'
error
'
});
}
})
},
handleDateChange1
(
event
)
{
this
.
start_date
=
event
.
detail
.
value
...
...
teamwork/pages/team/add-team.vue
浏览文件 @
00d08b02
...
...
@@ -75,7 +75,7 @@
}
if
(
this
.
avatar
==
''
)
{
this
.
avatar
=
'
https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/
7d3feb79-8efe-4686-b745-3b7dc5d5df36.pn
g
'
'
https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/
433d3cc6-4b8f-475c-83e1-35acc747cab2.jp
g
'
}
await
uniCloud
.
callFunction
({
name
:
'
fe-team-createTeam
'
,
...
...
teamwork/pages/team/main.vue
浏览文件 @
00d08b02
...
...
@@ -95,6 +95,7 @@
};
},
methods
:
{
tabChange
(
index
)
{
this
.
current
=
index
.
index
;
if
(
index
.
index
==
1
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录