From de3547c79b8ed5f30668f7ffae95364c71f17001 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com>
Date: Sat, 25 Feb 2023 14:51:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=AD=E7=89=A9=E8=BD=A6?=
 =?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/pages/service/cart.vue | 68 +++++++++++++++++++-------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/src/pages/service/cart.vue b/src/pages/service/cart.vue
index b4358a6..1bbb6c4 100644
--- a/src/pages/service/cart.vue
+++ b/src/pages/service/cart.vue
@@ -54,38 +54,7 @@ export default {
     name: "order-cart",
     data() {
         return {
-            list: [
-                {
-                    id: 1,
-                    name: "空调安装",
-                    list: [
-                        {
-                            id: 1,
-                            name: "格力空调安装",
-                            icon: require("@/static/temp/cate/1.png"),
-                            buyNumber: 1,
-                        },
-                        {
-                            id: 2,
-                            name: "美的空调安装",
-                            icon: require("@/static/temp/cate/1.png"),
-                            buyNumber: 1,
-                        },
-                    ],
-                },
-                {
-                    id: 2,
-                    name: "管道疏通",
-                    list: [
-                        {
-                            id: 3,
-                            name: "厨房下水道",
-                            icon: require("@/static/temp/cate/1.png"),
-                            buyNumber: 10,
-                        },
-                    ],
-                },
-            ],
+            list: [],
         };
     },
     components: {
@@ -97,7 +66,38 @@ export default {
         ServicePreviewItem,
     },
     onLoad() {
-        this.list = this.parseList(this.list);
+        this.list = this.parseList([
+            {
+                id: 1,
+                name: "空调安装",
+                list: [
+                    {
+                        id: 1,
+                        name: "格力空调安装",
+                        icon: require("@/static/temp/cate/1.png"),
+                        buyNumber: 1,
+                    },
+                    {
+                        id: 2,
+                        name: "美的空调安装",
+                        icon: require("@/static/temp/cate/1.png"),
+                        buyNumber: 1,
+                    },
+                ],
+            },
+            {
+                id: 2,
+                name: "管道疏通",
+                list: [
+                    {
+                        id: 3,
+                        name: "厨房下水道",
+                        icon: require("@/static/temp/cate/1.png"),
+                        buyNumber: 10,
+                    },
+                ],
+            },
+        ]);
     },
     onShow() {},
     onReady() {},
@@ -137,7 +137,7 @@ export default {
                 }
             });
             this.list[parentIndex].checked = allChecked;
-            this.$forceUpdate();
+            // this.$forceUpdate();
         },
         changeNumber(e, d) {
             console.log(e);