41 Commits

Author SHA1 Message Date
wxd
967996429b 更新 .gitea/workflows/prod_build_schedule.yaml 2026-03-23 10:45:31 +08:00
wxd
f88129f8a9 更新 .gitea/workflows/prod_build_schedule.yaml 2026-03-13 14:02:26 +08:00
wxd
02ccd546bc 更新 .gitea/workflows/prod_build_schedule.yaml 2026-03-06 18:45:13 +08:00
wxd
4006e7f1c1 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m6s
2026-03-05 10:59:08 +08:00
wxd
352f2b7bae 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m22s
2026-03-02 09:52:19 +08:00
wxd
1839bae545 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m25s
2026-02-24 11:38:54 +08:00
wxd
93cb27238b 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m54s
2026-02-06 14:18:58 +08:00
wxd
a0de3ce96d 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m51s
2026-02-06 10:37:16 +08:00
wxd
989c8468f0 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m9s
2026-02-05 16:44:03 +08:00
wxd
f8a864d740 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m55s
2026-02-04 15:59:53 +08:00
wxd
afde6d2024 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m49s
2026-02-03 09:40:44 +08:00
fe4b39ac97 更新 .gitea/workflows/research_build_manual.yaml 2026-02-02 10:34:19 +08:00
c25e5042dd 上传文件至「.gitea/workflows」 2026-02-02 10:33:11 +08:00
wxd
27849503b3 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m56s
2026-01-29 16:56:04 +08:00
wxd
5fdf071510 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m48s
2026-01-29 16:32:36 +08:00
wxd
ff3e62506c 更新 .gitea/workflows/prod_build_schedule.yaml 2026-01-29 16:32:27 +08:00
wxd
24accf803d 更新 .gitea/workflows/prod_build_schedule.yaml 2026-01-29 09:55:57 +08:00
wxd
b5dcc80759 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 1m55s
2026-01-28 16:36:56 +08:00
wxd
a294116696 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m8s
2026-01-28 10:06:12 +08:00
wxd
d45f0b0ecd 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m1s
2026-01-27 14:18:56 +08:00
wxd
2a522e06a0 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m46s
2026-01-27 10:16:57 +08:00
wxd
af3bff6d80 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 5m20s
2026-01-26 16:45:17 +08:00
wxd
d9d57066fc 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m59s
2026-01-24 11:56:59 +08:00
wxd
e34986d09d 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m5s
2026-01-23 22:32:58 +08:00
wxd
57adf91646 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m5s
2026-01-23 21:44:02 +08:00
wxd
016c1de922 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m53s
2026-01-23 15:46:05 +08:00
wxd
a167d3f2ba 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m55s
2026-01-21 16:59:55 +08:00
wxd
fb7bf53680 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m47s
2026-01-20 16:49:28 +08:00
wxd
cb453297be 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m55s
2026-01-15 10:52:10 +08:00
wxd
a2f4f946ac 更新 .gitea/workflows/prod_build_schedule.yaml 2026-01-14 17:10:29 +08:00
67d5bb6874 2025.12.19 生产部署
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m35s
2025-12-19 17:47:22 +08:00
db20117500 2025.12.17 生产部署
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 3m32s
2025-12-17 14:03:27 +08:00
f3e4408dc0 更新 .gitea/workflows/prod_build_schedule.yaml
All checks were successful
AiDA WEB-Node.js 生产分支构建部署 / build (18.18.0) (push) Successful in 2m14s
2025-12-16 21:50:38 +08:00
c2d13187f0 2025.12.16 生产部署 2025-12-16 17:24:46 +08:00
7155dedc8d 更新 .gitea/workflows/prod_build_schedule.yaml 2025-12-16 17:23:32 +08:00
de8a6b9dc7 上传文件至「.gitea/workflows」 2025-12-01 17:13:08 +08:00
9c562143da 更新 .gitea/workflows/prod_build_manual.yaml 2025-11-29 00:07:07 +08:00
21fb901580 更新 .gitea/workflows/prod_build_schedule.yaml 2025-11-29 00:06:19 +08:00
29eb464772 更新 .gitea/workflows/prod_build_schedule.yaml
Some checks failed
AiDA WEB-Node.js StableVersion 分支构建部署 / build (18.18.0) (push) Failing after 2m34s
2025-11-28 17:36:57 +08:00
6f5d696c2d 更新 .gitea/workflows/prod_build_schedule.yaml 2025-11-28 17:35:50 +08:00
14a3e467f8 更新 .gitea/workflows/develop_build_commit.yaml 2025-11-28 16:07:40 +08:00
23 changed files with 1495 additions and 1129 deletions

View File

@@ -0,0 +1,90 @@
name: git commit 控制 AiDA WEB-Node.js 开发分支构建部署
on:
workflow_dispatch:
push:
branches:
- dev_vite
jobs:
build:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[run build]')"
strategy:
matrix:
node-version: [ 18.18.0 ]
env:
REMOTE_DEPLOY_PATH: /workspace/workspace_aida/DevelopVersion/develop-aida-web-front
steps:
- name: 0.记录开始时间
id: build_start_time
run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
- name: 1.检出代码
uses: actions/checkout@v4
with:
ref: dev_vite
- name: 2.设置 Node.js 环境
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build:dev
- run: ls -l
- name: 3.同步文件到远程服务器
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
source: "./dist/*"
target: ${{ env.REMOTE_DEPLOY_PATH }}
ssh_options: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
strip_components: 0
- name: 4. 远程重载 Nginx 配置
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
# 核心:执行 Nginx 重载命令
script: |
echo "尝试重载 Nginx 服务..."
# 💡 注意:执行此命令需要服务器用户具有 sudo 权限,并且配置了 NOPASSWD。
# 否则工作流可能会因为权限不足而失败。
sudo systemctl reload nginx
echo "Nginx 重载命令已发送。"
- name: 5.发送构建结果邮件
if: always() # 无论上一步是否失败,都执行此步骤
uses: dawidd6/action-send-mail@v3
with:
from: ${{ secrets.MAIL_USERNAME }}
# --- 邮件配置 ---
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
# 收件人列表,可以根据需要更改
to: 'xupei3360@163.com,txli@aidlab.hk,cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
# --- 邮件正文内容 ---
body: |
项目: AiDA back-java Develop
分支: dev/3.1_release_merge
🎉 构建结果: ${{ job.status }}
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
content_type: text/plain

View File

@@ -0,0 +1,85 @@
name: 手动触发 AiDA WEB-Node.js 开发分支构建部署
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.18.0 ]
env:
REMOTE_DEPLOY_PATH: /workspace/workspace_aida/DevelopVersion/develop-aida-web-front
steps:
- name: 0.记录开始时间
id: build_start_time
run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
- name: 1.检出代码
uses: actions/checkout@v4
with:
ref: dev_vite
- name: 2.设置 Node.js 环境
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build:dev
- run: ls -l
- name: 3.同步文件到远程服务器
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
source: "./dist/*"
target: ${{ env.REMOTE_DEPLOY_PATH }}
ssh_options: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
strip_components: 0
- name: 4. 远程重载 Nginx 配置
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
# 核心:执行 Nginx 重载命令
script: |
echo "尝试重载 Nginx 服务..."
# 💡 注意:执行此命令需要服务器用户具有 sudo 权限,并且配置了 NOPASSWD。
# 否则工作流可能会因为权限不足而失败。
sudo systemctl reload nginx
echo "Nginx 重载命令已发送。"
- name: 5.发送构建结果邮件
if: always() # 无论上一步是否失败,都执行此步骤
uses: dawidd6/action-send-mail@v3
with:
from: ${{ secrets.MAIL_USERNAME }}
# --- 邮件配置 ---
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
# 收件人列表,可以根据需要更改
to: 'xupei3360@163.com,txli@aidlab.hk,cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
# --- 邮件正文内容 ---
body: |
项目: AiDA back-java Develop
分支: dev/3.1_release_merge
🎉 构建结果: ${{ job.status }}
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
content_type: text/plain

View File

