From 42ee5e49d23c88424889a28535eac0dcf5b28561 Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Wed, 24 Dec 2025 21:47:34 +0800 Subject: [PATCH] =?UTF-8?q?UI=E4=BF=AE=E6=94=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/src/mixins/bookingRulesMixin.js | 7 +- miniprogram/src/pages.json | 80 ++++++++++++++++----- 2 files changed, 70 insertions(+), 17 deletions(-) diff --git a/miniprogram/src/mixins/bookingRulesMixin.js b/miniprogram/src/mixins/bookingRulesMixin.js index 451dd34..84c1b90 100644 --- a/miniprogram/src/mixins/bookingRulesMixin.js +++ b/miniprogram/src/mixins/bookingRulesMixin.js @@ -18,10 +18,15 @@ export default { * @param {String} serviceType - 服务类型 */ async loadBookingRules(serviceType) { + console.log('loadBookingRules called with serviceType:', serviceType) try { const result = await appServer.GetBookingRule(serviceType) - if (result.code === 0 && result.data && result.data.rules) { + console.log('loadBookingRules result:', result) + if (result && result.code === 0 && result.data && result.data.rules) { this.bookingRules = result.data.rules + console.log('bookingRules set to:', this.bookingRules) + } else { + console.log('No rules found or invalid response') } } catch (error) { console.error('加载预约规则失败:', error) diff --git a/miniprogram/src/pages.json b/miniprogram/src/pages.json index cd79878..f390ff2 100644 --- a/miniprogram/src/pages.json +++ b/miniprogram/src/pages.json @@ -47,7 +47,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -127,7 +130,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -135,7 +141,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -143,7 +152,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -151,7 +163,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -159,7 +174,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -167,7 +185,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -175,7 +196,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -183,7 +207,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -191,7 +218,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -199,7 +229,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -207,7 +240,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -215,7 +251,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -223,7 +262,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -231,7 +273,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } }, { @@ -239,7 +284,10 @@ "style" : { "navigationBarTitleText" : "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "backgroundColor": "#F3F3F3", + "backgroundColorTop": "#F3F3F3", + "backgroundColorBottom": "#F3F3F3" } } ],