diy模板优化
parent
e7b1d9880b
commit
d6cfca46a4
|
|
@ -63,13 +63,15 @@ class AppConfig extends Base
|
|||
|
||||
$assign = [
|
||||
// 配置数据
|
||||
'data' => ConfigService::ConfigList(),
|
||||
'data' => ConfigService::ConfigList(),
|
||||
// 管理导航
|
||||
'nav_data' => MyLang('appconfig.base_nav_list'),
|
||||
'nav_data' => MyLang('appconfig.base_nav_list'),
|
||||
// 页面导航
|
||||
'nav_type' => $this->nav_type,
|
||||
'nav_type' => $this->nav_type,
|
||||
// diy页面
|
||||
'diy_list' => $diy_list,
|
||||
'diy_list' => $diy_list,
|
||||
// 平台
|
||||
'common_platform_type' => MyConst('common_platform_type'),
|
||||
];
|
||||
MyViewAssign($assign);
|
||||
return MyView($this->nav_type);
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ return [
|
|||
['name' => '基礎配寘', 'type' => 'index'],
|
||||
['name' => 'APP/小程式', 'type' => 'app'],
|
||||
],
|
||||
'home_diy_template_title' => '首頁DIY範本',
|
||||
'online_service_title' => '線上客服',
|
||||
'user_base_popup_title' => '用戶基礎資訊彈窗提示',
|
||||
'user_onekey_bind_mobile_tips_list' => [
|
||||
|
|
@ -495,6 +496,7 @@ return [
|
|||
'1.自定義客服http協定採用webview管道打開',
|
||||
'2.客服優先順序順序【客服系統->自定義客服->企業微信客服(僅app+h5+微信小程式生效)->各端平臺客服->電話客服】',
|
||||
],
|
||||
'home_diy_template_tips' => '不選擇diy範本則默認跟隨統一的首頁配寘',
|
||||
],
|
||||
|
||||
// 小程序管理
|
||||
|
|
|
|||
|
|
@ -480,6 +480,7 @@ return [
|
|||
['name' => 'BaseConfig', 'type' => 'index'],
|
||||
['name' => 'APP/Applet', 'type' => 'app'],
|
||||
],
|
||||
'home_diy_template_title' => 'Home DIY Template',
|
||||
'online_service_title' => 'Online Service',
|
||||
'user_base_popup_title' => 'Pop up prompt for user basic information',
|
||||
'user_onekey_bind_mobile_tips_list' => [
|
||||
|
|
@ -499,6 +500,7 @@ return [
|
|||
'1. Customize customer service HTTP protocol to open in webview mode',
|
||||
'2. Customer service priority order: [Customer service system ->Custom customer service ->Enterprise WeChat customer service (only effective for app+h5+WeChat mini program) ->Customer service on various platforms ->Telephone customer service]',
|
||||
],
|
||||
'home_diy_template_tips' => 'If DIY template is not selected, it will default to following the unified homepage configuration',
|
||||
],
|
||||
|
||||
// 小程序管理
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ return [
|
|||
['name' => 'Configuración básica', 'type' => 'index'],
|
||||
['name' => 'APP / applet', 'type' => 'app'],
|
||||
],
|
||||
'home_diy_template_title' => 'Plantilla DIY de página de inicio',
|
||||
'online_service_title' => 'Servicio al cliente en línea',
|
||||
'user_base_popup_title' => 'Consejos de ventana emergente de información básica del usuario',
|
||||
'user_onekey_bind_mobile_tips_list' => [
|
||||
|
|
@ -495,6 +496,7 @@ return [
|
|||
'1. el Protocolo https de servicio al cliente personalizado se abre en webview',
|
||||
'2. orden de prioridad del servicio al cliente [sistema de servicio al cliente - > Servicio al cliente personalizado - > Servicio al cliente de Wechat corporativo (solo la aplicación + H5 + applet de Wechat está en vigor) - > Servicio al cliente de cada plataforma final - > Servicio al cliente telefónico]',
|
||||
],
|
||||
'home_diy_template_tips' => 'Si no selecciona la plantilla diy, seguirá la configuración unificada de la página de inicio por defecto.',
|
||||
],
|
||||
|
||||
// 小程序管理
|
||||
|
|
|
|||
|
|
@ -477,6 +477,7 @@ return [
|
|||
['name' => '基础配置', 'type' => 'index'],
|
||||
['name' => 'APP/小程序', 'type' => 'app'],
|
||||
],
|
||||
'home_diy_template_title' => '首页DIY模板',
|
||||
'online_service_title' => '在线客服',
|
||||
'user_base_popup_title' => '用户基础信息弹窗提示',
|
||||
'user_onekey_bind_mobile_tips_list' => [
|
||||
|
|
@ -496,6 +497,7 @@ return [
|
|||
'1. 自定义客服http协议采用webview方式打开',
|
||||
'2. 客服优先级顺序【 客服系统 -> 自定义客服 -> 企业微信客服(仅app+h5+微信小程序生效) -> 各端平台客服 -> 电话客服 】',
|
||||
],
|
||||
'home_diy_template_tips' => '不选择diy模板则默认跟随统一的首页配置',
|
||||
],
|
||||
|
||||
// 小程序管理
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@
|
|||
'name' => MyLang('base_config_title'),
|
||||
'key' => 'base-config-title',
|
||||
],
|
||||
[
|
||||
'name' => MyLang('appconfig.home_diy_template_title'),
|
||||
'key' => 'home-diy-template',
|
||||
],
|
||||
[
|
||||
'name' => MyLang('appconfig.online_service_title'),
|
||||
'key' => 'online-service',
|
||||
|
|
@ -31,45 +35,6 @@
|
|||
<div class="nav-content">
|
||||
<!-- 基础配置 -->
|
||||
<div class="item am-active" data-key="base-config-title">
|
||||
<div class="am-form-group">
|
||||
<label class="am-block">{{$data.common_app_is_index_data_diy_mode.name}}<span class="am-form-group-label-tips">{{$data.common_app_is_index_data_diy_mode.describe}}</span></label>
|
||||
<div class="am-radio-group">
|
||||
<div>
|
||||
{{foreach :MyConst('common_is_text_list') as $v}}
|
||||
<label class="am-radio-inline">
|
||||
<input type="radio" value="{{$v.id}}" name="{{$data.common_app_is_index_data_diy_mode.only_tag}}" data-validation-message="{{$data.common_app_is_index_data_diy_mode.error_tips}}" required {{if isset($data['common_app_is_index_data_diy_mode']['value']) and $data['common_app_is_index_data_diy_mode']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
|
||||
</label>
|
||||
{{/foreach}}
|
||||
<div class="diy-list-select am-inline-block am-margin-left-sm">
|
||||
<select name="{{$data.common_app_index_data_diy_mode_value.only_tag}}" class="am-radius chosen-select" data-placeholder="{{:MyLang('please_select_tips')}}" data-validation-message="{{$data.common_app_index_data_diy_mode_value.error_tips}}">
|
||||
<option value="">{{:MyLang('please_select_tips')}}</option>
|
||||
{{if !empty($diy_list)}}
|
||||
{{foreach $diy_list as $v}}
|
||||
<option value="{{$v.id}}" {{if !empty($data['common_app_index_data_diy_mode_value']['value']) and $data['common_app_index_data_diy_mode_value']['value'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="am-inline-block">
|
||||
<select name="{{$data.common_app_index_data_diy_mode_value.only_tag}}" class="am-radius chosen-select" data-placeholder="{{:MyLang('please_select_tips')}}" data-validation-message="{{$data.common_app_index_data_diy_mode_value.error_tips}}">
|
||||
<option value="">{{:MyLang('please_select_tips')}}</option>
|
||||
{{if !empty($site_default_index_data_list)}}
|
||||
{{foreach $site_default_index_data_list as $v}}
|
||||
{{if !empty($v['data']) and is_array($v['data']) and !empty($v['name'])}}
|
||||
<optgroup label="{{$v.name}}" class="am-color-ccc">
|
||||
{{foreach $v.data as $vs}}
|
||||
<option value="{{$vs.type}}|{{$vs.value}}" {{if !empty($data['common_app_index_data_diy_mode_value']['value']) and $data['common_app_index_data_diy_mode_value']['value'] eq $vs['type'].'|'.$vs['value']}}selected{{/if}}>{{$vs.name}}</option>
|
||||
{{/foreach}}
|
||||
</optgroup>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</select>
|
||||
</div> -->
|
||||
|
||||
<div class="am-form-group">
|
||||
<label class="am-block">{{$data.common_app_is_use_mobile_detail.name}}<span class="am-form-group-label-tips">{{$data.common_app_is_use_mobile_detail.describe}}</span></label>
|
||||
<div class="am-radio-group">
|
||||
|
|
@ -162,6 +127,35 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 首页DIY模板 -->
|
||||
<div class="item" data-key="home-diy-template">
|
||||
<div class="am-operate-stretch-tips">
|
||||
<div class="title">
|
||||
<i class="iconfont icon-tips"></i>
|
||||
<strong title="{{:MyLang('operate_list_tips_msg')}}">{{:MyLang('operate_list_tips_button_text')}}</strong>
|
||||
<i class="iconfont icon-contract contract"></i>
|
||||
</div>
|
||||
<p>{{:MyLang('appconfig.home_diy_template_tips')}}</p>
|
||||
</div>
|
||||
<div class="home-diy-template-list am-margin-bottom-lg">
|
||||
{{foreach $common_platform_type as $v}}
|
||||
{{if !in_array($v['value'], ['pc'])}}
|
||||
<div class="am-flex am-flex-row am-flex-items-center am-gap-1 am-margin-top-sm">
|
||||
<span class="am-text-right">{{$v.name}}</span>
|
||||
<select name="common_app_home_data_diy_mode[{{$v.value}}]" class="am-radius chosen-select" data-placeholder="{{:MyLang('optional_tips')}}" data-validation-message="{{:MyLang('site.site_setup_choice_payment_message', ['name'=>$v['name']])}}">
|
||||
<option value="">{{:MyLang('optional_tips')}}</option>
|
||||
{{if !empty($diy_list)}}
|
||||
{{foreach $diy_list as $diy}}
|
||||
<option value="{{$diy.id}}" {{if !empty($data['common_app_home_data_diy_mode']) and !empty($data['common_app_home_data_diy_mode']['value']) and !empty($data['common_app_home_data_diy_mode']['value'][$v['value']]) and $data['common_app_home_data_diy_mode']['value'][$v['value']] eq $diy['id']}}selected{{/if}}>{{$diy.name}}</option>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 在线客服 -->
|
||||
<div class="item" data-key="online-service">
|
||||
{{if is_array(MyLang('appconfig.online_service_top_tips_list'))}}
|
||||
|
|
|
|||
|
|
@ -64,13 +64,14 @@ class Index extends Common
|
|||
|
||||
// 数据模式(0自动模式, 1手动模式, 2拖拽模式, 3DIY模式)
|
||||
// 手机端是否DIY模式
|
||||
if(MyC('common_app_is_index_data_diy_mode', 0, true) == 1)
|
||||
$diy_mode = MyC('common_app_home_data_diy_mode');
|
||||
if(!empty($diy_mode) && is_array($diy_mode) && !empty($diy_mode[APPLICATION_CLIENT_TYPE]))
|
||||
{
|
||||
// diy下模式设置为3
|
||||
$data_mode = 3;
|
||||
|
||||
// 获取diy数据
|
||||
$data_list = DiyService::DiyData(['id'=>MyC('common_app_index_data_diy_mode_value')]);
|
||||
$data_list = DiyService::DiyData(['id'=>$diy_mode[APPLICATION_CLIENT_TYPE]]);
|
||||
|
||||
// 返回数据
|
||||
$result = DataReturn('success', 0, [
|
||||
|
|
|
|||
|
|
@ -3842,15 +3842,10 @@ return [
|
|||
'desc' => '默認否',
|
||||
'tips' => '請選擇是否開啟線上客服',
|
||||
],
|
||||
'common_app_is_index_data_diy_mode' => [
|
||||
'name' => '首頁使用DIY模式',
|
||||
'desc' => '默認跟隨統一的首頁配寘',
|
||||
'tips' => '請選擇是否首頁使用DIY模式',
|
||||
],
|
||||
'common_app_index_data_diy_mode_value' => [
|
||||
'name' => '首頁DIY模式數據',
|
||||
'common_app_home_data_diy_mode' => [
|
||||
'name' => '首頁DIY模式',
|
||||
'desc' => '',
|
||||
'tips' => '請選擇首頁DIY模式數據',
|
||||
'tips' => '請選擇首頁DIY模式',
|
||||
],
|
||||
'home_index_floor_left_goods_category_max_count' => [
|
||||
'name' => '首頁樓層左側二級商品分類數量',
|
||||
|
|
|
|||
|
|
@ -3874,15 +3874,10 @@ return [
|
|||
'desc' => 'Default no',
|
||||
'tips' => 'Please select whether to open online customer service',
|
||||
],
|
||||
'common_app_is_index_data_diy_mode' => [
|
||||
'name' => 'Home page using DIY mode',
|
||||
'desc' => 'By default, follow the unified homepage configuration',
|
||||
'tips' => 'Please choose whether to use DIY mode on the homepage',
|
||||
],
|
||||
'common_app_index_data_diy_mode_value' => [
|
||||
'name' => 'Home DIY Mode Data',
|
||||
'common_app_home_data_diy_mode' => [
|
||||
'name' => 'Home DIY Mode',
|
||||
'desc' => '',
|
||||
'tips' => 'Please select DIY mode data on the homepage',
|
||||
'tips' => 'Please choose DIY mode on the homepage',
|
||||
],
|
||||
'home_index_floor_left_goods_category_max_count' => [
|
||||
'name' => 'Number of secondary goods categories on the left side of the first floor',
|
||||
|
|
|
|||
|
|
@ -3843,15 +3843,10 @@ return [
|
|||
'desc' => 'Predeterminado No',
|
||||
'tips' => 'Por favor, elija si abrir el servicio al cliente en línea',
|
||||
],
|
||||
'common_app_is_index_data_diy_mode' => [
|
||||
'name' => 'La página de inicio utiliza el modo bricolaje',
|
||||
'desc' => 'Seguir la configuración unificada de la página de inicio por defecto',
|
||||
'tips' => 'Por favor, elija si usar el modo bricolaje en la página de inicio.',
|
||||
],
|
||||
'common_app_index_data_diy_mode_value' => [
|
||||
'name' => 'Datos del modo bricolaje en la página de inicio',
|
||||
'common_app_home_data_diy_mode' => [
|
||||
'name' => 'Modo DIY en la página de inicio',
|
||||
'desc' => '',
|
||||
'tips' => 'Por favor, elija los datos del modo bricolaje de la página de inicio.',
|
||||
'tips' => 'Por favor, elija el modo bricolaje de la página de inicio.',
|
||||
],
|
||||
'home_index_floor_left_goods_category_max_count' => [
|
||||
'name' => 'Número de clasificaciones de productos secundarios en el lado izquierdo del piso de inicio',
|
||||
|
|
|
|||
|
|
@ -3872,15 +3872,10 @@ return [
|
|||
'desc' => '默认否',
|
||||
'tips' => '请选择是否开启在线客服',
|
||||
],
|
||||
'common_app_is_index_data_diy_mode' => [
|
||||
'name' => '首页使用DIY模式',
|
||||
'desc' => '默认跟随统一的首页配置',
|
||||
'tips' => '请选择是否首页使用DIY模式',
|
||||
],
|
||||
'common_app_index_data_diy_mode_value' => [
|
||||
'name' => '首页DIY模式数据',
|
||||
'common_app_home_data_diy_mode' => [
|
||||
'name' => '首页DIY模式',
|
||||
'desc' => '',
|
||||
'tips' => '请选择首页DIY模式数据',
|
||||
'tips' => '请选择首页DIY模式',
|
||||
],
|
||||
'home_index_floor_left_goods_category_max_count' => [
|
||||
'name' => '首页楼层左侧二级商品分类数量',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
|||
.diy-list-select {
|
||||
width: 23rem;
|
||||
.home-diy-template-list span {
|
||||
min-width: 8rem;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-0fc19049.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-8c39d74b.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue