diff --git a/app/admin/controller/Design.php b/app/admin/controller/Design.php index bde586c2d..c2fc1c30c 100644 --- a/app/admin/controller/Design.php +++ b/app/admin/controller/Design.php @@ -90,11 +90,11 @@ class Design extends Base // 品牌 'brand_list' => BrandService::CategoryBrand(), // 静态数据 - 'border_style_type_list' => BaseLayout::$border_style_type_list, - 'goods_view_list_show_style' => BaseLayout::$goods_view_list_show_style, - 'many_images_view_list_show_style' => BaseLayout::$many_images_view_list_show_style, - 'images_text_view_list_show_style' => BaseLayout::$images_text_view_list_show_style, - 'images_magic_cube_view_list_show_style' => BaseLayout::$images_magic_cube_view_list_show_style, + 'border_style_type_list' => BaseLayout::ConstConfigData('border_style_type_list'), + 'goods_view_list_show_style' => BaseLayout::ConstConfigData('goods_view_list_show_style'), + 'many_images_view_list_show_style' => BaseLayout::ConstConfigData('many_images_view_list_show_style'), + 'images_text_view_list_show_style' => BaseLayout::ConstConfigData('images_text_view_list_show_style'), + 'images_magic_cube_view_list_show_style' => BaseLayout::ConstConfigData('images_magic_cube_view_list_show_style'), // 首页商品排序规则 'goods_order_by_type_list' => MyLang('goods_order_by_type_list'), 'goods_order_by_rule_list' => MyLang('goods_order_by_rule_list'), diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index dbaedafcf..9577251e8 100755 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -108,11 +108,11 @@ class Index extends Common $assign['brand_list'] = BrandService::CategoryBrand(); // 静态数据 - $assign['border_style_type_list'] = BaseLayout::$border_style_type_list; - $assign['goods_view_list_show_style'] = BaseLayout::$goods_view_list_show_style; - $assign['many_images_view_list_show_style'] = BaseLayout::$many_images_view_list_show_style; - $assign['images_text_view_list_show_style'] = BaseLayout::$images_text_view_list_show_style; - $assign['images_magic_cube_view_list_show_style'] = BaseLayout::$images_magic_cube_view_list_show_style; + $assign['border_style_type_list'] = BaseLayout::ConstConfigData('border_style_type_list'); + $assign['goods_view_list_show_style'] = BaseLayout::ConstConfigData('goods_view_list_show_style'); + $assign['many_images_view_list_show_style'] = BaseLayout::ConstConfigData('many_images_view_list_show_style'); + $assign['images_text_view_list_show_style'] = BaseLayout::ConstConfigData('images_text_view_list_show_style'); + $assign['images_magic_cube_view_list_show_style'] = BaseLayout::ConstConfigData('images_magic_cube_view_list_show_style'); // 首页商品排序规则 $assign['goods_order_by_type_list'] = MyLang('goods_order_by_type_list'); diff --git a/app/lang/en.php b/app/lang/en.php index 5fba8347c..c30eaf39d 100644 --- a/app/lang/en.php +++ b/app/lang/en.php @@ -71,6 +71,7 @@ return [ 'params_error_tips' => 'Parameter configuration error', 'config_fun_not_exist_tips' => 'Configuration method is not defined', 'delete_confirm_tips' => 'Cannot recover after deletion. Are you sure?', + 'remove_confirm_tips' => 'After removal, it cannot be restored. Are you sure to continue?', 'operate_confirm_tips' => 'Cannot recover after operation. Are you sure to continue?', 'window_close_confirm_tips' => 'Are you sure you want to close this page?', 'fullscreen_open_name' => 'Enable full screen', @@ -436,11 +437,13 @@ return [ 'import_title' => 'Import', 'export_title' => 'Export', 'images_title' => 'Images', + 'video_title' => 'Video', 'text_title' => 'Text', 'loading_title' => 'Loading', 'lan_title' => 'Longitude', 'lat_title' => 'Latitude', 'lang_title' => 'Language', + 'color_title' => 'Color', 'continue_scan_title' => 'ContinueScan', // 商品基础相关 'goods_name' => 'Goods Name', @@ -565,6 +568,7 @@ return [ 'form_event_value_title' => 'Event Value', 'form_event_value_message' => 'Event value can be up to 255 characters', 'form_bg_color_title' => 'Background Color', + 'form_bg_color_message' => 'Please select a background color', 'form_time_valid_title' => 'Valid Time', 'form_time_start_title' => 'Start Time', 'form_time_start_message' => 'Please select the start time', @@ -601,6 +605,7 @@ return [ 'confirm_confirm_tips' => 'It cannot be recovered after confirmation. Are you sure to continue?', 'cancel_confirm_tips' => 'Cannot recover after cancellation. Are you sure to continue?', 'delete_confirm_tips' => 'Cannot recover after deletion. Are you sure?', + 'remove_confirm_tips' => 'After removal, it cannot be restored. Are you sure to continue?', 'operate_confirm_tips' => 'Cannot recover after operation. Are you sure to continue?', 'install_confirm_tips' => 'Proceed with the installation. Are you sure to continue?', 'uninstall_confirm_tips' => 'It cannot be recovered after uninstallation. Are you sure to continue?', @@ -627,10 +632,9 @@ return [ 'type' => 'mini', 'name' => 'Internal page (applet/APP internal address)', 'item' => [ - '1. Internal address of applet or APP', - '2. The applet starts with/pages', - '3. For example:/pages/user/user', - '4. Support with parameters ?x=xx', + '1. The applet starts with/pages', + '2. For example:/pages/user/user', + '3. Support with parameters ?x=xx', ], 'tips' => 'Applet page address configuration instructions', ], @@ -2288,6 +2292,314 @@ return [ ], ], + // -------------------- 可视化设计 -------------------- + 'layout' => [ + // 边线样式类型 + 'border_style_type_list' => [ + 'solid' => 'Solid', + 'dashed' => 'Dashed', + 'dotted' => 'Dotted', + 'double' => 'Double', + ], + // 商品样式类型 + 'goods_view_list_show_style' => [ + 'routine' => 'General mode', + 'leftright' => 'Left and right', + 'rolling' => 'Scroll mode', + ], + // 多图样式类型 + 'many_images_view_list_show_style' => [ + 'routine' => 'Rotation mode', + 'rolling' => 'Scroll mode', + 'list' => 'List Mode', + ], + // 图文样式类型 + 'images_text_view_list_show_style' => [ + 'updown' => 'Below', + 'leftright' => 'Left and right', + 'rolling' => 'Scroll mode', + ], + // 图片魔方样式类型 + 'images_magic_cube_view_list_show_style' => [ + 'g1' => '1 Figure', + 'v2' => '2 Vertical Figure', + 'v3' => '3 Vertical Figure', + 'v4' => '4 Vertical Figure', + 'h2' => '2 Horizontal Figure', + 'h3' => '3 Horizontal Figure', + 'h4' => '4 Horizontal Figure', + 'lr12' => '1 Left Right 2', + 'lr13' => '1 Left Right 3', + 'lr21' => '2 Left Right 1', + 'lr31' => '3 Left Right 1', + 'tb12' => '1 Up and Down 2', + 'tb13' => '1 Up and Down 3', + 'tb21' => '2 Up and Down 1', + 'tb31' => '3 Up and Down 1', + 'lrv2h2' => '2 Vertical, Left, Right, Horizontal 2', + 'lrh2v2' => '2 Horizontal, Left, Right, and Vertical 2', + 'g4' => '4 Figure', + ], + // 基础 + 'base_goods_category_empty_tips' => 'The product category id is empty', + 'base_goods_id_empty_tips' => 'Product ID is empty', + 'base_goods_empty_tips' => 'No product information', + 'base_data_type_not_handle_tips' => 'Data type not processed', + 'base_module_not_config_tips' => 'Module not configured', + // 页面-系统基础 + 'page_system_title' => 'System page', + 'page_goods_category' => 'All product categories', + 'page_goods_search' => 'Product Search', + 'page_goods_search_tips' => 'Can have parameters (keywords, product classification ID, brand ID)', + 'page_goods' => 'Single item', + 'page_cart' => 'Shopping Cart', + 'page_user_center' => 'User Center', + 'page_user_order_list' => 'My Order', + 'page_user_order_aftersale_list' => 'Order AfterSales', + 'page_user_goods_favor_list' => 'Product Favor', + 'page_user_address_list' => 'My Address', + 'page_user_goods_browse_list' => 'My Tracks', + 'page_user_integral_list' => 'My Points', + 'page_user_message_list' => 'My Message', + 'page_user_answer_list' => 'Q&A/Message', + // 页面-扩展模块 + 'page_plugins_title' => 'Expansion module', + // 页面 + 'view_goods_category_choice_title' => 'The product category you currently selected is:', + 'view_goods_category_empty_tips' => 'No product classification', + 'view_module_container_tips' => 'Module Content Area', + 'view_show_model_title' => 'Show mode', + 'view_show_model_not_choice_tips' => 'Please select a presentation mode first', + 'view_media_fixed_width_title' => 'Container width', + 'view_media_fixed_width_message' => 'Please enter a number with a container width of up to 6000', + 'view_media_fixed_height_title' => 'Container height', + 'view_media_fixed_height_message' => 'Please enter a number for the container height and a maximum of 6000', + 'view_media_fixed_border_radius_title' => 'Radius', + 'view_media_fixed_border_radius_message' => 'Please enter a number with rounded corners and a maximum of 1000', + 'view_media_fixed_border_style_title' => 'Edge Type', + 'view_media_fixed_border_style_message' => 'Please select an edge type', + 'view_media_fixed_border_width_title' => 'Edge Size', + 'view_media_fixed_border_width_message' => 'Please enter a number with a maximum margin of 100', + 'view_media_fixed_border_placeholder' => 'Outer', + 'view_media_fixed_border_color_title' => 'Border Color', + 'view_media_fixed_border_color_message' => 'Please select a border color', + 'view_media_fixed_margin_title' => 'Margin', + 'view_media_fixed_margin_message' => 'Please enter a number with an outer margin of up to 100', + 'view_media_fixed_padding_title' => 'Padding', + 'view_media_fixed_padding_message' => 'Please enter a number with an inner margin of up to 100', + 'view_media_fixed_mouse_hover_images_amplify_title' => 'Mouse over image to zoom in', + 'view_media_fixed_width_100_title' => 'Width 100%', + 'view_media_fixed_height_100_title' => 'Height 100%', + 'view_media_fixed_center_title' => 'Center or not', + 'view_media_fixed_cover_title' => 'Whether the container is fully paved', + 'view_media_fixed_four_sides_top' => 'Top', + 'view_media_fixed_four_sides_right' => 'Right', + 'view_media_fixed_four_sides_bottom' => 'Bottom', + 'view_media_fixed_four_sides_left' => 'Left', + 'view_media_fixed_four_sides_tips' => 'Top -> Right -> Bottom -> Left', + // 行展示配置 + 'view_show_row_number_title' => 'Line display quantity', + 'view_show_row_number_sm_placeholder' => 'Small screen', + 'view_show_row_number_sm_message' => 'Small screen up to 12', + 'view_show_row_number_md_placeholder' => 'Medium screen', + 'view_show_row_number_md_message' => 'Medium screen maximum 12', + 'view_show_row_number_lg_placeholder' => 'Large screen', + 'view_show_row_number_lg_message' => 'Large screen up to 12', + // 地址选择页面 + 'view_pages_tabs_system_title' => 'System page', + 'view_pages_tabs_plugins_title' => 'Expansion module', + 'view_pages_tabs_custom_title' => 'Custom Links', + 'view_pages_tabs_custom_tips' => [ + [ + 'type' => 'web', + 'name' => 'WEB terminal', + 'item' => [ + '1. Start with http', + '2. If a web page is used in an applet, it is necessary to add a whitelist in the background of the applet', + ] + ], + [ + 'type' => 'mini', + 'name' => 'Internal page (applet/APP internal address)', + 'item' => [ + '1. The applet starts with /pages', + '2. For example: /pages/user/user', + '3. Support with parameters ?x=xx', + ], + 'tips' => 'Applet page address configuration instructions', + ], + [ + 'type' => 'out-mini', + 'name' => 'Open external applet', + 'item' => [ + '1. Starts with appid://', + '2. For example: appid://wx88888888', + ] + ], + [ + 'type' => 'tel', + 'name' => 'Making phone calls', + 'item' => [ + '1. Starts with tel://', + '2. For example: tel://wx13222222222', + ] + ], + [ + 'type' => 'map', + 'name' => 'Jump to the native map to view the specified location', + 'item' => [ + '1. Start with map://', + '2. For example: map://name|address|longitude|latitude', + '3. Example: map://ShopXO|No. XXX, Zhangjiang High tech Park, Pudong New Area, Shanghai|121.626444|31.20843', + ] + ], + ], + // 滚动配置 + 'view_module_rolling_config_item_width' => 'Data item width', + 'view_module_rolling_config_item_width_tips' => 'Default 200', + 'view_module_rolling_config_item_width_message' => 'Maximum data item width 600', + 'view_module_rolling_config_item_margin' => 'Data item spacing', + 'view_module_rolling_config_item_margin_message' => 'Maximum data item spacing 100', + 'view_module_rolling_config_is_auto_play' => 'Whether to automatically play', + 'view_module_rolling_config_is_nav_dot' => 'Show navigation points', + // 关键字信息 + 'view_module_title_keywords' => 'Keywords', + 'view_module_title_keywords_tips' => 'Not displayed under small screen', + 'view_module_title_keywords_message' => 'Please fill in the keyword and format with 1 to 8 characters', + 'view_module_title_keywords_add' => 'Add Keyword', + // 指向url地址信息 + 'view_module_title_url' => 'Link Address', + 'view_module_title_url_message' => 'Please select a jump link', + // 基础样式 + 'view_style_screen_md' => 'Medium screen style', + 'view_style_screen_sm' => 'Small screen style', + 'view_style_screen_lg' => 'Large screen style', + 'view_style_setup' => 'Style Settings', + 'view_style_content' => 'Content Styles', + 'view_style_images' => 'Picture Styles', + 'view_content_setup' => 'Content Settings', + 'view_content_custom_html' => 'Custom html code', + 'view_style_width_max_limit_value' => 'System standard width limit(1000px、1200px)', + 'view_style_height' => 'Height', + // 容器 + 'view_offcanvas_layout_base_title' => 'Base Style', + 'view_offcanvas_layout_background_images' => 'Background image', + 'view_offcanvas_layout_background_images_center' => 'Center', + 'view_offcanvas_layout_background_images_cover' => 'Cover', + 'view_offcanvas_layout_background_images_no_repeat' => 'NoRepeat', + // 商品模块 + 'view_offcanvas_module_goods_tabs_goods_title' => 'Choice Goods', + 'view_offcanvas_module_goods_tabs_category_title' => 'Choice Category', + 'view_offcanvas_module_goods_not_choice' => 'Please select a product', + 'view_offcanvas_module_goods_choice_tips' => 'Add up to 50 items', + 'view_offcanvas_module_goods_category_not_choice' => 'Please select a product category', + 'view_offcanvas_module_goods_sort_type' => 'Sort Type', + 'view_offcanvas_module_goods_sort_type_tips' => 'Default Synthesis', + 'view_offcanvas_module_goods_sort_type_message' => 'Please select a product sorting type', + 'view_offcanvas_module_goods_sort_type_alert' => 'Comprehensively: Heat ->Sales ->Latest Descending', + 'view_offcanvas_module_goods_sort_rule' => 'Collation', + 'view_offcanvas_module_goods_sort_rule_tips' => 'Default descending order(desc)', + 'view_offcanvas_module_goods_sort_rule_message' => 'Please select a collation', + 'view_offcanvas_module_goods_limit_number' => 'Product quantity', + 'view_offcanvas_module_goods_limit_number_message' => 'Maximum quantity of goods 50', + 'view_offcanvas_module_goods_style' => 'Product Style', + // 图片 + 'view_offcanvas_module_images' => 'Picture', + 'view_offcanvas_module_images_text_tips' => 'Image and title are required', + 'view_offcanvas_module_images_add' => 'Add Image Text', + // 图文 + 'view_offcanvas_module_images_text_font_size' => 'Size', + 'view_offcanvas_module_images_text_title' => 'Title', + 'view_offcanvas_module_images_text_margin_top' => 'Margin Top', + 'view_offcanvas_module_images_text_margin_right' => 'Margin Right', + 'view_offcanvas_module_images_text_margin_bottom' => 'Margin Bottom', + 'view_offcanvas_module_images_text_margin_left' => 'Margin Left', + 'view_offcanvas_module_images_text_position_left' => 'Left', + 'view_offcanvas_module_images_text_position_center' => 'Center', + 'view_offcanvas_module_images_text_position_right' => 'Right', + 'view_offcanvas_module_images_text_desc' => 'Desc', + 'view_offcanvas_module_images_text_margin_title_message' => 'Maximum outer margin of title: 1000', + 'view_offcanvas_module_images_text_margin_desc_message' => 'Description Outer Margin Max 1000', + 'view_offcanvas_module_images_text_title_font_size_message' => 'Title font maximum 1000', + 'view_offcanvas_module_images_text_desc_font_size_message' => 'Description font maximum 1000', + // 标题 + 'view_offcanvas_module_title_main_title' => 'Main Title', + 'view_offcanvas_module_title_main_title_message' => 'The main title can have a maximum of 1 to 8 characters', + 'view_offcanvas_module_title_vice_title' => 'Subtitle', + 'view_offcanvas_module_title_vice_title_message' => 'Subtitle up to 16 characters', + 'view_offcanvas_module_title_right' => 'Right button', + 'view_offcanvas_module_title_right_tips' => 'Empty does not display', + 'view_offcanvas_module_title_right_name' => 'Right button name', + 'view_offcanvas_module_title_right_name_message' => 'The right button name can have up to 4 characters', + // 视频 + 'view_offcanvas_module_video_images' => 'Cover Photo', + // 弹窗商品搜索 + 'view_popup_goods_search_tabs_brand' => 'Brand', + 'view_popup_goods_search_tabs_brand_message' => 'Please select a brand', + 'view_popup_goods_search_tabs_keywords' => 'Keywords', + 'view_popup_goods_search_tabs_other' => 'No conditions required', + 'view_popup_goods_search_keywords_tips' => 'Search keyword format: 1~30 characters', + 'view_popup_goods_search_other_tips' => 'Directly enter the search page without search criteria', + // 弹窗商品选择 + 'view_popup_goods_search_choice_category_not_choice' => 'Please select a product category', + 'view_popup_goods_search_choice_category_placeholder' => 'Category...', + 'view_popup_goods_search_choice_init_tips' => 'Please search for products', + // 页面基础 + 'view_base_tabs_list' => [ + 'structure' => 'Structure', + 'module' => 'Module', + ], + 'view_base_structure_list' => [ + '100' => '100%', + '6:6' => '6 : 6', + '8:4' => '8 : 4', + '4:8' => '4 : 8', + '9:3' => '9 : 3', + '3:9' => '3 : 9', + '6:3:3' => '6 : 3 : 3', + '3:6:3' => '3 : 6 : 3', + '3:3:6' => '3 : 3 : 6', + '4:4:4' => 'x 3', + '3:3:3:3' => 'x 4', + '2:2:2:2:2:2' => 'x 6', + ], + 'view_base_module_list' => [ + 'images' => 'Single Picture', + 'many-images' => 'Multigraph', + 'images-text' => 'Image & Text', + 'images-magic-cube' => 'Picture Rubiks Cube', + 'video' => 'Video', + 'goods' => 'Goods', + 'title' => 'Title', + 'custom' => 'Custom html', + 'border' => 'Border', + 'height' => 'Auxiliary Blank', + ], + 'view_base_custom_url_tips' => 'Please fill in at least one address', + 'view_base_show_modal_not_choice_tips' => 'Please select a data presentation mode', + 'view_base_show_modal_error_tips' => 'Incorrect display mode', + 'view_base_layout_container_tips' => 'Drag and drop the layout to this area and release the mouse', + 'view_base_before_choice_page_tips' => 'Please select a page first', + 'view_base_before_choice_url_position_tips' => 'Please select a link location first', + 'view_base_before_config_goods_search_tips' => 'Please configure product search first', + 'view_base_config_images_tips' => 'Please add a picture and configure it first', + 'view_base_url_not_set_tips' => 'Link address not set', + 'view_base_config_images_text_tips' => 'Please add images and text and configure them first', + 'view_base_upload_images_or_title_tips' => 'Image and title are required', + 'view_base_config_first_tips' => 'Please config', + 'view_base_module_tab_tips' => 'Incorrect module attribute', + 'view_base_module_attr_tips' => 'Incorrect module marking', + 'view_base_type_event_not_exist_tips' => 'Type event not defined', + 'view_base_module_assembly_not_exist_tips' => 'Module component not defined', + 'view_base_module_not_exist_tips' => 'Module not defined', + 'view_base_module_del_title' => 'Module Removal', + 'view_base_module_set_title' => 'Module Settings', + 'view_base_module_drag_title' => 'Drag and sort', + 'view_base_layout_del_title' => 'Layout Removal', + 'view_base_layout_set_title' => 'Layout Settings', + 'view_base_layout_content_set_tips' => 'Container Settings', + ], + // -------------------- 扩展模块 -------------------- 'common_extend' => [ // 基础 @@ -2324,7 +2636,7 @@ return [ ], // 百度 'baidu' => [ - 'mcrypt_no_support_tips' => 'mcrypt_module_open方法不支持', + 'mcrypt_no_support_tips' => 'mcrypt_module_open Method not supported', 'decrypt_error_tips' => 'Decryption failed', 'appkey_error_tips' => 'Appkey does not match', ], diff --git a/app/lang/zh.php b/app/lang/zh.php index d34fd350b..6869bcc3a 100755 --- a/app/lang/zh.php +++ b/app/lang/zh.php @@ -71,6 +71,7 @@ return [ 'params_error_tips' => '参数配置有误', 'config_fun_not_exist_tips' => '配置方法未定义', 'delete_confirm_tips' => '删除后不可恢复、确认操作吗?', + 'remove_confirm_tips' => '移除后不可恢复、确定继续吗?', 'operate_confirm_tips' => '操作后不可恢复、确认继续吗?', 'window_close_confirm_tips' => '您确定要关闭本页吗?', 'fullscreen_open_name' => '开启全屏', @@ -437,11 +438,13 @@ return [ 'import_title' => '导入', 'export_title' => '导出', 'images_title' => '图片', + 'video_title' => '视频', 'text_title' => '文本', 'loading_title' => '加载', 'lan_title' => '经度', 'lat_title' => '纬度', 'lang_title' => '语言', + 'color_title' => '颜色', 'continue_scan_title' => '继续扫码', // 商品基础相关 'goods_name' => '商品名称', @@ -566,6 +569,7 @@ return [ 'form_event_value_title' => '事件值', 'form_event_value_message' => '事件值最多255个字符', 'form_bg_color_title' => '背景色', + 'form_bg_color_message' => '请选择背景色', 'form_time_valid_title' => '有效时间', 'form_time_start_title' => '开始时间', 'form_time_start_message' => '请选择开始时间', @@ -602,6 +606,7 @@ return [ 'confirm_confirm_tips' => '确认后不可恢复、确定继续吗?', 'cancel_confirm_tips' => '取消后无法恢复、确定继续吗?', 'delete_confirm_tips' => '删除后无法恢复、确定继续吗?', + 'remove_confirm_tips' => '移除后不可恢复、确定继续吗?', 'operate_confirm_tips' => '操作后无法恢复、确认继续吗?', 'install_confirm_tips' => '进行安装操作、确定继续吗?', 'uninstall_confirm_tips' => '卸载后不可恢复、确认继续吗?', @@ -628,10 +633,9 @@ return [ 'type' => 'mini', 'name' => '内部页面(小程序/APP内部地址)', 'item' => [ - '1. 小程序或APP内部地址', - '2. 小程序以/pages开始', - '3. 例如:/pages/user/user', - '4. 支持带参数 ?x=xx', + '1. 小程序以/pages开始', + '2. 例如:/pages/user/user', + '3. 支持带参数 ?x=xx', ], 'tips' => '小程序页面地址配置说明', ], @@ -2293,6 +2297,314 @@ return [ ], ], + // -------------------- 可视化设计 -------------------- + 'layout' => [ + // 边线样式类型 + 'border_style_type_list' => [ + 'solid' => '实线', + 'dashed' => '虚线', + 'dotted' => '点状', + 'double' => '双线', + ], + // 商品样式类型 + 'goods_view_list_show_style' => [ + 'routine' => '常规模式', + 'leftright' => '左图右文', + 'rolling' => '滚动模式', + ], + // 多图样式类型 + 'many_images_view_list_show_style' => [ + 'routine' => '轮播模式', + 'rolling' => '滚动模式', + 'list' => '列表模式', + ], + // 图文样式类型 + 'images_text_view_list_show_style' => [ + 'updown' => '上图下文', + 'leftright' => '左图右文', + 'rolling' => '滚动模式', + ], + // 图片魔方样式类型 + 'images_magic_cube_view_list_show_style' => [ + 'g1' => '1图', + 'v2' => '2竖图', + 'v3' => '3竖图', + 'v4' => '4竖图', + 'h2' => '2横图', + 'h3' => '3横图', + 'h4' => '4横图', + 'lr12' => '1左右2', + 'lr13' => '1左右3', + 'lr21' => '2左右1', + 'lr31' => '3左右1', + 'tb12' => '1上下2', + 'tb13' => '1上下3', + 'tb21' => '2上下1', + 'tb31' => '3上下1', + 'lrv2h2' => '2竖左右横2', + 'lrh2v2' => '2横左右竖2', + 'g4' => '4图', + ], + // 基础 + 'base_goods_category_empty_tips' => '商品分类id为空', + 'base_goods_id_empty_tips' => '商品id为空', + 'base_goods_empty_tips' => '无商品信息', + 'base_data_type_not_handle_tips' => '数据类型未处理', + 'base_module_not_config_tips' => '模块未配置', + // 页面-系统基础 + 'page_system_title' => '系统页面', + 'page_goods_category' => '全部商品分类', + 'page_goods_search' => '商品搜索', + 'page_goods_search_tips' => '可带参数(关键字、商品分类id、品牌id)', + 'page_goods' => '单一商品', + 'page_cart' => '购物车', + 'page_user_center' => '用户中心', + 'page_user_order_list' => '我的订单', + 'page_user_order_aftersale_list' => '订单售后', + 'page_user_goods_favor_list' => '商品收藏', + 'page_user_address_list' => '我的地址', + 'page_user_goods_browse_list' => '我的足迹', + 'page_user_integral_list' => '我的积分', + 'page_user_message_list' => '我的消息', + 'page_user_answer_list' => '问答/留言', + // 页面-扩展模块 + 'page_plugins_title' => '扩展模块', + // 页面 + 'view_goods_category_choice_title' => '您当前选择的商品类别是:', + 'view_goods_category_empty_tips' => '无商品分类', + 'view_module_container_tips' => '模块内容区域', + 'view_show_model_title' => '展示模式', + 'view_show_model_not_choice_tips' => '请先选择展示模式', + 'view_media_fixed_width_title' => '容器宽度', + 'view_media_fixed_width_message' => '请输入容器宽度、最大6000的数字', + 'view_media_fixed_height_title' => '容器高度', + 'view_media_fixed_height_message' => '请输入容器高度、最大6000的数字', + 'view_media_fixed_border_radius_title' => '圆角', + 'view_media_fixed_border_radius_message' => '请输入圆角、最大1000的数字', + 'view_media_fixed_border_style_title' => '边线类型', + 'view_media_fixed_border_style_message' => '请选择边线类型', + 'view_media_fixed_border_width_title' => '边线大小', + 'view_media_fixed_border_width_message' => '请输入边线、边线最大100的数字', + 'view_media_fixed_border_placeholder' => '边线', + 'view_media_fixed_border_color_title' => '边线颜色', + 'view_media_fixed_border_color_message' => '请选择边线颜色', + 'view_media_fixed_margin_title' => '外边距', + 'view_media_fixed_margin_message' => '请输入外边距、最大100的数字', + 'view_media_fixed_padding_title' => '外边距', + 'view_media_fixed_padding_message' => '请输入内边距、最大100的数字', + 'view_media_fixed_mouse_hover_images_amplify_title' => '鼠标悬停图片上方放大', + 'view_media_fixed_width_100_title' => '是否宽度100%', + 'view_media_fixed_height_100_title' => '是否高度100%', + 'view_media_fixed_center_title' => '是否居中', + 'view_media_fixed_cover_title' => '是否铺满容器', + 'view_media_fixed_four_sides_top' => '上', + 'view_media_fixed_four_sides_right' => '右', + 'view_media_fixed_four_sides_bottom' => '下', + 'view_media_fixed_four_sides_left' => '左', + 'view_media_fixed_four_sides_tips' => '上 -> 右 -> 下 -> 左', + // 行展示配置 + 'view_show_row_number_title' => '行展示数量', + 'view_show_row_number_sm_placeholder' => '小屏', + 'view_show_row_number_sm_message' => '小屏最大12', + 'view_show_row_number_md_placeholder' => '中屏', + 'view_show_row_number_md_message' => '中屏最大12', + 'view_show_row_number_lg_placeholder' => '大屏', + 'view_show_row_number_lg_message' => '大屏最大12', + // 地址选择页面 + 'view_pages_tabs_system_title' => '系统页面', + 'view_pages_tabs_plugins_title' => '扩展模块', + 'view_pages_tabs_custom_title' => '自定义链接', + 'view_pages_tabs_custom_tips' => [ + [ + 'type' => 'web', + 'name' => 'WEB端', + 'item' => [ + '1. 以http开头', + '2. 如小程序中使用WEB页面、需要在小程序后台加入白名单', + ] + ], + [ + 'type' => 'mini', + 'name' => '内部页面(小程序/APP内部地址)', + 'item' => [ + '1. 小程序以/pages开始', + '2. 例如:/pages/user/user', + '3. 支持带参数 ?x=xx', + ], + 'tips' => '小程序页面地址配置说明', + ], + [ + 'type' => 'out-mini', + 'name' => '打开外部小程序', + 'item' => [ + '1. 以appid://开头', + '2. 例如:appid://wx88888888', + ] + ], + [ + 'type' => 'tel', + 'name' => '拨打电话', + 'item' => [ + '1. 以tel://开头', + '2. 例如:tel://wx13222222222', + ] + ], + [ + 'type' => 'map', + 'name' => '跳转原生地图查看指定位置', + 'item' => [ + '1. 以map://开头', + '2. 例如:map://名称|地址|经度|纬度', + '3. 示例:map://ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843', + ] + ], + ], + // 滚动配置 + 'view_module_rolling_config_item_width' => '数据项宽度', + 'view_module_rolling_config_item_width_tips' => '默认200', + 'view_module_rolling_config_item_width_message' => '数据项宽度最大600', + 'view_module_rolling_config_item_margin' => '数据项间距', + 'view_module_rolling_config_item_margin_message' => '数据项间距最大100', + 'view_module_rolling_config_is_auto_play' => '是否自动播放', + 'view_module_rolling_config_is_nav_dot' => '展示导航点', + // 关键字信息 + 'view_module_title_keywords' => '关键字', + 'view_module_title_keywords_tips' => '小屏下不显示', + 'view_module_title_keywords_message' => '请填写关键字、格式1~8个字符', + 'view_module_title_keywords_add' => '添加关键字', + // 指向url地址信息 + 'view_module_title_url' => '链接地址', + 'view_module_title_url_message' => '请选择跳转链接', + // 基础样式 + 'view_style_screen_md' => '中屏样式', + 'view_style_screen_sm' => '小屏样式', + 'view_style_screen_lg' => '大屏样式', + 'view_style_setup' => '样式设置', + 'view_style_content' => '内容样式', + 'view_style_images' => '图片样式', + 'view_content_setup' => '内容设置', + 'view_content_custom_html' => '自定义html代码', + 'view_style_width_max_limit_value' => '系统标准限宽(1000px、1200px)', + 'view_style_height' => '高度', + // 容器 + 'view_offcanvas_layout_base_title' => '基础样式', + 'view_offcanvas_layout_background_images' => '背景图', + 'view_offcanvas_layout_background_images_center' => '居中', + 'view_offcanvas_layout_background_images_cover' => '铺满', + 'view_offcanvas_layout_background_images_no_repeat' => '不重复', + // 商品模块 + 'view_offcanvas_module_goods_tabs_goods_title' => '选择商品', + 'view_offcanvas_module_goods_tabs_category_title' => '选择分类', + 'view_offcanvas_module_goods_not_choice' => '请选择商品', + 'view_offcanvas_module_goods_choice_tips' => '最多添加50件商品', + 'view_offcanvas_module_goods_category_not_choice' => '请选择商品分类', + 'view_offcanvas_module_goods_sort_type' => '排序类型', + 'view_offcanvas_module_goods_sort_type_tips' => '默认综合', + 'view_offcanvas_module_goods_sort_type_message' => '请选择商品排序类型', + 'view_offcanvas_module_goods_sort_type_alert' => '综合为:热度->销量->最新 进行 降序(desc)排序', + 'view_offcanvas_module_goods_sort_rule' => '排序规则', + 'view_offcanvas_module_goods_sort_rule_tips' => '默认降序(desc)', + 'view_offcanvas_module_goods_sort_rule_message' => '请选择排序规则', + 'view_offcanvas_module_goods_limit_number' => '商品数量', + 'view_offcanvas_module_goods_limit_number_message' => '商品数量最大50', + 'view_offcanvas_module_goods_style' => '商品样式', + // 图片 + 'view_offcanvas_module_images' => '图片', + 'view_offcanvas_module_images_text_tips' => '图片和标题必填一项', + 'view_offcanvas_module_images_add' => '添加图文', + // 图文 + 'view_offcanvas_module_images_text_font_size' => '大小', + 'view_offcanvas_module_images_text_title' => '标题', + 'view_offcanvas_module_images_text_margin_top' => '外上', + 'view_offcanvas_module_images_text_margin_right' => '外右', + 'view_offcanvas_module_images_text_margin_bottom' => '外下', + 'view_offcanvas_module_images_text_margin_left' => '外左', + 'view_offcanvas_module_images_text_position_left' => '居左', + 'view_offcanvas_module_images_text_position_center' => '居中', + 'view_offcanvas_module_images_text_position_right' => '居右', + 'view_offcanvas_module_images_text_desc' => '描述', + 'view_offcanvas_module_images_text_margin_title_message' => '标题外边距最大1000', + 'view_offcanvas_module_images_text_margin_desc_message' => '描述外边距最大1000', + 'view_offcanvas_module_images_text_title_font_size_message' => '标题字体最大1000', + 'view_offcanvas_module_images_text_desc_font_size_message' => '描述字体最大1000', + // 标题 + 'view_offcanvas_module_title_main_title' => '主标题', + 'view_offcanvas_module_title_main_title_message' => '主标题最多1~8个字符', + 'view_offcanvas_module_title_vice_title' => '副标题', + 'view_offcanvas_module_title_vice_title_message' => '副标题最多16个字符', + 'view_offcanvas_module_title_right' => '右侧按钮', + 'view_offcanvas_module_title_right_tips' => '空则不显示', + 'view_offcanvas_module_title_right_name' => '右侧按钮名称', + 'view_offcanvas_module_title_right_name_message' => '右侧按钮名称最多4个字符', + // 视频 + 'view_offcanvas_module_video_images' => '封面图片', + // 弹窗商品搜索 + 'view_popup_goods_search_tabs_brand' => '品牌', + 'view_popup_goods_search_tabs_brand_message' => '请选择品牌', + 'view_popup_goods_search_tabs_keywords' => '关键字', + 'view_popup_goods_search_tabs_other' => '无需条件', + 'view_popup_goods_search_keywords_tips' => '搜索关键字格式1~30个字符', + 'view_popup_goods_search_other_tips' => '无需搜索条件、直接进入搜索页面', + // 弹窗商品选择 + 'view_popup_goods_search_choice_category_not_choice' => '请选择商品分类', + 'view_popup_goods_search_choice_category_placeholder' => '分类...', + 'view_popup_goods_search_choice_init_tips' => '请搜索商品', + // 页面基础 + 'view_base_tabs_list' => [ + 'structure' => '布局', + 'module' => '模块', + ], + 'view_base_structure_list' => [ + '100' => '100%', + '6:6' => '6 : 6', + '8:4' => '8 : 4', + '4:8' => '4 : 8', + '9:3' => '9 : 3', + '3:9' => '3 : 9', + '6:3:3' => '6 : 3 : 3', + '3:6:3' => '3 : 6 : 3', + '3:3:6' => '3 : 3 : 6', + '4:4:4' => 'x 3', + '3:3:3:3' => 'x 4', + '2:2:2:2:2:2' => 'x 6', + ], + 'view_base_module_list' => [ + 'images' => '单图', + 'many-images' => '多图', + 'images-text' => '图文', + 'images-magic-cube' => '图片魔方', + 'video' => '视频', + 'goods' => '商品', + 'title' => '标题', + 'custom' => '自定义html', + 'border' => '辅助线', + 'height' => '辅助空白', + ], + 'view_base_custom_url_tips' => '请至少填写一个地址', + 'view_base_show_modal_not_choice_tips' => '请选择数据展示模式', + 'view_base_show_modal_error_tips' => '展示模式有误', + 'view_base_layout_container_tips' => '布局拖放到该区域松开鼠标即可', + 'view_base_before_choice_page_tips' => '请先选择页面', + 'view_base_before_choice_url_position_tips' => '请先选择链接位置', + 'view_base_before_config_goods_search_tips' => '请先配置商品搜索', + 'view_base_config_images_tips' => '请先添加图片并配置', + 'view_base_url_not_set_tips' => '未设置链接地址', + 'view_base_config_images_text_tips' => '请先添加图文并配置', + 'view_base_upload_images_or_title_tips' => '图片和标题必填一项', + 'view_base_config_first_tips' => '请配置', + 'view_base_module_tab_tips' => '模块属性有误', + 'view_base_module_attr_tips' => '模块标记有误', + 'view_base_type_event_not_exist_tips' => '类型事件未定义', + 'view_base_module_assembly_not_exist_tips' => '模块组件未定义', + 'view_base_module_not_exist_tips' => '模块未定义', + 'view_base_module_del_title' => '模块移除', + 'view_base_module_set_title' => '模块设置', + 'view_base_module_drag_title' => '拖拽排序', + 'view_base_layout_del_title' => '布局移除', + 'view_base_layout_set_title' => '布局设置', + 'view_base_layout_content_set_tips' => '容器设置', + ], + // -------------------- 扩展模块 -------------------- 'common_extend' => [ // 基础 diff --git a/app/layout/service/BaseLayout.php b/app/layout/service/BaseLayout.php index 30f0fd6db..42a748142 100644 --- a/app/layout/service/BaseLayout.php +++ b/app/layout/service/BaseLayout.php @@ -25,56 +25,72 @@ use app\service\GoodsCategoryService; */ class BaseLayout { - // 边线样式类型 - public static $border_style_type_list = [ - 'solid' => '实线', - 'dashed' => '虚线', - 'dotted' => '点状', - 'double' => '双线', - ]; - - // 商品样式类型 - public static $goods_view_list_show_style = [ - 'routine' => '常规模式', - 'leftright' => '左图右文', - 'rolling' => '滚动模式', - ]; - - // 多图样式类型 - public static $many_images_view_list_show_style = [ - 'routine' => '轮播模式', - 'rolling' => '滚动模式', - 'list' => '列表模式', - ]; - - // 图文样式类型 - public static $images_text_view_list_show_style = [ - 'updown' => '上图下文', - 'leftright' => '左图右文', - 'rolling' => '滚动模式', - ]; - - // 图片魔方样式类型 - public static $images_magic_cube_view_list_show_style = [ - 'g1' => '1图', - 'v2' => '2竖图', - 'v3' => '3竖图', - 'v4' => '4竖图', - 'h2' => '2横图', - 'h3' => '3横图', - 'h4' => '4横图', - 'lr12' => '1左右2', - 'lr13' => '1左右3', - 'lr21' => '2左右1', - 'lr31' => '3左右1', - 'tb12' => '1上下2', - 'tb13' => '1上下3', - 'tb21' => '2上下1', - 'tb31' => '3上下1', - 'lrv2h2'=> '2竖左右横2', - 'lrh2v2'=> '2横左右竖2', - 'g4' => '4图', - ]; + /** + * 静态配置数据 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2023-03-23 + * @desc description + * @param [string] $key [配置key] + */ + public static function ConstConfigData($key) + { + $lang_border = MyLang('layout.border_style_type_list'); + $lang_goods_view = MyLang('layout.goods_view_list_show_style'); + $lang_many_images_view = MyLang('layout.many_images_view_list_show_style'); + $lang_images_text_view = MyLang('layout.images_text_view_list_show_style'); + $lang_images_magic_cube_view = MyLang('layout.images_magic_cube_view_list_show_style'); + $data = [ + // 边线样式类型 + 'border_style_type_list' => [ + 'solid' => $lang_border['solid'], + 'dashed' => $lang_border['dashed'], + 'dotted' => $lang_border['dotted'], + 'double' => $lang_border['double'], + ], + // 商品样式类型 + 'goods_view_list_show_style' => [ + 'routine' => $lang_goods_view['routine'], + 'leftright' => $lang_goods_view['leftright'], + 'rolling' => $lang_goods_view['rolling'], + ], + // 多图样式类型 + 'many_images_view_list_show_style' => [ + 'routine' => $lang_many_images_view['routine'], + 'rolling' => $lang_many_images_view['rolling'], + 'list' => $lang_many_images_view['list'], + ], + // 图文样式类型 + 'images_text_view_list_show_style' => [ + 'updown' => $lang_images_text_view['updown'], + 'leftright' => $lang_images_text_view['leftright'], + 'rolling' => $lang_images_text_view['rolling'], + ], + // 图片魔方样式类型 + 'images_magic_cube_view_list_show_style' => [ + 'g1' => $lang_images_magic_cube_view['g1'], + 'v2' => $lang_images_magic_cube_view['v2'], + 'v3' => $lang_images_magic_cube_view['v3'], + 'v4' => $lang_images_magic_cube_view['v4'], + 'h2' => $lang_images_magic_cube_view['h2'], + 'h3' => $lang_images_magic_cube_view['h4'], + 'h4' => $lang_images_magic_cube_view['lr12'], + 'lr12' => $lang_images_magic_cube_view['lr13'], + 'lr13' => $lang_images_magic_cube_view['lr13'], + 'lr21' => $lang_images_magic_cube_view['lr21'], + 'lr31' => $lang_images_magic_cube_view['lr31'], + 'tb12' => $lang_images_magic_cube_view['tb12'], + 'tb13' => $lang_images_magic_cube_view['tb13'], + 'tb21' => $lang_images_magic_cube_view['tb21'], + 'tb31' => $lang_images_magic_cube_view['tb31'], + 'lrv2h2'=> $lang_images_magic_cube_view['lrv2h2'], + 'lrh2v2'=> $lang_images_magic_cube_view['lrh2v2'], + 'g4' => $lang_images_magic_cube_view['g4'], + ], + ]; + return isset($data[$key]) ? $data[$key] : []; + } /** * 配置处理-保存 @@ -650,43 +666,6 @@ class BaseLayout 'user_integral_list' => MyUrl('index/userintegral/index'), 'user_answer_list' => MyUrl('index/answer/index'), 'user_message_list' => MyUrl('index/message/index'), - - // 多商户 - 'plugins-blog-home' => PluginsHomeUrl('blog', 'index', 'index'), - 'plugins-blog-favor' => PluginsHomeUrl('blog', 'shopfavor', 'index'), - - // 博客 - 'plugins-blog-home' => PluginsHomeUrl('blog', 'index', 'index'), - 'plugins-blog-search' => PluginsHomeUrl('blog', 'index', 'search'), - - // 品牌 - 'plugins-brand-home' => PluginsHomeUrl('brand', 'index', 'index'), - - // 优惠券 - 'plugins-coupon-home' => PluginsHomeUrl('coupon', 'index', 'index'), - 'plugins-coupon-user' => PluginsHomeUrl('coupon', 'coupon', 'index'), - - // 会员等级 - 'plugins-membershiplevelvip-home' => PluginsHomeUrl('membershiplevelvip', 'index', 'index'), - 'plugins-membershiplevelvip-user-center' => PluginsHomeUrl('membershiplevelvip', 'vip', 'index'), - 'plugins-membershiplevelvip-user-poster' => PluginsHomeUrl('membershiplevelvip', 'poster', 'index'), - - // 分销 - 'plugins-distribution-user-center' => PluginsHomeUrl('distribution', 'index', 'index'), - 'plugins-distribution-user-poster' => PluginsHomeUrl('distribution', 'poster', 'index'), - - // 发票 - 'plugins-invoice-user' => PluginsHomeUrl('invoice', 'user', 'index'), - 'plugins-invoice-order' => PluginsHomeUrl('invoice', 'order', 'index'), - - // 积分商城 - 'plugins-points-home' => PluginsHomeUrl('points', 'index', 'index'), - - // 钱包 - 'plugins-wallet-user' => PluginsHomeUrl('wallet', 'wallet', 'index'), - - // 签到 - 'plugins-signin-user' => PluginsHomeUrl('signin', 'userqrcode', 'index'), ]; // 静态地址定义-手机端 @@ -703,49 +682,20 @@ class BaseLayout 'user_integral_list' => '/pages/user-integral/user-integral', 'user_answer_list' => '/pages/user-answer-list/user-answer-list', 'user_message_list' => '/pages/message/message', - - // 多商户 - 'plugins-shop-home' => '/pages/plugins/shop/index/index', - 'plugins-shop-favor' => '/pages/plugins/shop/favor/favor', - - // 门店 - 'plugins-realstore-home' => '/pages/plugins/realstore/index/index', - 'plugins-realstore-favor' => '/pages/plugins/realstore/favor/favor', - - // 博客 - 'plugins-blog-home' => '/pages/plugins/blog/index/index', - 'plugins-blog-search' => '/pages/plugins/blog/search/search', - - // 品牌 - 'plugins-brand-home' => '/pages/plugins/brand/index/index', - - // 优惠券 - 'plugins-coupon-home' => '/pages/plugins/coupon/index/index', - 'plugins-coupon-user' => '/pages/plugins/coupon/user/user', - - // 会员等级 - 'plugins-membershiplevelvip-home' => '/pages/plugins/membershiplevelvip/index/index', - 'plugins-membershiplevelvip-user-center' => '/pages/plugins/membershiplevelvip/user/user', - 'plugins-membershiplevelvip-user-poster' => '/pages/plugins/membershiplevelvip/poster/poster', - - // 分销 - 'plugins-distribution-user-center' => '/pages/plugins/distribution/user/user', - 'plugins-distribution-user-poster' => '/pages/plugins/distribution/poster/poster', - - // 发票 - 'plugins-invoice-user' => '/pages/plugins/invoice/user/user', - 'plugins-invoice-order' => '/pages/plugins/invoice/order/order', - - // 积分商城 - 'plugins-points-home' => '/pages/plugins/points/index/index', - - // 钱包 - 'plugins-wallet-user' => '/pages/plugins/wallet/user/user', - - // 签到 - 'plugins-signin-user' => '/pages/plugins/signin/user/user', ]; + // url值处理前钩子 + $hook_name = 'plugins_layout_service_url_value_begin'; + MyEventTrigger($hook_name, [ + 'hook_name' => $hook_name, + 'is_backend' => true, + 'type' => $type, + 'value' => $value, + 'client_type' => $client_type, + 'static_url_web_arr' => &$static_url_web_arr, + 'static_url_app_arr' => &$static_url_app_arr, + ]); + // 静态地址 $url = ''; $static_url_arr = ($client_type == 'pc') ? $static_url_web_arr : $static_url_app_arr; @@ -926,7 +876,7 @@ class BaseLayout // 参数处理 if(empty($params['goods_ids'])) { - return DataReturn('商品id为空', -1); + return DataReturn(MyLang('layout.base_goods_id_empty_tips'), -1); } if(!is_array($params['goods_ids'])) { @@ -952,7 +902,7 @@ class BaseLayout // 参数处理 if(empty($params['category_id'])) { - return DataReturn('商品分类id为空', -1); + return DataReturn(MyLang('layout.base_goods_category_empty_tips'), -1); } // 排序处理 @@ -980,7 +930,7 @@ class BaseLayout break; default : - return DataReturn('数据类型未处理['.$params['data_type'].']', -1); + return DataReturn(MyLang('layout.base_data_type_not_handle_tips').'['.$params['data_type'].']', -1); } // 商品数据列表读取钩子 @@ -1042,7 +992,7 @@ class BaseLayout { return $ret; } - return DataReturn('无商品信息', -1); + return DataReturn(MyLang('layout.base_goods_empty_tips'), -1); } /** @@ -1060,215 +1010,29 @@ class BaseLayout $data = [ // 公共 'common' => [ - 'name' => '系统页面', + 'name' => MyLang('layout.page_system_title'), 'data' => [ - [ - 'value' => 'home', - 'name' => '商城首页', - ], - [ - 'value' => 'goods_category', - 'name' => '全部商品分类', - ], - [ - 'value' => 'goods_search', - 'name' => '商品搜索', - 'tips' => '可带参数(关键字、商品分类id、品牌id)', - ], - [ - 'value' => 'goods', - 'name' => '单一商品', - ], - [ - 'value' => 'cart', - 'name' => '购物车', - ], - [ - 'value' => 'user_center', - 'name' => '用户中心', - ], - [ - 'value' => 'user_order_list', - 'name' => '我的订单', - ], - [ - 'value' => 'user_order_aftersale_list', - 'name' => '订单售后', - ], - [ - 'value' => 'user_goods_favor_list', - 'name' => '商品收藏', - ], - [ - 'value' => 'user_address_list', - 'name' => '我的地址', - ], - [ - 'value' => 'user_goods_browse_list', - 'name' => '我的足迹', - ], - [ - 'value' => 'user_integral_list', - 'name' => '我的积分', - ], - [ - 'value' => 'user_message_list', - 'name' => '我的消息', - ], - [ - 'value' => 'user_answer_list', - 'name' => '问答/留言', - ], + [ 'value' => 'home', 'name' => MyLang('shop_home_title')], + [ 'value' => 'goods_category', 'name' => MyLang('layout.page_goods_category')], + [ 'value' => 'goods_search', 'name' => MyLang('layout.page_goods_search'), 'tips' => MyLang('layout.page_goods_search_tips')], + [ 'value' => 'goods', 'name' => MyLang('layout.page_goods')], + [ 'value' => 'cart', 'name' => MyLang('layout.page_cart')], + [ 'value' => 'user_center', 'name' => MyLang('layout.page_user_center')], + [ 'value' => 'user_order_list', 'name' => MyLang('layout.page_user_order_list')], + [ 'value' => 'user_order_aftersale_list', 'name' => MyLang('layout.page_user_order_aftersale_list')], + [ 'value' => 'user_goods_favor_list', 'name' => MyLang('layout.page_user_goods_favor_list')], + [ 'value' => 'user_address_list', 'name' => MyLang('layout.page_user_address_list')], + [ 'value' => 'user_goods_browse_list', 'name' => MyLang('layout.page_user_goods_browse_list')], + [ 'value' => 'user_integral_list', 'name' => MyLang('layout.page_user_integral_list')], + [ 'value' => 'user_message_list', 'name' => MyLang('layout.page_user_message_list')], + [ 'value' => 'user_answer_list', 'name' => MyLang('layout.page_user_answer_list')], ], ], // 插件 'plugins' => [ - 'name' => '扩展模块', - 'data' => [ - [ - 'name' => '多商户', - 'value' => 'shop', - 'data' => [ - [ - 'value' => 'home', - 'name' => '所有店铺', - ], - [ - 'value' => 'favor', - 'name' => '店铺收藏', - ], - ], - ], - [ - 'name' => '多门店', - 'value' => 'realstore', - 'data' => [ - [ - 'value' => 'home', - 'name' => '所有店铺', - ], - [ - 'value' => 'favor', - 'name' => '店铺收藏', - ], - ], - ], - [ - 'name' => '博客', - 'value' => 'blog', - 'data' => [ - [ - 'value' => 'home', - 'name' => '博客首页', - ], - [ - 'value' => 'search', - 'name' => '博客搜索', - ], - ], - ], - [ - 'name' => '品牌', - 'value' => 'brand', - 'data' => [ - [ - 'value' => 'home', - 'name' => '所有品牌', - ], - ], - ], - [ - 'name' => '优惠券', - 'value' => 'coupon', - 'data' => [ - [ - 'value' => 'home', - 'name' => '领券中心', - ], - [ - 'value' => 'user', - 'name' => '我的优惠券', - ], - ], - ], - [ - 'name' => '会员等级增强版', - 'value' => 'membershiplevelvip', - 'data' => [ - [ - 'value' => 'home', - 'name' => '会员首页', - ], - [ - 'value' => 'user-center', - 'name' => '会员中心', - ], - [ - 'value' => 'user-poster', - 'name' => '推广返利', - ], - ], - ], - [ - 'name' => '分销', - 'value' => 'distribution', - 'data' => [ - [ - 'value' => 'user-center', - 'name' => '分销中心', - ], - [ - 'value' => 'user-poster', - 'name' => '推广返利', - ], - ], - ], - [ - 'name' => '发票', - 'value' => 'invoice', - 'data' => [ - [ - 'value' => 'user', - 'name' => '我的发票', - ], - [ - 'value' => 'order', - 'name' => '订单开票', - ], - ], - ], - [ - 'name' => '积分商城', - 'value' => 'points', - 'data' => [ - [ - 'value' => 'home', - 'name' => '首页', - ], - ], - ], - [ - 'name' => '钱包', - 'value' => 'wallet', - 'data' => [ - [ - 'value' => 'user', - 'name' => '我的钱包', - ], - ], - ], - [ - 'name' => '签到', - 'value' => 'signin', - 'data' => [ - [ - 'value' => 'user', - 'name' => '我的签到', - ], - ], - ], - ], + 'name' => MyLang('layout.page_plugins_title'), + 'data' => [], ], ]; diff --git a/app/layout/view/base.html b/app/layout/view/base.html index a619e530b..2f8cf2506 100644 --- a/app/layout/view/base.html +++ b/app/layout/view/base.html @@ -1,45 +1,34 @@
- - - - - - - - - - - - + {{if is_array(MyLang('layout.view_base_structure_list'))}} + {{foreach :MyLang('layout.view_base_structure_list') as $k=>$v}} + + {{/foreach}} + {{/if}}
- - - - - - - - - - + {{if is_array(MyLang('layout.view_base_module_list'))}} + {{foreach :MyLang('layout.view_base_module_list') as $k=>$v}} + + {{/foreach}} + {{/if}}
@@ -47,58 +36,73 @@
{{if !empty($layout_data) and is_array($layout_data)}} {{foreach $layout_data as $k=>$v}} @@ -106,9 +110,9 @@
- - - + + +
{{foreach $v.children as $ks=>$vs}} @@ -125,7 +129,7 @@ {{/if}} {{/foreach}} {{else /}} -
布局拖放到该区域松开鼠标即可
+
{{:MyLang('layout.view_base_layout_container_tips')}}
{{/if}}
diff --git a/app/layout/view/public/common/goods_category_choice.html b/app/layout/view/public/common/goods_category_choice.html index 06e063ee4..ee7ace583 100644 --- a/app/layout/view/public/common/goods_category_choice.html +++ b/app/layout/view/public/common/goods_category_choice.html @@ -17,9 +17,9 @@

    - 您当前选择的商品类别是: + {{:MyLang('layout.view_goods_category_choice_title')}}

    {{else /}} -
    无商品分类
    +
    {{:MyLang('layout.view_goods_category_empty_tips')}}
    {{/if}} \ No newline at end of file diff --git a/app/layout/view/public/common/module_admin.html b/app/layout/view/public/common/module_admin.html index 4489c481d..b700d1da3 100644 --- a/app/layout/view/public/common/module_admin.html +++ b/app/layout/view/public/common/module_admin.html @@ -1,15 +1,15 @@
    - +
    {{if !empty($vs['children']) and is_array($vs['children'])}} {{foreach $vs.children as $kss=>$vss}}
    - - - + + +
    {{if !empty($vss['config'])}} @@ -577,7 +577,7 @@
    {{/foreach}} {{else /}} -
    模块内容区域
    +
    {{:MyLang('layout.view_module_container_tips')}}
    {{/if}}
    \ No newline at end of file diff --git a/app/layout/view/public/content/goods_show_style.html b/app/layout/view/public/content/goods_show_style.html index ebbf6b2fe..2d86ccb99 100644 --- a/app/layout/view/public/content/goods_show_style.html +++ b/app/layout/view/public/content/goods_show_style.html @@ -1,5 +1,5 @@
    - +
    {{foreach $goods_view_list_show_style as $k=>$v}}