@@ -0,0 +1,78 @@
name: AiDA WEB-Node.js 生产分支构建部署
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.18.0 ]
steps:
- name: 0.记录开始时间
id: build_start_time
run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
- name: 1.检出代码
uses: actions/checkout@v4
with:
ref: StableVersion
- name: 2.设置 Node.js 环境
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: ls -l
- name: 3.5. 手动安装 AWS CLI v2 # 新增步骤:确保 aws 命令可用
run: |
echo "安装 AWS CLI V2..."
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --update
aws --version
echo "AWS CLI V2 安装完成。"
- name: 4.配置 AWS 凭证
uses: aws-actions/configure-aws-credentials@main
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'ap-east-1'
- name: 5.同步 dist 目录到 S3
run: |
aws s3 sync dist/ s3://${{ secrets.S3_BUCKET_NAME }}/ --acl public-read
- name: 6.发送构建结果邮件
if: always() # 无论上一步是否失败,都执行此步骤
uses: dawidd6/action-send-mail@v3
with:
from: ${{ secrets.MAIL_USERNAME }}
# --- 邮件配置 ---
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
# 收件人列表,可以根据需要更改
to: 'xupei3360@163.com,txli@aidlab.hk,cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
# --- 邮件正文内容 ---
body: |
项目: AiDA back-java Develop
分支: dev/3.1_release_merge
🎉 构建结果: ${{ job.status }}
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
content_type: text/plain

View File

@@ -0,0 +1,81 @@
name: AiDA WEB-Node.js 生产分支构建部署
on:
schedule:
# cron为UTC时区构建时间=部署时间-8小时 {*分 (-8)时 *日 *月 *周} ---
# 示例: 1月1日22点22分触发构建 cron写作 - '22 14 1 1 *'
- cron: '00 14 23 3 *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.18.0 ]
steps:
- name: 0.记录开始时间
id: build_start_time
run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
- name: 1.检出代码
uses: actions/checkout@v4
with:
ref: StableVersion
- name: 2.设置 Node.js 环境
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: ls -l
- name: 3.5. 手动安装 AWS CLI v2 # 新增步骤:确保 aws 命令可用
run: |
echo "安装 AWS CLI V2..."
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --update
aws --version
echo "AWS CLI V2 安装完成。"
- name: 4.配置 AWS 凭证
uses: aws-actions/configure-aws-credentials@main
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'ap-east-1'
- name: 5.同步 dist 目录到 S3
run: |
aws s3 sync dist/ s3://${{ secrets.S3_BUCKET_NAME }}/ --acl public-read
- name: 6.发送构建结果邮件
if: always() # 无论上一步是否失败,都执行此步骤
uses: dawidd6/action-send-mail@v3
with:
from: ${{ secrets.MAIL_USERNAME }}
# --- 邮件配置 ---
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
# 收件人列表,可以根据需要更改
to: 'cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
# --- 邮件正文内容 ---
body: |
项目: AiDA WEB-Node.js 生产分支构建部署
分支: StableVersion
🎉 构建结果: ${{ job.status }}
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
content_type: text/plain

View File

@@ -0,0 +1,85 @@
name: 手动触发 AiDA WEB-Node.js 开发分支构建部署
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.18.0 ]
env:
REMOTE_DEPLOY_PATH: /workspace/workspace_aida/Research/research-aida-web-front
steps:
- name: 0.记录开始时间
id: build_start_time
run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
- name: 1.检出代码
uses: actions/checkout@v4
with:
ref: research
- name: 2.设置 Node.js 环境
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build:dev
- run: ls -l
- name: 3.同步文件到远程服务器
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
source: "./dist/*"
target: ${{ env.REMOTE_DEPLOY_PATH }}
ssh_options: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
strip_components: 0
- name: 4. 远程重载 Nginx 配置
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_KEY }}
# 核心:执行 Nginx 重载命令
script: |
echo "尝试重载 Nginx 服务..."
# 💡 注意:执行此命令需要服务器用户具有 sudo 权限,并且配置了 NOPASSWD。
# 否则工作流可能会因为权限不足而失败。
sudo systemctl reload nginx
echo "Nginx 重载命令已发送。"
- name: 5.发送构建结果邮件
if: always() # 无论上一步是否失败,都执行此步骤
uses: dawidd6/action-send-mail@v3
with:
from: ${{ secrets.MAIL_USERNAME }}
# --- 邮件配置 ---
server_address: smtp.gmail.com # 替换为你的SMTP服务器地址
server_port: 465 # 替换为你的SMTP端口 (通常是465或587)
username: ${{ secrets.MAIL_USERNAME }} # 存储在Secrets中的邮箱用户名
password: ${{ secrets.MAIL_PASSWORD }} # 存储在Secrets中的邮箱密码
subject: 'Gitea Actions 构建通知: ${{ job.status }} - AiDA back-java Develop'
# 收件人列表,可以根据需要更改
to: 'xupei3360@163.com,txli@aidlab.hk,cgzhou@aidlab.hk,zchengrong@yeah.net' # 替换为实际收件人邮箱
# --- 邮件正文内容 ---
body: |
项目: AiDA back-java Develop
分支: dev/3.1_release_merge
🎉 构建结果: ${{ job.status }}
📅 构建时间: ${{ steps.build_start_time.outputs.current_time }}
🔗 构建链接: ${{ gitea.server_url }}/${{ gitea.repository.owner.name }}/${{ gitea.repository.name }}/actions/runs/${{ gitea.run_id }}
# 确保邮件内容为纯文本,或者你可以设置为 html: true 并调整 body
content_type: text/plain

View File

