diff --git a/src/app/shop/view/config/servicer.html b/src/app/shop/view/config/servicer.html
index 40cef7b52..65231cbbc 100644
--- a/src/app/shop/view/config/servicer.html
+++ b/src/app/shop/view/config/servicer.html
@@ -67,6 +67,7 @@
{case value="miniprogram"}第三方微信小程序{/case}
{/switch}
{if addon_is_exit('aikefu') && $config.weapp.type == 'aikefu'}智能客服{/if}
+ {if !empty($config.weapp.show_system_service) && $config.weapp.show_system_service == 1 && in_array($config.weapp.type, ['aikefu', 'wxwork', 'miniprogram'])}(同时显示系统客服){/if}
{if addon_is_exit('pc', request()->siteid()) == 1}
@@ -149,6 +150,12 @@
+
@@ -311,6 +318,27 @@
value = data.value;
$('.' + type + '-wrap').hide();
$('.' + type + '-wrap.' + value).show();
+
+ // 控制是否显示附加设置
+ if (type === 'weapp') {
+ if (['aikefu', 'wxwork', 'miniprogram'].indexOf(value) > -1) {
+ $('.weapp-system-service').show();
+ } else {
+ $('.weapp-system-service').hide();
+ }
+ }
+ })
+
+ // 初始化时设置默认值
+ $(document).ready(function(){
+ // 检查是否需要显示附加设置
+ var weappType = $('[name="weapp[type]"]:checked').val();
+ if (weappType && ['aikefu', 'wxwork', 'miniprogram'].indexOf(weappType) > -1) {
+ $('.weapp-system-service').show();
+ }
+
+ // 为复选框添加value属性
+ $('[name="weapp[show_system_service]"]').val('1');
})
/**