mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
静态数据优化
This commit is contained in:
parent
a0a71f1e58
commit
f47bdb60c3
@ -160,8 +160,8 @@ class Admin extends Common
|
||||
MyViewAssign('role_list', $role['data']);
|
||||
|
||||
MyViewAssign('id', isset($params['id']) ? $params['id'] : 0);
|
||||
MyViewAssign('common_gender_list', lang('common_gender_list'));
|
||||
MyViewAssign('common_admin_status_list', lang('common_admin_status_list'));
|
||||
MyViewAssign('common_gender_list', MyConst('common_gender_list'));
|
||||
MyViewAssign('common_admin_status_list', MyConst('common_admin_status_list'));
|
||||
|
||||
// 管理员编辑页面钩子
|
||||
$hook_name = 'plugins_view_admin_admin_save';
|
||||
|
@ -153,8 +153,8 @@ class Answer extends Common
|
||||
MyViewAssign('data', $data);
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_is_show_list', lang('common_is_show_list'));
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_show_list', MyConst('common_is_show_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 参数
|
||||
unset($params['id']);
|
||||
|
@ -136,8 +136,8 @@ class AppCenterNav extends Common
|
||||
}
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', lang('common_app_event_type'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', MyConst('common_app_event_type'));
|
||||
|
||||
// 编辑器文件存放地址
|
||||
MyViewAssign('editor_path_type', ResourcesService::EditorPathTypeValue('app_center_nav'));
|
||||
|
@ -53,7 +53,7 @@ class AppConfig extends Common
|
||||
MyViewAssign('data', ConfigService::ConfigList());
|
||||
|
||||
// 是否
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 导航/视图
|
||||
$nav_type = input('nav_type', 'base');
|
||||
|
@ -136,8 +136,8 @@ class AppHomeNav extends Common
|
||||
}
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', lang('common_app_event_type'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', MyConst('common_app_event_type'));
|
||||
|
||||
// 编辑器文件存放地址
|
||||
MyViewAssign('editor_path_type', ResourcesService::EditorPathTypeValue('app_nav'));
|
||||
|
@ -159,10 +159,10 @@ class Appmini extends Common
|
||||
MyViewAssign('store_theme_url', StoreService::StoreThemeUrl());
|
||||
|
||||
// 小程序平台
|
||||
MyViewAssign('common_appmini_type', lang('common_appmini_type'));
|
||||
MyViewAssign('common_appmini_type', MyConst('common_appmini_type'));
|
||||
|
||||
// 是否
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 基础导航
|
||||
$base_nav = [
|
||||
|
@ -50,7 +50,7 @@ class ArticleCategory extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
return MyView();
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ class Brand extends Common
|
||||
}
|
||||
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
// 品牌分类
|
||||
$brand_category = BrandCategoryService::BrandCategoryList(['field'=>'id,name']);
|
||||
|
@ -50,7 +50,7 @@ class BrandCategory extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
return MyView();
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ class Common extends BaseController
|
||||
MyViewAssign('module_js', file_exists(ROOT_PATH.'static'.DS.$module_js) ? $module_js : '');
|
||||
|
||||
// 价格正则
|
||||
MyViewAssign('default_price_regex', lang('common_regex_price'));
|
||||
MyViewAssign('default_price_regex', MyConst('common_regex_price'));
|
||||
|
||||
// 附件host地址
|
||||
MyViewAssign('attachment_host', SystemBaseService::AttachmentHost());
|
||||
|
@ -50,10 +50,10 @@ class Config extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 静态数据
|
||||
MyViewAssign('common_excel_charset_list', lang('common_excel_charset_list'));
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_login_type_list', lang('common_login_type_list'));
|
||||
MyViewAssign('common_close_open_list', lang('common_close_open_list'));
|
||||
MyViewAssign('common_excel_charset_list', MyConst('common_excel_charset_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
MyViewAssign('common_login_type_list', MyConst('common_login_type_list'));
|
||||
MyViewAssign('common_close_open_list', MyConst('common_close_open_list'));
|
||||
|
||||
// 配置信息
|
||||
MyViewAssign('data', ConfigService::ConfigList());
|
||||
|
@ -151,8 +151,8 @@ class Design extends Common
|
||||
MyViewAssign('many_images_view_list_show_style', BaseLayout::$many_images_view_list_show_style);
|
||||
|
||||
// 首页商品排序规则
|
||||
MyViewAssign('goods_order_by_type_list', lang('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', lang('goods_order_by_rule_list'));
|
||||
MyViewAssign('goods_order_by_type_list', MyConst('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', MyConst('goods_order_by_rule_list'));
|
||||
|
||||
// 加载布局样式+管理
|
||||
MyViewAssign('is_load_layout', 1);
|
||||
|
@ -54,7 +54,7 @@ class Email extends Common
|
||||
$type = input('type', 'email');
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 导航
|
||||
MyViewAssign('nav_type', $type);
|
||||
|
@ -51,7 +51,7 @@ class Express extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
// 编辑器文件存放地址
|
||||
MyViewAssign('editor_path_type', ResourcesService::EditorPathTypeValue('express'));
|
||||
|
@ -124,7 +124,7 @@ class Goods extends Common
|
||||
$parameters = GoodsService::GoodsEditParameters($data['id']);
|
||||
|
||||
// 商品参数类型
|
||||
MyViewAssign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list'));
|
||||
MyViewAssign('common_goods_parameters_type_list', MyConst('common_goods_parameters_type_list'));
|
||||
|
||||
MyViewAssign('parameters', $parameters);
|
||||
}
|
||||
@ -195,12 +195,12 @@ class Goods extends Common
|
||||
MyViewAssign('goods_specifications_extends', $goods_spec_extends['data']);
|
||||
|
||||
// 站点类型
|
||||
MyViewAssign('common_site_type_list', lang('common_site_type_list'));
|
||||
MyViewAssign('common_site_type_list', MyConst('common_site_type_list'));
|
||||
// 当前系统设置的站点类型
|
||||
MyViewAssign('common_site_type', SystemBaseService::SiteTypeValue());
|
||||
|
||||
// 商品参数类型
|
||||
MyViewAssign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list'));
|
||||
MyViewAssign('common_goods_parameters_type_list', MyConst('common_goods_parameters_type_list'));
|
||||
|
||||
// 商品参数模板
|
||||
$data_params = array(
|
||||
|
@ -51,7 +51,7 @@ class GoodsCategory extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 静态数据
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 商品分类
|
||||
MyViewAssign('goods_category_list', GoodsService::GoodsCategoryAll());
|
||||
|
@ -105,7 +105,7 @@ class Goodscomments extends Common
|
||||
$data = (empty($ret['data']) || empty($ret['data'][0])) ? [] : $ret['data'][0];
|
||||
MyViewAssign('data', $data);
|
||||
|
||||
MyViewAssign('common_goods_comments_rating_list', lang('common_goods_comments_rating_list'));
|
||||
MyViewAssign('common_goods_comments_rating_list', MyConst('common_goods_comments_rating_list'));
|
||||
}
|
||||
return MyView();
|
||||
}
|
||||
@ -139,10 +139,10 @@ class Goodscomments extends Common
|
||||
MyViewAssign('data', $data);
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_is_show_list', lang('common_is_show_list'));
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_goods_comments_rating_list', lang('common_goods_comments_rating_list'));
|
||||
MyViewAssign('common_goods_comments_business_type_list', lang('common_goods_comments_business_type_list'));
|
||||
MyViewAssign('common_is_show_list', MyConst('common_is_show_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
MyViewAssign('common_goods_comments_rating_list', MyConst('common_goods_comments_rating_list'));
|
||||
MyViewAssign('common_goods_comments_business_type_list', MyConst('common_goods_comments_business_type_list'));
|
||||
|
||||
// 参数
|
||||
unset($params['id']);
|
||||
|
@ -109,7 +109,7 @@ class GoodsParamsTemplate extends Common
|
||||
MyViewAssign('data', $data);
|
||||
|
||||
// 商品参数类型
|
||||
MyViewAssign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list'));
|
||||
MyViewAssign('common_goods_parameters_type_list', MyConst('common_goods_parameters_type_list'));
|
||||
|
||||
// 参数配置
|
||||
MyViewAssign('parameters', empty($data['config_data']) ? [] : $data['config_data']);
|
||||
@ -146,7 +146,7 @@ class GoodsParamsTemplate extends Common
|
||||
}
|
||||
|
||||
// 商品参数类型
|
||||
MyViewAssign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list'));
|
||||
MyViewAssign('common_goods_parameters_type_list', MyConst('common_goods_parameters_type_list'));
|
||||
|
||||
// 参数配置
|
||||
MyViewAssign('parameters', empty($data['config_data']) ? [] : $data['config_data']);
|
||||
|
@ -76,7 +76,7 @@ class Orderaftersale extends Common
|
||||
$ret = OrderAftersaleService::OrderAftersaleList($data_params);
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_order_aftersale_refundment_list', lang('common_order_aftersale_refundment_list'));
|
||||
MyViewAssign('common_order_aftersale_refundment_list', MyConst('common_order_aftersale_refundment_list'));
|
||||
|
||||
// 基础参数赋值
|
||||
MyViewAssign('params', $this->data_request);
|
||||
|
@ -59,7 +59,7 @@ class Payment extends Common
|
||||
MyViewAssign('cannot_deleted_list', PaymentService::$cannot_deleted_list);
|
||||
|
||||
// 适用平台
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
|
||||
// 应用商店
|
||||
MyViewAssign('store_payment_url', StoreService::StorePaymentUrl());
|
||||
@ -102,7 +102,7 @@ class Payment extends Common
|
||||
}
|
||||
|
||||
// 适用平台
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
|
||||
// 参数
|
||||
MyViewAssign('params', $params);
|
||||
|
@ -57,7 +57,7 @@ class Power extends Common
|
||||
$data = AdminPowerService::PowerList($data_params);
|
||||
|
||||
MyViewAssign('data', $data);
|
||||
MyViewAssign('common_is_show_list', lang('common_is_show_list'));
|
||||
MyViewAssign('common_is_show_list', MyConst('common_is_show_list'));
|
||||
return MyView();
|
||||
}
|
||||
|
||||
|
@ -137,8 +137,8 @@ class QuickNav extends Common
|
||||
MyViewAssign('data', $data);
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', lang('common_app_event_type'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', MyConst('common_app_event_type'));
|
||||
|
||||
// 参数
|
||||
MyViewAssign('params', $params);
|
||||
|
@ -50,7 +50,7 @@ class Region extends Common
|
||||
$this->IsPower();
|
||||
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
return MyView();
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ class ScreeningPrice extends Common
|
||||
public function Index()
|
||||
{
|
||||
// 是否启用
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
|
||||
return MyView();
|
||||
}
|
||||
|
@ -50,13 +50,13 @@ class Seo extends Common
|
||||
public function Index()
|
||||
{
|
||||
// url模式
|
||||
MyViewAssign('seo_url_model_list', lang('seo_url_model_list'));
|
||||
MyViewAssign('seo_url_model_list', MyConst('seo_url_model_list'));
|
||||
|
||||
// 文章标题seo方案
|
||||
MyViewAssign('seo_article_browser_list', lang('seo_article_browser_list'));
|
||||
MyViewAssign('seo_article_browser_list', MyConst('seo_article_browser_list'));
|
||||
|
||||
// 频道标题seo方案
|
||||
MyViewAssign('seo_channel_browser_list', lang('seo_channel_browser_list'));
|
||||
MyViewAssign('seo_channel_browser_list', MyConst('seo_channel_browser_list'));
|
||||
|
||||
// 配置信息
|
||||
MyViewAssign('data', ConfigService::ConfigList());
|
||||
|
@ -154,44 +154,44 @@ class Site extends Common
|
||||
MyViewAssign('view_type', $this->view_type);
|
||||
|
||||
// 时区
|
||||
MyViewAssign('site_timezone_list', lang('site_timezone_list'));
|
||||
MyViewAssign('site_timezone_list', MyConst('site_timezone_list'));
|
||||
|
||||
// 关闭开启
|
||||
MyViewAssign('common_close_open_list', lang('common_close_open_list'));
|
||||
MyViewAssign('common_close_open_list', MyConst('common_close_open_list'));
|
||||
|
||||
// 登录方式
|
||||
MyViewAssign('common_login_type_list', lang('common_login_type_list'));
|
||||
MyViewAssign('common_login_type_list', MyConst('common_login_type_list'));
|
||||
|
||||
// 用户注册类型列表
|
||||
MyViewAssign('common_user_reg_type_list', lang('common_user_reg_type_list'));
|
||||
MyViewAssign('common_user_reg_type_list', MyConst('common_user_reg_type_list'));
|
||||
|
||||
// 图片验证码规则
|
||||
MyViewAssign('site_images_verify_rules_list', lang('site_images_verify_rules_list'));
|
||||
MyViewAssign('site_images_verify_rules_list', MyConst('site_images_verify_rules_list'));
|
||||
|
||||
// 热门搜索关键字
|
||||
MyViewAssign('common_search_keywords_type_list', lang('common_search_keywords_type_list'));
|
||||
MyViewAssign('common_search_keywords_type_list', MyConst('common_search_keywords_type_list'));
|
||||
|
||||
// 是否
|
||||
MyViewAssign('common_is_text_list', lang('common_is_text_list'));
|
||||
MyViewAssign('common_is_text_list', MyConst('common_is_text_list'));
|
||||
|
||||
// 站点类型
|
||||
MyViewAssign('common_site_type_list', lang('common_site_type_list'));
|
||||
MyViewAssign('common_site_type_list', MyConst('common_site_type_list'));
|
||||
|
||||
// 扣除库存规则
|
||||
MyViewAssign('common_deduction_inventory_rules_list', lang('common_deduction_inventory_rules_list'));
|
||||
MyViewAssign('common_deduction_inventory_rules_list', MyConst('common_deduction_inventory_rules_list'));
|
||||
|
||||
// 增加销量规则
|
||||
MyViewAssign('common_sales_count_inc_rules_list', lang('common_sales_count_inc_rules_list'));
|
||||
MyViewAssign('common_sales_count_inc_rules_list', MyConst('common_sales_count_inc_rules_list'));
|
||||
|
||||
// 首页商品排序规则
|
||||
MyViewAssign('goods_order_by_type_list', lang('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', lang('goods_order_by_rule_list'));
|
||||
MyViewAssign('goods_order_by_type_list', MyConst('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', MyConst('goods_order_by_rule_list'));
|
||||
|
||||
// 首页楼层数据类型
|
||||
MyViewAssign('common_site_floor_data_type_list', lang('common_site_floor_data_type_list'));
|
||||
MyViewAssign('common_site_floor_data_type_list', MyConst('common_site_floor_data_type_list'));
|
||||
|
||||
// 搜索参数类型
|
||||
MyViewAssign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list'));
|
||||
MyViewAssign('common_goods_parameters_type_list', MyConst('common_goods_parameters_type_list'));
|
||||
|
||||
// 主导航
|
||||
MyViewAssign('second_nav_list', [
|
||||
|
@ -136,9 +136,9 @@ class Slide extends Common
|
||||
}
|
||||
|
||||
// 静态资源
|
||||
MyViewAssign('common_is_enable_list', lang('common_is_enable_list'));
|
||||
MyViewAssign('common_platform_type', lang('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', lang('common_app_event_type'));
|
||||
MyViewAssign('common_is_enable_list', MyConst('common_is_enable_list'));
|
||||
MyViewAssign('common_platform_type', MyConst('common_platform_type'));
|
||||
MyViewAssign('common_app_event_type', MyConst('common_app_event_type'));
|
||||
|
||||
// 编辑器文件存放地址
|
||||
MyViewAssign('editor_path_type', ResourcesService::EditorPathTypeValue('slide'));
|
||||
|
@ -129,7 +129,7 @@ class User extends Common
|
||||
$data = UserService::UserList($data_params);
|
||||
|
||||
// Excel驱动导出数据
|
||||
$excel = new \base\Excel(array('filename'=>'user', 'title'=>lang('excel_user_title_list'), 'data'=>$data['data'], 'msg'=>'没有相关数据'));
|
||||
$excel = new \base\Excel(array('filename'=>'user', 'title'=>MyConst('excel_user_title_list'), 'data'=>$data['data'], 'msg'=>'没有相关数据'));
|
||||
return $excel->Export();
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@ class User extends Common
|
||||
]));
|
||||
|
||||
// 性别
|
||||
MyViewAssign('common_gender_list', lang('common_gender_list'));
|
||||
MyViewAssign('common_gender_list', MyConst('common_gender_list'));
|
||||
|
||||
// 数据
|
||||
unset($params['id']);
|
||||
|
@ -73,12 +73,12 @@ class Admin
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_admin_status_list'),
|
||||
'view_data' => MyConst('common_admin_status_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_admin_status_list'),
|
||||
'data' => MyConst('common_admin_status_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -89,12 +89,12 @@ class Admin
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'gender',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_gender_list'),
|
||||
'view_data' => MyConst('common_gender_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_gender_list'),
|
||||
'data' => MyConst('common_gender_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -124,7 +124,7 @@ class Answer
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_show_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -70,12 +70,12 @@ class AppCenterNav
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'platform',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('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' => lang('common_app_event_type'),
|
||||
'view_data' => MyConst('common_app_event_type'),
|
||||
'grid_size' => 'sm',
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_app_event_type'),
|
||||
'data' => MyConst('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' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -70,12 +70,12 @@ class AppHomeNav
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'platform',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('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' => lang('common_app_event_type'),
|
||||
'view_data' => MyConst('common_app_event_type'),
|
||||
'grid_size' => 'sm',
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_app_event_type'),
|
||||
'data' => MyConst('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' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -106,7 +106,7 @@ class Article
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -123,7 +123,7 @@ class Brand
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -79,7 +79,7 @@ class CustomView
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -88,7 +88,7 @@ class Design
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -104,7 +104,7 @@ class Design
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -120,7 +120,7 @@ class Design
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -161,7 +161,7 @@ class Goods
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_shelves_list'),
|
||||
'data' => MyConst('common_is_shelves_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -177,7 +177,7 @@ class Goods
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -188,12 +188,12 @@ class Goods
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'site_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_site_type_list'),
|
||||
'view_data' => MyConst('common_site_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_site_type_list'),
|
||||
'data' => MyConst('common_site_type_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -91,13 +91,13 @@ class GoodsComments
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'business_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_goods_comments_business_type_list'),
|
||||
'view_data' => MyConst('common_goods_comments_business_type_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_goods_comments_business_type_list'),
|
||||
'data' => MyConst('common_goods_comments_business_type_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -130,7 +130,7 @@ class GoodsComments
|
||||
'form_type' => 'select',
|
||||
'form_name' => 'rating',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_goods_comments_rating_list'),
|
||||
'data' => MyConst('common_goods_comments_rating_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -158,7 +158,7 @@ class GoodsComments
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_shelves_list'),
|
||||
'data' => MyConst('common_is_shelves_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -174,7 +174,7 @@ class GoodsComments
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -190,7 +190,7 @@ class GoodsComments
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -77,7 +77,7 @@ class GoodsParamsTemplate
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -64,12 +64,12 @@ class IntegralLog
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_integral_log_type_list'),
|
||||
'view_data' => MyConst('common_integral_log_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_integral_log_type_list'),
|
||||
'data' => MyConst('common_integral_log_type_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -101,7 +101,7 @@ class Link
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -117,7 +117,7 @@ class Link
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -77,12 +77,12 @@ class Message
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_message_type_list'),
|
||||
'view_data' => MyConst('common_message_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_message_type_list'),
|
||||
'data' => MyConst('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' => lang('common_is_read_list'),
|
||||
'view_data' => MyConst('common_is_read_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_read_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'where_type_custom' => 'WhereTypeUserIsDelete',
|
||||
|
@ -76,12 +76,12 @@ class Navigation
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'data_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_nav_type_list'),
|
||||
'view_data' => MyConst('common_nav_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_nav_type_list'),
|
||||
'data' => MyConst('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' => lang('common_is_show_list'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -88,7 +88,7 @@ class Order
|
||||
'form_type' => 'select',
|
||||
'form_name' => 'status',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_admin_status'),
|
||||
'data' => MyConst('common_order_admin_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' => lang('common_order_pay_status'),
|
||||
'data' => MyConst('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' => lang('common_site_type_list'),
|
||||
'view_data' => MyConst('common_site_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_site_type_list'),
|
||||
'data' => MyConst('common_site_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' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('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' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'where_type_custom' => 'WhereTypyUserIsComments',
|
||||
|
@ -80,13 +80,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_status_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_status_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_status_list'),
|
||||
'data' => MyConst('common_order_aftersale_status_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -97,13 +97,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_type_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_type_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_type_list'),
|
||||
'data' => MyConst('common_order_aftersale_type_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -154,13 +154,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'refundment',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_refundment_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_refundment_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_refundment_list'),
|
||||
'data' => MyConst('common_order_aftersale_refundment_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -93,12 +93,12 @@ class PayLog
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_pay_log_status_list'),
|
||||
'view_data' => MyConst('common_pay_log_status_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_pay_log_status_list'),
|
||||
'data' => MyConst('common_pay_log_status_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -70,12 +70,12 @@ class QuickNav
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'platform',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('common_platform_type'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -92,13 +92,13 @@ class QuickNav
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'event_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_app_event_type'),
|
||||
'view_data' => MyConst('common_app_event_type'),
|
||||
'grid_size' => 'sm',
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_app_event_type'),
|
||||
'data' => MyConst('common_app_event_type'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -126,7 +126,7 @@ class QuickNav
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -131,7 +131,7 @@ class RefundLog
|
||||
'form_type' => 'select',
|
||||
'form_name' => 'refundment',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_refundment_list'),
|
||||
'data' => MyConst('common_order_aftersale_refundment_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -79,7 +79,7 @@ class Role
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -70,12 +70,12 @@ class Slide
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'platform',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('common_platform_type'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -92,12 +92,12 @@ class Slide
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'event_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_app_event_type'),
|
||||
'view_data' => MyConst('common_app_event_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_app_event_type'),
|
||||
'data' => MyConst('common_app_event_type'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -125,7 +125,7 @@ class Slide
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -116,12 +116,12 @@ class User
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'gender',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_gender_list'),
|
||||
'view_data' => MyConst('common_gender_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_gender_list'),
|
||||
'data' => MyConst('common_gender_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -132,12 +132,12 @@ class User
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_user_status_list'),
|
||||
'view_data' => MyConst('common_user_status_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_user_status_list'),
|
||||
'data' => MyConst('common_user_status_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -169,7 +169,7 @@ class UserAddress
|
||||
'form_type' => 'select',
|
||||
'form_name' => 'is_default',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -94,7 +94,7 @@ class Warehouse
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -101,7 +101,7 @@ class WarehouseGoods
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_enable_list'),
|
||||
'data' => MyConst('common_is_enable_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -29,13 +29,13 @@
|
||||
<form class="am-form form-validation-username" method="post" action="{{:MyUrl('admin/admin/login')}}" request-type="ajax-url" request-value="{{:MyUrl('admin/index/index')}}">
|
||||
<div class="am-form-group am-form-group-refreshing">
|
||||
<label>用户名</label>
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入用户名" pattern="{{:lang('common_regex_username')}}" data-validation-message="用户名格式 5~18 个字符(可以是字母数字下划线)" required />
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入用户名" pattern="{{:MyConst('common_regex_username')}}" data-validation-message="用户名格式 5~18 个字符(可以是字母数字下划线)" required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="请输入登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="请输入登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
@ -96,7 +96,7 @@
|
||||
<form class="am-form form-validation-sms" method="post" action="{{:MyUrl('admin/admin/login')}}" request-type="ajax-url" request-value="{{:MyUrl('admin/index/index')}}">
|
||||
<div class="am-form-group am-form-group-refreshing">
|
||||
<label>手机号码</label>
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
|
@ -11,15 +11,15 @@
|
||||
</legend>
|
||||
<div class="am-form-group">
|
||||
<label>用户名{{if empty($data)}}<span class="am-form-group-label-tips-must">必填</span><span class="am-form-group-label-tips">创建后不可更改</span>{{else /}}<span class="am-form-group-label-tips">不可更改</span>{{/if}}</label>
|
||||
<input type="text" name="username" placeholder="用户名" pattern="{{:lang('common_regex_username')}}" data-validation-message="用户名格式 5~18 个字符(可以是字母数字下划线)" class="am-radius" {{if !empty($data['username'])}}value="{{$data.username}}" disabled{{/if}} required />
|
||||
<input type="text" name="username" placeholder="用户名" pattern="{{:MyConst('common_regex_username')}}" data-validation-message="用户名格式 5~18 个字符(可以是字母数字下划线)" class="am-radius" {{if !empty($data['username'])}}value="{{$data.username}}" disabled{{/if}} required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>登录密码{{if empty($data)}}<span class="am-form-group-label-tips-must">必填</span>{{else /}}<span class="am-form-group-label-tips">选填</span>{{/if}}</label>
|
||||
<input type="password" name="login_pwd" placeholder="登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" class="am-radius" {{if empty($data)}}required{{/if}} />
|
||||
<input type="password" name="login_pwd" placeholder="登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" class="am-radius" {{if empty($data)}}required{{/if}} />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>手机号码<span class="am-form-group-label-tips">选填</span></label>
|
||||
<input type="text" name="mobile" placeholder="手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" class="am-radius" {{if !empty($data['mobile'])}}value="{{$data.mobile}}"{{/if}} />
|
||||
<input type="text" name="mobile" placeholder="手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" class="am-radius" {{if !empty($data['mobile'])}}value="{{$data.mobile}}"{{/if}} />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>电子邮箱<span class="am-form-group-label-tips">选填</span></label>
|
||||
@ -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 :lang('common_admin_status_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_page_size.name}}<span class="am-form-group-label-tips">{{$data.common_page_size.describe}}</span></label>
|
||||
<input type="number" name="{{$data.common_page_size.only_tag}}" placeholder="{{$data.common_page_size.name}}" pattern="{{:lang('common_regex_page_number')}}" data-validation-message="{{$data.common_page_size.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.common_page_size.value}}"{{/if}} required />
|
||||
<input type="number" name="{{$data.common_page_size.only_tag}}" placeholder="{{$data.common_page_size.name}}" pattern="{{:MyConst('common_regex_page_number')}}" data-validation-message="{{$data.common_page_size.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.common_page_size.value}}"{{/if}} required />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否启用</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_enable_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>性别<span class="am-form-group-label-tips-must">必选</span></label>
|
||||
<div>
|
||||
{{foreach :lang('common_gender_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否含尾部</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_text_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否满屏</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_text_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否含头部</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_text_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否新窗口打开</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_text_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否显示</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_show_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>用户状态</label>
|
||||
<select name="status" class="am-radius chosen-select" data-validation-message="请选择用户状态" required>
|
||||
{{foreach :lang('common_user_status_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>版本<span class="am-form-group-label-tips">主版本.次版本号.修订号,每个段不超过6位,如 1.0.0</span></label>
|
||||
<input type="text" name="version" placeholder="版本" minlength="5" maxlength="18" data-validation-message="版本格式有误" pattern="{{:lang('common_regex_version')}}" class="am-radius" {{if !empty($data)}} value="{{$data.version}}"{{/if}} required />
|
||||
<input type="text" name="version" placeholder="版本" minlength="5" maxlength="18" data-validation-message="版本格式有误" pattern="{{:MyConst('common_regex_version')}}" class="am-radius" {{if !empty($data)}} value="{{$data.version}}"{{/if}} required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-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 :lang('common_platform_type') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
@ -63,7 +63,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>适用系统版本</label>
|
||||
<select name="apply_version" class="am-radius chosen-select" multiple="multiple" minchecked="1" data-placeholder="可选择..." data-validation-message="至少选择一个适用系统版本" required>
|
||||
{{foreach :lang('common_system_version_list') as $v}}
|
||||
{{foreach :MyConst('common_system_version_list') as $v}}
|
||||
<option value="{{$v.value}}" {{if isset($data['apply_version']) and in_array($v['value'], $data['apply_version'])}}selected{{/if}}>{{$v.name}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
|
@ -49,11 +49,11 @@
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>控制器名称</label>
|
||||
<input type="text" placeholder="控制器名称" name="control" pattern="{{:lang('common_regex_control')}}" data-validation-message="控制器名格式 1~30 个字符之间(必须以字母开始,可以是字母数字下划线)" class="am-radius" />
|
||||
<input type="text" placeholder="控制器名称" name="control" pattern="{{:MyConst('common_regex_control')}}" data-validation-message="控制器名格式 1~30 个字符之间(必须以字母开始,可以是字母数字下划线)" class="am-radius" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>方法名称</label>
|
||||
<input type="text" placeholder="方法名称" name="action" pattern="{{:lang('common_regex_action')}}" data-validation-message="方法名格式 1~30 个字符之间(必须以字母开始,可以是字母数字下划线)" class="am-radius" />
|
||||
<input type="text" placeholder="方法名称" name="action" pattern="{{:MyConst('common_regex_action')}}" data-validation-message="方法名格式 1~30 个字符之间(必须以字母开始,可以是字母数字下划线)" class="am-radius" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>自定义url地址<span class="am-form-group-label-tips">带http://或https://</span></label>
|
||||
|
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.home_seo_url_html_suffix.name}}<span class="am-form-group-label-tips">{{$data.home_seo_url_html_suffix.describe}}</span></label>
|
||||
<input type="text" name="{{$data.home_seo_url_html_suffix.only_tag}}" pattern="{{:lang('common_regex_url_html_suffix')}}" maxlength="8" placeholder="{{$data.home_seo_url_html_suffix.name}}" data-validation-message="{{$data.home_seo_url_html_suffix.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_seo_url_html_suffix.value}}"{{/if}} />
|
||||
<input type="text" name="{{$data.home_seo_url_html_suffix.only_tag}}" pattern="{{:MyConst('common_regex_url_html_suffix')}}" maxlength="8" placeholder="{{$data.home_seo_url_html_suffix.name}}" data-validation-message="{{$data.home_seo_url_html_suffix.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_seo_url_html_suffix.value}}"{{/if}} />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.home_seo_site_title.name}}<span class="am-form-group-label-tips">{{$data.home_seo_site_title.describe}}</span></label>
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>手机号码</label>
|
||||
<input type="text" name="mobile" class="am-radius" placeholder="手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" {{if !empty($data)}} value="{{$data.mobile}}"{{/if}} />
|
||||
<input type="text" name="mobile" class="am-radius" placeholder="手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" {{if !empty($data)}} value="{{$data.mobile}}"{{/if}} />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>电子邮箱</label>
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>生日</label>
|
||||
<input type="text" name="birthday" class="am-radius Wdate" placeholder="生日" pattern="{{:lang('common_regex_date')}}" data-validation-message="生日格式有误" {{if !empty($data)}} value="{{$data.birthday_text}}" {{/if}} onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />
|
||||
<input type="text" name="birthday" class="am-radius Wdate" placeholder="生日" pattern="{{:MyConst('common_regex_date')}}" data-validation-message="生日格式有误" {{if !empty($data)}} value="{{$data.birthday_text}}" {{/if}} onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>详细地址</label>
|
||||
@ -83,7 +83,7 @@
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>登录密码</label>
|
||||
<input type="text" placeholder="登录密码" name="pwd" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="登录密码格式 6~18 个字符之间" class="am-radius" value="" />
|
||||
<input type="text" placeholder="登录密码" name="pwd" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="登录密码格式 6~18 个字符之间" class="am-radius" value="" />
|
||||
</div>
|
||||
|
||||
<!-- 插件扩展数据 start -->
|
||||
|
@ -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' => lang('common_order_aftersale_type_list'),
|
||||
'aftersale_type_list' => MyConst('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)),
|
||||
];
|
||||
|
@ -11,6 +11,21 @@
|
||||
|
||||
// 应用公共文件
|
||||
|
||||
/**
|
||||
* 获取常量数据
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2021-08-14
|
||||
* @desc description
|
||||
* @param [string] $key [数据key]
|
||||
* @param [mixed] $default [默认值]
|
||||
*/
|
||||
function MyConst($key = '', $default = null)
|
||||
{
|
||||
return \app\service\ConstService::Run($key, $default);
|
||||
}
|
||||
|
||||
/**
|
||||
* session管理
|
||||
* @author Devil
|
||||
@ -1710,7 +1725,7 @@ function FileUploadError($name, $index = false)
|
||||
}
|
||||
|
||||
// 错误码对应的错误信息
|
||||
$file_error_list = lang('common_file_upload_error_list');
|
||||
$file_error_list = MyConst('common_file_upload_error_list');
|
||||
if(isset($file_error_list[$error]))
|
||||
{
|
||||
return $file_error_list[$error];
|
||||
@ -2149,7 +2164,7 @@ function XmlArray($xmlstring) {
|
||||
*/
|
||||
function CheckMobile($mobile)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_mobile').'/', $mobile) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_mobile').'/', $mobile) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2163,7 +2178,7 @@ function CheckMobile($mobile)
|
||||
*/
|
||||
function CheckTel($tel)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_tel').'/', $tel) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_tel').'/', $tel) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2177,7 +2192,7 @@ function CheckTel($tel)
|
||||
*/
|
||||
function CheckEmail($email)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_email').'/', $email) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_email').'/', $email) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2191,7 +2206,7 @@ function CheckEmail($email)
|
||||
*/
|
||||
function CheckIdCard($number)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_id_card').'/', $number) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_id_card').'/', $number) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2205,7 +2220,7 @@ function CheckIdCard($number)
|
||||
*/
|
||||
function CheckPrice($price)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_price').'/', $price) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_price').'/', $price) == 1) ? true : false;
|
||||
}
|
||||
|
||||
|
||||
@ -2219,7 +2234,7 @@ function CheckPrice($price)
|
||||
*/
|
||||
function CheckIp($ip)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_ip').'/', $ip) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_ip').'/', $ip) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2232,7 +2247,7 @@ function CheckIp($ip)
|
||||
*/
|
||||
function CheckUrl($url)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_url').'/', $url) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_url').'/', $url) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2245,7 +2260,7 @@ function CheckUrl($url)
|
||||
*/
|
||||
function CheckVersion($ver)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_version').'/', $ver) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_version').'/', $ver) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2259,7 +2274,7 @@ function CheckVersion($ver)
|
||||
*/
|
||||
function CheckUserName($string)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_username').'/', $string) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_username').'/', $string) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2287,7 +2302,7 @@ function CheckSort($value)
|
||||
*/
|
||||
function CheckColor($value)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_color').'/', $value) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_color').'/', $value) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2301,7 +2316,7 @@ function CheckColor($value)
|
||||
*/
|
||||
function CheckLoginPwd($string)
|
||||
{
|
||||
return (preg_match('/'.lang('common_regex_pwd').'/', $string) == 1) ? true : false;
|
||||
return (preg_match('/'.MyConst('common_regex_pwd').'/', $string) == 1) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -249,7 +249,7 @@ class Common extends BaseController
|
||||
MyViewAssign('common_goods_category_hidden', $common_goods_category_hidden);
|
||||
|
||||
// 价格正则
|
||||
MyViewAssign('default_price_regex', lang('common_regex_price'));
|
||||
MyViewAssign('default_price_regex', MyConst('common_regex_price'));
|
||||
|
||||
// 附件host地址
|
||||
MyViewAssign('attachment_host', SystemBaseService::AttachmentHost());
|
||||
|
@ -94,8 +94,8 @@ class Index extends Common
|
||||
MyViewAssign('many_images_view_list_show_style', BaseLayout::$many_images_view_list_show_style);
|
||||
|
||||
// 首页商品排序规则
|
||||
MyViewAssign('goods_order_by_type_list', lang('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', lang('goods_order_by_rule_list'));
|
||||
MyViewAssign('goods_order_by_type_list', MyConst('goods_order_by_type_list'));
|
||||
MyViewAssign('goods_order_by_rule_list', MyConst('goods_order_by_rule_list'));
|
||||
|
||||
// 浏览器名称
|
||||
MyViewAssign('home_seo_site_title', SeoService::BrowserSeoTitle('首页设计', 1));
|
||||
|
@ -140,7 +140,7 @@ class Orderaftersale extends Common
|
||||
MyViewAssign('return_goods_address', $return_goods_address);
|
||||
|
||||
// 静态数据
|
||||
MyViewAssign('common_order_aftersale_type_list', lang('common_order_aftersale_type_list'));
|
||||
MyViewAssign('common_order_aftersale_type_list', MyConst('common_order_aftersale_type_list'));
|
||||
|
||||
// 编辑器文件存放地址
|
||||
MyViewAssign('editor_path_type', ResourcesService::EditorPathTypeValue(OrderAftersaleService::EditorAttachmentPathType($this->user['id'], $order_id, $order_detail_id)));
|
||||
|
@ -67,7 +67,7 @@ class Personal extends Common
|
||||
public function SaveInfo()
|
||||
{
|
||||
// 性别
|
||||
MyViewAssign('common_gender_list', lang('common_gender_list'));
|
||||
MyViewAssign('common_gender_list', MyConst('common_gender_list'));
|
||||
|
||||
// 数据
|
||||
MyViewAssign('data', $this->user);
|
||||
|
@ -69,12 +69,12 @@ class Message
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_message_type_list'),
|
||||
'view_data' => MyConst('common_message_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_message_type_list'),
|
||||
'data' => MyConst('common_message_type_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -120,12 +120,12 @@ class Message
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'is_read',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_is_read_list'),
|
||||
'view_data' => MyConst('common_is_read_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_is_read_list'),
|
||||
'data' => MyConst('common_is_read_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -88,12 +88,12 @@ class Order
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_user_status'),
|
||||
'view_data' => MyConst('common_order_user_status'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_user_status'),
|
||||
'data' => MyConst('common_order_user_status'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -108,7 +108,7 @@ class Order
|
||||
'form_type' => 'select',
|
||||
'form_name' => 'pay_status',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_pay_status'),
|
||||
'data' => MyConst('common_order_pay_status'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -149,12 +149,12 @@ class Order
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'order_model',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_site_type_list'),
|
||||
'view_data' => MyConst('common_site_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_site_type_list'),
|
||||
'data' => MyConst('common_site_type_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -165,12 +165,12 @@ class Order
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'client_type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_platform_type'),
|
||||
'view_data' => MyConst('common_platform_type'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_platform_type'),
|
||||
'data' => MyConst('common_platform_type'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -320,7 +320,7 @@ class Order
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'form_name' => 'user_is_comments',
|
||||
'data' => lang('common_is_text_list'),
|
||||
'data' => MyConst('common_is_text_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'where_type_custom' => 'WhereTypyUserIsComments',
|
||||
|
@ -83,13 +83,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'status',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_status_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_status_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_status_list'),
|
||||
'data' => MyConst('common_order_aftersale_status_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -100,13 +100,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_type_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_type_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_type_list'),
|
||||
'data' => MyConst('common_order_aftersale_type_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
@ -157,13 +157,13 @@ class OrderAftersale
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'refundment',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_order_aftersale_refundment_list'),
|
||||
'view_data' => MyConst('common_order_aftersale_refundment_list'),
|
||||
'width' => 120,
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_order_aftersale_refundment_list'),
|
||||
'data' => MyConst('common_order_aftersale_refundment_list'),
|
||||
'data_key' => 'value',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -67,12 +67,12 @@ class UserIntegral
|
||||
'view_type' => 'field',
|
||||
'view_key' => 'type',
|
||||
'view_data_key' => 'name',
|
||||
'view_data' => lang('common_integral_log_type_list'),
|
||||
'view_data' => MyConst('common_integral_log_type_list'),
|
||||
'is_sort' => 1,
|
||||
'search_config' => [
|
||||
'form_type' => 'select',
|
||||
'where_type' => 'in',
|
||||
'data' => lang('common_integral_log_type_list'),
|
||||
'data' => MyConst('common_integral_log_type_list'),
|
||||
'data_key' => 'id',
|
||||
'data_name' => 'name',
|
||||
'is_multiple' => 1,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name":"默认主题",
|
||||
"ver":"2.2.0",
|
||||
"ver":"2.2.1",
|
||||
"author":"Devil",
|
||||
"home":"https://shopxo.net/"
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否启用</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_enable_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>性别</label>
|
||||
<div>
|
||||
{{foreach :lang('common_gender_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否新窗口打开</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_text_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="am-form-group">
|
||||
<label>是否显示</label>
|
||||
<div>
|
||||
{{foreach :lang('common_is_show_list') as $v}}
|
||||
{{foreach :MyConst('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>
|
||||
|
@ -30,15 +30,15 @@
|
||||
</legend>
|
||||
<div class="am-form-group">
|
||||
<label>当前密码</label>
|
||||
<input type="password" name="my_pwd" placeholder="当前密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="当前密码格式 6~18 个字符之间" class="am-radius" required />
|
||||
<input type="password" name="my_pwd" placeholder="当前密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="当前密码格式 6~18 个字符之间" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>新密码</label>
|
||||
<input type="password" name="new_pwd" placeholder="新密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="新密码格式 6~18 个字符之间" class="am-radius" id="new-loginpwd" required />
|
||||
<input type="password" name="new_pwd" placeholder="新密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="新密码格式 6~18 个字符之间" class="am-radius" id="new-loginpwd" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>确认密码</label>
|
||||
<input type="password" name="confirm_new_pwd" placeholder="确认密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="确认密码格式 6~18 个字符之间,与新密码一致" class="am-radius" data-equal-to="#new-loginpwd" required />
|
||||
<input type="password" name="confirm_new_pwd" placeholder="确认密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="确认密码格式 6~18 个字符之间,与新密码一致" class="am-radius" data-equal-to="#new-loginpwd" required />
|
||||
</div>
|
||||
<div class="am-form-group am-form-group-refreshing">
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">保存</button>
|
||||
|
@ -30,7 +30,7 @@
|
||||
</legend>
|
||||
<div class="am-form-group">
|
||||
<label>手机号码</label>
|
||||
<input type="text" name="accounts" class="am-radius" id="accounts" placeholder="手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
<input type="text" name="accounts" class="am-radius" id="accounts" placeholder="手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
</div>
|
||||
<label>验证码</label>
|
||||
<div class="am-input-group am-input-group-sm am-form-group">
|
||||
|
@ -49,7 +49,7 @@
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>设置登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="请输入登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="请输入登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
@ -86,7 +86,7 @@
|
||||
<form class="am-form form-validation-sms" method="post" action="{{:MyUrl('index/user/login')}}" request-type="ajax-fun" request-value="LoginBackHandle">
|
||||
<div class="am-form-group am-form-group-refreshing">
|
||||
<label>手机号码</label>
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
|
@ -72,13 +72,13 @@
|
||||
<form class="am-form form-validation-username" method="post" action="{{:MyUrl('index/user/reg')}}" request-type="ajax-fun" request-value="RegisterSuccessBack">
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block">
|
||||
<label>用户名</label>
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请使用字母、数字、下划线 2~18 个字符" pattern="{{:lang('common_regex_username')}}" data-validation-message="用户名格式由 字母数字下划线 2~18 个字符" required />
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请使用字母、数字、下划线 2~18 个字符" pattern="{{:MyConst('common_regex_username')}}" data-validation-message="用户名格式由 字母数字下划线 2~18 个字符" required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>设置登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
@ -125,7 +125,7 @@
|
||||
<form class="am-form form-validation-sms" method="post" action="{{:MyUrl('index/user/reg')}}" request-type="ajax-fun" request-value="RegisterSuccessBack">
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block">
|
||||
<label>手机号码</label>
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:lang('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
<input type="text" name="accounts" class="am-radius" placeholder="请输入手机号码" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="手机号码格式错误" required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
@ -141,7 +141,7 @@
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>设置登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
@ -189,7 +189,7 @@
|
||||
<div class="am-form-group am-form-group-refreshing business-form-block am-margin-top-xs">
|
||||
<label>设置登录密码</label>
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:lang('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<input type="password" name="pwd" class="am-radius" placeholder="设置登录密码" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="密码格式 6~18 个字符之间" required />
|
||||
<span class="am-input-group-btn">
|
||||
<button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
|
||||
</span>
|
||||
|
@ -795,8 +795,8 @@ class BaseLayout
|
||||
}
|
||||
|
||||
// 排序处理
|
||||
$order_by_type_list = lang('goods_order_by_type_list');
|
||||
$order_by_rule_list = lang('goods_order_by_rule_list');
|
||||
$order_by_type_list = MyConst('goods_order_by_type_list');
|
||||
$order_by_rule_list = MyConst('goods_order_by_rule_list');
|
||||
|
||||
// 排序类型
|
||||
$order_by_type = empty($params['order_by_type']) ? $order_by_type_list[0]['value'] : (array_key_exists($params['order_by_type'], $order_by_type_list) ? $order_by_type_list[$params['order_by_type']]['value'] : $order_by_type_list[0]['value']);
|
||||
|
@ -71,7 +71,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="pages-custom-url-container am-padding-sm">
|
||||
{{foreach :lang('common_platform_type') as $v}}
|
||||
{{foreach :MyConst('common_platform_type') as $v}}
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<span class="am-input-group-btn">
|
||||
<button type="button" class="am-btn am-btn-default am-radius">{{$v.name}}</button>
|
||||
|
@ -49,8 +49,8 @@ class AdminService
|
||||
$roles = Db::name('Role')->where('id', 'in', array_column($data, 'role_id'))->column('name', 'id');
|
||||
|
||||
// 数据处理
|
||||
$common_gender_list = lang('common_gender_list');
|
||||
$common_admin_status_list = lang('common_admin_status_list');
|
||||
$common_gender_list = MyConst('common_gender_list');
|
||||
$common_admin_status_list = MyConst('common_admin_status_list');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 所在角色组
|
||||
@ -140,7 +140,7 @@ class AdminService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'status',
|
||||
'checked_data' => array_column(lang('common_admin_status_list'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_admin_status_list'), 'value'),
|
||||
'error_msg' => '状态值范围不正确',
|
||||
],
|
||||
[
|
||||
@ -368,7 +368,7 @@ class AdminService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'type',
|
||||
'checked_data' => array_column(lang('common_login_type_list'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_login_type_list'), 'value'),
|
||||
'error_msg' => '登录类型有误',
|
||||
],
|
||||
[
|
||||
@ -583,7 +583,7 @@ class AdminService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'type',
|
||||
'checked_data' => array_column(lang('common_login_type_list'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_login_type_list'), 'value'),
|
||||
'error_msg' => '登录类型有误',
|
||||
],
|
||||
];
|
||||
|
@ -42,8 +42,8 @@ class AppCenterNavService
|
||||
$data = Db::name('AppCenterNav')->where($where)->order($order_by)->limit($m, $n)->select()->toArray();
|
||||
if(!empty($data))
|
||||
{
|
||||
$common_platform_type = lang('common_platform_type');
|
||||
$common_app_event_type = lang('common_app_event_type');
|
||||
$common_platform_type = MyConst('common_platform_type');
|
||||
$common_app_event_type = MyConst('common_app_event_type');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 平台类型
|
||||
@ -114,13 +114,13 @@ class AppCenterNavService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'platform',
|
||||
'checked_data' => array_column(lang('common_platform_type'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_platform_type'), 'value'),
|
||||
'error_msg' => '平台类型有误',
|
||||
],
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'event_type',
|
||||
'checked_data' => array_column(lang('common_app_event_type'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_app_event_type'), 'value'),
|
||||
'is_checked' => 2,
|
||||
'error_msg' => '事件值类型有误',
|
||||
],
|
||||
|
@ -42,8 +42,8 @@ class AppHomeNavService
|
||||
$data = Db::name('AppHomeNav')->where($where)->order($order_by)->limit($m, $n)->select()->toArray();
|
||||
if(!empty($data))
|
||||
{
|
||||
$common_platform_type = lang('common_platform_type');
|
||||
$common_app_event_type = lang('common_app_event_type');
|
||||
$common_platform_type = MyConst('common_platform_type');
|
||||
$common_app_event_type = MyConst('common_app_event_type');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 平台类型
|
||||
@ -114,13 +114,13 @@ class AppHomeNavService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'platform',
|
||||
'checked_data' => array_column(lang('common_platform_type'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_platform_type'), 'value'),
|
||||
'error_msg' => '平台类型有误',
|
||||
],
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'event_type',
|
||||
'checked_data' => array_column(lang('common_app_event_type'), 'value'),
|
||||
'checked_data' => array_column(MyConst('common_app_event_type'), 'value'),
|
||||
'is_checked' => 2,
|
||||
'error_msg' => '事件值类型有误',
|
||||
],
|
||||
|
@ -50,7 +50,7 @@ class AppMiniService
|
||||
self::$application_name = isset($params['application_name']) ? $params['application_name'] : 'weixin';
|
||||
|
||||
// 小程序类型校验
|
||||
if(!array_key_exists(self::$application_name, lang('common_appmini_type')))
|
||||
if(!array_key_exists(self::$application_name, MyConst('common_appmini_type')))
|
||||
{
|
||||
return DataReturn('小程序类型有误['.self::$application_name.']', -1);
|
||||
}
|
||||
@ -430,7 +430,7 @@ class AppMiniService
|
||||
\base\FileUtil::UnlinkDir($new_dir);
|
||||
|
||||
// 开始下载
|
||||
$appmini_type = lang('common_appmini_type');
|
||||
$appmini_type = MyConst('common_appmini_type');
|
||||
$application_name = array_key_exists(self::$application_name, $appmini_type) ? $appmini_type[self::$application_name]['name'].'-' : '';
|
||||
if(\base\FileUtil::DownloadFile($new_dir.'.zip', $application_name.$config['name'].'_v'.$config['ver'].'.zip'))
|
||||
{
|
||||
|
529
app/service/ConstService.php
Normal file
529
app/service/ConstService.php
Normal file
@ -0,0 +1,529 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: Devil
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\service;
|
||||
|
||||
/**
|
||||
* 公共常量数据
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2021-08-13
|
||||
* @desc description
|
||||
*/
|
||||
class ConstService
|
||||
{
|
||||
/**
|
||||
* 数据定义容器
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2021-08-13
|
||||
* @desc description
|
||||
* @param [string] $key [数据key]
|
||||
* @param [mixed] $default [默认数据]
|
||||
*/
|
||||
public static function Run($key = '', $default = null)
|
||||
{
|
||||
// 数据定义
|
||||
$container = [
|
||||
// -------------------- 公共 --------------------
|
||||
// 系统版本列表
|
||||
'common_system_version_list' => [
|
||||
'1.1.0' => ['value' => '1.1.0', 'name' => 'v1.1.0'],
|
||||
'1.2.0' => ['value' => '1.2.0', 'name' => 'v1.2.0'],
|
||||
'1.3.0' => ['value' => '1.3.0', 'name' => 'v1.3.0'],
|
||||
'1.4.0' => ['value' => '1.4.0', 'name' => 'v1.4.0'],
|
||||
'1.5.0' => ['value' => '1.5.0', 'name' => 'v1.5.0'],
|
||||
'1.6.0' => ['value' => '1.6.0', 'name' => 'v1.6.0'],
|
||||
'1.7.0' => ['value' => '1.7.0', 'name' => 'v1.7.0'],
|
||||
'1.8.0' => ['value' => '1.8.0', 'name' => 'v1.8.0'],
|
||||
'1.8.1' => ['value' => '1.8.1', 'name' => 'v1.8.1'],
|
||||
'1.9.0' => ['value' => '1.9.0', 'name' => 'v1.9.0'],
|
||||
'1.9.1' => ['value' => '1.9.1', 'name' => 'v1.9.1'],
|
||||
'1.9.2' => ['value' => '1.9.2', 'name' => 'v1.9.2'],
|
||||
'1.9.3' => ['value' => '1.9.3', 'name' => 'v1.9.3'],
|
||||
'2.0.0' => ['value' => '2.0.0', 'name' => 'v2.0.0'],
|
||||
'2.0.1' => ['value' => '2.0.1', 'name' => 'v2.0.1'],
|
||||
'2.0.2' => ['value' => '2.0.2', 'name' => 'v2.0.2'],
|
||||
'2.0.3' => ['value' => '2.0.3', 'name' => 'v2.0.3'],
|
||||
'2.1.0' => ['value' => '2.1.0', 'name' => 'v2.1.0'],
|
||||
'2.2.0' => ['value' => '2.2.0', 'name' => 'v2.2.0'],
|
||||
'2.2.1' => ['value' => '2.2.0', 'name' => 'v2.2.1'],
|
||||
],
|
||||
|
||||
// 用户注册类型列表
|
||||
'common_user_reg_type_list' => [
|
||||
0 => ['value' => 'sms', 'name' => '短信'],
|
||||
1 => ['value' => 'email', 'name' => '邮箱'],
|
||||
2 => ['value' => 'username', 'name' => '用户名'],
|
||||
],
|
||||
|
||||
// 登录方式
|
||||
'common_login_type_list' => [
|
||||
0 => ['value' => 'username', 'name' => '帐号密码', 'checked' => true],
|
||||
1 => ['value' => 'email', 'name' => '邮箱验证码'],
|
||||
2 => ['value' => 'sms', 'name' => '手机验证码'],
|
||||
],
|
||||
|
||||
// 性别
|
||||
'common_gender_list' => [
|
||||
0 => ['id' => 0, 'name' => '保密', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '女'],
|
||||
2 => ['id' => 2, 'name' => '男'],
|
||||
],
|
||||
|
||||
// 关闭开启状态
|
||||
'common_close_open_list' => [
|
||||
0 => ['value' => 0, 'name' => '关闭'],
|
||||
1 => ['value' => 1, 'name' => '开启'],
|
||||
],
|
||||
|
||||
// 是否启用
|
||||
'common_is_enable_tips' => [
|
||||
0 => ['id' => 0, 'name' => '未启用'],
|
||||
1 => ['id' => 1, 'name' => '已启用'],
|
||||
],
|
||||
'common_is_enable_list' => [
|
||||
0 => ['id' => 0, 'name' => '不启用'],
|
||||
1 => ['id' => 1, 'name' => '启用', 'checked' => true],
|
||||
],
|
||||
|
||||
// 是否显示
|
||||
'common_is_show_list' => [
|
||||
0 => ['id' => 0, 'name' => '不显示'],
|
||||
1 => ['id' => 1, 'name' => '显示', 'checked' => true],
|
||||
],
|
||||
|
||||
// 状态
|
||||
'common_state_list' => [
|
||||
0 => ['id' => 0, 'name' => '不可用'],
|
||||
1 => ['id' => 1, 'name' => '可用', 'checked' => true],
|
||||
],
|
||||
|
||||
// excel编码列表
|
||||
'common_excel_charset_list' => [
|
||||
0 => ['id' => 0, 'value' => 'utf-8', 'name' => 'utf-8', 'checked' => true],
|
||||
1 => ['id' => 1, 'value' => 'gbk', 'name' => 'gbk'],
|
||||
],
|
||||
|
||||
// 支付状态
|
||||
'common_order_pay_status' => [
|
||||
0 => ['id' => 0, 'name' => '待支付', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '已支付'],
|
||||
2 => ['id' => 2, 'name' => '已退款'],
|
||||
3 => ['id' => 3, 'name' => '部分退款'],
|
||||
],
|
||||
|
||||
// 用户端 - 订单管理
|
||||
'common_order_user_status' => [
|
||||
0 => ['id' => 0, 'name' => '待确认', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '待付款'],
|
||||
2 => ['id' => 2, 'name' => '待发货'],
|
||||
3 => ['id' => 3, 'name' => '待收货'],
|
||||
4 => ['id' => 4, 'name' => '已完成'],
|
||||
5 => ['id' => 5, 'name' => '已取消'],
|
||||
6 => ['id' => 6, 'name' => '已关闭'],
|
||||
],
|
||||
|
||||
// 后台管理 - 订单管理
|
||||
'common_order_admin_status' => [
|
||||
0 => ['id' => 0, 'name' => '待确认', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '已确认/待支付'],
|
||||
2 => ['id' => 2, 'name' => '待发货/待取货'],
|
||||
3 => ['id' => 3, 'name' => '已发货/待收货'],
|
||||
4 => ['id' => 4, 'name' => '已完成'],
|
||||
5 => ['id' => 5, 'name' => '已取消'],
|
||||
6 => ['id' => 6, 'name' => '已关闭'],
|
||||
],
|
||||
|
||||
// 所属平台
|
||||
'common_platform_type' => [
|
||||
'pc' => ['value' => 'pc', 'name' => 'PC网站'],
|
||||
'h5' => ['value' => 'h5', 'name' => 'H5手机网站'],
|
||||
'ios' => ['value' => 'ios', 'name' => '苹果APP'],
|
||||
'android' => ['value' => 'android', 'name' => '安卓APP'],
|
||||
'weixin' => ['value' => 'weixin', 'name' => '微信小程序'],
|
||||
'alipay' => ['value' => 'alipay', 'name' => '支付宝小程序'],
|
||||
'baidu' => ['value' => 'baidu', 'name' => '百度小程序'],
|
||||
'toutiao' => ['value' => 'toutiao', 'name' => '头条小程序'],
|
||||
'qq' => ['value' => 'qq', 'name' => 'QQ小程序'],
|
||||
],
|
||||
|
||||
// app平台
|
||||
'common_app_type' => [
|
||||
'ios' => ['value' => 'ios', 'name' => '苹果APP'],
|
||||
'android' => ['value' => 'android', 'name' => '安卓APP'],
|
||||
],
|
||||
|
||||
// 小程序平台
|
||||
'common_appmini_type' => [
|
||||
'weixin' => ['value' => 'weixin', 'name' => '微信小程序'],
|
||||
'alipay' => ['value' => 'alipay', 'name' => '支付宝小程序'],
|
||||
'baidu' => ['value' => 'baidu', 'name' => '百度小程序'],
|
||||
'toutiao' => ['value' => 'toutiao', 'name' => '头条小程序'],
|
||||
'qq' => ['value' => 'qq', 'name' => 'QQ小程序'],
|
||||
],
|
||||
|
||||
// 扣除库存规则
|
||||
'common_deduction_inventory_rules_list' => [
|
||||
0 => ['id' => 0, 'name' => '订单确认成功'],
|
||||
1 => ['id' => 1, 'name' => '订单支付成功'],
|
||||
2 => ['id' => 2, 'name' => '订单发货'],
|
||||
],
|
||||
|
||||
// 商品增加销量规则
|
||||
'common_sales_count_inc_rules_list' => [
|
||||
0 => ['id' => 0, 'name' => '订单支付'],
|
||||
1 => ['id' => 1, 'name' => '订单收货'],
|
||||
],
|
||||
|
||||
// 是否已读
|
||||
'common_is_read_list' => [
|
||||
0 => ['id' => 0, 'name' => '未读', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '已读'],
|
||||
],
|
||||
|
||||
// 消息类型
|
||||
'common_message_type_list' => [
|
||||
0 => ['id' => 0, 'name' => '默认', 'checked' => true],
|
||||
],
|
||||
|
||||
// 用户积分 - 操作类型
|
||||
'common_integral_log_type_list' => [
|
||||
0 => ['id' => 0, 'name' => '减少', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '增加'],
|
||||
],
|
||||
|
||||
// 是否上架/下架
|
||||
'common_is_shelves_list' => [
|
||||
0 => ['id' => 0, 'name' => '下架'],
|
||||
1 => ['id' => 1, 'name' => '上架', 'checked' => true],
|
||||
],
|
||||
|
||||
// 是否
|
||||
'common_is_text_list' => [
|
||||
0 => ['id' => 0, 'name' => '否', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '是'],
|
||||
],
|
||||
|
||||
// 用户状态
|
||||
'common_user_status_list' => [
|
||||
0 => ['id' => 0, 'name' => '正常', 'checked' => true],
|
||||
1 => ['id' => 1, 'name' => '禁止发言', 'tips' => '用户被禁止发言'],
|
||||
2 => ['id' => 2, 'name' => '禁止登录', 'tips' => '用户被禁止登录'],
|
||||
3 => ['id' => 3, 'name' => '待审核', 'tips' => '用户等待审核中'],
|
||||
],
|
||||
|
||||
// 导航数据类型
|
||||
'common_nav_type_list' => [
|
||||
'custom' => ['value'=>'custom', 'name'=>'自定义'],
|
||||
'article' => ['value'=>'article', 'name'=>'文章'],
|
||||
'customview' => ['value'=>'customview', 'name'=>'自定义页面'],
|
||||
'goods_category' => ['value'=>'goods_category', 'name'=>'商品分类'],
|
||||
],
|
||||
|
||||
// 搜索框下热门关键字类型
|
||||
'common_search_keywords_type_list' => [
|
||||
0 => ['value' => 0, 'name' => '关闭'],
|
||||
1 => ['value' => 1, 'name' => '自动'],
|
||||
2 => ['value' => 2, 'name' => '自定义'],
|
||||
],
|
||||
|
||||
// app事件类型
|
||||
'common_app_event_type' => [
|
||||
0 => ['value' => 0, 'name' => 'WEB页面'],
|
||||
1 => ['value' => 1, 'name' => '内部页面(小程序/APP内部地址)'],
|
||||
2 => ['value' => 2, 'name' => '外部小程序(同一个主体下的小程序appid)'],
|
||||
3 => ['value' => 3, 'name' => '跳转原生地图查看指定位置'],
|
||||
4 => ['value' => 4, 'name' => '拨打电话'],
|
||||
],
|
||||
|
||||
// 订单售后类型
|
||||
'common_order_aftersale_type_list' => [
|
||||
0 => ['value' => 0, 'name' => '仅退款', 'desc' => '未收到货(未签收),协商同意前提下', 'icon' => 'am-icon-random', 'class' => 'am-fl'],
|
||||
1 => ['value' => 1, 'name' => '退款退货', 'desc' => '已收到货,需要退换已收到的货物', 'icon' => 'am-icon-retweet', 'class' => 'am-fr'],
|
||||
],
|
||||
|
||||
// 订单售后状态
|
||||
'common_order_aftersale_status_list' => [
|
||||
0 => ['value' => 0, 'name' => '待确认'],
|
||||
1 => ['value' => 1, 'name' => '待退货'],
|
||||
2 => ['value' => 2, 'name' => '待审核'],
|
||||
3 => ['value' => 3, 'name' => '已完成'],
|
||||
4 => ['value' => 4, 'name' => '已拒绝'],
|
||||
5 => ['value' => 5, 'name' => '已取消'],
|
||||
],
|
||||
|
||||
// 订单售后退款方式
|
||||
'common_order_aftersale_refundment_list' => [
|
||||
0 => ['value' => 0, 'name' => '原路退回'],
|
||||
1 => ['value' => 1, 'name' => '退至钱包'],
|
||||
2 => ['value' => 2, 'name' => '手动处理'],
|
||||
],
|
||||
|
||||
// 商品评分
|
||||
'common_goods_comments_rating_list' => [
|
||||
0 => ['value'=>0, 'name'=>'未评分', 'badge'=>''],
|
||||
1 => ['value'=>1, 'name'=>'1分', 'badge'=>'danger'],
|
||||
2 => ['value'=>2, 'name'=>'2分', 'badge'=>'warning'],
|
||||
3 => ['value'=>3, 'name'=>'3分', 'badge'=>'secondary'],
|
||||
4 => ['value'=>4, 'name'=>'4分', 'badge'=>'primary'],
|
||||
5 => ['value'=>5, 'name'=>'5分', 'badge'=>'success'],
|
||||
],
|
||||
|
||||
// 商品评论业务类型
|
||||
'common_goods_comments_business_type_list' => [
|
||||
'order' => ['value' => 'order', 'name' => '订单'],
|
||||
],
|
||||
|
||||
// 站点类型
|
||||
'common_site_type_list' => [
|
||||
0 => ['value' => 0, 'name' => '销售'],
|
||||
1 => ['value' => 1, 'name' => '展示'],
|
||||
2 => ['value' => 2, 'name' => '自提'],
|
||||
3 => ['value' => 3, 'name' => '虚拟销售'],
|
||||
4 => ['value' => 4, 'name' => '销售+自提', 'is_ext' => 1],
|
||||
],
|
||||
|
||||
// 管理员状态
|
||||
'common_admin_status_list' => [
|
||||
0 => ['value' => 0, 'name' => '正常', 'checked' => true],
|
||||
1 => ['value' => 1, 'name' => '暂停'],
|
||||
2 => ['value' => 2, 'name' => '已离职'],
|
||||
],
|
||||
|
||||
// 支付日志状态
|
||||
'common_pay_log_status_list' => [
|
||||
0 => ['value' => 0, 'name' => '待支付', 'checked' => true],
|
||||
1 => ['value' => 1, 'name' => '已支付'],
|
||||
2 => ['value' => 2, 'name' => '已关闭'],
|
||||
],
|
||||
|
||||
// 商品参数组件类型
|
||||
'common_goods_parameters_type_list' => [
|
||||
0 => ['value' => 0, 'name' => '全部'],
|
||||
1 => ['value' => 1, 'name' => '详情', 'checked' => true],
|
||||
2 => ['value' => 2, 'name' => '基础'],
|
||||
],
|
||||
|
||||
// 商品关联排序类型
|
||||
'goods_order_by_type_list' => [
|
||||
0 => ['value' => 'g.access_count,g.sales_count,g.id', 'name' => '综合', 'checked' => true],
|
||||
1 => ['value' => 'g.sales_count', 'name' => '销量'],
|
||||
2 => ['value' => 'g.access_count', 'name' => '热度'],
|
||||
3 => ['value' => 'g.min_price', 'name' => '价格'],
|
||||
4 => ['value' => 'g.id', 'name' => '最新'],
|
||||
],
|
||||
|
||||
// 商品关联排序规则
|
||||
'goods_order_by_rule_list' => [
|
||||
0 => ['value' => 'desc', 'name' => '降序(desc)', 'checked' => true],
|
||||
1 => ['value' => 'asc', 'name' => '升序(asc)'],
|
||||
],
|
||||
|
||||
// 首页数据类型
|
||||
'common_site_floor_data_type_list' => [
|
||||
0 => ['value' => 0, 'name' => '自动模式', 'checked' => true],
|
||||
1 => ['value' => 1, 'name' => '手动模式'],
|
||||
2 => ['value' => 2, 'name' => '拖拽模式'],
|
||||
],
|
||||
|
||||
// 文件上传错误码
|
||||
'common_file_upload_error_list' => [
|
||||
1 => '文件大小超过服务器允许上传的最大值',
|
||||
2 => '文件大小超出浏览器限制,查看是否超过[站点设置->附件最大限制]',
|
||||
3 => '文件仅部分被上传',
|
||||
4 => '没有找到要上传的文件',
|
||||
5 => '没有找到服务器临时文件夹',
|
||||
6 => '没有找到服务器临时文件夹',
|
||||
7 => '文件写入失败',
|
||||
8 => '文件上传扩展没有打开',
|
||||
],
|
||||
|
||||
|
||||
// -------------------- 正则 --------------------
|
||||
// 用户名
|
||||
'common_regex_username' => '^[A-Za-z0-9_]{2,18}$',
|
||||
|
||||
// 用户名
|
||||
'common_regex_pwd' => '^.{6,18}$',
|
||||
|
||||
// 手机号码
|
||||
'common_regex_mobile' => '^1((3|4|5|6|7|8|9){1}\d{1})\d{8}$',
|
||||
|
||||
// 座机号码
|
||||
'common_regex_tel' => '^\d{3,4}-?\d{8}$',
|
||||
|
||||
// 电子邮箱
|
||||
'common_regex_email' => '^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$',
|
||||
|
||||
// 身份证号码
|
||||
'common_regex_id_card' => '^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$',
|
||||
|
||||
// 价格格式
|
||||
'common_regex_price' => '^([0-9]{1}\d{0,7})(\.\d{1,2})?$',
|
||||
|
||||
// ip
|
||||
'common_regex_ip' => '^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$',
|
||||
|
||||
// url
|
||||
'common_regex_url' => '^http[s]?:\/\/[A-Za-z0-9-]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$',
|
||||
|
||||
// 控制器名称
|
||||
'common_regex_control' => '^[A-Za-z]{1}[A-Za-z0-9_]{0,29}$',
|
||||
|
||||
// 方法名称
|
||||
'common_regex_action' => '^[A-Za-z]{1}[A-Za-z0-9_]{0,29}$',
|
||||
|
||||
// 顺序
|
||||
'common_regex_sort' => '^[0-9]{1,3}$',
|
||||
|
||||
// 日期
|
||||
'common_regex_date' => '^\d{4}-\d{2}-\d{2}$',
|
||||
|
||||
// 分数
|
||||
'common_regex_score' => '^[0-9]{1,3}$',
|
||||
|
||||
// 分页
|
||||
'common_regex_page_number' => '^[1-9]{1}[0-9]{0,2}$',
|
||||
|
||||
// 时段格式 10:00-10:45
|
||||
'common_regex_interval' => '^\d{2}\:\d{2}\-\d{2}\:\d{2}$',
|
||||
|
||||
// 颜色
|
||||
'common_regex_color' => '^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3}))?$',
|
||||
|
||||
// id逗号隔开
|
||||
'common_regex_id_comma_split' => '^\d(\d|,?)*\d$',
|
||||
|
||||
// url伪静态后缀
|
||||
'common_regex_url_html_suffix' => '^[a-z]{0,8}$',
|
||||
|
||||
// 图片比例值
|
||||
'common_regex_image_proportion' => '^([1-9]{1}[0-9]?|[1-9]{1}[0-9]?\.{1}[0-9]{1,2}|100|0)?$',
|
||||
|
||||
// 版本号
|
||||
'common_regex_version' => '^[0-9]{1,6}\.[0-9]{1,6}\.[0-9]{1,6}$',
|
||||
|
||||
|
||||
// -------------------- 后端相关 --------------------
|
||||
// 图片验证码
|
||||
'site_images_verify_rules_list' => [
|
||||
0 => ['value' => 'bgcolor', 'name' => '彩色背景'],
|
||||
1 => ['value' => 'textcolor', 'name' => '彩色文本'],
|
||||
2 => ['value' => 'point', 'name' => '干扰点'],
|
||||
3 => ['value' => 'line', 'name' => '干扰线'],
|
||||
],
|
||||
|
||||
// 时区
|
||||
'site_timezone_list' => [
|
||||
'Pacific/Pago_Pago' => '(标准时-11:00) 中途岛、萨摩亚群岛',
|
||||
'Pacific/Rarotonga' => '(标准时-10:00) 夏威夷',
|
||||
'Pacific/Gambier' => '(标准时-9:00) 阿拉斯加',
|
||||
'America/Dawson' => '(标准时-8:00) 太平洋时间(美国和加拿大)',
|
||||
'America/Creston' => '(标准时-7:00) 山地时间(美国和加拿大)',
|
||||
'America/Belize' => '(标准时-6:00) 中部时间(美国和加拿大)、墨西哥城',
|
||||
'America/Eirunepe' => '(标准时-5:00) 东部时间(美国和加拿大)、波哥大',
|
||||
'America/Antigua' => '(标准时-4:00) 大西洋时间(加拿大)、加拉加斯',
|
||||
'America/Argentina/Buenos_Aires' => '(标准时-3:00) 巴西、布宜诺斯艾利斯、乔治敦',
|
||||
'America/Noronha' => '(标准时-2:00) 中大西洋',
|
||||
'Atlantic/Cape_Verde' => '(标准时-1:00) 亚速尔群岛、佛得角群岛',
|
||||
'Africa/Ouagadougou' => '(格林尼治标准时) 西欧时间、伦敦、卡萨布兰卡',
|
||||
'Europe/Andorra' => '(标准时+1:00) 中欧时间、安哥拉、利比亚',
|
||||
'Europe/Mariehamn' => '(标准时+2:00) 东欧时间、开罗,雅典',
|
||||
'Asia/Bahrain' => '(标准时+3:00) 巴格达、科威特、莫斯科',
|
||||
'Asia/Dubai' => '(标准时+4:00) 阿布扎比、马斯喀特、巴库',
|
||||
'Asia/Kolkata' => '(标准时+5:00) 叶卡捷琳堡、伊斯兰堡、卡拉奇',
|
||||
'Asia/Dhaka' => '(标准时+6:00) 阿拉木图、 达卡、新亚伯利亚',
|
||||
'Indian/Christmas' => '(标准时+7:00) 曼谷、河内、雅加达',
|
||||
'Asia/Shanghai' => '(标准时+8:00)北京、重庆、香港、新加坡',
|
||||
'Australia/Darwin' => '(标准时+9:00) 东京、汉城、大阪、雅库茨克',
|
||||
'Australia/Adelaide' => '(标准时+10:00) 悉尼、关岛',
|
||||
'Australia/Currie' => '(标准时+11:00) 马加丹、索罗门群岛',
|
||||
'Pacific/Fiji' => '(标准时+12:00) 奥克兰、惠灵顿、堪察加半岛'
|
||||
],
|
||||
|
||||
// seo
|
||||
// url模式列表
|
||||
'seo_url_model_list' => [
|
||||
0 => ['value' => 0, 'name' => '兼容模式', 'checked' => true],
|
||||
1 => ['value' => 1, 'name' => 'PATHINFO模式'],
|
||||
2 => ['value' => 2, 'name' => 'PATHINFO模式+短地址'],
|
||||
],
|
||||
|
||||
// 用户excel导出标题列表
|
||||
'excel_user_title_list' => [
|
||||
'username' => [
|
||||
'name' => '用户名',
|
||||
'type' => 'string',
|
||||
],
|
||||
'nickname' => [
|
||||
'name' => '昵称',
|
||||
'type' => 'int',
|
||||
],
|
||||
'gender_text' => [
|
||||
'name' => '性别',
|
||||
'type' => 'string',
|
||||
],
|
||||
'birthday_text'=> [
|
||||
'name' => '生日',
|
||||
'type' => 'string',
|
||||
],
|
||||
'status_text'=> [
|
||||
'name' => '状态',
|
||||
'type' => 'string',
|
||||
],
|
||||
'mobile' => [
|
||||
'name' => '手机号码',
|
||||
'type' => 'int',
|
||||
],
|
||||
'email' => [
|
||||
'name' => '电子邮箱',
|
||||
'type' => 'string',
|
||||
],
|
||||
'province' => [
|
||||
'name' => '所在省',
|
||||
'type' => 'string',
|
||||
],
|
||||
'city' => [
|
||||
'name' => '所在市',
|
||||
'type' => 'string',
|
||||
],
|
||||
'address' => [
|
||||
'name' => '详细地址',
|
||||
'type' => 'string',
|
||||
],
|
||||
'add_time' => [
|
||||
'name' => '注册时间',
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
// 匹配数据
|
||||
// 空 key 则返回全部
|
||||
// 未匹配到数据则返回null
|
||||
$data = empty($key) ? $container : (array_key_exists($key, $container) ? $container[$key] : $default);
|
||||
|
||||
// 常量数据读取钩子
|
||||
$hook_name = 'plugins_service_const_data';
|
||||
MyEventTrigger($hook_name, [
|
||||
'hook_name' => $hook_name,
|
||||
'is_backend' => true,
|
||||
'key' => $key,
|
||||
'default' => $default,
|
||||
'data' => &$data,
|
||||
]);
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
?>
|
@ -42,7 +42,7 @@ class CustomViewService
|
||||
$data = Db::name('CustomView')->field($field)->where($where)->order($order_by)->limit($m, $n)->select()->toArray();
|
||||
if(!empty($data))
|
||||
{
|
||||
$common_is_enable_list = lang('common_is_enable_list');
|
||||
$common_is_enable_list = MyConst('common_is_enable_list');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 是否启用
|
||||
|
@ -140,7 +140,7 @@ class GoodsCommentsService
|
||||
}
|
||||
if($order['status'] != 4)
|
||||
{
|
||||
$status_text = lang('common_order_user_status')[$order['status']]['name'];
|
||||
$status_text = MyConst('common_order_user_status')[$order['status']]['name'];
|
||||
return DataReturn('状态不可操作['.$status_text.']', -1);
|
||||
}
|
||||
if($order['user_is_comments'] != 0)
|
||||
@ -222,9 +222,9 @@ class GoodsCommentsService
|
||||
}
|
||||
|
||||
// 静态数据
|
||||
$common_is_text_list = lang('common_is_text_list');
|
||||
$comments_rating_list = lang('common_goods_comments_rating_list');
|
||||
$comments_business_type_list = lang('common_goods_comments_business_type_list');
|
||||
$common_is_text_list = MyConst('common_is_text_list');
|
||||
$comments_rating_list = MyConst('common_goods_comments_rating_list');
|
||||
$comments_business_type_list = MyConst('common_goods_comments_business_type_list');
|
||||
|
||||
// 数据处理
|
||||
foreach($data as &$v)
|
||||
@ -364,7 +364,7 @@ class GoodsCommentsService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'business_type',
|
||||
'checked_data' => array_keys(lang('common_order_aftersale_refundment_list')),
|
||||
'checked_data' => array_keys(MyConst('common_order_aftersale_refundment_list')),
|
||||
'error_msg' => '请选择业务类型',
|
||||
],
|
||||
[
|
||||
@ -382,7 +382,7 @@ class GoodsCommentsService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'rating',
|
||||
'checked_data' => array_keys(lang('common_goods_comments_rating_list')),
|
||||
'checked_data' => array_keys(MyConst('common_goods_comments_rating_list')),
|
||||
'error_msg' => '请选择评分',
|
||||
],
|
||||
];
|
||||
|
@ -253,8 +253,8 @@ class GoodsService
|
||||
// 商品数量
|
||||
$goods_count = MyC('home_index_floor_goods_max_count', 8, true);
|
||||
// 排序配置
|
||||
$floor_order_by_type_list = lang('goods_order_by_type_list');
|
||||
$floor_order_by_rule_list = lang('goods_order_by_rule_list');
|
||||
$floor_order_by_type_list = MyConst('goods_order_by_type_list');
|
||||
$floor_order_by_rule_list = MyConst('goods_order_by_rule_list');
|
||||
$floor_order_by_type = MyC('home_index_floor_goods_order_by_type', 0, true);
|
||||
$floor_order_by_rule = MyC('home_index_floor_goods_order_by_rule', 0, true);
|
||||
// 排序字段名称
|
||||
@ -1065,7 +1065,7 @@ class GoodsService
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'site_type',
|
||||
'checked_data' => array_merge([-1], array_column(lang('common_site_type_list'), 'value')),
|
||||
'checked_data' => array_merge([-1], array_column(MyConst('common_site_type_list'), 'value')),
|
||||
'is_checked' => 2,
|
||||
'error_msg' => '商品类型数据值范围有误',
|
||||
],
|
||||
|
@ -52,7 +52,7 @@ class IntegralService
|
||||
$log_id = Db::name('UserIntegralLog')->insertGetId($data);
|
||||
if($log_id > 0)
|
||||
{
|
||||
$type_msg = lang('common_integral_log_type_list')[$type]['name'];
|
||||
$type_msg = MyConst('common_integral_log_type_list')[$type]['name'];
|
||||
$detail = $msg.'积分'.$type_msg.$operation_integral;
|
||||
MessageService::MessageAdd($user_id, '积分变动', $detail, '积分', $log_id);
|
||||
return true;
|
||||
@ -81,7 +81,7 @@ class IntegralService
|
||||
$data = Db::name('UserIntegralLog')->where($where)->field($field)->limit($m, $n)->order($order_by)->select()->toArray();
|
||||
if(!empty($data))
|
||||
{
|
||||
$integral_log_type_list = lang('common_integral_log_type_list');
|
||||
$integral_log_type_list = MyConst('common_integral_log_type_list');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 用户信息
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user