Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
1a8b370d
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看板
提交
1a8b370d
编写于
5月 05, 2023
作者:
R
Renic1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改页面和增加数据输入检验
上级
4dcc0d25
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
18 deletion
+30
-18
teamwork/pages/discover/add-school-activity.vue
teamwork/pages/discover/add-school-activity.vue
+25
-16
teamwork/pages/discover/discover-detail.vue
teamwork/pages/discover/discover-detail.vue
+5
-2
未找到文件。
teamwork/pages/discover/add-school-activity.vue
浏览文件 @
1a8b370d
...
@@ -11,11 +11,11 @@
...
@@ -11,11 +11,11 @@
<view
class=
"school-activity-item-wrapper"
>
<view
class=
"school-activity-item-wrapper"
>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/name.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/name.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动名称"
v-model=
"name"
>
<input
maxlength=
"20"
class=
"form-input"
type=
"text"
placeholder=
"请输入活动名称"
v-model=
"name"
>
</view>
</view>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/content.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/content.png"
></image>
<textarea
class=
"form-input1"
placeholder=
"请输入活动内容"
v-model=
"content"
></textarea>
<textarea
maxlength=
"200"
class=
"form-input1"
placeholder=
"请输入活动内容"
v-model=
"content"
></textarea>
</view>
</view>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-time.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/activity-time.png"
></image>
...
@@ -49,21 +49,20 @@
...
@@ -49,21 +49,20 @@
</view>
</view>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-object.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/activity-object.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动对象"
v-model=
"object"
>
<input
maxlength=
"20"
class=
"form-input"
type=
"text"
placeholder=
"请输入活动对象"
v-model=
"object"
>
</view>
</view>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-place.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/activity-place.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动地点"
v-model=
"place"
>
<input
maxlength=
"20"
class=
"form-input"
type=
"text"
placeholder=
"请输入活动地点"
v-model=
"place"
>
</view>
</view>
<view
class=
"form-group"
>
<view
class=
"form-group"
>
<image
class=
"form-icon"
src=
"/static/discover/activity-contact.png"
></image>
<image
class=
"form-icon"
src=
"/static/discover/activity-contact.png"
></image>
<input
class=
"form-input"
type=
"text"
placeholder=
"请输入活动联系方式"
v-model=
"contact"
>
<input
maxlength=
"20"
class=
"form-input"
type=
"text"
placeholder=
"请输入活动联系方式"
v-model=
"contact"
>
</view>
</view>
<view
class=
"form-group1"
>
<view
class=
"form-group1"
>
<text>
请设置活动封面
</text>
<text>
请设置活动封面
</text>
<uni-file-picker
class=
"pic-content"
v-model=
"imageValue"
file-mediatype=
"image"
mode=
"grid"
file-extname=
"png,jpg"
:limit=
"1"
<uni-file-picker
class=
"pic-content"
v-model=
"imageValue"
file-mediatype=
"image"
mode=
"grid"
file-extname=
"png,jpg"
:limit=
"1"
@
select=
"select"
@
progress=
"progress"
@
success=
"success"
@
fail=
"fail"
/>
@
select=
"select"
@
progress=
"progress"
@
success=
"success"
@
fail=
"fail"
/>
</view>
</view>
</view>
</view>
...
@@ -94,10 +93,20 @@
...
@@ -94,10 +93,20 @@
},
},
async
submit
()
{
async
submit
()
{
const
reg
=
/^1
[
3|4|5|7|8
][
0-9
]\d{8}
$/
const
reg
=
/^1
[
3|4|5|7|8
][
0-9
]\d{8}
$/
// const reg2 = /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
const
reg2
=
/^
([
a-z0-9_
\.
-
]
+
)
@
([\d
a-z
\.
-
]
+
)\.([
a-z
\.]{2,6})
$/
if
(
!
(
reg
.
test
(
this
.
contact
)))
{
let
time1
=
this
.
start_date
+
'
'
+
this
.
start_time
let
time2
=
this
.
end_date
+
'
'
+
this
.
end_time
let
obj1
=
new
Date
(
time1
)
//开始时间
let
obj2
=
new
Date
(
time2
)
//结束时间
if
(
obj1
.
getTime
()
>=
obj2
.
getTime
())
{
uni
.
showToast
({
title
:
'
开始时间不能大于等于结束时间
'
,
icon
:
'
none
'
});
return
;
}
else
if
(
!
(
reg
.
test
(
this
.
contact
)))
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'
请输入正确
联系方式
'
,
title
:
'
请输入正确
的联系方式(手机号)
'
,
icon
:
'
none
'
icon
:
'
none
'
});
});
return
;
return
;
...
@@ -279,16 +288,16 @@
...
@@ -279,16 +288,16 @@
margin-bottom
:
10px
;
/* 调整 text 和 pic-content 之间的距离 */
margin-bottom
:
10px
;
/* 调整 text 和 pic-content 之间的距离 */
}
}
.pic-content
{
.pic-content
{
height
:
1
00px
;
height
:
2
00px
;
}
}
.uni-file-picker__container
{
background-color
:
white
;
}
.file-picker__box
{
background-color
:
white
;
.file-picker__box-content
is-add
{
position
:
absolute
;
width
:
100%
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
0%
);
}
}
</
style
>
</
style
>
\ No newline at end of file
teamwork/pages/discover/discover-detail.vue
浏览文件 @
1a8b370d
...
@@ -145,13 +145,13 @@
...
@@ -145,13 +145,13 @@
}
}
.activity-production-icon
{
.activity-production-icon
{
width
:
40px
;
width
:
40px
;
height
:
3
0
px
;
height
:
3
5
px
;
margin-left
:
30px
;
margin-left
:
30px
;
margin-top
:
8px
;
margin-top
:
8px
;
margin-bottom
:
-5px
;
margin-bottom
:
-5px
;
}
}
.production-detail
{
.production-detail
{
width
:
8
9
%
;
width
:
8
5
%
;
background-color
:
rgb
(
245
154
35
/
30%
);
background-color
:
rgb
(
245
154
35
/
30%
);
border-radius
:
5px
;
border-radius
:
5px
;
margin-left
:
20px
;
margin-left
:
20px
;
...
@@ -159,6 +159,9 @@
...
@@ -159,6 +159,9 @@
/* 文字换行处理 */
/* 文字换行处理 */
word-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
break-all
;
word-break
:
break-all
;
padding-left
:
7px
;
padding-right
:
7px
;
padding-top
:
5px
;
}
}
</
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录