feat: 新增平台客服配置及弹窗组件
- 新增客服电话、服务时间、企业微信客服配置项 - 新增客服弹窗组件支持微信在线客服和电话拨打 - 调整核销码为6位数字,修复相关提示文本 - 优化订单服务项目展示逻辑 - 完善抢单大厅加载动画和列表样式
这个提交包含在:
@@ -10,7 +10,7 @@ use app\common\library\ProductPricing;
|
||||
*/
|
||||
class Home extends Base
|
||||
{
|
||||
protected $noNeedLogin = ['index', 'feed', 'cats', 'services', 'detail', 'calc', 'specs', 'masterCount', 'orderCase', 'agreement', 'agreementRead', 'systemGallery'];
|
||||
protected $noNeedLogin = ['index', 'feed', 'cats', 'services', 'detail', 'calc', 'specs', 'masterCount', 'orderCase', 'agreement', 'agreementRead', 'systemGallery', 'serviceConfig'];
|
||||
|
||||
/**
|
||||
* 首页聚合:类目 + 热门服务 + 我的角标
|
||||
@@ -217,6 +217,9 @@ class Home extends Base
|
||||
'assures' => $this->configList('home_assure'),
|
||||
'tutorial' => $this->tutorial(),
|
||||
'service_phone' => (string)(\think\Config::get('site.service_phone') ?: ''),
|
||||
'service_work_time' => (string)(\think\Config::get('site.service_work_time') ?: ''),
|
||||
'service_corp_id' => (string)(\think\Config::get('site.service_corp_id') ?: ''),
|
||||
'service_kf_url' => (string)(\think\Config::get('site.service_kf_url') ?: ''),
|
||||
'badge' => ['coupon' => 0, 'unread' => 0],
|
||||
];
|
||||
|
||||
@@ -1826,4 +1829,17 @@ class Home extends Base
|
||||
'services' => $services,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取平台客服配置(客服电话、服务时间、企业微信客服参数)
|
||||
*/
|
||||
public function serviceConfig()
|
||||
{
|
||||
$this->success('', [
|
||||
'service_phone' => trim((string)(\think\Config::get('site.service_phone') ?: '')),
|
||||
'service_work_time' => trim((string)(\think\Config::get('site.service_work_time') ?: '')),
|
||||
'service_corp_id' => trim((string)(\think\Config::get('site.service_corp_id') ?: '')),
|
||||
'service_kf_url' => trim((string)(\think\Config::get('site.service_kf_url') ?: '')),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户