From cd98744baf25d4168c8cb21dd8114c8d73b61253 Mon Sep 17 00:00:00 2001
From: whitechiina <1293616053@qq.com>
Date: Thu, 16 Jul 2026 15:41:31 +0800
Subject: [PATCH] updata
---
.../b-Shopping-Cart/b-Shopping-Cart.vue | 2 +-
components/b-page-home/b-page-home-rx.vue | 792 +++---
.../b-restaurant-order-status.vue | 2 +-
components/b-rx-sku-popup/b-rx-sku-popup.vue | 2 +-
components/b-shop-item/b-rx-shop-item.vue | 2 +-
.../b-shop-list-item/b-shop-list-item.vue | 488 ++--
.../b-Shopping-Cart/b-Shopping-Cart.vue | 1836 ++++++-------
.../b-page-home/b-page-home-rx.vue | 792 +++---
.../b-shop-item/b-rx-shop-item.vue | 534 ++--
.../b-shop-list-item/b-shop-list-item.vue | 488 ++--
pages/diy/orders/order-infor/order-infor.vue | 1394 +++++-----
pages/restaurant/home/home.vue | 2416 ++++++++---------
.../shop_home/components/shop-cart/rx.scss | 336 +--
.../order/order-details/details.vue | 1638 +++++------
.../orders-settlement/orders-settlement.vue | 5 +-
.../order/orders-settlement/settlement.vue | 5 +-
static/js/config.js | 1790 ++++++------
unpackage/dist/build/web/index.html | 2 +-
....05bba68b.js => chunk-vendors.6763e5fb.js} | 4 +-
unpackage/dist/build/web/static/js/config.js | 1790 ++++++------
.../{index.720c046e.js => index.36be406f.js} | 2 +-
...orders-order-infor-order-infor.0e27b032.js | 1 -
...orders-order-infor-order-infor.402bf48c.js | 1 +
...iy-shopping_cart-shopping_cart.0f6e727d.js | 1 +
...iy-shopping_cart-shopping_cart.522d0057.js | 1 -
.../js/pages-restaurant-home-home.6e2a401d.js | 1 +
.../js/pages-restaurant-home-home.b8983b8a.js | 1 -
...urant-home-shop_home-shop_home.3d455b8e.js | 1 -
...urant-home-shop_home-shop_home.57144f28.js | 1 +
...nt-order-order-details-details.3b3303ec.js | 1 -
...nt-order-order-details-details.c8480ab4.js | 1 +
...rder-details-xbk-orde~6f79809c.0ee4cb31.js | 1 +
...rder-details-xbk-orde~6f79809c.3d27ecff.js | 1 -
...s-settlement-orders-settlement.9d0ca614.js | 1 -
...s-settlement-orders-settlement.c5f2d221.js | 1 +
...r-orders-settlement-settlement.52a539a9.js | 1 -
...r-orders-settlement-settlement.74955723.js | 1 +
37 files changed, 7169 insertions(+), 7167 deletions(-)
rename unpackage/dist/build/web/static/js/{chunk-vendors.05bba68b.js => chunk-vendors.6763e5fb.js} (71%)
rename unpackage/dist/build/web/static/js/{index.720c046e.js => index.36be406f.js} (54%)
delete mode 100644 unpackage/dist/build/web/static/js/pages-diy-orders-order-infor-order-infor.0e27b032.js
create mode 100644 unpackage/dist/build/web/static/js/pages-diy-orders-order-infor-order-infor.402bf48c.js
create mode 100644 unpackage/dist/build/web/static/js/pages-diy-shopping_cart-shopping_cart.0f6e727d.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-diy-shopping_cart-shopping_cart.522d0057.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-home.6e2a401d.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-home.b8983b8a.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.3d455b8e.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.57144f28.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-order-details-details.3b3303ec.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-order-details-details.c8480ab4.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-order-details-rx-orders-details~pages-restaurant-order-order-details-xbk-orde~6f79809c.0ee4cb31.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-order-details-rx-orders-details~pages-restaurant-order-order-details-xbk-orde~6f79809c.3d27ecff.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-orders-settlement-orders-settlement.9d0ca614.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-orders-settlement-orders-settlement.c5f2d221.js
delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-orders-settlement-settlement.52a539a9.js
create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-order-orders-settlement-settlement.74955723.js
diff --git a/components/b-Shopping-Cart/b-Shopping-Cart.vue b/components/b-Shopping-Cart/b-Shopping-Cart.vue
index 3effe33..c451e03 100644
--- a/components/b-Shopping-Cart/b-Shopping-Cart.vue
+++ b/components/b-Shopping-Cart/b-Shopping-Cart.vue
@@ -685,7 +685,7 @@
&-right {
width: 225rpx;
height: 77rpx;
- background: linear-gradient(-77deg, #4A6FE7, #83ACFF);
+ background: #0122A4;
box-shadow: 0 6rpx 8rpx 0 rgba(74, 111, 231, 0.2300);
border-radius: 48rpx;
text-align: center;
diff --git a/components/b-page-home/b-page-home-rx.vue b/components/b-page-home/b-page-home-rx.vue
index b26be8b..81bdcc3 100644
--- a/components/b-page-home/b-page-home-rx.vue
+++ b/components/b-page-home/b-page-home-rx.vue
@@ -1,396 +1,396 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{UserArae1?UserArae1:UserArae2['city']}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 该地区暂无门店信息
-
-
-
-
-
-
-
-
-
-
-
-
-
- 瑞幸咖啡点餐为第三方提供的点餐服务,该服务与瑞幸官方无关,有问题请联系在线客服。
-
-
-
- ● 优惠点餐,不支持开发票!
-
-
- ● 出餐后不支持退款!
-
-
-
-
-
-
- 我知道了
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{UserArae1?UserArae1:UserArae2['city']}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 该地区暂无门店信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 瑞幸咖啡点餐为第三方提供的点餐服务,该服务与瑞幸官方无关,有问题请联系在线客服。
+
+
+
+ ● 优惠点餐,不支持开发票!
+
+
+ ● 出餐后不支持退款!
+
+
+
+
+
+
+ 我知道了
+
+
+
+
+
+
+
+
+
diff --git a/components/b-restaurant-order-status/b-restaurant-order-status.vue b/components/b-restaurant-order-status/b-restaurant-order-status.vue
index 97db4f7..07f09a9 100644
--- a/components/b-restaurant-order-status/b-restaurant-order-status.vue
+++ b/components/b-restaurant-order-status/b-restaurant-order-status.vue
@@ -195,7 +195,7 @@
height: 60rpx;
color: #ffffff;
font-size: 28rpx;
- background: linear-gradient(-77deg, #4A6FE7, #83ACFF);
+ background: #0122A4;
border-radius: 30rpx;
text-align: center;
line-height: 60rpx;
diff --git a/components/b-rx-sku-popup/b-rx-sku-popup.vue b/components/b-rx-sku-popup/b-rx-sku-popup.vue
index c162235..75c55d1 100644
--- a/components/b-rx-sku-popup/b-rx-sku-popup.vue
+++ b/components/b-rx-sku-popup/b-rx-sku-popup.vue
@@ -329,7 +329,7 @@
&-right {
width: 254rpx;
height: 86rpx;
- background: linear-gradient(-77deg, #4A6FE7, #83ACFF);
+ background: #0122A4;
box-shadow: 0 6rpx 8rpx 0 rgba(74, 111, 231, 0.2300);
border-radius: 43rpx;
text-align: center;
diff --git a/components/b-shop-item/b-rx-shop-item.vue b/components/b-shop-item/b-rx-shop-item.vue
index dfa3893..d4da44b 100644
--- a/components/b-shop-item/b-rx-shop-item.vue
+++ b/components/b-shop-item/b-rx-shop-item.vue
@@ -96,7 +96,7 @@
}
if (this['BrandInfor']['brand_id'] == 13) {
return {
- 'background': 'linear-gradient(-77deg, #4A6FE7, #83ACFF)'
+ 'background': '#0122A4'
};
}
}
diff --git a/components/b-shop-list-item/b-shop-list-item.vue b/components/b-shop-list-item/b-shop-list-item.vue
index 71f1e7e..c1dbf15 100644
--- a/components/b-shop-list-item/b-shop-list-item.vue
+++ b/components/b-shop-list-item/b-shop-list-item.vue
@@ -1,244 +1,244 @@
-
-
-
-
-
-
- {{item['restaurant_name']}}
-
-
-
- {{item['distance']}}m
-
-
-
- {{item['restaurant_address']}}
-
-
-
-
-
-
-
- {{item['restaurant_name']}}
-
-
-
-
-
-
- {{item['distance']}}km
-
-
-
-
-
-
- {{item['restaurant_address']}}
-
-
-
-
-
-
-
-
-
-
-
- 抱歉!该门店未营业
-
-
-
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{item['restaurant_name']}}
+
+
+
+ {{item['distance']}}m
+
+
+
+ {{item['restaurant_address']}}
+
+
+
+
+
+
+
+ {{item['restaurant_name']}}
+
+
+
+
+
+
+ {{item['distance']}}km
+
+
+
+
+
+
+ {{item['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+
+
+ 抱歉!该门店未营业
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
diff --git a/components/新建文件夹/b-Shopping-Cart/b-Shopping-Cart.vue b/components/新建文件夹/b-Shopping-Cart/b-Shopping-Cart.vue
index c45b2ea..49b5596 100644
--- a/components/新建文件夹/b-Shopping-Cart/b-Shopping-Cart.vue
+++ b/components/新建文件夹/b-Shopping-Cart/b-Shopping-Cart.vue
@@ -1,918 +1,918 @@
-
-
-
-
-
-
-
- 0?shoppingshow = !shoppingshow:''"
- :src="qnyurl('gouwuceicon.png')" mode="aspectFill">
-
-
-
-
-
- ¥
- {{RetainDecimalPoint(totalPrice)}}
-
-
-
- {{Shoplength > 0?'选好了':'未选择商品'}}
-
-
-
-
-
-
-
-
-
-
-
-
- 0?shoppingshow = !shoppingshow:''">
-
-
-
-
-
-
-
- ¥
- {{RetainDecimalPoint(totalPrice)}}
-
-
-
- {{Shoplength > 0?'结算':'未选择商品'}}
-
-
-
-
-
-
-
-
-
-
-
-
- 0?shoppingshow = !shoppingshow:''">
-
-
-
-
-
-
-
- ¥
- {{RetainDecimalPoint(totalPrice)}}
-
-
-
- {{Shoplength > 0?'结算':'未选择商品'}}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 0?shoppingshow = !shoppingshow:''"
+ :src="qnyurl('gouwuceicon.png')" mode="aspectFill">
+
+
+
+
+
+ ¥
+ {{RetainDecimalPoint(totalPrice)}}
+
+
+
+ {{Shoplength > 0?'选好了':'未选择商品'}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 0?shoppingshow = !shoppingshow:''">
+
+
+
+
+
+
+
+ ¥
+ {{RetainDecimalPoint(totalPrice)}}
+
+
+
+ {{Shoplength > 0?'结算':'未选择商品'}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 0?shoppingshow = !shoppingshow:''">
+
+
+
+
+
+
+
+ ¥
+ {{RetainDecimalPoint(totalPrice)}}
+
+
+
+ {{Shoplength > 0?'结算':'未选择商品'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/新建文件夹/b-page-home/b-page-home-rx.vue b/components/新建文件夹/b-page-home/b-page-home-rx.vue
index 479c2d2..0b33a62 100644
--- a/components/新建文件夹/b-page-home/b-page-home-rx.vue
+++ b/components/新建文件夹/b-page-home/b-page-home-rx.vue
@@ -1,396 +1,396 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{UserArae1?UserArae1:UserArae2}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 该地区暂无门店信息
-
-
-
-
-
-
-
-
-
-
-
-
-
- 瑞幸咖啡点餐为第三方提供的点餐服务,该服务与瑞幸官方无关,有问题请联系在线客服。
-
-
-
- ● 优惠点餐,不支持开发票!
-
-
- ● 出餐后不支持退款!
-
-
-
-
-
-
- 我知道了
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{UserArae1?UserArae1:UserArae2}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 该地区暂无门店信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 瑞幸咖啡点餐为第三方提供的点餐服务,该服务与瑞幸官方无关,有问题请联系在线客服。
+
+
+
+ ● 优惠点餐,不支持开发票!
+
+
+ ● 出餐后不支持退款!
+
+
+
+
+
+
+ 我知道了
+
+
+
+
+
+
+
+
+
diff --git a/components/新建文件夹/b-shop-item/b-rx-shop-item.vue b/components/新建文件夹/b-shop-item/b-rx-shop-item.vue
index 188ea9d..d2a8c10 100644
--- a/components/新建文件夹/b-shop-item/b-rx-shop-item.vue
+++ b/components/新建文件夹/b-shop-item/b-rx-shop-item.vue
@@ -1,267 +1,267 @@
-
-
-
-
-
-
-
-
- {{item['product_name']}}
-
-
-
- 最高补贴{{RetainDecimalPoint(item['max_deduction'])}}面额
-
-
-
- 原价:¥
- {{RetainDecimalPoint(item['pay_price'])}}
-
-
-
- 补贴后价格:¥
- {{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}
-
-
-
-
-
-
-
- 选规格
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{item['product_name']}}
+
+
+
+ 最高补贴{{RetainDecimalPoint(item['max_deduction'])}}面额
+
+
+
+ 原价:¥
+ {{RetainDecimalPoint(item['pay_price'])}}
+
+
+
+ 补贴后价格:¥
+ {{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}
+
+
+
+
+
+
+
+ 选规格
+
+
+
+
+
+
+
+
+
diff --git a/components/新建文件夹/b-shop-list-item/b-shop-list-item.vue b/components/新建文件夹/b-shop-list-item/b-shop-list-item.vue
index 71f1e7e..c1dbf15 100644
--- a/components/新建文件夹/b-shop-list-item/b-shop-list-item.vue
+++ b/components/新建文件夹/b-shop-list-item/b-shop-list-item.vue
@@ -1,244 +1,244 @@
-
-
-
-
-
-
- {{item['restaurant_name']}}
-
-
-
- {{item['distance']}}m
-
-
-
- {{item['restaurant_address']}}
-
-
-
-
-
-
-
- {{item['restaurant_name']}}
-
-
-
-
-
-
- {{item['distance']}}km
-
-
-
-
-
-
- {{item['restaurant_address']}}
-
-
-
-
-
-
-
-
-
-
-
- 抱歉!该门店未营业
-
-
-
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{item['restaurant_name']}}
+
+
+
+ {{item['distance']}}m
+
+
+
+ {{item['restaurant_address']}}
+
+
+
+
+
+
+
+ {{item['restaurant_name']}}
+
+
+
+
+
+
+ {{item['distance']}}km
+
+
+
+
+
+
+ {{item['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+
+
+ 抱歉!该门店未营业
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/diy/orders/order-infor/order-infor.vue b/pages/diy/orders/order-infor/order-infor.vue
index 1fc03a8..05a4f6a 100644
--- a/pages/diy/orders/order-infor/order-infor.vue
+++ b/pages/diy/orders/order-infor/order-infor.vue
@@ -1,697 +1,697 @@
-
-
-
-
-
-
-
-
-
- {{InforData['status_name']}}
-
-
-
-
-
-
-
- {{InforData['name']}}
- {{InforData['mobile']}}
-
-
- {{InforData['province']}}-{{InforData['city']}}-{{InforData['county']}}
-
-
- {{InforData['address']}}
-
-
-
-
-
-
-
-
-
-
-
- {{InforData['goods_name']}}
-
-
-
-
-
-
- x1
-
-
-
-
-
-
-
-
-
-
-
- 物流信息
-
-
-
- 物流公司
-
-
- {{InforData['company_name']}}
-
-
-
-
- 物流单号
-
-
- {{InforData['companyCode']}}
-
-
-
-
-
-
-
-
-
-
-
-
- 订单详情
-
-
-
- 下单时间
-
-
- {{InforData['create_time']}}
-
-
-
-
- 订单号
-
-
- {{InforData['order_no'] || InforData['order_sn']}}
-
-
- 复制
-
-
-
-
- 运费
-
-
- {{_amount(InforData['freight_price'])}}
-
-
-
-
- 商品金额
-
-
- ¥{{_amount(InforData['price'])}}
-
-
-
-
- 补贴卡抵扣
-
-
- ¥{{_amount(InforData['deduction_price'])}}
-
-
-
-
- 预估佣金
-
-
- ¥{{_commission(InforData['self_commission'] || 0)}}
-
-
-
-
- 实际付款
-
-
- ¥{{_amount(InforData['pay_price'])}}
-
-
-
-
-
-
-
-
-
- 联系客服
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{InforData['status_name']}}
+
+
+
+
+
+
+
+ {{InforData['name']}}
+ {{InforData['mobile']}}
+
+
+ {{InforData['province']}}-{{InforData['city']}}-{{InforData['county']}}
+
+
+ {{InforData['address']}}
+
+
+
+
+
+
+
+
+
+
+
+ {{InforData['goods_name']}}
+
+
+
+
+
+
+ x1
+
+
+
+
+
+
+
+
+
+
+
+ 物流信息
+
+
+
+ 物流公司
+
+
+ {{InforData['company_name']}}
+
+
+
+
+ 物流单号
+
+
+ {{InforData['companyCode']}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单详情
+
+
+
+ 下单时间
+
+
+ {{InforData['create_time']}}
+
+
+
+
+ 订单号
+
+
+ {{InforData['order_no'] || InforData['order_sn']}}
+
+
+ 复制
+
+
+
+
+ 运费
+
+
+ {{_amount(InforData['freight_price'])}}
+
+
+
+
+ 商品金额
+
+
+ ¥{{_amount(InforData['price'])}}
+
+
+
+
+ 补贴卡抵扣
+
+
+ ¥{{_amount(InforData['deduction_price'])}}
+
+
+
+
+ 预估佣金
+
+
+ ¥{{_commission(InforData['self_commission'] || 0)}}
+
+
+
+
+ 实际付款
+
+
+ ¥{{_amount(InforData['pay_price'])}}
+
+
+
+
+
+
+
+
+
+ 联系客服
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/restaurant/home/home.vue b/pages/restaurant/home/home.vue
index 55d3520..4ef2482 100644
--- a/pages/restaurant/home/home.vue
+++ b/pages/restaurant/home/home.vue
@@ -1,1208 +1,1208 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item1['restaurant_name']}}
-
-
- 营业中
-
-
-
- 距离您{{item1['distance']}}千米
-
-
-
- {{item1['restaurant_address']}}
-
-
-
-
-
-
-
-
-
- {{item1['restaurant_name']}}
-
-
-
-
-
-
-
- 距离您{{item1['distance']}}千米
-
-
-
-
-
-
- {{item1['restaurant_address']}}
-
-
-
-
-
-
-
-
-
-
- {{item1['restaurant_name']}}
-
-
- 距离您{{item1['distance']}}千米
-
-
-
- {{item1['restaurant_address']}}
-
-
-
- 去点餐
-
-
-
-
-
-
-
-
- {{item1['restaurant_name']}}
-
-
- 距离您{{item1['distance']}}千米
-
-
-
- {{item1['restaurant_address']}}
-
-
-
-
-
-
-
-
-
- {{item1['restaurant_name']}}
-
-
-
-
-
-
-
- 距离您{{item1['distance']}}千米
-
-
-
-
-
-
- {{item1['restaurant_address']}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{GetShopInfor['restaurant_name']}}
-
-
- {{GetShopInfor['restaurant_address']}}
-
-
-
- 温馨提示:{{BrandInfor['brand_name']}}点餐为第三方供应商提供的代下单服务(暂不支持外卖),出餐后可凭取餐码到店取餐。如有疑问请及时联系在线客服!
-
-
- 请选择就餐方式
-
-
-
-
-
-
-
- 店内就餐
-
-
- Dine In
-
-
-
-
-
-
-
-
-
- 打包带走
-
-
- Take Away
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{Brand()['BrandName']}}点餐为第三方提供的点餐服务,该服务与{{Brand()['BrandName']}}官方无关,有问题请联系在线客服。
-
-
-
- ● 优惠点餐,不支持开发票!
-
-
- ● 出餐后不支持退款!
-
-
-
-
-
-
-
- 我知道了
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item1['restaurant_name']}}
+
+
+ 营业中
+
+
+
+ 距离您{{item1['distance']}}千米
+
+
+
+ {{item1['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+ {{item1['restaurant_name']}}
+
+
+
+
+
+
+
+ 距离您{{item1['distance']}}千米
+
+
+
+
+
+
+ {{item1['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+
+ {{item1['restaurant_name']}}
+
+
+ 距离您{{item1['distance']}}千米
+
+
+
+ {{item1['restaurant_address']}}
+
+
+
+ 去点餐
+
+
+
+
+
+
+
+
+ {{item1['restaurant_name']}}
+
+
+ 距离您{{item1['distance']}}千米
+
+
+
+ {{item1['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+ {{item1['restaurant_name']}}
+
+
+
+
+
+
+
+ 距离您{{item1['distance']}}千米
+
+
+
+
+
+
+ {{item1['restaurant_address']}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{GetShopInfor['restaurant_name']}}
+
+
+ {{GetShopInfor['restaurant_address']}}
+
+
+
+ 温馨提示:{{BrandInfor['brand_name']}}点餐为第三方供应商提供的代下单服务(暂不支持外卖),出餐后可凭取餐码到店取餐。如有疑问请及时联系在线客服!
+
+
+ 请选择就餐方式
+
+
+
+
+
+
+
+ 店内就餐
+
+
+ Dine In
+
+
+
+
+
+
+
+
+
+ 打包带走
+
+
+ Take Away
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{Brand()['BrandName']}}点餐为第三方提供的点餐服务,该服务与{{Brand()['BrandName']}}官方无关,有问题请联系在线客服。
+
+
+
+ ● 优惠点餐,不支持开发票!
+
+
+ ● 出餐后不支持退款!
+
+
+
+
+
+
+
+ 我知道了
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/restaurant/home/shop_home/components/shop-cart/rx.scss b/pages/restaurant/home/shop_home/components/shop-cart/rx.scss
index 13b59dd..df6035f 100644
--- a/pages/restaurant/home/shop_home/components/shop-cart/rx.scss
+++ b/pages/restaurant/home/shop_home/components/shop-cart/rx.scss
@@ -1,5 +1,5 @@
-// 星巴克
- .RX-Cart {
+// 星巴克
+ .RX-Cart {
box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.1);
background-color: white;
border-radius: 20rpx 20rpx 0 0;
@@ -11,170 +11,170 @@
bottom: 0;
left: 0;
z-index: 10;
- padding: 20rpx 32rpx;
-
- &-left {
- flex: 1;
- height: 100rpx;
- display: flex;
- align-items: center;
-
- &-img {
- position: relative;
-
- .img {
- width: 65rpx;
- height: 65rpx;
- margin-right: 25rpx;
- }
- }
-
-
- &-price {
- color: #000000;
- display: flex;
- align-items: baseline;
-
- .yang {
- font-size: 26rpx;
- }
-
- .amount {
- font-size: 50rpx;
- }
- }
- }
-
- &-right {
- width: 225rpx;
- height: 77rpx;
- background: linear-gradient(-77deg, #4A6FE7, #83ACFF);
- box-shadow: 0 6rpx 8rpx 0 rgba(74, 111, 231, 0.2300);
- border-radius: 48rpx;
- text-align: center;
- color: #ffffff;
- line-height: 77rpx;
- }
- }
-
- .RX-Cart-Popup {
- width: 100%;
- // padding-bottom: calc();
- height: 642rpx;
- background-color: #ffffff;
-
- .RX-Cart-Popup-top {
- width: 100%;
- height: 87rpx;
- border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
- padding: 0 32rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 26rpx;
-
- .text {
- color: #666666;
- }
-
- &-empty {
- color: #666666;
- display: flex;
- align-items: center;
- padding: 15rpx 0 15rpx 15rpx;
-
- .img {
- width: 29rpx;
- height: 31rpx;
- margin-right: 15rpx;
- }
- }
- }
-
- &-item {
- width: 100%;
- margin-bottom: 20rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 32rpx;
- box-sizing: border-box;
-
- &-commodity {
- display: flex;
-
- &-img {
- width: 120rpx;
- height: 120rpx;
-
- .img {
- width: 100%;
- height: 100%;
- border-radius: 10rpx;
- }
- }
-
- &-infor {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding-left: 22rpx;
-
- &-name {
- font-size: $FONTSIZE30;
- max-width: 336rpx;
- min-width: 336rpx;
- word-break: break-all;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
-
- &-sku {
- color: #999999;
- font-size: $FONTSIZE22;
- }
-
- &-money {
- color: $THEMECOLOR1;
- max-width: 115rpx;
- min-width: 115rpx;
- text-align: center;
- color: #FF780F;
-
- &-yang {
- font-size: $FONTSIZE22;
- }
-
- &-price {
- display: flex;
- align-items: center;
- font-size: $FONTSIZE30;
- }
- }
- }
-
-
-
- }
-
- .quantity {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: $FONTSIZE36;
-
- .num {
- max-width: 100rpx;
- min-width: 100rpx;
- text-align: center;
- }
-
- .img {
- width: 42rpx;
- height: 42rpx;
- }
- }
- }
+ padding: 20rpx 32rpx;
+
+ &-left {
+ flex: 1;
+ height: 100rpx;
+ display: flex;
+ align-items: center;
+
+ &-img {
+ position: relative;
+
+ .img {
+ width: 65rpx;
+ height: 65rpx;
+ margin-right: 25rpx;
+ }
+ }
+
+
+ &-price {
+ color: #000000;
+ display: flex;
+ align-items: baseline;
+
+ .yang {
+ font-size: 26rpx;
+ }
+
+ .amount {
+ font-size: 50rpx;
+ }
+ }
+ }
+
+ &-right {
+ width: 225rpx;
+ height: 77rpx;
+ background: #0122A4;
+ box-shadow: 0 6rpx 8rpx 0 rgba(74, 111, 231, 0.2300);
+ border-radius: 48rpx;
+ text-align: center;
+ color: #ffffff;
+ line-height: 77rpx;
+ }
+ }
+
+ .RX-Cart-Popup {
+ width: 100%;
+ // padding-bottom: calc();
+ height: 642rpx;
+ background-color: #ffffff;
+
+ .RX-Cart-Popup-top {
+ width: 100%;
+ height: 87rpx;
+ border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
+ padding: 0 32rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 26rpx;
+
+ .text {
+ color: #666666;
+ }
+
+ &-empty {
+ color: #666666;
+ display: flex;
+ align-items: center;
+ padding: 15rpx 0 15rpx 15rpx;
+
+ .img {
+ width: 29rpx;
+ height: 31rpx;
+ margin-right: 15rpx;
+ }
+ }
+ }
+
+ &-item {
+ width: 100%;
+ margin-bottom: 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 32rpx;
+ box-sizing: border-box;
+
+ &-commodity {
+ display: flex;
+
+ &-img {
+ width: 120rpx;
+ height: 120rpx;
+
+ .img {
+ width: 100%;
+ height: 100%;
+ border-radius: 10rpx;
+ }
+ }
+
+ &-infor {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ padding-left: 22rpx;
+
+ &-name {
+ font-size: $FONTSIZE30;
+ max-width: 336rpx;
+ min-width: 336rpx;
+ word-break: break-all;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ }
+
+ &-sku {
+ color: #999999;
+ font-size: $FONTSIZE22;
+ }
+
+ &-money {
+ color: $THEMECOLOR1;
+ max-width: 115rpx;
+ min-width: 115rpx;
+ text-align: center;
+ color: #FF780F;
+
+ &-yang {
+ font-size: $FONTSIZE22;
+ }
+
+ &-price {
+ display: flex;
+ align-items: center;
+ font-size: $FONTSIZE30;
+ }
+ }
+ }
+
+
+
+ }
+
+ .quantity {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: $FONTSIZE36;
+
+ .num {
+ max-width: 100rpx;
+ min-width: 100rpx;
+ text-align: center;
+ }
+
+ .img {
+ width: 42rpx;
+ height: 42rpx;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/pages/restaurant/order/order-details/details.vue b/pages/restaurant/order/order-details/details.vue
index 7762f21..59dd4cb 100644
--- a/pages/restaurant/order/order-details/details.vue
+++ b/pages/restaurant/order/order-details/details.vue
@@ -1,820 +1,820 @@
-
-
-
-
-
-
-
-
-
- 请至柜台凭取餐码取餐
-
-
- 您的退款项目将在2-4个工作日退回
-
-
- 您的取餐码为
-
-
-
- {{item}}
-
-
-
- 取餐手机尾号
- {{InforData['phone_number']}}
-
-
-
-
-
-
-
-
- {{InforData['status'] | OrderState}}
-
-
-
-
-
-
-
-
-
-
- 口令{{index+1}}:{{item}}
-
-
-
-
-
-
-
-
-
-
- 取餐码
- {{InforData['codes'].join('')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 正在为您排队下单
- 请耐心等待...
-
- 请您注意查收取餐码短信
-
-
-
- 预计等待时间为2~5分钟,五分钟不出取餐码,请立即联系客服
-
-
- 请凭取餐码到店取餐
-
-
- 订单可能包含多个取餐码,请留意数量
-
-
-
-
-
-
-
-
-
-
- 排队下单中,请耐心等待
-
-
- 本页面可关闭,将短信通知取单号,或稍后查询我的订单
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 剩余付款时间 {{wait_for}}
-
-
-
- 若您已支付请耐心等待商家结算
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 订单已关闭
-
-
-
-
-
-
- 订单已关闭
-
-
-
-
-
-
-
-
-
- 已退款
- 订单退款将在1-3个工作日给您原路退回
- 给您带来的不便敬请谅解
-
-
-
-
-
-
-
-
-
-
-
- {{InforData['restaurant_name']}}
-
-
- {{InforData['restaurant_address']}}
-
-
-
-
-
-
-
-
-
- 取餐方式:{{InforData['eat_type'] == 'EAT_IN'?'堂食':'外带'}}
-
-
-
-
-
-
-
-
-
- 餐品详情
-
-
-
-
-
-
-
- {{item['product_name']}}
-
-
- ¥{{RetainDecimalPoint(item['pay_price'])}}
-
-
- x{{item['amount']}}
-
-
-
-
-
-
-
-
-
-
-
-
- 共{{length}}件
-
-
-
-
-
-
-
-
-
-
- 订单详情
-
-
-
- 下单时间
-
-
- {{InforData['create_time']}}
-
-
-
-
- 订单号
-
-
- {{InforData['order_no'] || InforData['order_sn']}}
-
-
-
-
- 联系方式
-
-
- {{InforData['phone_number']}}
-
-
-
-
- 原价
-
-
- ¥{{_amount(InforData['pay_price'] + InforData['deduction_amount_total'])}}
-
-
-
-
- 补贴卡抵扣
-
-
- ¥{{_amount(InforData['deduction_amount_total'])}}
-
-
-
-
- 实际付款
-
-
- ¥{{_amount(InforData['pay_price'])}}
-
-
-
-
- 预估佣金
-
-
- ¥{{_commission(InforData['self_commission'])}}
-
-
-
-
-
-
-
-
-
-
- 友情提示
-
-
-
- 1.如遇门店售罄,订单会自动为您取消并原路退款,给您带来不便敬请谅解。
-
-
- 2.如订单取消,退款将会在1个工作日内退回至您的账户;
-
-
-
-
-
-
-
- 联系客服
-
-
-
-
-
-
-
-
-
-
-
-
+ import restaurantmixins from '@/static/js/mixin/restaurantmixins.js';
+ // 接口请求
+ import {
+ getOrderDetail
+ } from '@/request/restaurant/index.js';
+ // 客服链接
+ import {
+ KFCSERVICE
+ } from '@/static/js/serviceurl.js'
+ export default {
+ mixins: [mixin, restaurantmixins],
+ data() {
+ return {
+ InforData: {},
+ order_sn: 0,
+ loading: true,
+ InitData:false
+ }
+ },
+ onLoad(parameter) {
+ if (parameter?.order) {
+ this['order_sn'] = parameter['order'];
+ }
+ if (parameter?.order_sn) {
+ this['order_sn'] = parameter['order_sn'];
+ }
+ this.GetorderInfo();
+ },
+ onShow() {
+ this['InitData'] && this.GetorderInfo();
+ this['InitData'] = true;
+ },
+ computed: {
+ length() {
+ try {
+ return this['InforData']['goods'].map(item => {
+ return item['amount'];
+ }).reduce((total, currentValue) => {
+ return total + currentValue
+ })
+ } catch (e) {
+ //TODO handle the exception
+ }
+ }
+ },
+ methods: {
+ GetorderInfo() {
+ getOrderDetail({
+ id: this['order_sn']
+ }).then(data => {
+ if (data['data']['status'] == this['OrderStatus0']) {
+ this.tiem(data['data']['status'], data['data']['createtime'])
+ };
+ this['loading'] = false;
+ this['InforData'] = data['data'];
+ console.log('要对比的状态', this['OrderStatus1'])
+ console.log('当前订单状态', data['data']['status'])
+ if (data['data']['status'] == this['OrderStatus0'] || data['data']['status'] == this[
+ 'OrderStatus1']) {
+ // tiem不等于null说明已经执行过一次了
+ this.GetStatus(false);
+ } else {
+ this.GetStatus(true);
+ console.log(tiem, '状态变更停止倒计时');
+ }
+ })
+ },
+
+ // 跳转客服
+ service() {
+ uni.openCustomerServiceChat({
+ extInfo: {
+ url: KFCSERVICE,
+ },
+ corpId: 'ww4f46b491a045158c',
+
+ success(e) {
+ console.log(e)
+ },
+ fail(e) {
+ console.log(e)
+ }
+ })
+ },
+
+ // 定时获取订单状态
+ GetStatus(clear) {
+ console.log('进入倒计时方法');
+ clearInterval(tiem);
+ tiem = null;
+ if (!clear) {
+ tiem = setInterval(() => {
+ console.log('进入倒计时')
+ this.GetorderInfo();
+ }, 10000)
+ }
+ },
+
+ // 取消订单
+ cancel() {
+ // 重新下单,再次支付均放在mixin/restaurantmixins中,唯独取消支付放在组件中是因为当用户取消订单之后需要改变列表中订单状态
+ cancelOrderAPI({
+ order_sn: this['InforData']['order_sn']
+ }).then(data => {
+ this['InforData']['status'] = 5;
+ })
+ },
+
+ // 立即支付
+ againpaymentNew(){
+ this.$Payment.Repayment({
+ order_sn:this['InforData']['order_sn'],
+ type:4,
+ return_url:`/pages/restaurant/order/order-details/details?order_sn=${this['InforData']['order_sn']}`,
+ redirect:true
+ });
+ }
+ },
+ onUnload() {
+ // 页面卸载之后将定时器取消
+ this.GetStatus(true);
+ console.log(tiem, '离开页面停止倒计时');
+ }
+ }
+
+
+
diff --git a/pages/restaurant/order/orders-settlement/orders-settlement.vue b/pages/restaurant/order/orders-settlement/orders-settlement.vue
index 216806a..1cd5ec8 100644
--- a/pages/restaurant/order/orders-settlement/orders-settlement.vue
+++ b/pages/restaurant/order/orders-settlement/orders-settlement.vue
@@ -337,7 +337,9 @@
}).then(res=>{
this.SETPHONE(res['data'].phone)
this.getCart();
- })
+ });
+
+ this.getUserCard();
},
getCart() {
@@ -391,7 +393,6 @@
// 佣金计算
this.computedOrder(this.FormInfor);
- this.getUserCard();
},
diff --git a/pages/restaurant/order/orders-settlement/settlement.vue b/pages/restaurant/order/orders-settlement/settlement.vue
index 8cc27b8..70636b5 100644
--- a/pages/restaurant/order/orders-settlement/settlement.vue
+++ b/pages/restaurant/order/orders-settlement/settlement.vue
@@ -344,7 +344,9 @@
}).then(res => {
this.SETPHONE(res['data'].phone)
this.getCart();
- })
+ });
+
+ this.getUserCard();
},
getCart() {
@@ -406,7 +408,6 @@
// 佣金计算
this.computedOrder(this.FormInfor);
- this.getUserCard();
},
// 是否使用券
diff --git a/static/js/config.js b/static/js/config.js
index f93910f..0a177f8 100644
--- a/static/js/config.js
+++ b/static/js/config.js
@@ -1,896 +1,896 @@
-// 点餐系统统一配置文件
-// 将写死的数据,并且后期可能会改变但不会动态改变的数据放入该文件,后期可写为Class方法并且统一继承
-import state from '@/store/index.js';
-let name = state['state']['shopping']['BInfor']['brand_name'];
-// 客服链接
-import {
- KFCSERVICE
-} from '@/static/js/serviceurl.js';
-const config = {
- // 进入店铺详情前的提示
- KFCShopHint: {
- title: '温馨提示',
- content: `${name}点餐为第三方供应商提供的代下单服务,当您支付后,请凭借取餐码等候门店屏幕的显示即可取餐。如有疑问请在订单列表里联系客服。`
- },
-
- // 肯德基配置
- Brand_1: {
- BrandName:'肯德基',
- // 主题色
- ThemeColor: '#C63836',
- // 底部导航配置
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#C63836',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/navb.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/nava.png'
- }, {
- // 标题
- title: '我的订单(查看取餐码)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/navd.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/navc.png',
- }],
- },
- // 自定义样式
- customStyle: {
- BtnStyle: [{
- color: '#FFFFFF',
- backgroundColor: '#C63836',
- }],
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #DC7473 !important',
- color: '#C63836 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '重新下单',
- state: 'again',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 待出餐-按钮样式
- orderbtn_1: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-按钮样式
- orderbtn_2: [{
- text: '查看取餐码',
- state: 'code',
- style: {
- border: '1px solid #DC7473 !important',
- color: '#C63836 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-部分退款-按钮样式
- orderbtn_4: [{
- text: '查看取餐码',
- state: 'code',
- style: {
- border: '1px solid #DC7473 !important',
- color: '#C63836 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_3: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- },
- share:()=>{
- wx.miniProgram.postMessage({
- data:{
- title: '这里有一份超值肯德基补贴券,分享给你哦!生活好滋味,尽在肯德基。',
- imageUrl:'https://img.agrimedia.cn/chwl/v2/KFC_share.jpg',
- ISH5:true,
- CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_kdj',
- }
- });
- },
- },
-
- // 奈雪的茶配置
- Brand_2: {
- BrandName:'奈雪的茶',
- ThemeColor: '#a7d500',
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#a7d500',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
- }, {
- // 标题
- title: '我的订单(查看口令)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
- }],
- },
- // 自定义样式
- customStyle: {
- // 自定义普通按钮样式
- BtnStyle: [{
- color: '#FFFFFF',
- backgroundColor: '#a7d500',
- }],
- // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
- OrderStatus: {
- // 七牛云标识
- http: 'xbk',
- // 待出餐
- OrderStatus1: 'Unpaid.png',
- // 待结算
- OrderStatus0: 'Unpaid.png',
- // 已经关闭
- OrderStatus5: 'cancel.png',
- },
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #a7d500 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#a7d500 !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }, {
- text: '重新下单',
- state: 'again',
- style: {
- border: '1px solid #a7d500 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#a7d500 !important'
- }
- }],
- // 待出餐-按钮样式
- orderbtn_1: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-按钮样式
- orderbtn_2: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #a7d500 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#a7d500 !important'
- }
- }],
- // 已出餐-部分退款-按钮样式
- orderbtn_4: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #a7d500 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#a7d500 !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_3: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- },
- share:()=>{
- wx.miniProgram.postMessage({
- data:{
- title: '奈雪的茶——人生亦如茶,经历沉浮,方能回甘,喝奈雪,点这里',
- imageUrl:'https://img.agrimedia.cn/chwl/nx/nxshare.jpg',
- ISH5:true,
- CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_nx',
- }
- });
- },
- },
-
- // 麦当劳配置配置
- Brand_5: {
- BrandName:'麦当劳',
- ThemeColor: '#FFBC0F',
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#FFBC0F',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/mdl/navb.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/mdl/nava.png'
- }, {
- // 标题
- title: '我的订单(查看取餐码)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/mdl/navd.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/mdl/navc.png',
- }],
- },
- // 自定义样式
- customStyle: {
- BtnStyle: [{
- color: '#FFFFFF',
- backgroundColor: '#FFBC0D',
- }],
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #FFBC0D !important',
- color: '#333333 !important',
- backgroundColor: '#FFBC0D !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '重新下单',
- state: 'again',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 待出餐-按钮样式
- orderbtn_1: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-按钮样式
- orderbtn_2: [{
- text: '查看取餐码',
- state: 'code',
- style: {
- border: '1px solid #FFBC0D !important',
- color: '#333333 !important',
- backgroundColor: '#FFBC0D !important'
- }
- }],
- // 已出餐-部分退款-按钮样式
- orderbtn_4: [{
- text: '查看取餐码',
- state: 'code',
- style: {
- border: '1px solid #FFBC0D !important',
- color: '#333333 !important',
- backgroundColor: '#FFBC0D !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_3: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- },
- share:()=>{
- wx.miniProgram.postMessage({
- data:{
- title: '麦当劳——欢欢笑笑常常麦当劳,点这里,享优惠哦~',
- imageUrl:'https://img.agrimedia.cn/chwl/mdl/mdlshare.jpg',
- ISH5:true,
- CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_kdj',
- }
- });
- },
- },
-
- // 星巴克
- Brand_10: {
- BrandName:'星巴克',
- ThemeColor: '#00AF66',
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#00AF66',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
- }, {
- // 标题
- title: '我的订单(查看口令)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
- }],
- },
- // 自定义样式
- customStyle: {
- // 自定义普通按钮样式
- BtnStyle: [{
- color: '#FFFFFF',
- backgroundColor: '#00AF66',
- }],
- // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
- OrderStatus: {
- // 七牛云标识
- http: 'xbk',
- // 待出餐
- OrderStatus1: 'Unpaid.png',
- // 待结算
- OrderStatus0: 'Unpaid.png',
- // 已经关闭
- OrderStatus5: 'cancel.png',
- },
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #00AF66 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#00AF66 !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }, {
- text: '重新下单',
- state: 'again',
- style: {
- border: '1px solid #00AF66 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#00AF66 !important'
- }
- }],
- // 待出餐-按钮样式
- orderbtn_1: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-按钮样式
- orderbtn_2: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #00AF66 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#00AF66 !important'
- }
- }],
- // 已出餐-部分退款-按钮样式
- orderbtn_4: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #00AF66 !important',
- color: '#FFFFFF !important',
- backgroundColor: '#00AF66 !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_3: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- },
- share:()=>{
- wx.miniProgram.postMessage({
- data:{
- title: '和你一起来享受星巴克时光 ,美好生活快来点这里有折扣哦',
- imageUrl:'https://img.agrimedia.cn/chwl/xbk/xbk_sharing.jpg',
- ISH5:true,
- CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_xbk',
- }
- });
- },
- },
-
- // 瑞幸
- Brand_13: {
- BrandName:'瑞幸咖啡',
- ThemeColor: '#4A6FE7',
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#4A6FE7',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home2.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home1.png'
- }, {
- // 标题
- title: '我的订单(查看口令)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order2.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order1.png',
- }],
- },
- // 自定义样式
- customStyle: {
- // 自定义普通按钮样式
- BtnStyle: [{
- color: '#FFFFFF',
- background: 'linear-gradient(-77deg, #4A6FE7, #83ACFF)',
- }],
- // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
- OrderStatus: {
- // 七牛云标识
- http: 'rx',
- // 待出餐
- OrderStatus1: 'NotServed.png',
- // 待结算
- OrderStatus0: 'Unpaid.png',
- // 已经关闭
- OrderStatus5: 'cancel.png',
- },
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #4A6FE7 !important',
- color: '#4A6FE7 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }, {
- text: '重新下单',
- state: 'again',
- style: {
- border: '1px solid #4A6FE7 !important',
- color: '#4A6FE7 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 待出餐-按钮样式
- orderbtn_1: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-按钮样式
- orderbtn_2: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #4A6FE7 !important',
- color: '#4A6FE7 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已出餐-部分退款-按钮样式
- orderbtn_4: [{
- text: '查看口令',
- state: 'code',
- style: {
- border: '1px solid #4A6FE7 !important',
- color: '#4A6FE7 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_3: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- },
- share:()=>{
- wx.miniProgram.postMessage({
- data:{
- title: '美好时光,一起小蓝杯,一起瑞幸,点击这里,尽享5折哦',
- imageUrl:'https://img.agrimedia.cn/chwl/rx/RX_share.jpg',
- ISH5:true,
- CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_rx',
- }
- });
- },
- },
- // 定制DIY
- Brand_30: {
- BrandName:'定制',
- ThemeColor: '#4A6FE7',
- tabBar: {
- // 文字颜色
- color: '#999999',
- // 选中文字颜色
- selectedColor: '#4A6FE7',
- // 底部导航背景色
- backgroundColor: '#FFFFFF',
- // 选项
- list: [{
- // 标题
- title: '选择餐厅',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home2.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home1.png'
- }, {
- // 标题
- title: '我的订单(查看口令)',
- // 图片路径
- iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order2.png',
- // 激活的图片路径
- selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order1.png',
- }],
- },
- // 自定义样式
- customStyle: {
- // 自定义普通按钮样式
- BtnStyle: [{
- color: '#FFFFFF',
- background: 'linear-gradient(-77deg, #4A6FE7, #83ACFF)',
- }],
- // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
- OrderStatus: {
- // 七牛云标识
- http: 'diy',
- // 待付款
- OrderStatus0: 'Tobepaid.png',
- // 待发货
- OrderStatus1: 'Consignment.png',
- // 已发货
- OrderStatus2: 'Shipped.png',
- // 已取消
- OrderStatus3: 'cancel.png',
- // 已完成
- OrderStatus5: 'complete.png',
- // 已退款
- OrderStatus6: 'refund.png',
- },
- // 订单按钮样式
- OrderBtnStyle: {
- // 未支付-按钮样式
- orderbtn_0: [{
- text: '取消订单',
- state: 'cancel',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- },
- {
- text: '立即支付',
- state: 'pay',
- style: {
- border: '1px solid #4A6FE7 !important',
- color: '#4A6FE7 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }
- ],
- // 订单关闭-按钮样式
- orderbtn_5: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- // 已退款-按钮样式
- orderbtn_6: [{
- text: '联系客服',
- state: 'service',
- style: {
- border: '1px solid #E3E3E3 !important',
- color: '#666666 !important',
- backgroundColor: '#FFFFFF !important'
- }
- }],
- }
- },
- service:()=>{
- const isWechat = getApp()['globalData']['parameters']?.isWechat;
- console.log('是否小程序环境', getApp()['globalData']['parameters']);
- if (isWechat) {
- wx.miniProgram.navigateTo({
- url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
- });
- return;
- };
-
- location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
-
- }
- },
- // 因为点餐底部导航原因所以将所有一级页面写为选项卡切换类型,此时顶部导航需要根据切换页面经行变更
- btnnav: [{
- title: '选择餐厅',
- icon: 'https://img.agrimedia.cn/chwl/navb.png',
- activation: 'https://img.agrimedia.cn/chwl/nava.png',
- },
- {
- title: '我的订单',
- icon: 'https://img.agrimedia.cn/chwl/navd.png',
- activation: 'https://img.agrimedia.cn/chwl/navc.png',
- }
- ],
- mdlbtnnav: [{
- title: '选择餐厅',
- icon: 'https://img.agrimedia.cn/chwl/mdl/navb.png',
- activation: 'https://img.agrimedia.cn/chwl/mdl/nava.png',
- },
- {
- title: '我的订单',
- icon: 'https://img.agrimedia.cn/chwl/mdl/navd.png',
- activation: 'https://img.agrimedia.cn/chwl/mdl/navc.png',
- }
- ],
- // 星巴克底部导航
- xbkbtnnav: [{
- title: '选择餐厅',
- activation: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
- },
- {
- title: '我的订单',
- activation: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png'
- }
- ],
- // 餐厅暂停营业默认提示
- suspend: {
- show: false,
- content: '为保障健康、安全与质量的服务,本餐厅即时起暂停营业,恢复日期将另行通知,感谢您的谅解。'
- },
- // 肯德基店铺详情首次进入提示
- KFCShopHint: {
- title: '温馨提示',
- content: '肯德基点餐为第三方供应商提供的代下单服务,当您支付后,请凭借取餐码等候门店屏幕的显示即可取餐。如有疑问请在订单列表里联系客服。'
- }
-};
+// 点餐系统统一配置文件
+// 将写死的数据,并且后期可能会改变但不会动态改变的数据放入该文件,后期可写为Class方法并且统一继承
+import state from '@/store/index.js';
+let name = state['state']['shopping']['BInfor']['brand_name'];
+// 客服链接
+import {
+ KFCSERVICE
+} from '@/static/js/serviceurl.js';
+const config = {
+ // 进入店铺详情前的提示
+ KFCShopHint: {
+ title: '温馨提示',
+ content: `${name}点餐为第三方供应商提供的代下单服务,当您支付后,请凭借取餐码等候门店屏幕的显示即可取餐。如有疑问请在订单列表里联系客服。`
+ },
+
+ // 肯德基配置
+ Brand_1: {
+ BrandName:'肯德基',
+ // 主题色
+ ThemeColor: '#C63836',
+ // 底部导航配置
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#C63836',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/navb.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/nava.png'
+ }, {
+ // 标题
+ title: '我的订单(查看取餐码)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/navd.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/navc.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ BtnStyle: [{
+ color: '#FFFFFF',
+ backgroundColor: '#C63836',
+ }],
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #DC7473 !important',
+ color: '#C63836 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '重新下单',
+ state: 'again',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 待出餐-按钮样式
+ orderbtn_1: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-按钮样式
+ orderbtn_2: [{
+ text: '查看取餐码',
+ state: 'code',
+ style: {
+ border: '1px solid #DC7473 !important',
+ color: '#C63836 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-部分退款-按钮样式
+ orderbtn_4: [{
+ text: '查看取餐码',
+ state: 'code',
+ style: {
+ border: '1px solid #DC7473 !important',
+ color: '#C63836 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_3: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ },
+ share:()=>{
+ wx.miniProgram.postMessage({
+ data:{
+ title: '这里有一份超值肯德基补贴券,分享给你哦!生活好滋味,尽在肯德基。',
+ imageUrl:'https://img.agrimedia.cn/chwl/v2/KFC_share.jpg',
+ ISH5:true,
+ CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_kdj',
+ }
+ });
+ },
+ },
+
+ // 奈雪的茶配置
+ Brand_2: {
+ BrandName:'奈雪的茶',
+ ThemeColor: '#a7d500',
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#a7d500',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
+ }, {
+ // 标题
+ title: '我的订单(查看口令)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ // 自定义普通按钮样式
+ BtnStyle: [{
+ color: '#FFFFFF',
+ backgroundColor: '#a7d500',
+ }],
+ // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
+ OrderStatus: {
+ // 七牛云标识
+ http: 'xbk',
+ // 待出餐
+ OrderStatus1: 'Unpaid.png',
+ // 待结算
+ OrderStatus0: 'Unpaid.png',
+ // 已经关闭
+ OrderStatus5: 'cancel.png',
+ },
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #a7d500 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#a7d500 !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }, {
+ text: '重新下单',
+ state: 'again',
+ style: {
+ border: '1px solid #a7d500 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#a7d500 !important'
+ }
+ }],
+ // 待出餐-按钮样式
+ orderbtn_1: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-按钮样式
+ orderbtn_2: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #a7d500 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#a7d500 !important'
+ }
+ }],
+ // 已出餐-部分退款-按钮样式
+ orderbtn_4: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #a7d500 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#a7d500 !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_3: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ },
+ share:()=>{
+ wx.miniProgram.postMessage({
+ data:{
+ title: '奈雪的茶——人生亦如茶,经历沉浮,方能回甘,喝奈雪,点这里',
+ imageUrl:'https://img.agrimedia.cn/chwl/nx/nxshare.jpg',
+ ISH5:true,
+ CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_nx',
+ }
+ });
+ },
+ },
+
+ // 麦当劳配置配置
+ Brand_5: {
+ BrandName:'麦当劳',
+ ThemeColor: '#FFBC0F',
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#FFBC0F',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/mdl/navb.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/mdl/nava.png'
+ }, {
+ // 标题
+ title: '我的订单(查看取餐码)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/mdl/navd.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/mdl/navc.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ BtnStyle: [{
+ color: '#FFFFFF',
+ backgroundColor: '#FFBC0D',
+ }],
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #FFBC0D !important',
+ color: '#333333 !important',
+ backgroundColor: '#FFBC0D !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '重新下单',
+ state: 'again',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 待出餐-按钮样式
+ orderbtn_1: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-按钮样式
+ orderbtn_2: [{
+ text: '查看取餐码',
+ state: 'code',
+ style: {
+ border: '1px solid #FFBC0D !important',
+ color: '#333333 !important',
+ backgroundColor: '#FFBC0D !important'
+ }
+ }],
+ // 已出餐-部分退款-按钮样式
+ orderbtn_4: [{
+ text: '查看取餐码',
+ state: 'code',
+ style: {
+ border: '1px solid #FFBC0D !important',
+ color: '#333333 !important',
+ backgroundColor: '#FFBC0D !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_3: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ },
+ share:()=>{
+ wx.miniProgram.postMessage({
+ data:{
+ title: '麦当劳——欢欢笑笑常常麦当劳,点这里,享优惠哦~',
+ imageUrl:'https://img.agrimedia.cn/chwl/mdl/mdlshare.jpg',
+ ISH5:true,
+ CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_kdj',
+ }
+ });
+ },
+ },
+
+ // 星巴克
+ Brand_10: {
+ BrandName:'星巴克',
+ ThemeColor: '#00AF66',
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#00AF66',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
+ }, {
+ // 标题
+ title: '我的订单(查看口令)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ // 自定义普通按钮样式
+ BtnStyle: [{
+ color: '#FFFFFF',
+ backgroundColor: '#00AF66',
+ }],
+ // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
+ OrderStatus: {
+ // 七牛云标识
+ http: 'xbk',
+ // 待出餐
+ OrderStatus1: 'Unpaid.png',
+ // 待结算
+ OrderStatus0: 'Unpaid.png',
+ // 已经关闭
+ OrderStatus5: 'cancel.png',
+ },
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #00AF66 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#00AF66 !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }, {
+ text: '重新下单',
+ state: 'again',
+ style: {
+ border: '1px solid #00AF66 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#00AF66 !important'
+ }
+ }],
+ // 待出餐-按钮样式
+ orderbtn_1: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-按钮样式
+ orderbtn_2: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #00AF66 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#00AF66 !important'
+ }
+ }],
+ // 已出餐-部分退款-按钮样式
+ orderbtn_4: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #00AF66 !important',
+ color: '#FFFFFF !important',
+ backgroundColor: '#00AF66 !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_3: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ },
+ share:()=>{
+ wx.miniProgram.postMessage({
+ data:{
+ title: '和你一起来享受星巴克时光 ,美好生活快来点这里有折扣哦',
+ imageUrl:'https://img.agrimedia.cn/chwl/xbk/xbk_sharing.jpg',
+ ISH5:true,
+ CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_xbk',
+ }
+ });
+ },
+ },
+
+ // 瑞幸
+ Brand_13: {
+ BrandName:'瑞幸咖啡',
+ ThemeColor: '#4A6FE7',
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#4A6FE7',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home2.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home1.png'
+ }, {
+ // 标题
+ title: '我的订单(查看口令)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order2.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order1.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ // 自定义普通按钮样式
+ BtnStyle: [{
+ color: '#FFFFFF',
+ background: '#0122A4',
+ }],
+ // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
+ OrderStatus: {
+ // 七牛云标识
+ http: 'rx',
+ // 待出餐
+ OrderStatus1: 'NotServed.png',
+ // 待结算
+ OrderStatus0: 'Unpaid.png',
+ // 已经关闭
+ OrderStatus5: 'cancel.png',
+ },
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #4A6FE7 !important',
+ color: '#4A6FE7 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }, {
+ text: '重新下单',
+ state: 'again',
+ style: {
+ border: '1px solid #4A6FE7 !important',
+ color: '#4A6FE7 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 待出餐-按钮样式
+ orderbtn_1: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-按钮样式
+ orderbtn_2: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #4A6FE7 !important',
+ color: '#4A6FE7 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已出餐-部分退款-按钮样式
+ orderbtn_4: [{
+ text: '查看口令',
+ state: 'code',
+ style: {
+ border: '1px solid #4A6FE7 !important',
+ color: '#4A6FE7 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_3: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ },
+ share:()=>{
+ wx.miniProgram.postMessage({
+ data:{
+ title: '美好时光,一起小蓝杯,一起瑞幸,点击这里,尽享5折哦',
+ imageUrl:'https://img.agrimedia.cn/chwl/rx/RX_share.jpg',
+ ISH5:true,
+ CallbackUrl:'https://jc.agrimedia.cn/privilege/pages/restaurant/index/index_rx',
+ }
+ });
+ },
+ },
+ // 定制DIY
+ Brand_30: {
+ BrandName:'定制',
+ ThemeColor: '#4A6FE7',
+ tabBar: {
+ // 文字颜色
+ color: '#999999',
+ // 选中文字颜色
+ selectedColor: '#4A6FE7',
+ // 底部导航背景色
+ backgroundColor: '#FFFFFF',
+ // 选项
+ list: [{
+ // 标题
+ title: '选择餐厅',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home2.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_home1.png'
+ }, {
+ // 标题
+ title: '我的订单(查看口令)',
+ // 图片路径
+ iconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order2.png',
+ // 激活的图片路径
+ selectedIconPath: 'https://img.agrimedia.cn/chwl/rx/rx_order1.png',
+ }],
+ },
+ // 自定义样式
+ customStyle: {
+ // 自定义普通按钮样式
+ BtnStyle: [{
+ color: '#FFFFFF',
+ background: '#0122A4',
+ }],
+ // 订单图标,订单详情中展示的(仅支持星巴克/瑞星类似样式)
+ OrderStatus: {
+ // 七牛云标识
+ http: 'diy',
+ // 待付款
+ OrderStatus0: 'Tobepaid.png',
+ // 待发货
+ OrderStatus1: 'Consignment.png',
+ // 已发货
+ OrderStatus2: 'Shipped.png',
+ // 已取消
+ OrderStatus3: 'cancel.png',
+ // 已完成
+ OrderStatus5: 'complete.png',
+ // 已退款
+ OrderStatus6: 'refund.png',
+ },
+ // 订单按钮样式
+ OrderBtnStyle: {
+ // 未支付-按钮样式
+ orderbtn_0: [{
+ text: '取消订单',
+ state: 'cancel',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ },
+ {
+ text: '立即支付',
+ state: 'pay',
+ style: {
+ border: '1px solid #4A6FE7 !important',
+ color: '#4A6FE7 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }
+ ],
+ // 订单关闭-按钮样式
+ orderbtn_5: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ // 已退款-按钮样式
+ orderbtn_6: [{
+ text: '联系客服',
+ state: 'service',
+ style: {
+ border: '1px solid #E3E3E3 !important',
+ color: '#666666 !important',
+ backgroundColor: '#FFFFFF !important'
+ }
+ }],
+ }
+ },
+ service:()=>{
+ const isWechat = getApp()['globalData']['parameters']?.isWechat;
+ console.log('是否小程序环境', getApp()['globalData']['parameters']);
+ if (isWechat) {
+ wx.miniProgram.navigateTo({
+ url: `/pages/wxpay/openCustomerServiceChat?url=${KFCSERVICE}`
+ });
+ return;
+ };
+
+ location.href = `https://work.weixin.qq.com/kfid/kfc2f4d0cb26562ffe1`;
+
+ }
+ },
+ // 因为点餐底部导航原因所以将所有一级页面写为选项卡切换类型,此时顶部导航需要根据切换页面经行变更
+ btnnav: [{
+ title: '选择餐厅',
+ icon: 'https://img.agrimedia.cn/chwl/navb.png',
+ activation: 'https://img.agrimedia.cn/chwl/nava.png',
+ },
+ {
+ title: '我的订单',
+ icon: 'https://img.agrimedia.cn/chwl/navd.png',
+ activation: 'https://img.agrimedia.cn/chwl/navc.png',
+ }
+ ],
+ mdlbtnnav: [{
+ title: '选择餐厅',
+ icon: 'https://img.agrimedia.cn/chwl/mdl/navb.png',
+ activation: 'https://img.agrimedia.cn/chwl/mdl/nava.png',
+ },
+ {
+ title: '我的订单',
+ icon: 'https://img.agrimedia.cn/chwl/mdl/navd.png',
+ activation: 'https://img.agrimedia.cn/chwl/mdl/navc.png',
+ }
+ ],
+ // 星巴克底部导航
+ xbkbtnnav: [{
+ title: '选择餐厅',
+ activation: 'https://img.agrimedia.cn/chwl/xbk/xbk_home.png'
+ },
+ {
+ title: '我的订单',
+ activation: 'https://img.agrimedia.cn/chwl/xbk/xbk_orders.png'
+ }
+ ],
+ // 餐厅暂停营业默认提示
+ suspend: {
+ show: false,
+ content: '为保障健康、安全与质量的服务,本餐厅即时起暂停营业,恢复日期将另行通知,感谢您的谅解。'
+ },
+ // 肯德基店铺详情首次进入提示
+ KFCShopHint: {
+ title: '温馨提示',
+ content: '肯德基点餐为第三方供应商提供的代下单服务,当您支付后,请凭借取餐码等候门店屏幕的显示即可取餐。如有疑问请在订单列表里联系客服。'
+ }
+};
export default config
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 52cb3a8..9cb9b62 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
在线点餐
\ No newline at end of file
+ document.write('')