From d81d1e316cb001f2af095bbf043fc966292bee41 Mon Sep 17 00:00:00 2001
From: Leo_Ding <2405260743@qq.com>
Date: Mon, 8 Sep 2025 16:19:05 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=9A=E8=AE=AE=E5=AE=A4?=
=?UTF-8?q?=E9=A2=84=E7=BA=A6=E5=8D=B0=E7=AB=A0=E4=B8=8A=E4=BC=A0=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/gx-upload.vue | 20 ++++++++++----------
pages/docList/index.vue | 7 ++++++-
pages/meetingDetail/index.vue | 5 +----
3 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/components/gx-upload.vue b/components/gx-upload.vue
index e31f2c7..57bb6d7 100644
--- a/components/gx-upload.vue
+++ b/components/gx-upload.vue
@@ -55,12 +55,12 @@ export default {
// 2. 验证文件格式
const tempFilePath = res.tempFilePaths[0];
- const isValid = await this.checkPngFormat(tempFilePath);
+ // const isValid = await this.checkPngFormat(tempFilePath);
- if (!isValid) {
- uni.showToast({ title: '请上传PNG格式图片', icon: 'none' });
- return;
- }
+ // if (!isValid) {
+ // uni.showToast({ title: '请上传PNG格式图片', icon: 'none' });
+ // return;
+ // }
// 3. 添加到预览列表
this.fileList = [{
@@ -106,11 +106,11 @@ export default {
async uploadFile(file) {
// 上传前再次验证
- const isValid = await this.checkPngFormat(file.url);
- if (!isValid) {
- uni.showToast({ title: '文件格式不符合要求', icon: 'none' });
- return Promise.reject('Invalid file format');
- }
+ // const isValid = await this.checkPngFormat(file.url);
+ // if (!isValid) {
+ // uni.showToast({ title: '文件格式不符合要求', icon: 'none' });
+ // return Promise.reject('Invalid file format');
+ // }
try {
const res = await new Promise((resolve, reject) => {
diff --git a/pages/docList/index.vue b/pages/docList/index.vue
index ef47335..fabd4d3 100644
--- a/pages/docList/index.vue
+++ b/pages/docList/index.vue
@@ -10,7 +10,9 @@
返回
-
+
+ 预约完成,请致电社区,并关注预约记录留意审核状态,谢谢!
+
@@ -21,6 +23,8 @@
data(){
return{
docList:[],
+ content:'预约完成,请致电社区,并关注预约记录留意审核状态,谢谢!',
+ show:false,
nameList:{
'applyPdf':'申请表申请表申请表申请表申请表申请表申请表申请表申请表申请表',
'covenantPdf':'协议书'
@@ -28,6 +32,7 @@
}
},
onLoad(option) {
+ this.show=true
const obj=JSON.parse(option.files)
this.docList=[
{name:obj.applyPdfName,url:BASE_URL+obj.covenantPdf},
diff --git a/pages/meetingDetail/index.vue b/pages/meetingDetail/index.vue
index 70978a4..40f8129 100644
--- a/pages/meetingDetail/index.vue
+++ b/pages/meetingDetail/index.vue
@@ -683,10 +683,7 @@
if (!res || !res.success) {
throw new Error('会议室预定失败');
}
- uni.showToast({
- title: '预约完成,请致电社区,并关注预约记录留意审核状态,谢谢!',
- icon: 'success'
- });
+
if (res.success == true) {
uni.redirectTo({
url: `/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}`