diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..5f8d7cf
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,14 @@
+NODE_ENV = development
+# VITE_APP_API_BASE_URL = 'https://test-pet-admin.ifish7.com'
+VITE_APP_API_BASE_URL = 'https://pet-admin.ifish7.com'
+# https://pet-house.ifish7.com
+# https://test-pet-house.ifish7.com/pet-house
+# https://test-pet-admin.ifish7.com
+# 是否在打包时生成 sourcemap
+VITE_BUILD_SOURCEMAP = 'false'
+# 是否在打包时删除 console 代码
+VITE_BUILD_DROP_CONSOLE = 'true'
+
+
+
+
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..aaf893e
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,9 @@
+NODE_ENV = production
+# VITE_APP_API_BASE_URL = 'https://test-pet-admin.ifish7.com'
+VITE_APP_API_BASE_URL = 'https://pet-admin.ifish7.com'
+# https://pet-house.ifish7.com/pet-house
+# https://test-pet-house.ifish7.com/pet-house
+# 是否在打包时生成 sourcemap
+VITE_BUILD_SOURCEMAP = 'false'
+# 是否在打包时删除 console 代码
+VITE_BUILD_DROP_CONSOLE = 'true'
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..af9de56
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,25 @@
+module.exports = {
+ root: true, // 停止向上查找父级目录中的配置文件
+ env: {
+ browser: true,
+ es2021: true,
+ node: true,
+ },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:vue/vue3-essential',
+ 'plugin:prettier/recommended',
+ 'prettier', // eslint-config-prettier 的缩写
+ ],
+ parser: 'vue-eslint-parser', // 指定要使用的解析器
+ // 给解析器传入一些其他的配置参数
+ parserOptions: {
+ ecmaVersion: 'latest', // 支持的es版本
+ parser: '@typescript-eslint/parser',
+ sourceType: 'module', // 模块类型,默认为script,我们设置为module
+ },
+ plugins: ['vue', 'prettier'], // eslint-plugin- 可以省略
+ rules: {
+ 'vue/multi-word-component-names': 'off'
+ },
+};
\ No newline at end of file
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
new file mode 100644
index 0000000..81f13f4
--- /dev/null
+++ b/.hbuilderx/launch.json
@@ -0,0 +1,16 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version": "0.0",
+ "configurations": [{
+ "default" :
+ {
+ "launchtype" : "local"
+ },
+ "mp-weixin" :
+ {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ }
+ ]
+}
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..a1a8dec
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+shamefully-hoist=true # or public-hoist-pattern[]=@vue*
\ No newline at end of file
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000..9d39227
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,11 @@
+module.exports = {
+ printWidth: 100,
+ tabWidth: 2,
+ useTabs: true, // 是否使用tab进行缩进,默认为false
+ singleQuote: true, // 是否使用单引号代替双引号,默认为false
+ semi: false, // 行尾是否使用分号,默认为true
+ arrowParens: 'always',
+ endOfLine: 'auto',
+ vueIndentScriptAndStyle: true,
+ htmlWhitespaceSensitivity: 'strict',
+};
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index 6a24597..ecbac2b 100644
--- a/project.config.json
+++ b/project.config.json
@@ -12,7 +12,16 @@
"outputPath": ""
},
"useCompilerPlugins": false,
- "minifyWXML": true
+ "minifyWXML": true,
+ "compileWorklet": false,
+ "uploadWithSourceMap": true,
+ "packNpmManually": false,
+ "minifyWXSS": true,
+ "localPlugins": false,
+ "disableUseStrict": false,
+ "condition": false,
+ "swc": false,
+ "disableSWC": true
},
"compileType": "miniprogram",
"simulatorPluginLibVersion": {},
@@ -21,5 +30,6 @@
"include": []
},
"appid": "wx047689e2fd64e87e",
- "editorSetting": {}
+ "editorSetting": {},
+ "libVersion": "3.8.9"
}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index ebe488d..aa451ae 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -9,6 +9,14 @@
"preloadBackgroundData": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
- "compileHotReLoad": true
+ "compileHotReLoad": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "useStaticServer": false,
+ "useLanDebug": false,
+ "showES6CompileOption": false,
+ "checkInvalidKey": true,
+ "ignoreDevUnusedFiles": true,
+ "bigPackageSizeSupport": false
}
}
\ No newline at end of file
diff --git a/src/components/orderItem/index.vue b/src/components/orderItem/index.vue
index 9284847..38c7055 100644
--- a/src/components/orderItem/index.vue
+++ b/src/components/orderItem/index.vue
@@ -1,23 +1,23 @@
-