@@ -1,16 +1,7 @@
<template> <template>
<router-view/> <router-view/>
<div class="loading" v-show="loading"><a-spin delay="0.5" /></div>
</template> </template>
<script setup>
import { computed } from 'vue';
import { useStore } from 'vuex';
const store = useStore();
const loading = computed(() => store.state.loading || store.state.view_loading);
</script>
<style lang="less"> <style lang="less">
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
@@ -18,19 +9,7 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
height: 100%; height: 100%;
} }
.loading{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 999999999999;
color: #fff;
}
.ipad{ .ipad{
*{ *{
-webkit-touch-callout:none; -webkit-touch-callout:none;

View File

@@ -1250,14 +1250,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
background: #000 !important; background: #000 !important;
border-color: #000 !important; border-color: #000 !important;
} }
.ant-spin .ant-spin-dot {
width: 1.5em;
height: 1.5em;
}
.ant-spin-dot-item { .ant-spin-dot-item {
background-color: #000000 !important; background-color: #000000 !important;
width: 0.9em !important; width: 9px !important;
height: 0.9em !important; height: 9px !important;
} }
.ant-spin { .ant-spin {
color: #000; color: #000;

View File

@@ -1378,14 +1378,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
} }
} }
//loding样式 //loding样式
.ant-spin .ant-spin-dot{
width: 1.5em;
height: 1.5em;
}
.ant-spin-dot-item{ .ant-spin-dot-item{
background-color: #000000 !important; background-color: #000000 !important;
width: .9em !important; width: 9px !important;
height: .9em !important; height: 9px !important;
} }
.ant-spin{ .ant-spin{
color: #000; color: #000;

View File

@@ -34,8 +34,8 @@
</div> </div>
</div> </div>
<div class="layout_centent" :class="{active:flex_direction}" id="layoutCentent"> <div class="layout_centent" :class="{active:flex_direction}" id="layoutCentent">
<div v-for="item,index in layoutList" :key="item" :class="moodbClassName[index]" class="modal_imgItem" v-layout="item" @mousedown="setpitch(item,index)" @touchstart="setpitch(item,index)" ref="content" :style="{'background-image':`url(${item.imgUrl})`,'transform':`scale(${item.zoom?item.zoom:1}) rotateZ(${item.angle?item.angle:0}deg)`}"> <div v-for="item,index in layoutList" :key="item" :class="moodbClassName[index]" class="modal_imgItem" v-layout="item" @mousedown="setpitch(item,index)" @touchstart="setpitch(item,index)" ref="content" >
<!-- <img crossOrigin="anonymous" :src="item.imgUrl" :style="{'transform':`translate(-50%, -50%) scale(${item.zoom?item.zoom:1}) rotateZ(${item.angle?item.angle:0}deg)`}" draggable="false" :class="moodbClassName[index]" v-modelImg> --> <img crossOrigin="anonymous" :src="item.imgUrl" :style="{'transform':`translate(-50%, -50%) scale(${item.zoom?item.zoom:1}) rotateZ(${item.angle?item.angle:0}deg)`}" draggable="false" :class="moodbClassName[index]" v-modelImg>
<ul v-show="item.setPitch" class="layout_btn" > <ul v-show="item.setPitch" class="layout_btn" >
<li class="layout_btn_top" v-compile.stop="'top'"></li> <li class="layout_btn_top" v-compile.stop="'top'"></li>
<li class="layout_btn_bottom" v-compile.stop="'bottom'"></li> <li class="layout_btn_bottom" v-compile.stop="'bottom'"></li>
@@ -736,7 +736,6 @@ export default defineComponent({
setmoodb(item:any){ setmoodb(item:any){
this.moodbClassName = item this.moodbClassName = item
this.$emit('setmoodbClass',this.moodbClassName) this.$emit('setmoodbClass',this.moodbClassName)
this.styleObj.class = this.moodbClassName
if(this.content){ if(this.content){
for (item of (this.content as any)) { for (item of (this.content as any)) {
item.classList.remove('active') item.classList.remove('active')
@@ -773,7 +772,7 @@ export default defineComponent({
initDomStyle(){ initDomStyle(){
nextTick(()=>{ nextTick(()=>{
this.content.forEach((item:any,index:any) => { this.content.forEach((item:any,index:any) => {
if(this.styleObj.domStyle[index]?.left){ if(this.styleObj.domStyle[index]){
item.classList.add('active') item.classList.add('active')
this.initStyle(item,this.styleObj.domStyle[index]) this.initStyle(item,this.styleObj.domStyle[index])
} }
@@ -795,7 +794,7 @@ export default defineComponent({
}) })
}, },
initStyle(dom:any,style:any){ initStyle(dom:any,style:any){
if(!style || !dom)return if(!style)return
for (const [property, value] of Object.entries(style)) { for (const [property, value] of Object.entries(style)) {
dom.style.setProperty(property, value); dom.style.setProperty(property, value);
@@ -807,7 +806,7 @@ export default defineComponent({
this.styleObj.domStyle.push(this.setStyle(item.style)) this.styleObj.domStyle.push(this.setStyle(item.style))
this.domObj.dom.forEach((domName:any,index:any) => { this.domObj.dom.forEach((domName:any,index:any) => {
let style = this.domObj.domStyle[index] let style = this.domObj.domStyle[index]
let dom = item.querySelector(domName) || item let dom = item.querySelector(domName)
this.styleObj[style].push(this.setStyle(dom.style)) this.styleObj[style].push(this.setStyle(dom.style))
}) })
}); });
@@ -841,6 +840,7 @@ export default defineComponent({
let config:any = {headers:{'Content-Type':'multipart/form-data','Accept':'*/*' }} let config:any = {headers:{'Content-Type':'multipart/form-data','Accept':'*/*' }}
Https.axiosPost(Https.httpUrls.elementUpload,param,config) Https.axiosPost(Https.httpUrls.elementUpload,param,config)
.then((rv: any) => { .then((rv: any) => {
// console.log(rv);
rv.imgUrl = rv.url rv.imgUrl = rv.url
this.layout = false this.layout = false
this.loadingShow = false this.loadingShow = false
@@ -1062,12 +1062,27 @@ export default defineComponent({
// height: 100%; // height: 100%;
// } // }
overflow: hidden; overflow: hidden;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
&.active{ &.active{
position: absolute; position: absolute;
} }
img{
// object-fit: cover;
// width: 100%;
// height: 100%;
pointer-events: none;
float: left;
user-select:none;
-webkit-user-drag: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(1);
}
::selection {
// background: rgba(0,0,0,0);
// background: yellow;
}
} }
} }
.wh1{ .wh1{

View File

@@ -19,8 +19,7 @@
<div class="generalModel_closeIcon" @click.stop="cancelDsign()"> <div class="generalModel_closeIcon" @click.stop="cancelDsign()">
<!-- <i class="fi fi-rr-cross-small"></i> --> <!-- <i class="fi fi-rr-cross-small"></i> -->
<svg <svg
width="100%" width="100%" height="100%"
height="100%"
viewBox="0 0 46 46" viewBox="0 0 46 46"
fill="none" fill="none"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@@ -50,32 +49,20 @@
<div class="renewContent"> <div class="renewContent">
<div class="left"> <div class="left">
<div class="video"> <div class="video">
<video <video autoplay loop muted playsinline src="@/assets/images/icon/paymentVideo.mp4"></video>
autoplay
loop
muted
playsinline
src="@/assets/images/icon/paymentVideo.mp4"
></video>
<div class="mask"></div> <div class="mask"></div>
</div> </div>
<div class="title">{{ $t('Renew.Strengths') }}</div> <div class="title">{{ $t("Renew.Strengths") }}</div>
<div class="content"> <div class="content">
<div class="benefitsItem"> <div class="benefitsItem">
<div class="describe"> <div class="describe">
<div class="icon"> <div class="icon">
<img src="@/assets/images/icon/paymentIntroduce1.png" alt="" /> <img src="@/assets/images/icon/paymentIntroduce1.png" alt="">
</div> </div>
<div class="text"> <div class="text">
<p class="title"> <p class="title">{{ $t("Renew.StrengthsTitle1") }}<br>{{ $t("Renew.StrengthsTitle1_1") }}</p>
{{ $t('Renew.StrengthsTitle1') }}
<br />
{{ $t('Renew.StrengthsTitle1_1') }}
</p>
<p class="info"> <p class="info">
{{ $t('Renew.StrengthsInfo1') }} {{ $t("Renew.StrengthsInfo1") }}<br>{{ $t("Renew.StrengthsInfo1_1") }}
<br />
{{ $t('Renew.StrengthsInfo1_1') }}
</p> </p>
</div> </div>
</div> </div>
@@ -83,18 +70,12 @@
<div class="benefitsItem"> <div class="benefitsItem">
<div class="describe"> <div class="describe">
<div class="icon"> <div class="icon">
<img src="@/assets/images/icon/paymentIntroduce2.png" alt="" /> <img src="@/assets/images/icon/paymentIntroduce2.png" alt="">
</div> </div>
<div class="text"> <div class="text">
<p class="title"> <p class="title">{{ $t("Renew.StrengthsTitle2") }}<br>{{ $t("Renew.StrengthsTitle2_1") }}</p>
{{ $t('Renew.StrengthsTitle2') }}
<br />
{{ $t('Renew.StrengthsTitle2_1') }}
</p>
<p class="info"> <p class="info">
{{ $t('Renew.StrengthsInfo2') }} {{ $t("Renew.StrengthsInfo2") }}<br>{{ $t("Renew.StrengthsInfo2_1") }}
<br />
{{ $t('Renew.StrengthsInfo2_1') }}
</p> </p>
</div> </div>
</div> </div>
@@ -102,21 +83,13 @@
<div class="benefitsItem"> <div class="benefitsItem">
<div class="describe"> <div class="describe">
<div class="icon"> <div class="icon">
<img src="@/assets/images/icon/paymentIntroduce3.png" alt="" /> <img src="@/assets/images/icon/paymentIntroduce3.png" alt="">
</div> </div>
<div class="text"> <div class="text">
<p class="title"></p> <p class="title"></p>
<p class="title"> <p class="title">{{ $t("Renew.StrengthsTitle3") }}<br>{{ $t("Renew.StrengthsTitle3_1") }}</p>
{{ $t('Renew.StrengthsTitle3') }}
<br />
{{ $t('Renew.StrengthsTitle3_1') }}
</p>
<p class="info"> <p class="info">
{{ $t('Renew.StrengthsInfo3') }} {{ $t("Renew.StrengthsInfo3") }}<br>{{ $t("Renew.StrengthsInfo3_1") }}<br>{{ $t("Renew.StrengthsInfo3_2") }}
<br />
{{ $t('Renew.StrengthsInfo3_1') }}
<br />
{{ $t('Renew.StrengthsInfo3_2') }}
</p> </p>
</div> </div>
</div> </div>
@@ -124,18 +97,12 @@
<div class="benefitsItem"> <div class="benefitsItem">
<div class="describe"> <div class="describe">
<div class="icon"> <div class="icon">
<img src="@/assets/images/icon/paymentIntroduce4.png" alt="" /> <img src="@/assets/images/icon/paymentIntroduce4.png" alt="">
</div> </div>
<div class="text"> <div class="text">
<p class="title"> <p class="title">{{ $t("Renew.StrengthsTitle4") }}<br>{{ $t("Renew.StrengthsTitle4_1") }}</p>
{{ $t('Renew.StrengthsTitle4') }}
<br />
{{ $t('Renew.StrengthsTitle4_1') }}
</p>
<p class="info"> <p class="info">
{{ $t('Renew.StrengthsInfo4') }} {{ $t("Renew.StrengthsInfo4") }}<br>{{ $t("Renew.StrengthsInfo4_1") }}
<br />
{{ $t('Renew.StrengthsInfo4_1') }}
</p> </p>
</div> </div>
</div> </div>
@@ -144,7 +111,7 @@
</div> </div>
<div class="right"> <div class="right">
<div class="title"> <div class="title">
{{ $t('Renew.title') }} {{ $t("Renew.title") }}
</div> </div>
<!-- <div class="info">{{ $t("Renew.unlimited") }}</div> --> <!-- <div class="info">{{ $t("Renew.unlimited") }}</div> -->
<div class="content"> <div class="content">
@@ -152,31 +119,36 @@
class="productItem" class="productItem"
:class="{ :class="{
active: item.price == current.price, active: item.price == current.price,
sellWell: item.sellWell sellWell: item.sellWell,
}" }"
v-for="item in personage" v-for="item in personage"
:key="item.price" :key="item.price"
@click="setPromotionData(item)" @click="setPromotionData(item)"
> >
<div class="popular" v-show="item.sellWell"> <div class="popular" v-show="item.sellWell">{{ $t("Renew.MOSTPOPULAR") }}</div>
{{ $t('Renew.MOSTPOPULAR') }}
</div>
<div class="priceBox"> <div class="priceBox">
<div class="left"> <div class="left">
<p class="productType">1 {{ item.type.label }}</p> <p class="productType">1 {{ item.type.label }}</p>
<p class="price">HK $ {{ item.price }}</p> <p class="price">${{ item.price }}</p>
</div> </div>
<div class="right"> <div class="right">
<div class="promotion"> <div class="promotion">
<div class="succeed" v-show="item.promotionData.error == 'true'"> <div
class="succeed"
v-show="item.promotionData.error == 'true'"
>
{{ item.promotionData.code }} {{ item.promotionData.code }}
<i class="fi fi-sr-times-hexagon" @click="clearPromotionCode"></i> <i
class="fi fi-sr-times-hexagon"
@click="clearPromotionCode"
></i>
</div> </div>
<div <div
class="input" class="input"
@click.stop @click.stop
v-show=" v-show="
!item.promotionData.error || item.promotionData.error == 'false' !item.promotionData.error ||
item.promotionData.error == 'false'
" "
> >
<input <input
@@ -184,11 +156,14 @@
:placeholder="$t('Renew.promotionCode')" :placeholder="$t('Renew.promotionCode')"
v-model="item.promotionData.code" v-model="item.promotionData.code"
/> />
<div class="apply-btn" @click="examine(item)"> <div style="cursor: pointer; background-color: #000; font-size: 1.2rem; color: #fff; padding: 0 .5rem;" @click="examine(item)">
{{ $t('Renew.use') }} {{ $t("Renew.use") }}
</div> </div>
</div> </div>
<div class="error" v-show="item.promotionData.error == 'false'"> <div
class="error"
v-show="item.promotionData.error == 'false'"
>
{{ item.promotionData.str }} {{ item.promotionData.str }}
</div> </div>
</div> </div>
@@ -206,7 +181,7 @@
<div class="payment"> <div class="payment">
<div class="allocation"> <div class="allocation">
<div class="selectType"> <div class="selectType">
<div class="text">{{ $t('Renew.Payment') }}:</div> <div class="text">{{ $t("Renew.Payment") }}:</div>
<label> <label>
<input <input
name="payment" name="payment"
@@ -215,7 +190,7 @@
v-model="PaymentType" v-model="PaymentType"
@change="setPaymentType('CreditCard')" @change="setPaymentType('CreditCard')"
/> />
{{ $t('Renew.CreditCard') }} {{ $t("Renew.CreditCard") }}
</label> </label>
<label> <label>
<input <input
@@ -225,47 +200,43 @@
v-model="PaymentType" v-model="PaymentType"
@change="setPaymentType('Alipay')" @change="setPaymentType('Alipay')"
/> />
{{ $t('Renew.Alipay') }} {{ $t("Renew.Alipay") }}
</label> </label>
</div> </div>
</div> </div>
<div class="gallery_btn gallery_btn_radius" @click="payment"> <div class="gallery_btn gallery_btn_radius" @click="payment">
{{ $t('upgradePlan.Continue') }} {{ $t("upgradePlan.Continue") }}
</div> </div>
<div class="payMethod_payAffirm_clause" ref="labelDisclaimer"> <div class="payMethod_payAffirm_clause" ref="labelDisclaimer">
<label> <label>
<!-- <input type="checkbox" v-model="clause" /> --> <!-- <input type="checkbox" v-model="clause" /> -->
<span class="generalModelDescription"> <span class="generalModelDescription"
{{ $t('upgradePlan.policy') }} >{{ $t("upgradePlan.policy")}}
<a <a
href="https://code-create.com.hk/aida-terms-and-conditions/" href="https://code-create.com.hk/aida-terms-and-conditions/"
target="_blank" target="_blank">
> {{ $t("upgradePlan.policy1") }}
{{ $t('upgradePlan.policy1') }}
</a> </a>
& &
<a <a
href="https://code-create.com.hk/aida-subscription-agreement/" href="https://code-create.com.hk/aida-subscription-agreement/"
target="_blank" target="_blank">
> {{ $t("upgradePlan.policy2") }}
{{ $t('upgradePlan.policy2') }}
</a> </a>
<!-- . * --> <!-- . * -->
</span> </span
>
</label> </label>
<label class="secure"> <label class="secure">
<span> <span><i class="fi fi-rr-shield-check"></i>Pay safe & secure</span>
<i class="fi fi-rr-shield-check"></i>
Pay safe & secure
</span>
</label> </label>
<label class="payIcon"> <label class="payIcon">
<img class="stripe" src="@/assets/images/icon/stripe.svg" alt="" /> <img class="stripe" src="@/assets/images/icon/stripe.svg" alt="">
<img class="alipay" src="@/assets/images/icon/alipay.svg" alt="" /> <img class="alipay" src="@/assets/images/icon/alipay.svg" alt="">
<img class="alipay" src="@/assets/images/icon/jcbPay.svg" alt="" /> <img class="alipay" src="@/assets/images/icon/jcbPay.svg" alt="">
<img class="alipay" src="@/assets/images/icon/mastercardPay.svg" alt="" /> <img class="alipay" src="@/assets/images/icon/mastercardPay.svg" alt="">
<img class="alipay" src="@/assets/images/icon/yinlianPay.svg" alt="" /> <img class="alipay" src="@/assets/images/icon/yinlianPay.svg" alt="">
<img class="alipay" src="@/assets/images/icon/visaPay.svg" alt="" /> <img class="alipay" src="@/assets/images/icon/visaPay.svg" alt="">
</label> </label>
</div> </div>
<!-- <div class="paySecure"> <!-- <div class="paySecure">
@@ -279,104 +250,101 @@
<a-spin size="large" /> <a-spin size="large" />
</div> </div>
<div class="mark_loading" v-show="isShowMark" state="true"> <div class="mark_loading" v-show="isShowMark" state="true">
<div class="mark_loading_title">{{ $t('upgradePlan.completed') }}</div> <div class="mark_loading_title">{{ $t("upgradePlan.completed") }}</div>
<div class="mark_loading_intro">{{ $t('upgradePlan.hint') }}</div> <div class="mark_loading_intro">{{ $t("upgradePlan.hint") }}</div>
<div class="mark_loading_title_box"> <div class="mark_loading_title_box">
<div class="mark_loading_btn mark_loading_btn2" @click="setPaidBack"> <div class="mark_loading_btn mark_loading_btn2" @click="setPaidBack">
{{ $t('upgradePlan.Back') }} {{ $t("upgradePlan.Back") }}
</div> </div>
<div class="mark_loading_btn" @click="completePayment">OK</div> <div class="mark_loading_btn" @click="completePayment">OK</div>
</div> </div>
</div> </div>
</a-modal> </a-modal>
<payMethod ref="payMethod" @completePayment="cancelDsign" type="renew"></payMethod> <payMethod
ref="payMethod"
@completePayment="cancelDsign"
type="renew"
></payMethod>
</template> </template>
<script lang="ts"> <script lang="ts">
import { import { defineComponent, computed, reactive, toRefs, onMounted, onBeforeUnmount } from "vue";
defineComponent, import { message } from "ant-design-vue";
computed, import payMethod from "@/component/Pay/payMethod.vue";
reactive, import { useStore } from "vuex";
toRefs, import { useI18n } from "vue-i18n";
onMounted, import { Https } from "@/tool/https";
onBeforeUnmount import md5 from "md5";
} from 'vue'
import { message } from 'ant-design-vue'
import payMethod from '@/component/Pay/payMethod.vue'
import { useStore } from 'vuex'
import { useI18n } from 'vue-i18n'
import { Https } from '@/tool/https'
import md5 from 'md5'
export default defineComponent({ export default defineComponent({
components: { components: {
payMethod payMethod,
}, },
setup() { setup() {
const store = useStore() const store = useStore();
const { t } = useI18n() const { t } = useI18n();
let renew = reactive({ let renew = reactive({
renewModel: false, renewModel: false,
renewModelMask: true, renewModelMask: true,
pageWidth: '50%' pageWidth: "50%",
}) });
let payMethodData = reactive({ let payMethodData = reactive({
clause: false, clause: false,
labelDisclaimer: null as any, labelDisclaimer: null as any,
newWindow: null as any, newWindow: null as any,
isShowMark: false, isShowMark: false,
isShowMark_: false isShowMark_: false,
}) });
let renewData = reactive({ let renewData = reactive({
personage: [ personage: [
{ {
price: '100', price: "100",
sellWell: true, sellWell: true,
activity: false, //活动打折 activity: false, //活动打折
type: { type: {
value: 'EcoMonth', value: "EcoMonth",
label: computed(() => t('Renew.Monthly')) label: computed(()=>t("Renew.Monthly")),
}, },
// PaymentType: "CreditCard", // PaymentType: "CreditCard",
promotionData: { promotionData: {
code: '', code: "",
error: '', error: "",
str: '', str: "",
price: '' price: "",
} },
}, },
{ {
price: '500', price: "500",
sellWell: false, sellWell: false,
activity: false, //活动打折 activity: false, //活动打折
type: { type: {
value: 'Month', value: "Month",
label: computed(() => t('Renew.Monthly')) label: computed(()=>t("Renew.Monthly")),
}, },
// PaymentType: "CreditCard", // PaymentType: "CreditCard",
promotionData: { promotionData: {
code: '', code: "",
error: '', error: "",
str: '', str: "",
price: '' price: "",
} },
}, },
{ {
price: '5,000', price: "5,000",
sellWell: false, sellWell: false,
activity: false, //活动打折 activity: false, //活动打折
typeValue: 'year', typeValue: "year",
type: { type: {
value: 'Year', value: "Year",
label: computed(() => t('Renew.Yearly')) label: computed(()=>t("Renew.Yearly")),
}, },
// PaymentType: "CreditCard", // PaymentType: "CreditCard",
promotionData: { promotionData: {
code: '', code: "",
error: '', error: "",
str: '', str: "",
price: '' price: "",
} },
} },
], ],
// personage:computed(()=>{ // personage:computed(()=>{
// return { // return {
@@ -397,55 +365,55 @@ export default defineComponent({
// }), // }),
firm: computed(() => { firm: computed(() => {
return { return {
title: 'Education Edition', title: "Education Edition",
price: { price: {
year: '500' year: "500",
}, },
unit: { unit: {
year: 'HKD / Year' year: "HKD / Year",
}, },
type: 'year', type: "year",
autoRenewal: { autoRenewal: {
text: t('Renew.automatically'), text: t("Renew.automatically"),
value: true value: true,
}, },
typeList: ['year'], typeList: ["year"],
info: 'Customised plan' info: "Customised plan",
} };
}), }),
education: computed(() => { education: computed(() => {
return { return {
title: 'Enterprise Edition', title: "Enterprise Edition",
price: { price: {
year: '500' year: "500",
}, },
unit: { unit: {
year: 'HKD / Year' year: "HKD / Year",
}, },
type: 'year', type: "year",
autoRenewal: { autoRenewal: {
text: t('Renew.automatically'), text: t("Renew.automatically"),
value: true value: true,
}, },
typeList: ['year'], typeList: ["year"],
info: 'Customised plan' info: "Customised plan",
} };
}), }),
current: {} as any, current: {} as any,
payMethod: null as any, payMethod: null as any,
PaymentType: 'CreditCard' PaymentType: "CreditCard",
}) });
const init = () => { const init = () => {
renew.renewModel = true renew.renewModel = true;
renewData.current = renewData.personage[1] renewData.current = renewData.personage[1];
} };
const cancelDsign = () => { const cancelDsign = () => {
renew.renewModel = false renew.renewModel = false;
store.dispatch('getUserDetail') store.dispatch('getUserDetail')
} };
const setPaymentType = (str: any) => { const setPaymentType = (str: any) => {
renewData.PaymentType = str renewData.PaymentType = str;
} };
const payment = () => { const payment = () => {
// if (!payMethodData.clause) { // if (!payMethodData.clause) {
// let labelDisclaimer: any = payMethodData.labelDisclaimer; // let labelDisclaimer: any = payMethodData.labelDisclaimer;
@@ -457,92 +425,104 @@ export default defineComponent({
// } // }
// return; // return;
// } // }
if (!renewData.PaymentType) return message.info(t('Renew.PleaseSelectPayment')) if (!renewData.PaymentType)
let url = window.location.origin + '/paySucceed' return message.info(t("Renew.PleaseSelectPayment"));
let url = window.location.origin + "/paySucceed";
let data = { let data = {
autoRenewal: renewData.PaymentType != 'Alipay', //false为不自动续费 autoRenewal: renewData.PaymentType != "Alipay", //false为不自动续费
productName: 'Subscription', productName: "Subscription",
quantity: 1, quantity: 1,
returnUrl: url, returnUrl: url,
subscribeType: renewData.current.type.value, //yearly为年费monthly为月费 subscribeType: renewData.current.type.value, //yearly为年费monthly为月费
wallet: 'ALIPAYHK', wallet: "ALIPAYHK",
promotionCode: renewData.current.promotionData.code promotionCode: renewData.current.promotionData.code,
} };
let httpsUrl = Https.httpUrls.payStripe let httpsUrl = Https.httpUrls.payStripe;
payMethodData.isShowMark_ = true payMethodData.isShowMark_ = true;
Https.axiosPost(httpsUrl, data) Https.axiosPost(httpsUrl, data)
.then((rv: any) => { .then((rv: any) => {
var width = 800 var width = 800;
var height = 600 var height = 600;
var left = (screen.width - width) / 2 var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2 var top = (screen.height - height) / 2;
payMethodData.newWindow = window.open( payMethodData.newWindow = window.open(
'', "",
'_blank', "_blank",
'width=' + width + ', height=' + height + ', left=' + left + ', top=' + top "width=" +
) width +
let herf = rv ", height=" +
height +
", left=" +
left +
", top=" +
top
);
let herf = rv;
if (payMethodData.newWindow) { if (payMethodData.newWindow) {
payMethodData.newWindow.location.href = herf payMethodData.newWindow.location.href = herf;
} else { } else {
// window.open(herf, '_blank'); // window.open(herf, '_blank');
window.location.href = herf window.location.href = herf;
} }
payMethodData.newWindow = null payMethodData.newWindow = null;
payMethodData.isShowMark = true payMethodData.isShowMark = true;
payMethodData.isShowMark_ = false payMethodData.isShowMark_ = false;
})
.catch(res => {
payMethodData.isShowMark_ = false
}) })
.catch((res) => {
payMethodData.isShowMark_ = false;
});
// renewData.payMethod.init(data) // renewData.payMethod.init(data)
} };
const setPaidBack = () => { const setPaidBack = () => {
payMethod.payMethodModel = false payMethod.payMethodModel = false;
payMethodData.isShowMark = false payMethodData.isShowMark = false;
payMethodData.clause = false payMethodData.clause = false;
} };
const completePayment = () => { const completePayment = () => {
renew.renewModel = false renew.renewModel = false;
setPaidBack() setPaidBack();
} };
const examine = (item: any) => { const examine = (item: any) => {
// renewData.promotionData.error // renewData.promotionData.error
let price = item?.price let price = item?.price;
const normalNumber = Number(price.replace(/,/g, '')) const normalNumber = Number(price.replace(/,/g, ""));
if (!item.promotionData.code) { if (!item.promotionData.code) {
return return;
} }
let data = { let data = {
promotionCode: item.promotionData.code, promotionCode: item.promotionData.code,
price: normalNumber price: normalNumber,
} };
Https.axiosGet(Https.httpUrls.checkCoupon, { params: data }).then((rv: any) => { Https.axiosGet(Https.httpUrls.checkCoupon, { params: data }).then(
(rv: any) => {
if (rv) { if (rv) {
renewData.personage.forEach((personageItem: any) => { renewData.personage.forEach((personageItem: any) => {
if (personageItem.price == item.price) { if (personageItem.price == item.price) {
if (rv.status == 'valid') { if (rv.status == "valid") {
item.promotionData.error = 'true' item.promotionData.error = "true";
item.promotionData.price = Number(rv.discountedPrice).toLocaleString() item.promotionData.price = Number(
rv.discountedPrice
).toLocaleString();
} else { } else {
item.promotionData.error = 'false' item.promotionData.error = "false";
item.promotionData.str = rv.message item.promotionData.str = rv.message;
} }
} }
}) });
} else { } else {
} }
})
} }
);
};
const clearPromotionCode = () => { const clearPromotionCode = () => {
renewData.current.promotionData.error = '' renewData.current.promotionData.error = "";
renewData.current.promotionData.code = '' renewData.current.promotionData.code = "";
renewData.current.promotionData.price = '' renewData.current.promotionData.price = "";
} };
const setPromotionData = (item: any) => { const setPromotionData = (item: any) => {
renewData.current = item renewData.current = item;
} };
return { return {
store, store,
...toRefs(renew), ...toRefs(renew),
@@ -556,18 +536,18 @@ export default defineComponent({
completePayment, completePayment,
examine, examine,
clearPromotionCode, clearPromotionCode,
setPromotionData setPromotionData,
} };
}, },
data() { data() {
return {} return {};
}, },
methods: { methods: {
turnToWindow(url: any) { turnToWindow(url: any) {
window.open(url) window.open(url);
} },
} },
}) });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.renew { .renew {
@@ -627,7 +607,7 @@ export default defineComponent({
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
background: rgba(0, 0, 0, 0.5); background: rgba(0,0,0,.5);
} }
} }
@@ -699,11 +679,11 @@ export default defineComponent({
margin-bottom: 1rem; margin-bottom: 1rem;
border-radius: 1rem; border-radius: 1rem;
overflow: hidden; overflow: hidden;
border: 1.5px solid #e7ebff; border: 1.5px solid #E7EBFF;
cursor: pointer; cursor: pointer;
> .popular { > .popular {
background: #1b223c; background: #1B223C;
font-weight: 600; font-weight: 600;
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -765,10 +745,9 @@ export default defineComponent({
display: flex; display: flex;
align-items: center; align-items: center;
border-radius: 2rem; border-radius: 2rem;
border: 1.5px solid rgb(216, 218, 220); border: 2px solid #000;
overflow: hidden; overflow: hidden;
padding: 0 1rem; padding: 0 1rem;
background-color: #fff;
input { input {
border: none; border: none;
height: 3rem; height: 3rem;
@@ -776,18 +755,6 @@ export default defineComponent({
font-size: 1.2rem; font-size: 1.2rem;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
} }
.apply-btn {
cursor: pointer;
background-color: rgb(27, 34, 60);
font-size: 0.8rem;
color: #fff;
width: 3.3rem;
height: 1.4rem;
line-height: 1.4rem;
display: flex;
align-items: center;
justify-content: center;
}
} }
> .error { > .error {
color: red; color: red;
@@ -801,11 +768,11 @@ export default defineComponent({
} }
} }
} }
&.active, &.active,&:hover {
&:hover {
// 40% opacity // 40% opacity
background: rgba(231, 235, 255, 0.4); background: rgba(231, 235, 255, 0.4);
// border: 2px solid #0ea982; // border: 2px solid #0ea982;
} }
&.sellWell { &.sellWell {
// border: 2px solid #0ea982; // border: 2px solid #0ea982;
@@ -843,14 +810,10 @@ export default defineComponent({
> .gallery_btn { > .gallery_btn {
width: 100%; width: 100%;
margin: 2rem 0; margin: 2rem 0;
margin-bottom: 0.5rem; margin-bottom: .5rem;
margin-top: 1rem; margin-top: 1rem;
background: #1b223c; background: #1B223C;
color: #fff; color: #fff;
// width: 41.8rem;
height: 4rem;
box-sizing: border-box;
line-height: 4rem;
} }
> .payMethod_payAffirm_clause { > .payMethod_payAffirm_clause {
text-align: center; text-align: center;
@@ -876,8 +839,8 @@ export default defineComponent({
border: 1px solid #ededed; border: 1px solid #ededed;
background: #f1fbf9; background: #f1fbf9;
color: #1cb36c; color: #1cb36c;
padding: 0.4rem 0.8rem; padding: .4rem .8rem;
border-radius: 0.5rem; border-radius: .5rem;
margin-top: 4rem; margin-top: 4rem;
> span{ > span{
display: flex; display: flex;
@@ -885,14 +848,14 @@ export default defineComponent({
} }
i{ i{
display: flex; display: flex;
margin-right: 0.5rem; margin-right: .5rem;
} }
} }
> .payIcon{ > .payIcon{
height: 2rem; height: 2rem;
margin-top: 1rem; margin-top: 1rem;
img{ img{
margin: 0 0.3rem; margin: 0 .3rem;
height: 100%; height: 100%;
} }
} }
@@ -990,3 +953,4 @@ export default defineComponent({
} }
} }
</style> </style>

View File

@@ -553,14 +553,13 @@ export default defineComponent({
loginType: "EMAIL", loginType: "EMAIL",
userId: this.userId, userId: this.userId,
}; };
this.store.commit('set_loading', true) this.$emit('update:isMask',true)
Https.axiosPost(Https.httpUrls.accountLogin, data) Https.axiosPost(Https.httpUrls.accountLogin, data)
.then((rv: any) => { .then((rv: any) => {
this.setSuccessLogin(rv); this.setSuccessLogin(rv);
this.store.commit('set_loading', false)
}) })
.catch((res) => { .catch((res) => {
this.store.commit('set_loading', false) this.$emit('update:isMask',false)
}); });
},1000) },1000)
}, },

View File

@@ -458,7 +458,6 @@ export default defineComponent({
message.info(t('newScaleImage.jsContent2')) message.info(t('newScaleImage.jsContent2'))
return return
} }
store.state.Workspace.cachedRoutes = [];
let id = await getWorks(imgData.scaleImageData.id) let id = await getWorks(imgData.scaleImageData.id)
await router.push(`/home/history/${id}`) await router.push(`/home/history/${id}`)
store.commit('setChooseIsDesign',false) store.commit('setChooseIsDesign',false)

View File

@@ -132,8 +132,8 @@
</div> </div>
<div class="modal_img_max"> <div class="modal_img_max">
<div v-if="!modalImg[0]?.id" class="modal_img" id="modal_img" :class="{active:flex_direction}"> <div v-if="!modalImg[0]?.id" class="modal_img" id="modal_img" :class="{active:flex_direction}">
<!-- <div class="modal_img" id="modal_img" :class="{active:flex_direction}"> --> <div v-for="item,index in layoutList" :class="[moodb_className[index]]" class="modal_imgItem">
<div v-for="item,index in layoutList" :class="[moodb_className[index]]" :style="{'background-image':`url(${item.imgUrl})`}" class="modal_imgItem"> <img :src="item.imgUrl" v-modelImg>
</div> </div>
</div> </div>
<div v-else class="modal_img"> <div v-else class="modal_img">
@@ -244,6 +244,30 @@ export default defineComponent({
this.token = getCookie("token") || ""; this.token = getCookie("token") || "";
this.uploadUrl = getUploadUrl(); this.uploadUrl = getUploadUrl();
}, },
directives:{
modelImg:{
mounted(el) {
let parentNode = el.parentNode
if(parentNode.offsetHeight >= parentNode.offsetWidth){
el.style.height = 100+'%'
el.style.width = 'auto'
}else{
el.style.width = 100+'%'
el.style.height = 'auto'
}
},
updated (el) {
let parentNode = el.parentNode
if(parentNode.offsetHeight >= parentNode.offsetWidth){
el.style.height = 100+'%'
el.style.width = 'auto'
}else{
el.style.width = 100+'%'
el.style.height = 'auto'
}
}
}
},
methods: { methods: {
open(num: Number) { open(num: Number) {
this.openClick = num; this.openClick = num;
@@ -421,7 +445,7 @@ export default defineComponent({
} }
} }
this.edieShow = true this.edieShow = true
if(this.moodb_[arr.length-1].length == 1){ if(this.moodb_[arr.length-1].length == 2){
this.moodb_className = this.moodb_[arr.length-1][0] this.moodb_className = this.moodb_[arr.length-1][0]
}else{ }else{
this.moodb_className = this.moodb_[arr.length-1][random] this.moodb_className = this.moodb_[arr.length-1][random]
@@ -604,7 +628,6 @@ export default defineComponent({
height: calc(5rem*1.2); height: calc(5rem*1.2);
overflow-x: hidden; overflow-x: hidden;
display: flex; display: flex;
&.modal_img::-webkit-scrollbar { &.modal_img::-webkit-scrollbar {
display: none; display: none;
} }
@@ -683,9 +706,15 @@ export default defineComponent({
position: relative; position: relative;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
background-repeat: no-repeat; img{
background-position: center; position: absolute;
background-size: cover; top: 50%;
left: 50%;
transform: translate(-50%,-50%);
// float: left;
// user-select:none;
// -webkit-user-drag: none;
}
} }
.wh1{ .wh1{
width: 23%; width: 23%;

View File

@@ -242,16 +242,7 @@
</div> </div>
</div> </div>
<div class="prompt-input-container" v-show="!showMotion"> <div class="prompt-input-container" v-show="!showMotion">
<div class="title"> <div class="title">{{ $t('ProductImg.Prompt') }}</div>
<span>{{ $t('ProductImg.Prompt') }}</span>
<SvgIcon
class="cursor-icon"
@click="handleNavigateHelp"
name="CHelpFlip"
size="18"
color="#000"
/>
</div>
<promptInput :content="prompt" ref="promptInputRef" /> <promptInput :content="prompt" ref="promptInputRef" />
</div> </div>
<div class="transferPose" v-show="showMotion"> <div class="transferPose" v-show="showMotion">
@@ -389,7 +380,7 @@
<a-spin size="large" /> <a-spin size="large" />
</div> </div>
<template> <template>
<Prompt v-if="scaleImageList[scaleImageIndex]?.resultType === 'ToProductImage'" v-model:showModal="showPromptAssist" /> <Prompt v-if="scaleImageList[scaleImageIndex]?.resultType === 'ToProductImage'" v-model:showModal="showPromptAssist" isDesignPage />
<PromptEditProduct v-if="scaleImageList[scaleImageIndex]?.resultType === 'Relight'" v-model:showModal="showPromptAssist" /> <PromptEditProduct v-if="scaleImageList[scaleImageIndex]?.resultType === 'Relight'" v-model:showModal="showPromptAssist" />
</template> </template>
<Product <Product
@@ -459,7 +450,7 @@ export default defineComponent({
let userDetail: any = computed(() => { let userDetail: any = computed(() => {
return store.state.UserHabit.userDetail return store.state.UserHabit.userDetail
}) })
let { t, locale } = useI18n() let { t } = useI18n()
const textareaRef = useTemplateRef<HTMLTextAreaElement>('textareaRef') const textareaRef = useTemplateRef<HTMLTextAreaElement>('textareaRef')
const videoType = ref(2) const videoType = ref(2)
const showMotion = computed(() => videoType.value === 1) const showMotion = computed(() => videoType.value === 1)
@@ -608,13 +599,13 @@ export default defineComponent({
}) })
const showPromptAssist = ref(false) const showPromptAssist = ref(false)
const handleClickAssistBtn = () => { const handleClickAssistBtn = () => {
// const { httpType } = store.state.Workspace.probjects const { httpType } = store.state.Workspace.probjects
// const isSingleDesign = httpType === 'SINGLE_DESIGN' const isSingleDesign = httpType === 'SINGLE_DESIGN'
// if (!isSingleDesign) { if (!isSingleDesign) {
// const promptText = t('ProductImg.Series') const promptText = t('ProductImg.Series')
// productimg.productimgSearchName = promptText productimg.productimgSearchName = promptText
// return return
// } }
showPromptAssist.value = true showPromptAssist.value = true
} }
@@ -1319,13 +1310,7 @@ export default defineComponent({
return videoType.value === 3 ? false : true return videoType.value === 3 ? false : true
} }
}) })
const handleNavigateHelp = () => {
const url =
locale === 'CHINESE_SIMPLIFIED'
? 'https://aida-user-manual-chinese.super.site/2b08f755cedd80a985cffdf2af80c538'
: 'https://aida-user-manual.super.site/advanced-tool/animated-product-image/to-product-video-prompt-assist '
window.open(url,'_blank')
}
onBeforeUnmount(() => { onBeforeUnmount(() => {
clearInterval(prductimgTime) clearInterval(prductimgTime)
clearInterval(remPrductimgTime) clearInterval(remPrductimgTime)
@@ -1389,8 +1374,7 @@ export default defineComponent({
handlePlayNewVideo, handlePlayNewVideo,
isNewVideoPlaying, isNewVideoPlaying,
showDropdown, showDropdown,
inputPlaceholder, inputPlaceholder
handleNavigateHelp
} }
}, },
data() { data() {
@@ -1803,14 +1787,10 @@ export default defineComponent({
box-sizing: border-box; box-sizing: border-box;
} }
.title { .title {
display: flex; font-weight: 500;
align-items: center; color: #000;
column-gap: 1rem; font-size: 1.7rem;
.cursor-icon { margin-bottom: 1.4rem;
display: flex;
width: auto;
cursor: pointer;
}
} }
} }
.prompt-container { .prompt-container {

View File

@@ -55,16 +55,13 @@ export default defineComponent({
const data = reactive({ const data = reactive({
openType:'', openType:'',
componentKey:null, componentKey:null,
isShowMark:true, isShowMark:false,
routeQuery:{} as any, routeQuery:{} as any,
selectObject:computed(()=>store.state.Workspace.probjects) as any,//选择的项目 selectObject:computed(()=>store.state.Workspace.probjects) as any,//选择的项目
chatData:null as any, chatData:null as any,
dataLoad:true as any, dataLoad:true as any,
cachedRoutes:computed(()=>store.state.Workspace.cachedRoutes),// cachedRoutes:computed(()=>store.state.Workspace.cachedRoutes),//
}) })
onMounted(()=>{
data.isShowMark = false
})
let settingGetHistory:any = inject('settingGetHistory') let settingGetHistory:any = inject('settingGetHistory')
const setIsShowMark = (boolean:boolean)=>{ const setIsShowMark = (boolean:boolean)=>{
data.isShowMark = boolean data.isShowMark = boolean

View File

@@ -121,7 +121,7 @@ const promptList = computed(() => {
return [t('ProductImg.UploadWithoutModel'), t('ProductImg.UploadWithModel')] return [t('ProductImg.UploadWithoutModel'), t('ProductImg.UploadWithModel')]
} else { } else {
// 如果是从design来的 // 如果是从design来的
if (props.isDesignPage) { if (isSingleDesign) {
// SINGLE_DESIGN: 两个提示词 // SINGLE_DESIGN: 两个提示词
// 根据年龄和性别选择对应的提示词 // 根据年龄和性别选择对应的提示词
let firstPrompt: string // 不带模特的提示词 let firstPrompt: string // 不带模特的提示词
@@ -255,8 +255,8 @@ const exampleList = computed(() => {
} }
} else { } else {
const { ageGroup, httpType, sex } = store.state.Workspace.probjects const { ageGroup, httpType, sex } = store.state.Workspace.probjects
// const isSingleDesign = httpType === 'SINGLE_DESIGN' const isSingleDesign = httpType === 'SINGLE_DESIGN'
// if (!isSingleDesign) return {} if (!isSingleDesign) return {}
const isAdult = ageGroup === 'Adult' const isAdult = ageGroup === 'Adult'
const isFemale = sex === 'Female' const isFemale = sex === 'Female'
if (isAdult) { if (isAdult) {

View File

@@ -1101,13 +1101,13 @@ export default defineComponent({
const showPromptAssist = ref(false) const showPromptAssist = ref(false)
const handleClickAssistBtn = () => { const handleClickAssistBtn = () => {
// const { httpType } = store.state.Workspace.probjects const { httpType } = store.state.Workspace.probjects
// const isSingleDesign = httpType === 'SINGLE_DESIGN' const isSingleDesign = httpType === 'SINGLE_DESIGN'
// if (props.isDesignPage && !isSingleDesign) { if (props.isDesignPage && !isSingleDesign) {
// const promptText = t('ProductImg.Series') const promptText = t('ProductImg.Series')
// productImgData.searchName[props.productimgMenu.value] = promptText productImgData.searchName[props.productimgMenu.value] = promptText
// return return
// } }
showPromptAssist.value = true showPromptAssist.value = true
} }

View File

@@ -51,7 +51,7 @@
<ul <ul
class="product_detail" class="product_detail"
:class="[ :class="[
{ academic: item.type == 'academic' }, { academic: item.type == 'academic' && !isSelectSuccessively },
{ chinese: isSelectSuccessively } { chinese: isSelectSuccessively }
]" ]"
> >
@@ -106,12 +106,12 @@ export default defineComponent({
Yearly: '年度', Yearly: '年度',
monthly: [ monthly: [
{ {
title: '使用版', title: '免费版',
img: CChargeIcon, img: CChargeIcon,
type: 'personal', type: 'personal',
info: '您的AI时尚设计助手', info: '您的AI时尚设计助手',
price: 'HK$0', price: 'HK$0',
detail: '自注册之日起 5 天内 · 50 个积分', detail: '5天·50积分',
highlight: '', highlight: '',
discounts: '9折优惠', discounts: '9折优惠',
detailList: [ detailList: [
@@ -185,12 +185,12 @@ export default defineComponent({
], ],
yearl: [ yearl: [
{ {
title: '试用版', title: '免费版',
img: CChargeIcon, img: CChargeIcon,
type: 'personal', type: 'personal',
info: '您的AI时尚设计助手', info: '您的AI时尚设计助手',
price: 'HK$0', price: 'HK$0',
detail: '自注册之日起 5 天内 · 50 个积分', detail: '5天·50积分',
highlight: '', highlight: '',
discounts: '9折优惠', discounts: '9折优惠',
detailList: [ detailList: [
@@ -250,12 +250,12 @@ export default defineComponent({
Yearly: 'Yearly', Yearly: 'Yearly',
monthly: [ monthly: [
{ {
title: 'Trial', title: 'Free',
img: CChargeIcon, img: CChargeIcon,
type: 'personal', type: 'personal',
info: 'Your AI Fashion Design Assistant', info: 'Your AI Fashion Design Assistant',
price: 'HK$0', price: 'HK$0',
detail: '5 days from sign-up · 50 credits', detail: '5 days · 50 credits',
highlight: '', highlight: '',
discounts: '10% off', discounts: '10% off',
detailList: [ detailList: [
@@ -329,12 +329,12 @@ export default defineComponent({
], ],
yearl: [ yearl: [
{ {
title: 'Trial', title: 'Free',
img: CChargeIcon, img: CChargeIcon,
type: 'personal', type: 'free',
info: 'Your AI Fashion Design Assistant', info: 'Your AI Fashion Design Assistant',
price: 'HK$0', price: 'HK$0',
detail: '5 days from sign-up · 50 credits', detail: '5 days · 50 credits',
highlight: '', highlight: '',
discounts: '10% off', discounts: '10% off',
detailList: [ detailList: [

View File

@@ -959,7 +959,7 @@ export default {
MOSTPOPULAR: 'MOST POPULAR', MOSTPOPULAR: 'MOST POPULAR',
Monthly: 'Monthly', Monthly: 'Monthly',
Yearly: 'Yearly', Yearly: 'Yearly',
promotionCode: 'Coupon Code', promotionCode: 'Coupon',
use: 'Apply', use: 'Apply',
PromoCodeError: PromoCodeError:
'Please check if the promo code is correct or if the date has expired', 'Please check if the promo code is correct or if the date has expired',

View File

@@ -498,7 +498,6 @@ function isTimeRangePassed(timeRange) {
} }
router.beforeEach((to: any, from, next) => { router.beforeEach((to: any, from, next) => {
store.commit("set_view_loading", true);
//系统维护时间 //系统维护时间
const time = '2025-11-21T23:00:00 - 2025-11-22T00:00:00'; const time = '2025-11-21T23:00:00 - 2025-11-22T00:00:00';
if (isTimeRangePassed(time) == 'in_progress') { if (isTimeRangePassed(time) == 'in_progress') {
@@ -541,7 +540,5 @@ router.beforeEach((to: any, from, next) => {
// if(systemUser == 0){//游客用户只能进入这两个页面 // if(systemUser == 0){//游客用户只能进入这两个页面
}); });
router.afterEach((to, from) => {
store.commit("set_view_loading", false);
});
export default router; export default router;

View File

@@ -13,18 +13,10 @@ export interface RootState{
export default createStore<RootState>({ export default createStore<RootState>({
state: { state: {
loading: false,
view_loading: false,
}, },
getters: { getters: {
}, },
mutations: { mutations: {
set_loading(state, v){
state.loading = v;
},
set_view_loading(state, v){
state.view_loading = v;
},
}, },
actions: { actions: {
}, },

View File

@@ -427,7 +427,7 @@
<div class="userSystem" v-show="pastDuePage"> <div class="userSystem" v-show="pastDuePage">
{{ $t('Header.pastDue') }} {{ $t('Header.pastDue') }}
</div> </div>
<div class="router" v-if="!loading"> <div class="router" v-if="!getLangIsShowMark">
<home <home
ref="home" ref="home"
@setNewProject="() => (leftShow = true)" @setNewProject="() => (leftShow = true)"
@@ -442,10 +442,10 @@
<UpgradePlan ref="UpgradePlan"></UpgradePlan> <UpgradePlan ref="UpgradePlan"></UpgradePlan>
<TaskPage ref="TaskPage"></TaskPage> <TaskPage ref="TaskPage"></TaskPage>
<!-- <div class="mark_loading" v-show="loading"> <div class="mark_loading" v-show="getLangIsShowMark">
<a-spin size="large" /> <a-spin size="large" />
</div> --> </div>
<!-- <RobotAssist v-if="!loading"></RobotAssist> --> <!-- <RobotAssist v-if="!getLangIsShowMark"></RobotAssist> -->
<scaleVideo ref="scaleVideo"></scaleVideo> <scaleVideo ref="scaleVideo"></scaleVideo>
<!-- 进行续订 --> <!-- 进行续订 -->
<renew ref="renew"></renew> <renew ref="renew"></renew>
@@ -656,7 +656,7 @@ export default defineComponent({
}) })
let activeCredits = ref(false) let activeCredits = ref(false)
let loading = computed(() => (store.state.loading)) let getLangIsShowMark = ref(true)
let messageNum = computed(() => { let messageNum = computed(() => {
return store.state.UserHabit.messageSystem.messageNum return store.state.UserHabit.messageSystem.messageNum
}) })
@@ -1070,7 +1070,7 @@ export default defineComponent({
isMurmur, isMurmur,
credits, credits,
activeCredits, activeCredits,
loading, getLangIsShowMark,
messageNum, messageNum,
messageType, messageType,
...toRefs(stateList), ...toRefs(stateList),
@@ -1128,11 +1128,11 @@ export default defineComponent({
this.store this.store
.dispatch('getLangType') .dispatch('getLangType')
.then(() => { .then(() => {
this.store.commit('set_loading', false) this.getLangIsShowMark = false
resolve() resolve()
}) })
.catch(() => { .catch(() => {
this.store.commit('set_loading', false) this.getLangIsShowMark = false
reject() reject()
}) })
}) })
@@ -1334,7 +1334,7 @@ export default defineComponent({
}) })
}, },
setLang(v) { setLang(v) {
store.commit('set_loading', true) this.getLangIsShowMark = true
Https.axiosGet(Https.httpUrls.changeUserLanguage, { params: { language: v } }) Https.axiosGet(Https.httpUrls.changeUserLanguage, { params: { language: v } })
.then(rv => { .then(rv => {
if (rv) { if (rv) {
@@ -1351,11 +1351,11 @@ export default defineComponent({
window.location.reload() window.location.reload()
// window.location.href = '/home'; // window.location.href = '/home';
} }
store.commit('set_loading', false) this.getLangIsShowMark = false
} }
}) })
.catch(() => { .catch(() => {
store.commit('set_loading', false) this.getLangIsShowMark = false
}) })
}, },

View File

@@ -43,12 +43,15 @@
<span>{{ t('Login.LogonToAiDA') }}</span> <span>{{ t('Login.LogonToAiDA') }}</span>
</div> </div>
<div class="info" v-show="!loginType">{{ t('Login.Infomation') }}</div> <div class="info" v-show="!loginType">{{ t('Login.Infomation') }}</div>
<personal ref="personal" v-if="loginType == 'personal'"></personal> <personal ref="personal" v-if="loginType == 'personal'" v-model:isMask="isMask"></personal>
<school ref="school" v-if="loginType == 'school'"></school> <school ref="school" v-if="loginType == 'school'"></school>
<enterprise ref="enterprise" v-if="loginType == 'enterprise'"></enterprise> <enterprise ref="enterprise" v-if="loginType == 'enterprise'"></enterprise>
</div> </div>
</div> </div>
<div class="mark_loading" v-show="isMask">
<a-spin size="large" />
</div>
</div> </div>
</div> </div>
</template> </template>
@@ -100,6 +103,7 @@ export default defineComponent({
const loginData = reactive({ const loginData = reactive({
loginType: "", loginType: "",
isMask: false,
}); });
const dataDom = reactive({ const dataDom = reactive({
personal: null as any, personal: null as any,