Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
33bce5df
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看板
提交
33bce5df
编写于
5月 04, 2023
作者:
R
Renic1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增教师发布活动页面
上级
3abab024
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
287 addition
and
14 deletion
+287
-14
teamwork/pages.json
teamwork/pages.json
+6
-1
teamwork/pages/discover/add-school-activity.vue
teamwork/pages/discover/add-school-activity.vue
+218
-0
teamwork/pages/discover/discover-detail.vue
teamwork/pages/discover/discover-detail.vue
+5
-4
teamwork/pages/discover/main.vue
teamwork/pages/discover/main.vue
+47
-9
teamwork/static/discover/activity-contact.png
teamwork/static/discover/activity-contact.png
+0
-0
teamwork/static/discover/activity-icon.png
teamwork/static/discover/activity-icon.png
+0
-0
teamwork/static/discover/activity-object.png
teamwork/static/discover/activity-object.png
+0
-0
teamwork/static/discover/activity-place.png
teamwork/static/discover/activity-place.png
+0
-0
teamwork/static/discover/activity-time.png
teamwork/static/discover/activity-time.png
+0
-0
teamwork/static/discover/activity.svg
teamwork/static/discover/activity.svg
+11
-0
teamwork/static/discover/content.png
teamwork/static/discover/content.png
+0
-0
teamwork/static/discover/name.png
teamwork/static/discover/name.png
+0
-0
未找到文件。
teamwork/pages.json
浏览文件 @
33bce5df
...
...
@@ -53,7 +53,12 @@
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/discover/detail"
,
"path"
:
"pages/discover/discover-detail"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/discover/add-school-activity"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
...
...
teamwork/pages/discover/add-school-activity.vue
0 → 100644
浏览文件 @
33bce5df
<
template
>
<view
class=
"add-school-activity"
>
<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/发送.png"
@
click=
"submit"
></image>
</view>
<view
class=
"school-activity-icon-wrapper"
>
<image
class=
"school-activity-icon"
src=
"/static/discover/activity-icon.png"
></image>
</view>
<view
class=
"school-activity-item-wrapper"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/name.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动名称"
v-model=
"name"
>
</view>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/content.png"
></image>
<textarea
class=
"form-input1"
placeholder=
"请输入活动内容"
v-model=
"content"
></textarea>
</view>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-time.png"
></image>
<view
class=
"input-wrapper"
>
<view
class=
"form-input2"
>
<picker
mode=
"date"
start=
"1970-01-01"
end=
"2100-12-31"
@
change=
"handleDateChange1"
>
<view
class=
"picker"
>
{{
start_date
}}
</view>
</picker>
</view>
<view
class=
"form-input2"
>
<picker
mode=
"date"
start=
"1970-01-01"
end=
"2100-12-31"
@
change=
"handleDateChange2"
>
<view
class=
"picker"
>
{{
end_date
}}
</view>
</picker>
</view>
</view>
</view>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-object.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动对象"
v-model=
"object"
>
</view>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-place.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动地点"
v-model=
"place"
>
</view>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-contact.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动联系方式"
v-model=
"contact"
>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
name
:
''
,
content
:
''
,
object
:
''
,
place
:
''
,
contact
:
''
,
start_date
:
'
2023-05-04
'
,
end_date
:
'
2023-05-04
'
,
}
},
methods
:
{
goBack
()
{
uni
.
navigateBack
({
delta
:
1
})
},
async
submit
()
{
if
(
!
/^
[\u
4e00-
\u
9fa5
]
+$/
.
test
(
this
.
name
))
{
uni
.
showToast
({
title
:
'
请输入正确的中文姓名
'
,
icon
:
'
none
'
});
return
;
}
else
{
uni
.
showToast
({
title
:
'
提交成功
'
,
icon
:
'
success
'
});
}
// try {
// const res = await uniCloud.callFunction({
// name: 'addActivity',
// data: {
// name: this.name
// }
// });
// uni.showToast({
// title: '提交成功',
// icon: 'success'
// });
// this.name = '';
// } catch (err) {
// console.error(err);
// uni.showToast({
// title: '提交失败,请稍后再试',
// icon: 'none'
// });
},
handleDateChange1
(
event
)
{
this
.
start_date
=
event
.
detail
.
value
},
handleDateChange2
(
event
)
{
this
.
end_date
=
event
.
detail
.
value
},
}
}
</
script
>
<
style
>
.add-school-activity
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
background-color
:
#EDEEF0
;
}
.nav-bar-back
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
60px
;
background-color
:
#EDEEF0
;
}
.nav-bar-back-icon
{
width
:
40px
;
height
:
30px
;
}
.nav-bar-title
{
flex
:
1
;
text-align
:
center
;
font-size
:
24px
;
font-weight
:
bold
;
color
:
#F1992D
;
}
.nav-bar-add
{
width
:
30px
;
height
:
30px
;
margin-top
:
10px
;
float
:
right
;
margin-right
:
10px
;
}
.school-activity-icon-wrapper
{
margin-top
:
20px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.school-activity-icon
{
width
:
50%
;
height
:
80px
;
margin
:
0px
;
padding
:
0px
;
}
.school-activity-item-wrapper
{
margin-top
:
20px
;
}
.form-group
{
display
:
flex
;
align-items
:
center
;
margin-top
:
15px
;
}
.form-icon
{
width
:
40px
;
height
:
30px
;
margin-left
:
30px
;
}
.form-input
{
margin-left
:
5px
;
width
:
70%
;
height
:
35px
;
border
:
none
;
outline
:
none
;
font-size
:
14px
;
color
:
#333
;
background-color
:
#fff
;
padding
:
0
10px
;
}
.form-input1
{
margin-left
:
5px
;
width
:
70%
;
height
:
70px
;
border
:
none
;
outline
:
none
;
font-size
:
14px
;
color
:
#333
;
background-color
:
#fff
;
padding
:
0
10px
;
}
.input-wrapper
{
flex-direction
:
column
;
display
:
flex
;
width
:
100%
;
}
.form-input2
{
margin-top
:
5px
;
margin-left
:
10px
;
width
:
80%
;
height
:
35px
;
border
:
none
;
outline
:
none
;
font-size
:
14px
;
color
:
#333
;
background-color
:
#fff
;
padding
:
0
10px
;
}
</
style
>
\ No newline at end of file
teamwork/pages/discover/detail.vue
→
teamwork/pages/discover/d
iscover-d
etail.vue
浏览文件 @
33bce5df
...
...
@@ -4,7 +4,7 @@
<image
class=
"nav-bar-back-icon"
src=
"/static/discover/back.png"
@
click=
"goBack"
></image>
<view
class=
"nav-bar-title"
>
{{
title
}}
</view>
</view>
<view
class=
"school-activity-icon-wrapper"
><image
class=
"school-activity-icon"
src=
"/static/
my/main/modify-icon.pn
g"
></image></view>
<view
class=
"school-activity-icon-wrapper"
><image
class=
"school-activity-icon"
src=
"/static/
discover/activity.sv
g"
></image></view>
<view
class=
"activity-production"
>
<image
class=
"activity-production-icon"
src=
"/static/discover/production.png"
></image>
<text>
活动介绍:
</text>
...
...
@@ -76,9 +76,10 @@
color
:
#F1992D
;
}
.school-activity-icon-wrapper
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
margin-top
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.school-activity-icon
{
...
...
teamwork/pages/discover/main.vue
浏览文件 @
33bce5df
...
...
@@ -14,8 +14,20 @@
<!-- 校内活动 -->
<view
class=
"one-school-activity"
@
click=
"goToDetail"
>
<text
class=
"school-activity-title"
>
{{
title
}}
</text>
<image
class=
"school-activity-icon"
src=
"/static/
my/main/modify-icon.pn
g"
></image>
<image
class=
"school-activity-icon"
src=
"/static/
discover/activity.sv
g"
></image>
</view>
<view
class=
"one-school-activity"
@
click=
"goToDetail"
>
<text
class=
"school-activity-title"
>
{{
title
}}
</text>
<image
class=
"school-activity-icon"
src=
"/static/discover/activity.svg"
></image>
</view>
<view
class=
"one-school-activity"
@
click=
"goToDetail"
>
<text
class=
"school-activity-title"
>
{{
title
}}
</text>
<image
class=
"school-activity-icon"
src=
"/static/discover/activity.svg"
></image>
</view>
<view
@
click=
"goActivityAdd"
class=
"add-activity"
v-if=
"showButton"
>
<u-icon
name=
"edit-pen"
color=
"#F1992D"
size=
"40"
></u-icon>
</view>
</view>
</
template
>
...
...
@@ -23,19 +35,32 @@
export
default
{
data
()
{
return
{
showButton
:
false
,
// 初始值为隐藏
id
:
'
1
'
,
// 根据id控制显示和隐藏
list
:
[{
name
:
'
发现
'
}],
title
:
'
趣味篮球赛
'
}
},
methods
:
{
goToDetail
()
{
uni
.
navigateTo
({
url
:
'
/pages/discover/detail
'
})
}
}
mounted
()
{
// 根据id值进行判断
if
(
this
.
id
==
1
)
{
this
.
showButton
=
true
;
}
},
methods
:
{
goToDetail
()
{
uni
.
navigateTo
({
url
:
'
/pages/discover/discover-detail
'
})
},
goActivityAdd
()
{
uni
.
navigateTo
({
url
:
'
/pages/discover/add-school-activity
'
})
},
}
}
</
script
>
...
...
@@ -54,7 +79,7 @@
width
:
90%
;
height
:
200px
;
margin-top
:
2px
;
margin-bottom
:
4
px
;
margin-bottom
:
10
px
;
}
.school-activity-name
{
...
...
@@ -63,4 +88,17 @@
font-size
:
24px
;
font-weight
:
bold
;
}
.add-activity
{
position
:
fixed
;
right
:
20
rpx
;
bottom
:
100
rpx
;
width
:
100
rpx
;
height
:
100
rpx
;
border-radius
:
50%
;
background-color
:
white
;
box-shadow
:
0
0
20
rpx
#999
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
teamwork/static/discover/activity-contact.png
0 → 100644
浏览文件 @
33bce5df
7.8 KB
teamwork/static/discover/activity-icon.png
0 → 100644
浏览文件 @
33bce5df
4.0 KB
teamwork/static/discover/activity-object.png
0 → 100644
浏览文件 @
33bce5df
7.3 KB
teamwork/static/discover/activity-place.png
0 → 100644
浏览文件 @
33bce5df
6.6 KB
teamwork/static/discover/activity-time.png
0 → 100644
浏览文件 @
33bce5df
5.6 KB
teamwork/static/discover/activity.svg
0 → 100644
浏览文件 @
33bce5df
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
teamwork/static/discover/content.png
0 → 100644
浏览文件 @
33bce5df
3.4 KB
teamwork/static/discover/name.png
0 → 100644
浏览文件 @
33bce5df
3.9 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录