From c7a7f39d31cb8c2969521dc42f72ca6df19188bc Mon Sep 17 00:00:00 2001 From: Suk1No <674874220@qq.com> Date: Tue, 19 Aug 2025 17:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E8=AE=A2=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=B6=E4=BD=9C=E5=8F=8A=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order-app/project.config.json | 14 +- order-app/project.private.config.json | 10 +- order-app/src/pages.json | 18 +- order-app/src/pages/car/car.vue | 12 +- order-app/src/pages/confirm/confirm.vue | 228 ++++++++++++++++++++++++ order-app/src/pages/detail/detail.vue | 51 +++--- order-app/src/pages/index/index.vue | 4 - order-app/src/store/order.js | 45 +++++ 8 files changed, 343 insertions(+), 39 deletions(-) create mode 100644 order-app/src/pages/confirm/confirm.vue create mode 100644 order-app/src/store/order.js diff --git a/order-app/project.config.json b/order-app/project.config.json index 7beff81..5411f3f 100644 --- a/order-app/project.config.json +++ b/order-app/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": "wx6a41b250d82adc97", - "editorSetting": {} + "editorSetting": {}, + "libVersion": "3.9.1" } \ No newline at end of file diff --git a/order-app/project.private.config.json b/order-app/project.private.config.json index 69bf04d..ca75d67 100644 --- a/order-app/project.private.config.json +++ b/order-app/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/order-app/src/pages.json b/order-app/src/pages.json index 1540273..eaec275 100644 --- a/order-app/src/pages.json +++ b/order-app/src/pages.json @@ -37,15 +37,21 @@ }, { "path": "pages/address/address", "style": { - "navigationBarTitleText": "" + "navigationBarTitleText": "新增地址" } }, + // { + // "path": "common/common", + // "style": { + // "navigationBarTitleText": "" + // } + // }, { - "path" : "common/common", - "style" : - { - "navigationBarTitleText" : "" - } } + "path": "pages/confirm/confirm", + "style": { + "navigationBarTitleText": "确认订单" + } + } ], "globalStyle": { // 导航字体颜色,仅支持 black/white diff --git a/order-app/src/pages/car/car.vue b/order-app/src/pages/car/car.vue index 7e19901..c5b828e 100644 --- a/order-app/src/pages/car/car.vue +++ b/order-app/src/pages/car/car.vue @@ -35,7 +35,7 @@ 总计:¥ {{totalPrice}} - + 结算({{totalNum}}) @@ -130,7 +130,7 @@ }) return totalNum }) - + //总共价格 const totalPrice = computed(() => { let totalPrice = 0; store.carList.map(item => { @@ -138,6 +138,12 @@ }) return totalPrice }) + //跳转确认订单 + const confirm = (item) => { + uni.navigateTo({ + url: '../confirm/confirm' + }); + } \ No newline at end of file diff --git a/order-app/src/pages/detail/detail.vue b/order-app/src/pages/detail/detail.vue index 3bfd1e6..78d5148 100644 --- a/order-app/src/pages/detail/detail.vue +++ b/order-app/src/pages/detail/detail.vue @@ -1,8 +1,7 @@ - \ No newline at end of file + diff --git a/order-app/src/pages/index/index.vue b/order-app/src/pages/index/index.vue index 7485e7e..2669895 100644 --- a/order-app/src/pages/index/index.vue +++ b/order-app/src/pages/index/index.vue @@ -52,10 +52,6 @@