From cda5959ae419bf33c40ac8b37a689daf246597fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Fri, 6 Feb 2026 14:17:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8C=89=E9=92=AE=E5=B8=83=E5=B1=80=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=80=E8=A1=8C=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 23 ++++++++++++++++++++ pages/profile/authentication/index.js | 2 +- pages/profile/authentication/index.wxml | 6 +++-- pages/profile/authentication/index.wxss | 22 ++++++++++--------- pages/profile/index.wxml | 29 ++++++++++++++++--------- 5 files changed, 59 insertions(+), 23 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93e07ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# 使用官方的Node.js 18镜像作为基础镜像 +FROM node:18-alpine + +# 设置工作目录 +WORKDIR /app + +# 复制package.json和package-lock.json到工作目录 +COPY server-example/package*.json ./ + +# 安装依赖 +RUN npm install --production + +# 复制整个项目到工作目录 +COPY . . + +# 设置环境变量 +ENV NODE_ENV=production + +# 暴露应用端口 +EXPOSE 3000 + +# 运行应用 +CMD ["npm", "start"] \ No newline at end of file diff --git a/pages/profile/authentication/index.js b/pages/profile/authentication/index.js index 36bb0e5..634bf4b 100644 --- a/pages/profile/authentication/index.js +++ b/pages/profile/authentication/index.js @@ -165,7 +165,7 @@ Page({ const currentStatus = this.data.idcardstatus; // 如果当前状态是已通过,显示确认对话框 - if (currentStatus === '1') { + if (currentStatus === '1' || currentStatus === 1) { wx.showModal({ title: '确认重新提交', content: '您的认证信息已审核通过,确定要重新提交审核吗?', diff --git a/pages/profile/authentication/index.wxml b/pages/profile/authentication/index.wxml index 61cefc6..49fb8f9 100644 --- a/pages/profile/authentication/index.wxml +++ b/pages/profile/authentication/index.wxml @@ -1,7 +1,6 @@ -提示:只有认证通过后,才能使用估价功能和对比价格功能,重复提交会重置登录权限! - + @@ -75,4 +74,7 @@ {{idcardstatus === '' || idcardstatus === 0 ? '提交' : '重新提交'}} + + ❗提示:只有认证通过后,才能使用估价功能和对比价格功能,重复提交会重置登录权限! + \ No newline at end of file diff --git a/pages/profile/authentication/index.wxss b/pages/profile/authentication/index.wxss index f788d46..ec42d82 100644 --- a/pages/profile/authentication/index.wxss +++ b/pages/profile/authentication/index.wxss @@ -4,31 +4,33 @@ background-color: #f5f5f5; min-height: 100vh; padding-bottom: 40rpx; + display: block; + width: 100%; + height: auto; } /* 大标题提示 */ .big-title { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: white; - font-size: 28rpx; + background: white; + color: black; + font-size: 24rpx; font-weight: 500; padding: 24rpx 30rpx; - margin: 20rpx 30rpx; + margin: 20rpx 30rpx 0; border-radius: 16rpx; - box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3); + box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1); display: flex; align-items: center; line-height: 1.6; } .big-title::before { - content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 40rpx; height: 40rpx; - background-color: rgba(255, 255, 255, 0.3); + background-color: #f0f0f0; border-radius: 50%; font-size: 28rpx; font-weight: bold; @@ -68,13 +70,13 @@ /* 上传区域 */ .upload-section { background-color: white; - margin: 20rpx 0; + margin: 0 0 20rpx; padding: 30rpx; } .upload-item { display: flex; - margin-bottom: 40rpx; + margin-bottom: 20rpx; align-items: center; } @@ -229,7 +231,7 @@ padding: 30rpx; margin: 0 30rpx; border-radius: 20rpx; - margin-top: 40rpx; + margin-top: 20rpx; } .auth-btn-text { diff --git a/pages/profile/index.wxml b/pages/profile/index.wxml index c7c3ce8..3a6bff3 100644 --- a/pages/profile/index.wxml +++ b/pages/profile/index.wxml @@ -74,20 +74,29 @@ 当前位置:{{locationInfo || '暂无位置信息'}} + + + + -