From 32f3091fe077045427d16a3dec43f140c02eb91e Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 30 六月 2025 17:47:02 +0800
Subject: [PATCH] feat: v2.2
---
.env.jx | 5 +-
types/global.d.ts | 2
src/views/Home/components/InsureInstructions.vue | 61 ++++++++++++++++++++++++++++++
.env.tp | 24 ++++++++++++
package.json | 1
config/config.ts | 8 +++
6 files changed, 96 insertions(+), 5 deletions(-)
diff --git a/.env.jx b/.env.jx
index 79c7ca9..8dd225c 100644
--- a/.env.jx
+++ b/.env.jx
@@ -1,15 +1,14 @@
NODE_ENV=production
# 绾夸笂鐜椤圭洰鎵撳寘璺緞
-VITE_PUBLIC_PATH = /front/
+VITE_PUBLIC_PATH = /
# 绾夸笂鐜璺敱鍘嗗彶妯″紡
VITE_ROUTER_HISTORY = "h5"
# 绾夸笂鐜鍚庣鍦板潃
# VITE_PROXY_DOMAIN_REAL = "https://testrlywx.boleyuma.com/"
-# VITE_PROXY_DOMAIN_REAL = "https://jygbapi.jx818.com/"
-VITE_PROXY_DOMAIN_REAL = "https://ecss.hhbxjj.com/"
+VITE_PROXY_DOMAIN_REAL = "https://jygbapi.jx818.com/"
# 鏄惁涓烘墦鍖呭悗鐨勬枃浠舵彁渚涗紶缁熸祻瑙堝櫒鍏煎鎬ф敮鎸� 鏀寔 true 涓嶆敮鎸� false
VITE_LEGACY = true
diff --git a/.env.tp b/.env.tp
new file mode 100644
index 0000000..79c7ca9
--- /dev/null
+++ b/.env.tp
@@ -0,0 +1,24 @@
+NODE_ENV=production
+
+# 绾夸笂鐜椤圭洰鎵撳寘璺緞
+VITE_PUBLIC_PATH = /front/
+
+# 绾夸笂鐜璺敱鍘嗗彶妯″紡
+VITE_ROUTER_HISTORY = "h5"
+
+# 绾夸笂鐜鍚庣鍦板潃
+# VITE_PROXY_DOMAIN_REAL = "https://testrlywx.boleyuma.com/"
+# VITE_PROXY_DOMAIN_REAL = "https://jygbapi.jx818.com/"
+VITE_PROXY_DOMAIN_REAL = "https://ecss.hhbxjj.com/"
+
+# 鏄惁涓烘墦鍖呭悗鐨勬枃浠舵彁渚涗紶缁熸祻瑙堝櫒鍏煎鎬ф敮鎸� 鏀寔 true 涓嶆敮鎸� false
+VITE_LEGACY = true
+
+VITE_COMPRESSION = "none"
+
+# OSS涓婁紶鍦板潃
+VITE_OSS_URL = "https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/"
+VITE_OSS_URL_BUCKET = "parkmanagement"
+VITE_WEMAP_KEY = "DYRBZ-ZGPCF-X3OJN-N2AA3-JWUCE-HEBXJ"
+
+VITE_CLIENT_ORIGIN = "http://118.178.252.28:8740"
diff --git a/config/config.ts b/config/config.ts
index bd0c635..5927090 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -11,7 +11,8 @@
loginFormTitle: '涔愰亣淇濅簯鏈嶅姟',
});
-type AppType = 'one' | 'rz' | 'jx' | 'jy' | 'other' | 'backup';
+//tp:澶钩
+type AppType = 'one' | 'rz' | 'jx' | 'jy' | 'other' | 'backup' | 'tp';
const AppSettingMap = {
one: {
@@ -44,6 +45,11 @@
loginFormTitle: '姹熶綉淇濆鐢�',
MenuTitle: '姹熶綉淇濆鐢�',
},
+ tp: {
+ title: '姹熶綉鍏变繚鍚庡彴绠$悊绯荤粺',
+ loginFormTitle: '姹熶綉鍏变繚鍚庡彴绠$悊绯荤粺',
+ MenuTitle: '姹熶綉鍏变繚',
+ },
};
export function getAppSetting(appType: AppType) {
diff --git a/package.json b/package.json
index 681b591..bcfa5c4 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"build": "cross-env NODE_OPTIONS=--max_old_space_size=16000 vite build",
"build:rz": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=rz vite build --mode rz",
"build:jx": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=jx vite build --mode jx",
+ "build:tp": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=tp vite build --mode tp",
"build:jy": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=jy vite build --mode jy",
"build:other": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=other vite build --mode other",
"build:backup": "cross-env NODE_OPTIONS=--max_old_space_size=16000 VITE_AppType=backup vite build --mode backup",
diff --git a/src/views/Home/components/InsureInstructions.vue b/src/views/Home/components/InsureInstructions.vue
new file mode 100644
index 0000000..0885deb
--- /dev/null
+++ b/src/views/Home/components/InsureInstructions.vue
@@ -0,0 +1,61 @@
+<template>
+ <el-dialog v-model="visible" @close="onDialogClose" destroy-on-close draggable>
+ <div>dasfdsfsfs</div>
+ <!-- <template #footer>
+ <span class="dialog-footer">
+ <el-button @click="emit('onCancel')">鍙� 娑�</el-button>
+ </span>
+ </template> -->
+ </el-dialog>
+</template>
+
+<script setup lang="ts">
+import { FormInstance } from 'element-plus';
+import {
+ ProDialog,
+ ProForm,
+ ProFormItemV2,
+ ProFormText,
+ UploadUserFile,
+} from '@bole-core/components';
+
+defineOptions({
+ name: 'InsureInstructions',
+});
+
+// type Props = {};
+
+// const props = withDefaults(defineProps<Props>(), {});
+
+const visible = defineModel({ type: Boolean });
+
+type Form = {
+ title: string;
+ name: string;
+};
+
+const form = defineModel<Form>('form');
+
+const emit = defineEmits<{
+ (e: 'onConfirm'): void;
+ (e: 'onCancel'): void;
+}>();
+
+const dialogForm = ref<FormInstance>();
+
+function onDialogClose() {
+ if (!dialogForm.value) return;
+ dialogForm.value.resetFields();
+}
+
+function handleConfirm() {
+ if (!dialogForm.value) return;
+ dialogForm.value.validate((valid) => {
+ if (valid) {
+ emit('onConfirm');
+ } else {
+ return;
+ }
+ });
+}
+</script>
diff --git a/types/global.d.ts b/types/global.d.ts
index c3bdb31..bd9eee0 100644
--- a/types/global.d.ts
+++ b/types/global.d.ts
@@ -112,7 +112,7 @@
VITE_COMPRESSION: ViteCompression;
VITE_WEMAP_KEY:string;
VITE_CLIENT_ORIGIN:string;
- VITE_AppType: 'one' | 'rz'| 'jx' | 'jy' | 'other' | 'backup';
+ VITE_AppType: 'one' | 'rz' | 'jx' | 'jy' | 'other' | 'backup' | 'tp';
}
interface AppConfig {
--
Gitblit v1.9.1