diff --git a/teamwork/pages/discover/add-school-activity.vue b/teamwork/pages/discover/add-school-activity.vue index 4c6419f329c8242392bbbcfa237c8df44864e678..ae0d196e4824eb038444eca313f59dfe34c28f51 100644 --- a/teamwork/pages/discover/add-school-activity.vue +++ b/teamwork/pages/discover/add-school-activity.vue @@ -20,18 +20,32 @@ - - - {{ start_date }} - - - - - {{ end_date }} - + + + + {{ start_date }} + + + + + {{ start_time }} + + + + + + + + {{ end_date }} + + + + + {{ end_time }} + + - @@ -45,7 +59,14 @@ + + 请设置活动封面 + + + + @@ -60,6 +81,9 @@ contact:'', start_date: '2023-05-04', end_date: '2023-05-04', + start_time:'14:00', + end_time:'14:00', + imageValue:[], } }, methods: { @@ -69,9 +93,11 @@ }) }, async submit() { - if (!/^[\u4e00-\u9fa5]+$/.test(this.name)) { + const reg = /^1[3|4|5|7|8][0-9]\d{8}$/ + // const reg2 = /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ + if (!(reg.test(this.contact))) { uni.showToast({ - title: '请输入正确的中文姓名', + title: '请输入正确联系方式', icon: 'none' }); return; @@ -101,12 +127,39 @@ // }); }, - handleDateChange1(event) { + handleDateChange1(event) { this.start_date = event.detail.value + // uni.showToast({ + // title: this.start_date, + // icon: 'none' + // }) }, - handleDateChange2(event) { - this.end_date = event.detail.value - }, + handleDateChange2(event) { + this.end_date = event.detail.value + }, + handleTimeChange1(event) { + this.start_time = event.detail.value + }, + handleTimeChange2(event) { + this.end_time = event.detail.value + }, + select(e) { + console.log('选择文件:', e) + }, + // 获取上传进度 + progress(e) { + console.log('上传进度:', e) + }, + + // 上传成功 + success(e) { + console.log('上传成功',e) + }, + + // 上传失败 + fail(e) { + console.log('上传失败:', e) + }, } } @@ -170,7 +223,7 @@ .form-icon { width: 40px; height: 30px; - margin-left: 30px; + margin-left: 10px; } .form-input { @@ -200,11 +253,14 @@ display: flex; width: 100%; } - + .form-input2-wrapper { + display: flex; + flex-direction: row; + } .form-input2 { margin-top: 5px; margin-left: 10px; - width: 80%; + width: 30%; height: 35px; border: none; outline: none; @@ -213,6 +269,26 @@ background-color: #fff; padding: 0 10px; } - + .form-group1 { + display: flex; + flex-direction: column; + align-items: center; + margin-top: 10px; + } + .form-group1 text { + margin-bottom: 10px; /* 调整 text 和 pic-content 之间的距离 */ + } + .pic-content { + height: 100px; + } + + .uni-file-picker__container{ + background-color: white; + + } + + .file-picker__box-content is-add{ + width: 100%; + } \ No newline at end of file diff --git a/teamwork/pages/discover/discover-detail.vue b/teamwork/pages/discover/discover-detail.vue index 87908f7bb46ee4dd4a8e1f29e4d2be52465ccd30..3a1b5ac945e96670dc5ddf8e157d6716dfea3973 100644 --- a/teamwork/pages/discover/discover-detail.vue +++ b/teamwork/pages/discover/discover-detail.vue @@ -1,33 +1,41 @@