diff --git a/admin/src/views/Config.vue b/admin/src/views/Config.vue index 60f94b6..f33ea44 100644 --- a/admin/src/views/Config.vue +++ b/admin/src/views/Config.vue @@ -45,12 +45,14 @@ - - 上传图片 + :on-success="(res) => configs.qrcode = res.url" accept="image/*"> + + 上传图片 - +
+ 移除 +
保存 diff --git a/miniapp/pages/config/qrcode.vue b/miniapp/pages/config/qrcode.vue index 8219cc0..e6edd2f 100644 --- a/miniapp/pages/config/qrcode.vue +++ b/miniapp/pages/config/qrcode.vue @@ -11,13 +11,15 @@ - - 客服二维码 - - 长按识别二维码联系客服 - - - 暂无客服二维码 + + + 客服二维码 + + 长按识别二维码联系客服 + + + 暂无客服二维码 + @@ -94,9 +96,16 @@ export default { width: 60rpx; } .qrcode-page { - min-height: 100vh; + height: 100vh; background-color: #f5f5f5; display: flex; + flex-direction: column; + overflow: hidden; +} + +.page-body { + flex: 1; + display: flex; align-items: center; justify-content: center; padding: 40rpx; diff --git a/miniapp/pages/food/food-order-detail.vue b/miniapp/pages/food/food-order-detail.vue index ea10965..34a03f7 100644 --- a/miniapp/pages/food/food-order-detail.vue +++ b/miniapp/pages/food/food-order-detail.vue @@ -352,7 +352,7 @@ export default { } .summary { - border-top: 2rpx solid #007AFF; + border-top: none; } /* 底部接单栏 */ @@ -371,9 +371,10 @@ export default { width: 100%; height: 88rpx; line-height: 88rpx; - background-color: #007AFF; - color: #ffffff; + background-color: #FAD146; + color: #333333; font-size: 32rpx; + font-weight: bold; border-radius: 44rpx; border: none; } @@ -419,6 +420,7 @@ export default { .modal-actions { display: flex; gap: 20rpx; + margin-top: 30rpx; } .modal-btn { @@ -433,11 +435,16 @@ export default { .modal-btn.cancel { background-color: #f5f5f5; color: #666666; + border: none; +} + +.modal-btn.cancel::after { + border: none; } .modal-btn.confirm { - background-color: #007AFF; - color: #ffffff; + background-color: #FAD146; + color: #333333; } .cert-form .form-item { diff --git a/miniapp/pages/food/food-order.vue b/miniapp/pages/food/food-order.vue index 50134fe..54b850e 100644 --- a/miniapp/pages/food/food-order.vue +++ b/miniapp/pages/food/food-order.vue @@ -14,9 +14,13 @@ 订单商品 - - {{ item.dish.name }} × {{ item.quantity }} - ¥{{ (item.dish.price * item.quantity).toFixed(2) }} + + {{ shopGroup.shopInfo.name }} + + + {{ item.dish.name }} × {{ item.quantity }} + ¥{{ (item.dish.price * item.quantity).toFixed(2) }} + 打包费 @@ -84,9 +88,6 @@ export default { cartStore() { return useCartStore() }, - cartItems() { - return this.cartStore.items - }, packingFee() { return this.cartStore.packingFee }, @@ -153,13 +154,8 @@ export default { const commission = parseFloat(this.form.commission) const goodsAmount = this.cartStore.totalPriceWithFee - // 构建美食街订单数据 - const foodItems = this.cartItems.map(item => ({ - shopId: this.cartStore.shopInfo?.id, - dishId: item.dish.id, - quantity: item.quantity, - unitPrice: item.dish.price - })) + // 构建美食街订单数据(多门店) + const foodItems = this.cartStore.getAllFoodItems() const orderData = { orderType: 'Food', @@ -268,6 +264,18 @@ export default { display: block; } +.shop-group { + margin-bottom: 12rpx; +} + +.shop-group-name { + font-size: 28rpx; + font-weight: bold; + color: #333; + padding: 8rpx 0; + display: block; +} + .summary-item { display: flex; justify-content: space-between; @@ -275,9 +283,18 @@ export default { padding: 10rpx 0; } +.summary-photo { + width: 80rpx; + height: 80rpx; + border-radius: 8rpx; + flex-shrink: 0; + margin-right: 16rpx; +} + .summary-name { font-size: 26rpx; color: #666666; + flex: 1; } .summary-price { @@ -367,6 +384,7 @@ export default { padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); display: flex; align-items: center; + z-index: 999; justify-content: flex-end; box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05); } diff --git a/miniapp/pages/food/food.vue b/miniapp/pages/food/food.vue index 0512a0c..81e5c9c 100644 --- a/miniapp/pages/food/food.vue +++ b/miniapp/pages/food/food.vue @@ -39,11 +39,58 @@ 暂无门店 + + + + + + ¥ {{ cartTotalCount > 0 ? cartTotalPrice : '0' }} + + + + + + + + + 购物车 + 清空 + + + + {{ shopGroup.shopInfo.name }} + + + + {{ item.dish.name }} + ¥{{ item.dish.price.toFixed(1) }} + + + + {{ item.quantity }} + + + + + + + + 打包费 + ¥{{ cartStore.packingFee.toFixed(2) }} + + + 总价 + ¥{{ cartStore.totalPriceWithFee.toFixed(2) }} + + + +