From b9f2cdda0afdcadc387c7becea6add6a7d4ff86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=89=B3?= Date: Tue, 27 Jan 2026 13:25:57 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E7=AE=A1=E7=90=86=E7=AB=AF?= =?UTF-8?q?=E4=B8=80=E6=9C=9F=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 14 +++++++++++++ .env.production | 9 +++++++++ .eslintrc.js | 25 +++++++++++++++++++++++ .hbuilderx/launch.json | 16 +++++++++++++++ .npmrc | 1 + .prettierrc.js | 11 ++++++++++ project.config.json | 14 +++++++++++-- project.private.config.json | 10 +++++++++- src/components/orderItem/index.vue | 32 ++++++++++++++++++++++++------ src/pages/index/index.vue | 2 +- src/pages/login/index.vue | 16 ++++++++++++++- src/pages/orderInfom/index.vue | 8 ++++---- 12 files changed, 143 insertions(+), 15 deletions(-) create mode 100644 .env.development create mode 100644 .env.production create mode 100644 .eslintrc.js create mode 100644 .hbuilderx/launch.json create mode 100644 .npmrc create mode 100644 .prettierrc.js 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 @@ @@ -61,6 +61,10 @@ }, }) + function handleItemClick() { + emit('itemClick', {}) + } + function handlePetList() { emit('petList', {}) } @@ -78,6 +82,7 @@ display: flex; flex-flow: column nowrap; padding-bottom: 10rpx; + position: relative; /* 关键:添加相对定位 */ // margin-top: 24rpx; .order_content { @@ -120,6 +125,18 @@ } } + .pet_list_btn { + position: absolute; + right: 27rpx; + top: 95rpx; /* 调整位置 */ + border-bottom: 1px solid #565656; + color: #565656; + cursor: pointer; + z-index: 10; /* 确保在最上层 */ + font-size: 17px; + + } + .button_box { margin-top: 28rpx; display: flex; @@ -151,5 +168,8 @@ padding-top: 14rpx; color: #565656; font-size: 17px; + position: absolute; + right: 24rpx; + top: 120rpx; // 根据实际位置调整 } \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 0cea801..28bce37 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -20,7 +20,7 @@
- -