From 60b1ab3d080410083f1a85b4bb0bd288b24b23d1 Mon Sep 17 00:00:00 2001 From: Renic1 <94121790+Renic1@users.noreply.github.com> Date: Fri, 5 May 2023 20:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/discover/add-school-activity.vue | 116 +++++++++++--- teamwork/pages/discover/discover-detail.vue | 68 ++++++-- teamwork/pages/discover/main.vue | 4 +- teamwork/pages/post/add-post.vue | 1 - .../uni-id-co/package-lock.json | 148 ------------------ 5 files changed, 153 insertions(+), 184 deletions(-) delete mode 100644 teamwork/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package-lock.json diff --git a/teamwork/pages/discover/add-school-activity.vue b/teamwork/pages/discover/add-school-activity.vue index 4c6419f..ae0d196 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 87908f7..3a1b5ac 100644 --- a/teamwork/pages/discover/discover-detail.vue +++ b/teamwork/pages/discover/discover-detail.vue @@ -1,33 +1,41 @@