多语言处理

This commit is contained in:
gongfuxiang 2023-01-19 17:44:03 +08:00
parent 46c0169a32
commit 30eadab1a9
212 changed files with 2815 additions and 1583 deletions

View File

@ -109,8 +109,8 @@ class Admin extends Common
// 模板数据
$assign = [
'id' => isset($params['id']) ? $params['id'] : 0,
'common_gender_list' => MyConst('common_gender_list'),
'common_admin_status_list' => MyConst('common_admin_status_list'),
'common_gender_list' => MyLang('common_gender_list'),
'common_admin_status_list' => MyLang('common_admin_status_list'),
];
// 角色

View File

@ -60,8 +60,8 @@ class Answer extends Base
// 模板数据
$assign = [
// 静态数据
'common_is_show_list' => MyConst('common_is_show_list'),
'common_is_text_list' => MyConst('common_is_text_list'),
'common_is_show_list' => MyLang('common_is_show_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
];
// 数据
$data = $this->data_detail;

View File

@ -62,8 +62,8 @@ class AppCenterNav extends Base
// 当前数据
'data' => $this->data_detail,
// 静态数据
'common_platform_type' => MyConst('common_platform_type'),
'common_app_event_type' => MyConst('common_app_event_type'),
'common_platform_type' => MyLang('common_platform_type'),
'common_app_event_type' => MyLang('common_app_event_type'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('app_center_nav'),

View File

@ -37,8 +37,8 @@ class AppConfig extends Base
// 配置数据
'data' => ConfigService::ConfigList(),
// 静态数据
'common_platform_type' => MyConst('common_platform_type'),
'common_is_text_list' => MyConst('common_is_text_list'),
'common_platform_type' => MyLang('common_platform_type'),
'common_is_text_list' => MyLang('common_is_text_list'),
];
// 导航/视图

View File

@ -62,8 +62,8 @@ class AppHomeNav extends Base
// 当前数据
'data' => $this->data_detail,
// 静态数据
'common_platform_type' => MyConst('common_platform_type'),
'common_app_event_type' => MyConst('common_app_event_type'),
'common_platform_type' => MyLang('common_platform_type'),
'common_app_event_type' => MyLang('common_app_event_type'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('app_nav'),

View File

@ -162,10 +162,10 @@ class Appmini extends Base
'store_theme_url' => StoreService::StoreThemeUrl(),
// 小程序平台
'common_appmini_type' => MyConst('common_appmini_type'),
'common_appmini_type' => MyLang('common_appmini_type'),
// 是否
'common_is_text_list' => MyConst('common_is_text_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
// 基础导航
'base_nav' => [

View File

@ -33,7 +33,7 @@ class ArticleCategory extends Base
public function Index()
{
// 是否启用
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
MyViewAssign('common_is_enable_list', MyLang('common_is_enable_list'));
return MyView();
}

View File

@ -61,7 +61,7 @@ class Brand extends Base
// 模板数据
$assign = [
// 静态数据
'common_is_enable_list' => MyConst('common_is_enable_list'),
'common_is_enable_list' => MyLang('common_is_enable_list'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('brand'),
];

View File

@ -33,7 +33,7 @@ class BrandCategory extends Base
public function Index()
{
// 是否启用
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
MyViewAssign('common_is_enable_list', MyLang('common_is_enable_list'));
return MyView();
}

View File

@ -149,7 +149,7 @@ class Common extends BaseController
{
if(IS_AJAX)
{
exit(json_encode(DataReturn('登录失效,请重新登录', -400)));
exit(json_encode(DataReturn(MyLang('login_failure_tips'), -400)));
} else {
die('<script type="text/javascript">if(self.frameElement && self.frameElement.tagName == "IFRAME"){parent.location.reload();}else{window.location.href="'.MyUrl('admin/admin/logininfo').'";}</script>');
}

View File

@ -35,13 +35,13 @@ class Config extends Base
// 模板数据
$assign = [
// 静态数据
'common_excel_charset_list' => MyConst('common_excel_charset_list'),
'common_excel_export_type_list' => MyConst('common_excel_export_type_list'),
'common_map_type_list' => MyConst('common_map_type_list'),
'common_is_enable_list' => MyConst('common_is_enable_list'),
'common_login_type_list' => MyConst('common_login_type_list'),
'common_close_open_list' => MyConst('common_close_open_list'),
'common_is_text_list' => MyConst('common_is_text_list'),
'common_excel_charset_list' => MyLang('common_excel_charset_list'),
'common_excel_export_type_list' => MyLang('common_excel_export_type_list'),
'common_map_type_list' => MyLang('common_map_type_list'),
'common_is_enable_list' => MyLang('common_is_enable_list'),
'common_login_type_list' => MyLang('common_login_type_list'),
'common_close_open_list' => MyLang('common_close_open_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
// 数据
'data' => ConfigService::ConfigList(),

View File

@ -101,8 +101,8 @@ class Design extends Base
'images_magic_cube_view_list_show_style' => BaseLayout::$images_magic_cube_view_list_show_style,
// 首页商品排序规则
'goods_order_by_type_list' => MyConst('goods_order_by_type_list'),
'goods_order_by_rule_list' => MyConst('goods_order_by_rule_list'),
'goods_order_by_type_list' => MyLang('goods_order_by_type_list'),
'goods_order_by_rule_list' => MyLang('goods_order_by_rule_list'),
// 加载布局样式+管理
'is_load_layout' => 1,

View File

@ -37,7 +37,7 @@ class Email extends Base
$assign = [
// 静态数据
'common_is_text_list' => MyConst('common_is_text_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
// 配置信息
'data' => ConfigService::ConfigList(),

View File

@ -36,7 +36,7 @@ class Express extends Base
// 模板数据
$assign = [
// 静态数据
'common_is_enable_list' => MyConst('common_is_enable_list'),
'common_is_enable_list' => MyLang('common_is_enable_list'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('express'),

View File

@ -54,7 +54,7 @@ class Goods extends Base
// 模板数据
$assign = [
// 商品参数类型
'common_goods_parameters_type_list' => MyConst('common_goods_parameters_type_list'),
'common_goods_parameters_type_list' => MyLang('common_goods_parameters_type_list'),
];
if(!empty($this->data_detail))
{
@ -91,9 +91,9 @@ class Goods extends Base
// 模板信息
$assign = [
// 商品参数类型
'common_goods_parameters_type_list' => MyConst('common_goods_parameters_type_list'),
'common_goods_parameters_type_list' => MyLang('common_goods_parameters_type_list'),
// 站点类型
'common_site_type_list' => MyConst('common_site_type_list'),
'common_site_type_list' => MyLang('common_site_type_list'),
// 当前系统设置的站点类型
'common_site_type' => SystemBaseService::SiteTypeValue(),
// 地区信息

View File

@ -36,7 +36,7 @@ class GoodsCategory extends Base
// 模板数据
$assign = [
// 静态数据
'common_is_text_list' => MyConst('common_is_text_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
// 商品分类
'goods_category_list' => GoodsService::GoodsCategoryAll(),

View File

@ -44,7 +44,7 @@ class Goodscomments extends Base
*/
public function Detail()
{
MyViewAssign('common_goods_comments_rating_list', MyConst('common_goods_comments_rating_list'));
MyViewAssign('common_goods_comments_rating_list', MyLang('common_goods_comments_rating_list'));
return MyView();
}
@ -62,10 +62,10 @@ class Goodscomments extends Base
// 当前数据
'data' => $this->data_detail,
// 静态数据
'common_is_show_list' => MyConst('common_is_show_list'),
'common_is_text_list' => MyConst('common_is_text_list'),
'common_goods_comments_rating_list' => MyConst('common_goods_comments_rating_list'),
'common_goods_comments_business_type_list' => MyConst('common_goods_comments_business_type_list'),
'common_is_show_list' => MyLang('common_is_show_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
'common_goods_comments_rating_list' => MyLang('common_goods_comments_rating_list'),
'common_goods_comments_business_type_list' => MyLang('common_goods_comments_business_type_list'),
];
// 参数

View File

@ -51,7 +51,7 @@ class GoodsParamsTemplate extends Base
// 模板数据
$assign = [
// 商品参数类型
'common_goods_parameters_type_list' => MyConst('common_goods_parameters_type_list'),
'common_goods_parameters_type_list' => MyLang('common_goods_parameters_type_list'),
// 数据
'data' => $this->data_detail,
@ -82,7 +82,7 @@ class GoodsParamsTemplate extends Base
// 模板数据
$assign = [
// 商品参数类型
'common_goods_parameters_type_list' => MyConst('common_goods_parameters_type_list'),
'common_goods_parameters_type_list' => MyLang('common_goods_parameters_type_list'),
// 参数配置
'parameters' => empty($data['config_data']) ? [] : $data['config_data'],

View File

@ -34,7 +34,7 @@ class Orderaftersale extends Base
public function Index()
{
// 静态数据
MyViewAssign('common_order_aftersale_refundment_list', MyConst('common_order_aftersale_refundment_list'));
MyViewAssign('common_order_aftersale_refundment_list', MyLang('common_order_aftersale_refundment_list'));
return MyView();
}

View File

@ -46,7 +46,7 @@ class Payment extends Base
'cannot_deleted_list' => PaymentService::$cannot_deleted_list,
// 适用平台
'common_platform_type' => MyConst('common_platform_type'),
'common_platform_type' => MyLang('common_platform_type'),
// 应用商店
'store_payment_url' => StoreService::StorePaymentUrl(),
@ -90,7 +90,7 @@ class Payment extends Base
'data' => $data,
// 适用平台
'common_platform_type' => MyConst('common_platform_type'),
'common_platform_type' => MyLang('common_platform_type'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('payment'),

View File

@ -41,7 +41,7 @@ class Power extends Base
];
$assign = [
'data' => AdminPowerService::PowerList($data_params),
'common_is_show_list' => MyConst('common_is_show_list'),
'common_is_show_list' => MyLang('common_is_show_list'),
];
MyViewAssign($assign);
return MyView();

View File

@ -63,8 +63,8 @@ class QuickNav extends Base
'data' => $this->data_detail,
// 静态数据
'common_platform_type' => MyConst('common_platform_type'),
'common_app_event_type' => MyConst('common_app_event_type'),
'common_platform_type' => MyLang('common_platform_type'),
'common_app_event_type' => MyLang('common_app_event_type'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('quick_nav'),

View File

@ -33,7 +33,7 @@ class Region extends Base
public function Index()
{
// 是否启用
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
MyViewAssign('common_is_enable_list', MyLang('common_is_enable_list'));
return MyView();
}

View File

@ -33,7 +33,7 @@ class ScreeningPrice extends Base
public function Index()
{
// 是否启用
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
MyViewAssign('common_is_enable_list', MyLang('common_is_enable_list'));
return MyView();
}

View File

@ -35,7 +35,7 @@ class Seo extends Base
// 模板数据
$assign = [
// url模式
'seo_url_model_list' => MyConst('seo_url_model_list'),
'seo_url_model_list' => MyLang('seo_url_model_list'),
// 文章标题seo方案
'seo_article_browser_list' => MyConst('seo_article_browser_list'),

View File

@ -160,47 +160,47 @@ class Site extends Base
'view_type' => $this->view_type,
// 时区
'site_timezone_list' => MyConst('site_timezone_list'),
'site_timezone_list' => MyLang('site_timezone_list'),
// 平台
'common_platform_type' => MyConst('common_platform_type'),
'common_platform_type' => MyLang('common_platform_type'),
// 关闭开启
'common_close_open_list' => MyConst('common_close_open_list'),
'common_close_open_list' => MyLang('common_close_open_list'),
// 登录方式
'common_login_type_list' => MyConst('common_login_type_list'),
'common_login_type_list' => MyLang('common_login_type_list'),
// 用户注册类型列表
'common_user_reg_type_list' => MyConst('common_user_reg_type_list'),
'common_user_reg_type_list' => MyLang('common_user_reg_type_list'),
// 图片验证码规则
'site_images_verify_rules_list' => MyConst('site_images_verify_rules_list'),
'site_images_verify_rules_list' => MyLang('site_images_verify_rules_list'),
// 热门搜索关键字
'common_search_keywords_type_list' => MyConst('common_search_keywords_type_list'),
'common_search_keywords_type_list' => MyLang('common_search_keywords_type_list'),
// 是否
'common_is_text_list' => MyConst('common_is_text_list'),
'common_is_text_list' => MyLang('common_is_text_list'),
// 站点类型
'common_site_type_list' => MyConst('common_site_type_list'),
'common_site_type_list' => MyLang('common_site_type_list'),
// 扣除库存规则
'common_deduction_inventory_rules_list' => MyConst('common_deduction_inventory_rules_list'),
'common_deduction_inventory_rules_list' => MyLang('common_deduction_inventory_rules_list'),
// 增加销量规则
'common_sales_count_inc_rules_list' => MyConst('common_sales_count_inc_rules_list'),
'common_sales_count_inc_rules_list' => MyLang('common_sales_count_inc_rules_list'),
// 首页商品排序规则
'goods_order_by_type_list' => MyConst('goods_order_by_type_list'),
'goods_order_by_rule_list' => MyConst('goods_order_by_rule_list'),
'goods_order_by_type_list' => MyLang('goods_order_by_type_list'),
'goods_order_by_rule_list' => MyLang('goods_order_by_rule_list'),
// 首页楼层数据类型
'common_site_floor_data_type_list' => MyConst('common_site_floor_data_type_list'),
'common_site_floor_data_type_list' => MyLang('common_site_floor_data_type_list'),
// 搜索参数类型
'common_goods_parameters_type_list' => MyConst('common_goods_parameters_type_list'),
'common_goods_parameters_type_list' => MyLang('common_goods_parameters_type_list'),
];
// 主导航

View File

@ -62,9 +62,9 @@ class Slide extends Base
// 当前数据
'data' => $this->data_detail,
// 静态资源
'common_is_enable_list' => MyConst('common_is_enable_list'),
'common_platform_type' => MyConst('common_platform_type'),
'common_app_event_type' => MyConst('common_app_event_type'),
'common_is_enable_list' => MyLang('common_is_enable_list'),
'common_platform_type' => MyLang('common_platform_type'),
'common_app_event_type' => MyLang('common_app_event_type'),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('slide'),
];

View File

@ -72,7 +72,7 @@ class User extends Base
// 模板数据
$assign = [
// 静态数据
'common_gender_list' => MyConst('common_gender_list'),
'common_gender_list' => MyLang('common_gender_list'),
];
// 用户编辑页面钩子

View File

@ -72,12 +72,12 @@ class Admin
'view_type' => 'field',
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => MyConst('common_admin_status_list'),
'view_data' => MyLang('common_admin_status_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_admin_status_list'),
'data' => MyLang('common_admin_status_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -88,12 +88,12 @@ class Admin
'view_type' => 'field',
'view_key' => 'gender',
'view_data_key' => 'name',
'view_data' => MyConst('common_gender_list'),
'view_data' => MyLang('common_gender_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_gender_list'),
'data' => MyLang('common_gender_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -124,7 +124,7 @@ class Answer
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_show_list'),
'data' => MyLang('common_is_show_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -140,7 +140,7 @@ class Answer
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -70,12 +70,12 @@ class AppCenterNav
'view_type' => 'field',
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => MyConst('common_platform_type'),
'view_data' => MyLang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_platform_type'),
'data' => MyLang('common_platform_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -92,13 +92,13 @@ class AppCenterNav
'view_type' => 'field',
'view_key' => 'event_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_app_event_type'),
'view_data' => MyLang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_app_event_type'),
'data' => MyLang('common_app_event_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -126,7 +126,7 @@ class AppCenterNav
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -142,7 +142,7 @@ class AppCenterNav
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -70,12 +70,12 @@ class AppHomeNav
'view_type' => 'field',
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => MyConst('common_platform_type'),
'view_data' => MyLang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_platform_type'),
'data' => MyLang('common_platform_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -92,13 +92,13 @@ class AppHomeNav
'view_type' => 'field',
'view_key' => 'event_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_app_event_type'),
'view_data' => MyLang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_app_event_type'),
'data' => MyLang('common_app_event_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -126,7 +126,7 @@ class AppHomeNav
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -142,7 +142,7 @@ class AppHomeNav
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -106,7 +106,7 @@ class Article
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -122,7 +122,7 @@ class Article
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -123,7 +123,7 @@ class Brand
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -79,7 +79,7 @@ class CustomView
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -95,7 +95,7 @@ class CustomView
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -111,7 +111,7 @@ class CustomView
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -127,7 +127,7 @@ class CustomView
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -99,7 +99,7 @@ class Design
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -115,7 +115,7 @@ class Design
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -131,7 +131,7 @@ class Design
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -160,7 +160,7 @@ class Goods
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_shelves_list'),
'data' => MyLang('common_is_shelves_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -176,7 +176,7 @@ class Goods
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -187,12 +187,12 @@ class Goods
'view_type' => 'field',
'view_key' => 'site_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_site_type_list'),
'view_data' => MyLang('common_site_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_site_type_list'),
'data' => MyLang('common_site_type_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -92,13 +92,13 @@ class GoodsComments
'view_type' => 'field',
'view_key' => 'business_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_goods_comments_business_type_list'),
'view_data' => MyLang('common_goods_comments_business_type_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_goods_comments_business_type_list'),
'data' => MyLang('common_goods_comments_business_type_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -131,7 +131,7 @@ class GoodsComments
'form_type' => 'select',
'form_name' => 'rating',
'where_type' => 'in',
'data' => MyConst('common_goods_comments_rating_list'),
'data' => MyLang('common_goods_comments_rating_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -159,7 +159,7 @@ class GoodsComments
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -175,7 +175,7 @@ class GoodsComments
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -191,7 +191,7 @@ class GoodsComments
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -109,7 +109,7 @@ class GoodsParamsTemplate
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -108,7 +108,7 @@ class GoodsSpecTemplate
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -64,12 +64,12 @@ class IntegralLog
'view_type' => 'field',
'view_key' => 'type',
'view_data_key' => 'name',
'view_data' => MyConst('common_integral_log_type_list'),
'view_data' => MyLang('common_integral_log_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_integral_log_type_list'),
'data' => MyLang('common_integral_log_type_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -100,7 +100,7 @@ class Link
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -116,7 +116,7 @@ class Link
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -77,12 +77,12 @@ class Message
'view_type' => 'field',
'view_key' => 'type',
'view_data_key' => 'name',
'view_data' => MyConst('common_message_type_list'),
'view_data' => MyLang('common_message_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_message_type_list'),
'data' => MyLang('common_message_type_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -128,12 +128,12 @@ class Message
'view_type' => 'field',
'view_key' => 'is_read',
'view_data_key' => 'name',
'view_data' => MyConst('common_is_read_list'),
'view_data' => MyLang('common_is_read_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_read_list'),
'data' => MyLang('common_is_read_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -148,7 +148,7 @@ class Message
'form_type' => 'select',
'where_type' => 'in',
'form_name' => 'user_is_delete_time',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'where_type_custom' => 'WhereTypeUserIsDelete',

View File

@ -76,12 +76,12 @@ class Navigation
'view_type' => 'field',
'view_key' => 'data_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_nav_type_list'),
'view_data' => MyLang('common_nav_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_nav_type_list'),
'data' => MyLang('common_nav_type_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -98,7 +98,7 @@ class Navigation
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_show_list'),
'data' => MyLang('common_is_show_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -114,7 +114,7 @@ class Navigation
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -88,7 +88,7 @@ class Order
'form_type' => 'select',
'form_name' => 'status',
'where_type' => 'in',
'data' => MyConst('common_order_status'),
'data' => MyLang('common_order_status'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -103,7 +103,7 @@ class Order
'form_type' => 'select',
'form_name' => 'pay_status',
'where_type' => 'in',
'data' => MyConst('common_order_pay_status'),
'data' => MyLang('common_order_pay_status'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -159,12 +159,12 @@ class Order
'view_type' => 'field',
'view_key' => 'order_model',
'view_data_key' => 'name',
'view_data' => MyConst('common_order_type_list'),
'view_data' => MyLang('common_order_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_order_type_list'),
'data' => MyLang('common_order_type_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -175,12 +175,12 @@ class Order
'view_type' => 'field',
'view_key' => 'client_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_platform_type'),
'view_data' => MyLang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_platform_type'),
'data' => MyLang('common_platform_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -336,7 +336,7 @@ class Order
'form_type' => 'select',
'where_type' => 'in',
'form_name' => 'user_is_comments',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'where_type_custom' => 'WhereTypyUserIsComments',

View File

@ -79,13 +79,13 @@ class OrderAftersale
'view_type' => 'field',
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => MyConst('common_order_aftersale_status_list'),
'view_data' => MyLang('common_order_aftersale_status_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_order_aftersale_status_list'),
'data' => MyLang('common_order_aftersale_status_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -96,13 +96,13 @@ class OrderAftersale
'view_type' => 'field',
'view_key' => 'type',
'view_data_key' => 'name',
'view_data' => MyConst('common_order_aftersale_type_list'),
'view_data' => MyLang('common_order_aftersale_type_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_order_aftersale_type_list'),
'data' => MyLang('common_order_aftersale_type_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -153,13 +153,13 @@ class OrderAftersale
'view_type' => 'field',
'view_key' => 'refundment',
'view_data_key' => 'name',
'view_data' => MyConst('common_order_aftersale_refundment_list'),
'view_data' => MyLang('common_order_aftersale_refundment_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_order_aftersale_refundment_list'),
'data' => MyLang('common_order_aftersale_refundment_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -92,12 +92,12 @@ class PayLog
'view_type' => 'field',
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => MyConst('common_pay_log_status_list'),
'view_data' => MyLang('common_pay_log_status_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_pay_log_status_list'),
'data' => MyLang('common_pay_log_status_list'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -69,12 +69,12 @@ class QuickNav
'view_type' => 'field',
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => MyConst('common_platform_type'),
'view_data' => MyLang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_platform_type'),
'data' => MyLang('common_platform_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -91,13 +91,13 @@ class QuickNav
'view_type' => 'field',
'view_key' => 'event_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_app_event_type'),
'view_data' => MyLang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_app_event_type'),
'data' => MyLang('common_app_event_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -125,7 +125,7 @@ class QuickNav
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -131,7 +131,7 @@ class RefundLog
'form_type' => 'select',
'form_name' => 'refundment',
'where_type' => 'in',
'data' => MyConst('common_order_aftersale_refundment_list'),
'data' => MyLang('common_order_aftersale_refundment_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -79,7 +79,7 @@ class Role
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -69,12 +69,12 @@ class Slide
'view_type' => 'field',
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => MyConst('common_platform_type'),
'view_data' => MyLang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_platform_type'),
'data' => MyLang('common_platform_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -91,12 +91,12 @@ class Slide
'view_type' => 'field',
'view_key' => 'event_type',
'view_data_key' => 'name',
'view_data' => MyConst('common_app_event_type'),
'view_data' => MyLang('common_app_event_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_app_event_type'),
'data' => MyLang('common_app_event_type'),
'data_key' => 'value',
'data_name' => 'name',
'is_multiple' => 1,
@ -124,7 +124,7 @@ class Slide
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -146,7 +146,7 @@ class User
'form_type' => 'select',
'form_name' => 'gender',
'where_type' => 'in',
'data' => MyConst('common_gender_list'),
'data' => MyLang('common_gender_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -161,7 +161,7 @@ class User
'form_type' => 'select',
'form_name' => 'status',
'where_type' => 'in',
'data' => MyConst('common_user_status_list'),
'data' => MyLang('common_user_status_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,
@ -282,10 +282,10 @@ class User
'is_fixed_name_field' => 1,
'fixed_name_data' => [
'status' => [
'data' => MyConst('common_user_status_list'),
'data' => MyLang('common_user_status_list'),
],
'gender' => [
'data' => MyConst('common_gender_list'),
'data' => MyLang('common_gender_list'),
],
],
],

View File

@ -169,7 +169,7 @@ class UserAddress
'form_type' => 'select',
'form_name' => 'is_default',
'where_type' => 'in',
'data' => MyConst('common_is_text_list'),
'data' => MyLang('common_is_text_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -94,7 +94,7 @@ class Warehouse
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -106,7 +106,7 @@ class WarehouseGoods
'form_type' => 'select',
'form_name' => 'wg.is_enable',
'where_type' => 'in',
'data' => MyConst('common_is_enable_list'),
'data' => MyLang('common_is_enable_list'),
'data_key' => 'id',
'data_name' => 'name',
'is_multiple' => 1,

View File

@ -18,43 +18,58 @@
*/
return [
// 首页
'page_index' => [
'order_transaction_amount_name' => '订单成交金额走势',
'order_trading_trend_name' => '订单交易走势',
'goods_hot_name' => '热销商品',
'goods_hot_tips' => '仅显示前30条商品',
'payment_name' => '支付方式',
'order_region_name' => '订单地域分布',
'order_region_tips' => '仅显示30条数据',
'upgrade_check_loading_tips' => '正在获取最新内容、请稍候...',
'upgrade_version_name' => '更新版本:',
'upgrade_date_name' => '更新日期:',
'index' => [
// 页面公共
'page_common' => [
'order_transaction_amount_name' => '订单成交金额走势',
'order_trading_trend_name' => '订单交易走势',
'goods_hot_name' => '热销商品',
'goods_hot_tips' => '仅显示前30条商品',
'payment_name' => '支付方式',
'order_region_name' => '订单地域分布',
'order_region_tips' => '仅显示30条数据',
'upgrade_check_loading_tips' => '正在获取最新内容、请稍候...',
'upgrade_version_name' => '更新版本:',
'upgrade_date_name' => '更新日期:',
],
],
// 订单管理
'page_order' => [
'order_id_empty' => '订单id有误',
'express_choice_tips' => '请选择快递方式',
'payment_choice_tips' => '请选择支付方式',
'order' => [
// 页面公共
'page_common' => [
'order_id_empty' => '订单id有误',
'express_choice_tips' => '请选择快递方式',
'payment_choice_tips' => '请选择支付方式',
],
],
// 插件管理
'page_pluginsadmin' => [
'not_enable_tips' => '请先点击勾勾启用',
'save_no_data_tips' => '没有可保存的插件数据',
'pluginsadmin' => [
// 页面公共
'page_common' => [
'not_enable_tips' => '请先点击勾勾启用',
'save_no_data_tips' => '没有可保存的插件数据',
],
],
// 站点设置
'page_site' => [
'remove_confirm_tips' => '移除后保存生效、确认继续吗?',
'address_no_data' => '地址数据为空',
'address_not_exist' => '地址不存在',
'address_logo_message' => '请上传logo图片',
'site' => [
// 页面公共
'page_common' => [
'remove_confirm_tips' => '移除后保存生效、确认继续吗?',
'address_no_data' => '地址数据为空',
'address_not_exist' => '地址不存在',
'address_logo_message' => '请上传logo图片',
],
],
// 仓库商品
'page_warehousegoods' => [
'warehouse_choice_tips' => '请选择仓库',
'warehousegoods' => [
// 页面公共
'page_common' => [
'warehouse_choice_tips' => '请选择仓库',
],
],
];
?>

View File

@ -42,7 +42,7 @@
<div class="am-form-group">
<label>状态<span class="am-form-group-label-tips-must">*</span></label>
<select name="status" class="am-radius chosen-select" data-validation-message="请选择用户状态" required>
{{foreach :MyConst('common_admin_status_list') as $v}}
{{foreach :MyLang('common_admin_status_list') as $v}}
<option value="{{$v.value}}" {{if isset($data['status']) and $data['status'] eq $v['value']}}selected{{else /}}{{if !isset($data['status']) and isset($v['checked']) and $v['checked'] eq true}}selected{{/if}}{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否启用</label>
<div>
{{foreach :MyConst('common_is_enable_list') as $v}}
{{foreach :MyLang('common_is_enable_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_enable" value="{{$v.id}}" {{if isset($data['is_enable']) and $data['is_enable'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_enable']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>性别</label>
<div>
{{foreach :MyConst('common_gender_list') as $v}}
{{foreach :MyLang('common_gender_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="gender" value="{{$v.id}}" {{if isset($data['gender']) and $data['gender'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['gender']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否含尾部</label>
<div>
{{foreach :MyConst('common_is_text_list') as $v}}
{{foreach :MyLang('common_is_text_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_footer" value="{{$v.id}}" {{if isset($data['is_footer']) and $data['is_footer'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_footer']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否满屏</label>
<div>
{{foreach :MyConst('common_is_text_list') as $v}}
{{foreach :MyLang('common_is_text_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_full_screen" value="{{$v.id}}" {{if isset($data['is_full_screen']) and $data['is_full_screen'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_full_screen']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否含头部</label>
<div>
{{foreach :MyConst('common_is_text_list') as $v}}
{{foreach :MyLang('common_is_text_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_header" value="{{$v.id}}" {{if isset($data['is_header']) and $data['is_header'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_header']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否新窗口打开</label>
<div>
{{foreach :MyConst('common_is_text_list') as $v}}
{{foreach :MyLang('common_is_text_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_new_window_open" value="{{$v.id}}" {{if isset($data['is_new_window_open']) and $data['is_new_window_open'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_new_window_open']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>是否显示</label>
<div>
{{foreach :MyConst('common_is_show_list') as $v}}
{{foreach :MyLang('common_is_show_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_show" value="{{$v.id}}" {{if isset($data['is_show']) and $data['is_show'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_show']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>

View File

@ -5,7 +5,7 @@
<div class="am-input-group am-input-group-sm am-fr region-linkage-code">
<input type="text" class="am-form-field am-radius" placeholder="地区编号" />
<span class="am-input-group-btn">
<button type="button" class="am-btn am-btn-default am-btn-xs am-radius"></button>
<button type="button" class="am-btn am-btn-default am-btn-xs am-radius"></button>
</span>
</div>
</label>

View File

@ -2,7 +2,7 @@
<div class="am-form-group">
<label>用户状态</label>
<select name="status" class="am-radius chosen-select" data-validation-message="请选择用户状态" required>
{{foreach :MyConst('common_user_status_list') as $v}}
{{foreach :MyLang('common_user_status_list') as $v}}
<option value="{{$v.id}}" {{if isset($data['status']) and $data['status'] eq $v['id']}}selected{{else /}}{{if !isset($data['status']) and isset($v['checked']) and $v['checked'] eq true}}selected{{/if}}{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>

View File

@ -54,7 +54,7 @@
<div class="am-form-group">
<label>适用终端</label>
<select name="apply_terminal" class="am-radius chosen-select" multiple="multiple" minchecked="1" data-placeholder="可选择..." data-validation-message="至少选择一个适用终端" required>
{{foreach :MyConst('common_platform_type') as $v}}
{{foreach :MyLang('common_platform_type') as $v}}
<option value="{{$v.value}}" {{if isset($data['apply_terminal']) and in_array($v['value'], $data['apply_terminal'])}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>

View File

@ -2,17 +2,17 @@
<div class="form-detail-nav-operate am-cf">
<!-- 是否开启数据打印操作 -->
{{if isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] eq 1}}
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-print form-table-operate-top-data-print-submit" data-am-popover="{content: '打印当前数据', trigger: 'hover focus', theme: 'warning sm'}"> 数据打印</button>
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-print form-table-operate-top-data-print-submit" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_print_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_print_name')}}</button>
{{/if}}
<!-- 是否开启数据导出pdf操作 -->
{{if isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] eq 1}}
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-file-pdf-o form-table-operate-top-data-print-submit" data-is-pdf="1" data-am-popover="{content: '导出当前数据', trigger: 'hover focus', theme: 'warning sm'}"> 导出PDF</button>
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-file-pdf-o form-table-operate-top-data-print-submit" data-is-pdf="1" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_export_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_export_pdf_name')}}</button>
{{/if}}
<!-- 是否开启数据导出excel操作 -->
{{if isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] eq 1}}
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-excel-o form-table-operate-top-export-excel-submit" data-am-popover="{content: '导出当前数据', trigger: 'hover focus', theme: 'warning sm'}"> 导出Excel</button>
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-excel-o form-table-operate-top-export-excel-submit" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_export_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_export_excel_name')}}</button>
{{/if}}
</div>
<!-- 是否开启数据打印操作 -->

View File

@ -82,7 +82,7 @@
{{include file="public/module/form_fields_select" /}}
{{else /}}
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}{{:MyLang('form_table_config_error_tips')}}{{else /}}{{$form_error}}{{/if}}</div>
{{/if}}
<!-- page start -->

View File

@ -7,7 +7,7 @@
<div class="am-scrollable-vertical form-table-fields-list-container">
{{if !empty($form_user_fields)}}
<div class="am-alert am-margin-bottom-0">
<p>可点击拖拽调整显示顺序、如需恢复点击重置即可</p>
<p>{{:MyLang('form_table_column_sort_tips')}}</p>
</div>
<ul class="am-list am-list-static am-list-striped am-margin-bottom-0 form-table-fields-content-container">
{{foreach $form_user_fields as $v}}
@ -24,9 +24,9 @@
{{/if}}
</div>
<div class="am-padding-sm am-nbfc form-table-fields-button-container">
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="反选" data-not-checked-text="全选">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}反选{{else /}}全选{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('admin/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">重置</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('admin/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'处理中...'}">确认</button>
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="{{:MyLang('reverse_select_title')}}" data-not-checked-text="{{:MyLang('select_all_title')}}">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}{{:MyLang('reverse_select_title')}}{{else /}}{{:MyLang('select_all_title')}}{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('admin/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">{{:MyLang('reset_title')}}</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('admin/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'{{:MyLang('processing_tips')}}'}">{{:MyLang('confirm_title')}}</button>
</div>
</div>
</div>

View File

@ -21,17 +21,17 @@
<!-- 是否开启数据打印操作 -->
{{if isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] eq 1}}
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-print form-table-operate-top-data-print-submit" data-am-popover="{content: '选中列表需要打印的数据(可多选)', trigger: 'hover focus', theme: 'warning sm'}"> 数据打印</button>
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-print form-table-operate-top-data-print-submit" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_list_print_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_print_name')}}</button>
{{/if}}
<!-- 是否开启数据导出pdf操作 -->
{{if isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] eq 1}}
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-file-pdf-o form-table-operate-top-data-print-submit" data-is-pdf="1" data-am-popover="{content: '选中列表需要导出的数据(可多选)', trigger: 'hover focus', theme: 'warning sm'}"> 导出PDF</button>
<button type="button" class="am-btn am-btn-danger am-radius am-btn-xs am-icon-file-pdf-o form-table-operate-top-data-print-submit" data-is-pdf="1" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_list_export_pdf_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_export_pdf_name')}}</button>
{{/if}}
<!-- 是否开启数据导出excel操作 -->
{{if isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] eq 1}}
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-excel-o form-table-operate-top-export-excel-submit" data-am-popover="{content: '以搜索条件导出全部数据', trigger: 'hover focus', theme: 'warning sm'}"> 导出Excel</button>
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-excel-o form-table-operate-top-export-excel-submit" data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_list_export_excel_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('form_table_nav_operate_data_export_excel_name')}}</button>
{{/if}}
<!-- 是否开启删除操作 -->
@ -45,14 +45,14 @@
data-confirm-title="{{if isset($form_table['base']['confirm_title'])}}{{$form_table.base.confirm_title}}{{/if}}"
data-confirm-msg="{{if isset($form_table['base']['confirm_msg'])}}{{$form_table.base.confirm_msg}}{{/if}}"
data-timeout="{{if isset($form_table['base']['timeout'])}}{{$form_table.base.timeout}}{{/if}}"
data-am-popover="{content: '选中列表需要删除的数据(可多选)', trigger: 'hover focus', theme: 'warning sm'}"
> 删除</button>
data-am-popover="{content: '{{:MyLang('form_table_nav_operate_data_list_delete_tips')}}', trigger: 'hover focus', theme: 'warning sm'}"
> {{:MyLang('delete_title')}}</button>
{{/if}}
<!-- 是否开启搜索操作 公共搜索操作放在最后面 -->
{{if isset($form_table['base']['is_search']) and $form_table['base']['is_search'] eq 1}}
<a href="{{if isset($form_table['base']['search_url'])}}{{$form_table.base.search_url}}{{/if}}" class="am-btn am-btn-warning am-radius am-btn-sm am-icon-filter" data-am-popover="{content: '清除搜索条件', trigger: 'hover focus', theme: 'warning sm'}"> 重置</a>
<button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-icon-search" data-am-loading="{loadingText:' 搜索中...'}"> 搜索</button>
<a href="{{if isset($form_table['base']['search_url'])}}{{$form_table.base.search_url}}{{/if}}" class="am-btn am-btn-warning am-radius am-btn-sm am-icon-filter" data-am-popover="{content: '{{:MyLang('clear_search_where')}}', trigger: 'hover focus', theme: 'warning sm'}"> {{:MyLang('reset_title')}}</a>
<button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-icon-search" data-am-loading="{loadingText:' {{:MyLang('searching_tips')}}'}"> {{:MyLang('search_title')}}</button>
<!-- 排序数据字段 -->
<input type="hidden" name="fp_order_by_key" value="{{if !empty($form_order_by) and !empty($form_order_by['key'])}}{{$form_order_by.key}}{{/if}}" />
@ -62,6 +62,6 @@
<!-- 字段选择 -->
{{if !empty($admin) and (!isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] eq 1)}}
<div class="am-fr am-nbfc">
<button type="button" class="am-btn am-btn-default am-radius am-btn-xs am-icon-cog" data-am-modal="{target: '#form-table-fields-popup'}"> 设置</button>
<button type="button" class="am-btn am-btn-default am-radius am-btn-xs am-icon-cog" data-am-modal="{target: '#form-table-fields-popup'}"> {{:MyLang('setup_title')}}</button>
</div>
{{/if}}

View File

@ -28,29 +28,24 @@
<div class="am-cf">
<div class="am-u-sm-8 am-padding-horizontal-0">
<div class="am-cf">
<div class="am-u-sm-8 am-padding-horizontal-0">
<div class="am-form-group">
<label>姓名<span class="am-form-group-label-tips-must">*</span></label>
<input type="text" name="name" placeholder="姓名" minlength="2" maxlength="16" data-validation-message="姓名格式 2~16 个字符之间" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
</div>
</div>
<div class="am-u-sm-4 am-padding-horizontal-0">
<div class="am-form-group">
<label>别名</label>
<input type="text" name="alias" placeholder="别名" minlength="0" maxlength="16" data-validation-message="别名格式最多 16 个字符" class="am-radius" {{if !empty($data['alias'])}} value="{{$data.alias}}"{{/if}} />
</div>
</div>
<div class="am-form-group">
<label>姓名<span class="am-form-group-label-tips-must">*</span></label>
<input type="text" name="name" placeholder="姓名" minlength="2" maxlength="16" data-validation-message="姓名格式 2~16 个字符之间" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
</div>
</div>
<div class="am-u-sm-4 am-padding-horizontal-0">
<div class="am-form-group">
<label>电话<span class="am-form-group-label-tips-must">*</span></label>
<input type="text" name="tel" placeholder="电话" minlength="6" maxlength="30" data-validation-message="电话格式有误" class="am-radius" {{if !empty($data['tel'])}} value="{{$data.tel}}"{{/if}} required />
<label>别名</label>
<input type="text" name="alias" placeholder="别名" minlength="0" maxlength="16" data-validation-message="别名格式最多 16 个字符" class="am-radius" {{if !empty($data['alias'])}} value="{{$data.alias}}"{{/if}} />
</div>
</div>
</div>
<div class="am-form-group">
<label>电话<span class="am-form-group-label-tips-must">*</span></label>
<input type="text" name="tel" placeholder="电话" minlength="6" maxlength="30" data-validation-message="电话格式有误" class="am-radius" {{if !empty($data['tel'])}} value="{{$data.tel}}"{{/if}} required />
</div>
{{include file="lib/region_linkage" /}}
<div class="am-form-group">
<label>详细地址<span class="am-form-group-label-tips-must">*</span></label>

View File

@ -145,7 +145,7 @@ class Common extends BaseController
{
if(empty($this->user))
{
exit(json_encode(DataReturn('登录失效,请重新登录', -400)));
exit(json_encode(DataReturn(MyLang('login_failure_tips'), -400)));
}
}

View File

@ -141,7 +141,7 @@ class Orderaftersale extends Common
'returned_data' => $returned['data'],
'return_only_money_reason' => empty($return_only_money_reason) ? [] : explode("\n", $return_only_money_reason),
'return_money_goods_reason' => empty($return_money_goods_reason) ? [] : explode("\n", $return_money_goods_reason),
'aftersale_type_list' => MyConst('common_order_aftersale_type_list'),
'aftersale_type_list' => MyLang('common_order_aftersale_type_list'),
'return_goods_address' => $return_goods_address,
'editor_path_type' => ResourcesService::EditorPathTypeValue(OrderAftersaleService::EditorAttachmentPathType($this->user['id'], $order_id, $order_detail_id)),
];

View File

@ -52,7 +52,7 @@ class Personal extends Common
// 用户数据
'data' => UserService::UserHandle(UserService::UserInfo('id', $this->user['id'])),
// 性别
'gender_list' => MyConst('common_gender_list'),
'gender_list' => MyLang('common_gender_list'),
];
return ApiService::ApiDataReturn(DataReturn('success', 0, $data));
}

View File

@ -2042,7 +2042,7 @@ function FileUploadError($name, $index = false)
}
// 错误码对应的错误信息
$file_error_list = MyConst('common_file_upload_error_list');
$file_error_list = MyLang('common_file_upload_error_list');
if(isset($file_error_list[$error]))
{
return $file_error_list[$error];

View File

@ -51,7 +51,7 @@ class Answer extends Common
public function Index()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('问答/留言', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('answer.browser_seo_title'), 1));
return MyView();
}

View File

@ -49,7 +49,7 @@ class Article extends Common
// 获取文章
if(empty($this->data_request['id']))
{
MyViewAssign('msg', '文章ID有误');
MyViewAssign('msg', MyLang('article.article_id_params_tips'));
return MyView('public/tips_error');
}
@ -110,7 +110,7 @@ class Article extends Common
}
// 无数据
MyViewAssign('msg', '文章不存在或已删除');
MyViewAssign('msg', MyLang('article.article_no_data_tips'));
return MyView('public/tips_error');
}
@ -164,7 +164,7 @@ class Article extends Common
$assign['category_info'] = $category_info;
// 浏览器名称
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(empty($category_info) ? '所有文章' : $category_info['name'], 1);
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(empty($category_info) ? MyLang('article.category_browser_seo_title') : $category_info['name'], 1);
// 数据赋值
MyViewAssign($assign);

View File

@ -61,7 +61,7 @@ class Buy extends Common
// 站点类型,是否开启了展示型
if(SystemBaseService::SiteTypeValue() == 1)
{
MyViewAssign('msg', '展示型不允许提交订单');
MyViewAssign('msg', MyLang('buy.show_mode_not_allow_submit_order_tips'));
return MyView('public/tips_error');
}
@ -69,7 +69,7 @@ class Buy extends Common
$buy_data = MySession('buy_post_data');
if(empty($buy_data) || (empty($buy_data['goods_data']) && empty($buy_data['ids'])))
{
MyViewAssign('msg', '商品信息为空');
MyViewAssign('msg', MyLang('buy.gooods_data_no_data_tips'));
return MyView('public/tips_error');
}
@ -100,11 +100,13 @@ class Buy extends Common
'buy_goods' => $buy_goods,
'buy_data' => $buy_data,
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('订单确认', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('buy.browser_seo_title'), 1),
// 公共销售模式
'common_site_type' => $buy_base['common_site_type'],
// 支付方式
'payment_list' => PaymentService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1]),
// 下单类型模式
'buy_site_model_list' => MyLang('common_buy_site_model_list'),
];
// 用户地址
@ -126,7 +128,7 @@ class Buy extends Common
$this->PluginsHook($ret['data'], $params);
return MyView();
}
MyViewAssign('msg', isset($ret['msg']) ? $ret['msg'] : '参数错误');
MyViewAssign('msg', isset($ret['msg']) ? $ret['msg'] : MyLang('params_error_tips'));
return MyView('public/tips_error');
}
}
@ -204,7 +206,7 @@ class Buy extends Common
$params['user'] = $this->user;
return ApiService::ApiDataReturn(BuyService::OrderInsert($params));
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
}

View File

@ -61,7 +61,7 @@ class Cart extends Common
$assign = [
'base' => $base,
'cart_list' => $cart_list['data'],
'home_seo_site_title' => SeoService::BrowserSeoTitle('购物车', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('cart.browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();

View File

@ -44,7 +44,7 @@ class Category extends Common
public function Index()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('商品分类', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('category.browser_seo_title'), 1));
return MyView();
}
}

View File

@ -192,7 +192,7 @@ class Common extends BaseController
{
if(IS_AJAX)
{
exit(json_encode(DataReturn('登录失效,请重新登录', -400)));
exit(json_encode(DataReturn(MyLang('login_failure_tips'), -400)));
} else {
MyRedirect('index/user/logininfo', true);
}
@ -566,7 +566,7 @@ class Common extends BaseController
if(MyC('home_site'.$type.'_state') != 1)
{
// 提示信息
$reason = MyC('home_site_close_reason', '升级中...', true);
$reason = MyC('home_site_close_reason', MyLang('upgrading_tips'), true);
// 是否ajax请求
if(IS_AJAX)
@ -574,7 +574,7 @@ class Common extends BaseController
exit(json_encode(DataReturn($reason, -10000)));
} else {
// 默认提示信息增加样式,则使用用户自定义信息展示
if($reason == '升级中...')
if(stripos($reason, '<html>') === false)
{
exit('<!DOCTYPE html><html><head><meta charset="utf-8" /><title>'.MyC('home_site_name').'</title><body><div style="text-align: center;margin-top: 15%;font-size: 18px;color: #f00;">'.$reason.'</div></body></html>');
} else {

View File

@ -71,7 +71,7 @@ class CustomView extends Common
return MyView();
}
}
MyViewAssign('msg', '页面不存在或已删除');
MyViewAssign('msg', MyLang('custom_view.custom_view_no_data_tips'));
return MyView('public/tips_error');
}
}

View File

@ -93,7 +93,7 @@ class Design extends Common
return MyView();
}
}
MyViewAssign('msg', '页面不存在或已删除');
MyViewAssign('msg', MyLang('design.design_no_data_tips'));
return MyView('public/tips_error');
}
}

View File

@ -34,11 +34,12 @@ class Error extends Common
*/
public function __call($method, $args)
{
$msg = MyLang('controller_not_exist_tips').'('.RequestController().')';
if(IS_AJAX)
{
return ApiService::ApiDataReturn(DataReturn(RequestController().' 控制器不存在', -1000));
return ApiService::ApiDataReturn(DataReturn($msg, -1000));
} else {
MyViewAssign('msg', RequestController().' 控制器不存在');
MyViewAssign('msg', $msg);
return MyView('public/tips_error');
}
}

View File

@ -159,7 +159,7 @@ class Goods extends Common
$this->PluginsHook($goods_id, $goods);
return MyView();
}
MyViewAssign('msg', '资源不存在或已被删除');
MyViewAssign('msg', MyLang('goods.goods_no_data_tips'));
return MyView('/public/tips_error');
}
@ -194,7 +194,7 @@ class Goods extends Common
return MyView();
}
MyViewAssign([
'msg' => '商品不存在或已删除',
'msg' => MyLang('goods.goods_no_data_tips'),
'is_header' => 0,
'is_footer' => 0,
'is_to_home' => 0,
@ -276,7 +276,7 @@ class Goods extends Common
$params = $this->data_request;
if(empty($params['goods_id']))
{
return ApiService::ApiDataReturn(DataReturn('参数有误', -1));
return ApiService::ApiDataReturn(DataReturn(MyLang('params_error_tips'), -1));
}
// 分页
@ -310,7 +310,7 @@ class Goods extends Common
'page_total' => $page_total,
'data' => MyView('', ['data'=>$data['data']]),
];
return ApiService::ApiDataReturn(DataReturn('请求成功', 0, $result));
return ApiService::ApiDataReturn(DataReturn('success', 0, $result));
}
/**

View File

@ -114,11 +114,11 @@ class Index extends Common
$assign['images_magic_cube_view_list_show_style'] = BaseLayout::$images_magic_cube_view_list_show_style;
// 首页商品排序规则
$assign['goods_order_by_type_list'] = MyConst('goods_order_by_type_list');
$assign['goods_order_by_rule_list'] = MyConst('goods_order_by_rule_list');
$assign['goods_order_by_type_list'] = MyLang('goods_order_by_type_list');
$assign['goods_order_by_rule_list'] = MyLang('goods_order_by_rule_list');
// 浏览器名称
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle('首页设计', 1);
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(MyLang('index.design_browser_seo_title'), 1);
// 编辑器文件存放地址定义
$assign['editor_path_type'] = 'index-design';

View File

@ -52,7 +52,7 @@ class Message extends Common
MessageService::MessageRead(['user'=>$this->user]);
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('我的消息', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('message.browser_seo_title'), 1));
return MyView();
}

View File

@ -64,7 +64,7 @@ class Order extends Common
// 支付方式
'buy_payment_list' => PaymentService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1]),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('我的订单', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('order.browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
@ -83,7 +83,7 @@ class Order extends Common
// 订单信息
if(empty($this->data_detail))
{
MyViewAssign('msg', '没有相关数据');
MyViewAssign('msg', MyLang('no_data'));
return MyView('public/tips_error');
}
@ -98,7 +98,7 @@ class Order extends Common
// 虚拟销售配置
'site_fictitious' => $site_fictitious['data'],
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('订单详情', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('order.detail_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
@ -118,7 +118,7 @@ class Order extends Common
$data = $this->OrderFirst();
if(empty($data))
{
MyViewAssign('msg', '没有相关数据');
MyViewAssign('msg', MyLang('no_data'));
return MyView('public/tips_error');
}
@ -128,7 +128,7 @@ class Order extends Common
// 上一个页面url地址
'referer_url' => empty($_SERVER['HTTP_REFERER']) ? MyUrl('index/order/index') : htmlentities($_SERVER['HTTP_REFERER']),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('订单评论', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('order.comments_browser_seo_title'), 1),
// 编辑器文件存放地址
'editor_path_type' => ResourcesService::EditorPathTypeValue('order_comments-'.$this->user['id'].'-'.$data['id']),
];
@ -189,7 +189,7 @@ class Order extends Common
$params['business_type'] = 'order';
return GoodsCommentsService::Comments($params);
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -236,9 +236,7 @@ class Order extends Common
// 是否自定义状态
if(isset($params['appoint_status']))
{
$ret = ($params['appoint_status'] == 0) ? DataReturn('支付成功', 0) : DataReturn('支付失败', -100);
// 获取支付回调数据
$ret = ($params['appoint_status'] == 0) ? DataReturn(MyLang('pay_success'), 0) : DataReturn(MyLang('pay_fail'), -100);
} else {
$params['user'] = $this->user;
$ret = OrderService::Respond($params);
@ -248,7 +246,7 @@ class Order extends Common
$assign = [
// 自定义链接
'to_url' => MyUrl('index/order/index'),
'to_title' => '我的订单',
'to_title' => MyLang('order.browser_seo_title'),
// 状态信息
'msg' => $ret['msg'],
];
@ -280,7 +278,7 @@ class Order extends Common
$params['creator_name'] = $this->user['user_name_view'];
return ApiService::ApiDataReturn(OrderService::OrderCancel($params));
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -302,7 +300,7 @@ class Order extends Common
$params['creator_name'] = $this->user['user_name_view'];
return ApiService::ApiDataReturn(OrderService::OrderCollect($params));
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -325,7 +323,7 @@ class Order extends Common
$params['user_type'] = 'user';
return ApiService::ApiDataReturn(OrderService::OrderDelete($params));
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -345,7 +343,7 @@ class Order extends Common
$params['user'] = $this->user;
return ApiService::ApiDataReturn(OrderService::OrderPayCheck($params));
}
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
}

View File

@ -51,7 +51,7 @@ class Orderaftersale extends Common
public function Index()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('订单售后', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('orderaftersale.browser_seo_title'), 1));
return MyView();
}
@ -78,7 +78,7 @@ class Orderaftersale extends Common
// 订单售后搜索form key
'form_search_keywords_form_key' => 'f0p',
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('订单售后详情', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('orderaftersale.detail_browser_seo_title'), 1),
];
// 仅退款原因
@ -120,7 +120,7 @@ class Orderaftersale extends Common
$assign['return_goods_address'] = $return_goods_address;
// 静态数据
$assign['common_order_aftersale_type_list'] = MyConst('common_order_aftersale_type_list');
$assign['common_order_aftersale_type_list'] = MyLang('common_order_aftersale_type_list');
// 编辑器文件存放地址
$assign['editor_path_type'] = ResourcesService::EditorPathTypeValue(OrderAftersaleService::EditorAttachmentPathType($this->user['id'], $order_id, $order_detail_id));
@ -146,7 +146,7 @@ class Orderaftersale extends Common
// 是否ajax请求
if(!IS_AJAX)
{
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -168,7 +168,7 @@ class Orderaftersale extends Common
// 是否ajax请求
if(!IS_AJAX)
{
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}
@ -190,7 +190,7 @@ class Orderaftersale extends Common
// 是否ajax请求
if(!IS_AJAX)
{
MyViewAssign('msg', '非法访问');
MyViewAssign('msg', MyLang('illegal_access_tips'));
return MyView('public/tips_error');
}

View File

@ -46,7 +46,7 @@ class Pay extends Common
{
return MyView();
}
MyViewAssign('msg', '参数有误');
MyViewAssign('msg', MyLang('params_error_tips'));
return MyView('public/tips_error');
}
}

View File

@ -52,9 +52,9 @@ class Personal extends Common
// 模板数据
$assign = [
// 用户展示数据
'personal_show_list' => NavigationService::UsersPersonalShowFieldList(),
'personal_show_list' => NavigationService::UsersPersonalShowFieldList(),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('个人资料', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('personal.browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
@ -74,9 +74,9 @@ class Personal extends Common
// 用户数据
'data' => UserService::UserHandle(UserService::UserInfo('id', $this->user['id'])),
// 性别
'common_gender_list' => MyConst('common_gender_list'),
'common_gender_list' => MyLang('common_gender_list'),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('个人资料编辑', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('personal.edit_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();

View File

@ -53,7 +53,7 @@ class Plugins extends Common
[
'checked_type' => 'empty',
'key_name' => 'pluginsname',
'error_msg' => '应用名称有误',
'error_msg' => MyLang('plugins_name_tips'),
],
];
$ret = ParamsChecked($params['data_request'], $p);

View File

@ -43,7 +43,7 @@ class QrCode extends Common
{
if(empty($this->data_request['content']))
{
MyViewAssign('msg', '内容参数为空');
MyViewAssign('msg', MyLang('content_params_empty_tips'));
return MyView('public/tips_error');
}
(new \base\Qrcode())->View($this->data_request);

View File

@ -60,7 +60,7 @@ class Safety extends Common
// 安全信息列表
'safety_panel_list' => NavigationService::UsersSafetyPanelList(),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('安全设置', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('safety.browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
@ -76,7 +76,7 @@ class Safety extends Common
public function LoginPwdInfo()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('登录密码修改 - 安全设置', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('safety.password_update_browser_seo_title'), 1));
return MyView();
}
@ -95,7 +95,7 @@ class Safety extends Common
}
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('手机号码修改 - 安全设置', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('safety.mobile_update_browser_seo_title'), 1));
return MyView();
}
@ -110,11 +110,11 @@ class Safety extends Common
{
if(MySession('safety_sms') == null && !empty($this->user['mobile']))
{
return $this->error('原帐号校验失败', MyUrl('index/safety/mobileinfo'));
return $this->error(MyLang('safety.original_account_check_error_tips'), MyUrl('index/safety/mobileinfo'));
}
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('手机号码修改 - 安全设置', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('safety.mobile_update_browser_seo_title'), 1));
return MyView();
}
@ -133,7 +133,7 @@ class Safety extends Common
}
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('电子邮箱修改 - 安全设置', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('safety.email_update_browser_seo_title'), 1));
return MyView();
}
@ -148,11 +148,11 @@ class Safety extends Common
{
if(MySession('safety_email') == null && !empty($this->user['email']))
{
return $this->error('原帐号校验失败', MyUrl('index/safety/emailinfo'));
return $this->error(MyLang('safety.original_account_check_error_tips'), MyUrl('index/safety/emailinfo'));
}
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('电子邮箱修改 - 安全设置', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('safety.email_update_browser_seo_title'), 1));
return MyView();
}
@ -173,7 +173,7 @@ class Safety extends Common
// 协议内容
'document_data' => $document['data'],
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('账号注销 - 安全设置', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('safety.logout_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();

View File

@ -133,7 +133,7 @@ class Search extends Common
}
}
}
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(empty($seo_title) ? '商品搜索' : $seo_title, 1);
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(empty($seo_title) ? MyLang('search.browser_seo_title') : $seo_title, 1);
// 模板赋值
MyViewAssign($assign);

View File

@ -103,7 +103,7 @@ class User extends Common
'form_search_order_status_form_key' => 'status',
'form_search_order_user_is_comments_form_key' => 'user_is_comments',
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('用户中心', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('user.browser_seo_title'), 1),
];
// 用户中心基础信息 mini 导航
@ -230,12 +230,12 @@ class User extends Common
// 左侧图片、随机其中一个
'user_forgetpwd_left_data' => empty($left_data['data']) ? [] : $left_data['data'][array_rand($left_data['data'], 1)],
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('密码找回', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('user.forget_password_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
}
MyViewAssign('msg', '已经登录了,如要重置密码,请先退出当前账户');
MyViewAssign('msg', MyLang('user.password_reset_illegal_error_tips'));
return MyView('public/tips_error');
}
@ -261,15 +261,15 @@ class User extends Common
// 注册背景图片
'user_register_bg_images' => MyC('home_site_user_register_bg_images'),
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('用户注册', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('user.user_register_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
}
MyViewAssign('msg', '已经登录了,如要注册新账户,请先退出当前账户');
MyViewAssign('msg', MyLang('user.register_illegal_error_tips'));
return MyView('public/tips_error');
}
MyViewAssign('msg', '暂时关闭用户注册');
MyViewAssign('msg', MyLang('common.close_user_register_tips'));
return MyView('public/tips_error');
}
@ -297,15 +297,15 @@ class User extends Common
// 注册背景图片
'user_login_left_data' => empty($left_data['data']) ? [] : $left_data['data'][array_rand($left_data['data'], 1)],
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('用户登录', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('user.user_login_browser_seo_title'), 1),
];
MyViewAssign($assign);
return MyView();
}
MyViewAssign('msg', '已经登录了,请勿重复登录');
MyViewAssign('msg', MyLang('user.login_illegal_error_tips'));
return MyView('public/tips_error');
}
MyViewAssign('msg', '暂时关闭用户登录');
MyViewAssign('msg', MyLang('common.close_user_login_tips'));
return MyView('public/tips_error');
}
@ -330,18 +330,18 @@ class User extends Common
if(empty($this->user))
{
// 浏览器名称
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle('用户登录', 1);
$assign['home_seo_site_title'] = SeoService::BrowserSeoTitle(MyLang('user.user_login_browser_seo_title'), 1);
// 返回地址
$assign['referer_url'] = $this->GetrefererUrl();
MyViewAssign($assign);
return MyView();
}
$assign['msg'] = '已经登录了,请勿重复登录';
$assign['msg'] = MyLang('user.login_illegal_error_tips');
MyViewAssign($assign);
return MyView('public/tips_error');
}
$assign['msg'] = '暂时关闭用户登录';
$assign['msg'] = MyLang('common.close_user_login_tips');
MyViewAssign($assign);
return MyView('public/tips_error');
}

View File

@ -52,7 +52,7 @@ class UserAddress extends Common
// 模板数据
$assign = [
// 浏览器名称
'home_seo_site_title' => SeoService::BrowserSeoTitle('我的地址', 1),
'home_seo_site_title' => SeoService::BrowserSeoTitle(MyLang('user_address.browser_seo_title'), 1),
];
// 用户地址列表
$data = UserAddressService::UserAddressList(['user'=>$this->user]);

View File

@ -50,7 +50,7 @@ class UserGoodsBrowse extends Common
public function Index()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('我的足迹', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('user_goods_browse.browser_seo_title'), 1));
return MyView();
}

View File

@ -50,7 +50,7 @@ class UserGoodsFavor extends Common
public function Index()
{
// 浏览器名称
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('商品收藏', 1));
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle(MyLang('user_goods_favor.browser_seo_title'), 1));
return MyView();
}

Some files were not shown because too many files have changed in this diff Show More