Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
c9cbc0ef
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看板
提交
c9cbc0ef
编写于
5月 08, 2023
作者:
2
222000134
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改小队bug
上级
cab5e10d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
55 addition
and
59 deletion
+55
-59
teamwork/pages/team/add-team-activity.vue
teamwork/pages/team/add-team-activity.vue
+4
-3
teamwork/pages/team/main.vue
teamwork/pages/team/main.vue
+51
-56
未找到文件。
teamwork/pages/team/add-team-activity.vue
浏览文件 @
c9cbc0ef
...
...
@@ -3,7 +3,7 @@
<view
class=
"nav-bar-back"
>
<image
class=
"nav-bar-back-icon"
src=
"/static/discover/back.png"
@
click=
"goBack"
></image>
<view
class=
"nav-bar-title"
>
发起活动
</view>
<image
class=
"nav-bar-add"
src=
"../../static/post/
send
.png"
@
click=
"submit"
></image>
<image
class=
"nav-bar-add"
src=
"../../static/post/
发送
.png"
@
click=
"submit"
></image>
</view>
<view
class=
"school-activity-icon-wrapper"
>
<image
class=
"school-activity-icon"
src=
"/static/discover/activity-icon.png"
></image>
...
...
@@ -52,7 +52,7 @@
export
default
{
data
()
{
return
{
userId
:
'
644a643a0c801ca878983559
'
,
userId
:
''
,
name
:
''
,
content
:
''
,
object
:
''
,
...
...
@@ -70,7 +70,7 @@
animationDuration
:
300
})
},
on
l
oad
(){
on
L
oad
(){
this
.
userId
=
getApp
().
globalData
.
userId
},
async
submit
()
{
...
...
@@ -81,6 +81,7 @@
});
return
;
}
console
.
log
(
this
.
userId
,
'
this.userId
'
)
uniCloud
.
callFunction
({
name
:
'
fe-team-createActivity
'
,
data
:
{
...
...
teamwork/pages/team/main.vue
浏览文件 @
c9cbc0ef
...
...
@@ -76,33 +76,26 @@
export
default
{
data
()
{
return
{
icon
:
'
/static/icon/1.png
'
,
icon
:
''
,
current
:
0
,
show
:
false
,
svalue
:
''
,
join
:
null
,
tID
:
''
,
userId
:
'
644a643a0c801ca878983559
'
,
userId
:
''
,
teamList
:
[{
teamId
:
'
11
'
,
teamName
:
'
名字
'
,
createrId
:
'
4324
'
,
discription
:
'
加入我们吧~
'
,
teamId
:
''
,
teamName
:
''
,
createrId
:
''
,
discription
:
''
,
}],
list
:
[{
name
:
'
我的小队
'
},
{
name
:
'
加入小队
'
,
},
],
name
:
'
昵称
'
,
activityList
:
[{
activityId
:
1
,
title
:
'
跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步!
'
},
{
activityId
:
2
,
title
:
'
一起来!
'
}
name
:
''
,
activityList
:
[
]
};
},
...
...
@@ -110,32 +103,38 @@
tabChange
(
index
)
{
this
.
current
=
index
.
index
;
if
(
index
.
index
==
1
)
{
uniCloud
.
callFunction
({
name
:
'
fe-team-teamList
'
,
data
:
{}
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
teamList
=
res
.
result
.
data
.
teamList
})
this
.
showJoinTeam
();
}
if
(
index
.
index
==
0
)
{
uniCloud
.
callFunction
({
name
:
'
fe-team-activityList
'
,
data
:
{
userId
:
this
.
userId
}
})
.
then
(
res
=>
{
console
.
log
(
res
),
this
.
name
=
res
.
result
.
data
.
username
,
this
.
activityList
=
res
.
result
.
data
.
activityList
,
this
.
join
=
res
.
result
.
join
,
this
.
icon
=
res
.
result
.
data
.
icon
console
.
log
(
this
.
join
)
})
this
.
showMyTeam
();
}
},
showJoinTeam
(){
uniCloud
.
callFunction
({
name
:
'
fe-team-teamList
'
,
data
:
{}
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
teamList
=
res
.
result
.
data
.
teamList
})
},
showMyTeam
(){
uniCloud
.
callFunction
({
name
:
'
fe-team-activityList
'
,
data
:
{
userId
:
this
.
userId
}
})
.
then
(
res
=>
{
console
.
log
(
res
),
this
.
name
=
res
.
result
.
data
.
username
,
this
.
activityList
=
res
.
result
.
data
.
activityList
,
this
.
join
=
res
.
result
.
join
,
this
.
icon
=
res
.
result
.
data
.
icon
console
.
log
(
this
.
join
)
})
},
showTeamDetail
(
discription
)
{
console
.
log
(
"
showTeamDetail
"
)
uni
.
showModal
({
...
...
@@ -249,28 +248,24 @@
}
},
onPullDownRefresh
()
{
this
.
showMyTeam
()
this
.
showJoinTeam
()
uni
.
stopPullDownRefresh
();
},
onLoad
(
option
)
{
this
.
userId
=
getApp
().
globalData
.
userId
if
(
option
.
index
==
1
){
this
.
tabChange
(
option
)
this
.
showJoinTeam
(
)
}
else
{
uniCloud
.
callFunction
({
name
:
'
fe-team-activityList
'
,
data
:
{
userId
:
this
.
userId
}
})
.
then
(
res
=>
{
console
.
log
(
res
),
this
.
name
=
res
.
result
.
data
.
teamname
,
this
.
activityList
=
res
.
result
.
data
.
activityList
,
this
.
join
=
res
.
result
.
join
,
this
.
icon
=
res
.
result
.
data
.
teamicon
console
.
log
(
this
.
join
)
})
this
.
showMyTeam
()
}
},
onShow
()
{
this
.
showMyTeam
()
this
.
showJoinTeam
()
}
}
</
script
>
...
...
@@ -282,11 +277,11 @@
height: 100%; */
}
.tabbg
{
background-color
:
#edeef0
;
/* background-color: #edeef0; */
}
.content
{
background-color
:
#edeef0
;
/* background-color: #edeef0; */
position
:
absolute
;
width
:
100%
;
height
:
100%
;
...
...
@@ -313,7 +308,7 @@
outline
:
none
;
font-size
:
14px
;
color
:
#333
;
background-color
:
#
fff
;
background-color
:
#
edeef0
;
padding
:
0
10px
;
}
...
...
@@ -363,7 +358,7 @@
}
.one-activity
{
width
:
90
%
;
width
:
85
%
;
background-color
:
rgb
(
245
154
35
/
30%
);
margin-left
:
auto
;
margin-right
:
auto
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录