Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
c20bb9c9
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看板
提交
c20bb9c9
编写于
5月 04, 2023
作者:
2
222000134
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
我的小队显示
上级
2a65c334
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
252 addition
and
4 deletion
+252
-4
teamwork/components/add-team-tag/add-team-tag.vue
teamwork/components/add-team-tag/add-team-tag.vue
+40
-0
teamwork/pages/team/add-team.vue
teamwork/pages/team/add-team.vue
+22
-0
teamwork/pages/team/main.vue
teamwork/pages/team/main.vue
+190
-4
teamwork/static/team/horn.png
teamwork/static/team/horn.png
+0
-0
teamwork/static/team/nojoin.png
teamwork/static/team/nojoin.png
+0
-0
未找到文件。
teamwork/components/add-team-tag/add-team-tag.vue
0 → 100644
浏览文件 @
c20bb9c9
<
template
>
<view>
<view
@
click=
"goTeamAdd"
class=
"add-team"
>
<u-icon
name=
"plus"
color=
"#F1992D"
size=
"40"
></u-icon>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
},
methods
:
{
goTeamAdd
()
{
uni
.
navigateTo
({
url
:
'
/pages/team/add-team
'
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.add-team
{
position
:
fixed
;
right
:
20rpx
;
bottom
:
180rpx
;
width
:
100rpx
;
height
:
100rpx
;
border-radius
:
50%
;
background-color
:
white
;
box-shadow
:
0
0
20rpx
#999
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
teamwork/pages/team/add-team.vue
0 → 100644
浏览文件 @
c20bb9c9
<
template
>
<view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
>
</
style
>
teamwork/pages/team/main.vue
浏览文件 @
c20bb9c9
<
template
>
<
template
>
<view>
<view>
<text>
小队
</text>
<!-- 添加小队按钮 -->
<add-team-tag></add-team-tag>
<!-- 标签栏 -->
<u-tabs
:list=
"list"
lineWidth=
"30"
lineColor=
"#F1992D"
:activeStyle=
"
{
color: '#F1992D',
fontWeight: 'bold',
transform: 'scale(1.05)'
}" :inactiveStyle="{
color: '#606266',
transform: 'scale(1)'
}" itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;" @click="tabChange" :current="current">
</u-tabs>
<!-- 我的小队 -->
<view
v-if=
"current == 0"
>
<view
class=
"icon-with-name"
>
<image
src=
"../../static/icon/1.png"
class=
"icon"
/>
<text
class=
"name"
>
{{
name
}}
</text>
</view>
<view
class=
"content"
v-if=
"join==null"
>
<view
class=
"one-activity"
v-for=
"item in activityList"
>
<image
class=
"horn-icon"
:src=
"'../../static/team/horn.png'"
style=
"width: 60px;height: 60px;margin-left: 10px;"
/>
<text
class=
"text-content"
>
{{
item
.
title
}}
</text>
</view>
</view>
<view
class=
"content"
v-if=
"join==false"
>
<view
class=
"no-join"
>
<view
class=
"nojoin-icon-view"
>
<image
class=
"nojoin-icon"
:src=
"'../../static/team/nojoin.png'"
style=
"width: 230px;height: 200px;"
/>
</view>
<view
class=
"text-no-view"
>
<text
class=
"text-no"
>
您还没有加入任何小队哦~-
</text>
</view>
</view>
</view>
</view>
<!-- 加入小队 -->
<view
v-if=
"current == 1"
>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
// onLoad() {
// uni.hideTabBar();
data
()
{
// },
return
{
current
:
0
,
show
:
false
,
value1
:
""
,
join
:
'
true
'
,
userId
:
'
644a643a0c801ca878983559
'
,
list
:
[{
name
:
'
我的小队
'
},
{
name
:
'
加入小队
'
,
},
],
name
:
'
昵称
'
,
activityList
:
[{
activityId
:
1
,
title
:
'
跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步步跑步跑步跑步跑步!
'
},
{
activityId
:
2
,
title
:
'
一起来!
'
}
]
};
},
methods
:
{
tabChange
(
index
)
{
this
.
current
=
index
.
index
;
},
},
onLoad
()
{
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
,
console
.
log
(
this
.
join
)
})
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.content
{
margin-top
:
10px
;
}
.icon-with-name
{
width
:
80%
;
height
:
45px
;
margin-left
:
10px
;
margin-top
:
15px
;
margin-bottom
:
15px
;
float
:
left
;
overflow
:
auto
;
}
.icon
{
width
:
45px
;
height
:
45px
;
border-radius
:
50%
;
float
:
left
;
}
.name
{
float
:
left
;
margin-bottom
:
auto
;
margin-left
:
10px
;
margin-top
:
9px
;
font-size
:
18px
;
font-weight
:
bold
;
width
:
60%
;
}
.one-activity
{
width
:
90%
;
background-color
:
rgb
(
245
154
35
/
30%
);
margin-left
:
auto
;
margin-right
:
auto
;
margin-top
:
20px
;
border-radius
:
15px
;
overflow
:
auto
;
display
:
flex
;
flex-direction
:
row
;
padding
:
10px
;
}
.no-join
{
width
:
90%
;
margin-left
:
auto
;
margin-right
:
auto
;
margin-top
:
20px
;
border-radius
:
15px
;
overflow
:
auto
;
display
:
flex
;
flex-direction
:
column
;
padding
:
10px
;
}
.text-content
{
font-weight
:
bold
;
display
:
flex
;
margin-left
:
10px
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
word-wrap
:
break-word
;
}
.text-no
{
font-weight
:
bold
;
display
:
flex
;
margin
:
auto
;
flex-direction
:
column
;
color
:
#F1992D
;
}
.horn-icon
{
flex-shrink
:
0
;
margin
:
auto
0
;
}
.nojoin-icon
{
display
:
flex
;
flex-direction
:
column
;
margin
:
auto
;
display
:
block
;
}
.nojoin-icon-view
{
margin-top
:
50px
;
}
.text-no-view
{
margin
:
30px
auto
;
}
</
style
>
</
style
>
\ No newline at end of file
teamwork/static/team/horn.png
0 → 100644
浏览文件 @
c20bb9c9
9.9 KB
teamwork/static/team/nojoin.png
0 → 100644
浏览文件 @
c20bb9c9
23.0 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录