mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
后台管理升级完成
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
/**
|
||||
@ -39,23 +38,26 @@ class Cache extends Common
|
||||
*/
|
||||
public function Index()
|
||||
{
|
||||
// 缓存类型
|
||||
$this->assign('cache_type_list', lang('cache_type_list'));
|
||||
$this->display('Index');
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* [SiteUpdate 站点缓存更新]
|
||||
* [StatusUpdate 站点缓存更新]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2017-02-26T19:53:14+0800
|
||||
*/
|
||||
public function SiteUpdate()
|
||||
public function StatusUpdate()
|
||||
{
|
||||
\base\FileUtil::UnlinkDir(TEMP_PATH);
|
||||
\base\FileUtil::UnlinkDir(DATA_PATH);
|
||||
\base\FileUtil::UnlinkFile(RUNTIME_PATH.'common~runtime.php');
|
||||
$this->success('更新成功');
|
||||
// 模板 cache
|
||||
// 数据 temp
|
||||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'cache');
|
||||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'temp');
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,10 +69,10 @@ class Cache extends Common
|
||||
*/
|
||||
public function TemplateUpdate()
|
||||
{
|
||||
// 模板 Cache
|
||||
\base\FileUtil::UnlinkDir(CACHE_PATH);
|
||||
// 模板 cache
|
||||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'cache');
|
||||
|
||||
$this->success('更新成功');
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -82,7 +84,21 @@ class Cache extends Common
|
||||
*/
|
||||
public function ModuleUpdate()
|
||||
{
|
||||
$this->success('更新成功');
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* [LogDelete 日志删除]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2017-02-26T19:53:14+0800
|
||||
*/
|
||||
public function LogDelete()
|
||||
{
|
||||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'log');
|
||||
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -73,7 +73,7 @@ class Goods extends Common
|
||||
$data = GoodsService::GoodsList($data_params);
|
||||
|
||||
// 是否上下架
|
||||
$this->assign('common_goods_is_shelves_list', lang('common_goods_is_shelves_list'));
|
||||
$this->assign('common_is_shelves_list', lang('common_is_shelves_list'));
|
||||
|
||||
// 是否首页推荐
|
||||
$this->assign('common_is_text_list', lang('common_is_text_list'));
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
/**
|
||||
@ -55,7 +54,7 @@ class Index extends Common
|
||||
'mysql_ver' => isset($mysql_ver[0]['ver']) ? $mysql_ver[0]['ver'] : '',
|
||||
'os_ver' => PHP_OS,
|
||||
'host' => isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : '',
|
||||
'ver' => 'ShopXO'.' '.'v1.1.0',
|
||||
'ver' => 'ShopXO'.' '.APPLICATION_VERSION,
|
||||
);
|
||||
$this->assign('data', $data);
|
||||
return $this->fetch();
|
||||
|
||||
@ -57,6 +57,9 @@ class Site extends Common
|
||||
|
||||
// 配置信息
|
||||
$this->assign('data', ConfigService::ConfigList());
|
||||
|
||||
// 编辑器文件存放地址
|
||||
$this->assign('editor_path_type', 'common');
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
@ -70,11 +73,6 @@ class Site extends Common
|
||||
*/
|
||||
public function Save()
|
||||
{
|
||||
// logo存储
|
||||
$this->FileSave('home_site_logo', 'home_site_logo_img');
|
||||
$this->FileSave('home_site_logo_wap', 'home_site_logo_wap_img');
|
||||
$this->FileSave('home_site_desktop_icon', 'home_site_desktop_icon_img');
|
||||
|
||||
// 站点状态值处理
|
||||
if(!isset($_POST['home_user_reg_state']))
|
||||
{
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
/**
|
||||
|
||||
@ -67,6 +67,34 @@ return array(
|
||||
1 => array('value' => 1, 'name' => 'PATHINFO模式'),
|
||||
),
|
||||
|
||||
// 缓存类型列表
|
||||
'cache_type_list' => array(
|
||||
array(
|
||||
'is_enable' => 1,
|
||||
'name' => '站点缓存',
|
||||
'url' => url('admin/cache/statusupdate'),
|
||||
'desc' => '数据转换后或前台不能正常访问时,可以使用此功能更新所有缓存'
|
||||
),
|
||||
array(
|
||||
'is_enable' => 1,
|
||||
'name' => '模板缓存',
|
||||
'url' => url('admin/cache/templateupdate'),
|
||||
'desc' => '当页面显示不正常,可尝试使用此功能修复'
|
||||
),
|
||||
array(
|
||||
'is_enable' => 0,
|
||||
'name' => '模块缓存',
|
||||
'url' => url('admin/cache/moduleupdate'),
|
||||
'desc' => '更新页面布局与模块后未生效,可尝试使用此功能修复'
|
||||
),
|
||||
array(
|
||||
'is_enable' => 1,
|
||||
'name' => '日志清除',
|
||||
'url' => url('admin/cache/logdelete'),
|
||||
'desc' => '清除站点日志'
|
||||
),
|
||||
),
|
||||
|
||||
// 用户excel导出标题列表
|
||||
'excel_user_title_list' => array(
|
||||
'username' => array(
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- cache list start -->
|
||||
<foreach name="cache_type_list" item="v">
|
||||
{{if $v['is_enable'] eq 1)}}
|
||||
{{foreach $cache_type_list as $v}}
|
||||
{{if $v['is_enable'] eq 1}}
|
||||
<div class="am-panel am-panel-default am-radius">
|
||||
<div class="am-panel-hd">{{$v.name}}</div>
|
||||
<a href="{{$v.url}}">
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<div class="more-where {{if !isset($params['is_more']) or $params['is_more'] neq 1}}none{{/if}}">
|
||||
<select name="is_shelves" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1">上下架</option>
|
||||
{{foreach $common_goods_is_shelves_list as $v}}
|
||||
{{foreach $common_is_shelves_list as $v}}
|
||||
<option value="{{$v.id}}" {{if isset($params['is_shelves']) and $params['is_shelves'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
@ -106,7 +106,7 @@
|
||||
</dd>
|
||||
|
||||
<dt>上下架</dt>
|
||||
<dd>{{:lang('common_goods_is_shelves_list')[$v['is_shelves']]['name']}}</dd>
|
||||
<dd>{{:lang('common_is_shelves_list')[$v['is_shelves']]['name']}}</dd>
|
||||
|
||||
<dt>库存数量</dt>
|
||||
<dd>{{$v.inventory}} {{$v.inventory_unit}}</dd>
|
||||
|
||||
@ -41,14 +41,14 @@
|
||||
<input type="text" placeholder="方法名称" name="action" pattern="{{:lang('common_regex_action')}}" data-validation-message="方法名格式 1~30 个字符之间(必须以字母开始,可以是字母数字下划线)" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>图标class<span class="fs-12 fw-100 cr-999">(参考 http://www.iconfont.cn/ 将icon放到 [ /Public/Admin/Default/Css/IconfontMenu.css ] 文件中)</span></label>
|
||||
<label>图标class<span class="fs-12 fw-100 cr-999">(参考 http://www.iconfont.cn/ 将icon放到 [ /static/admin/default/css/iconfontmenu.css ] 文件中)</span></label>
|
||||
<input type="text" placeholder="图标class" name="icon" maxlength="60" data-validation-message="图标格式 0~30 个字符之间" class="am-radius" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>顺序</label>
|
||||
<input type="number" placeholder="顺序" name="sort" min="0" max="255" data-validation-message="顺序 0~255 之间的数值" class="am-radius" value="0" required />
|
||||
</div>
|
||||
<include file="Lib/IsShow" />
|
||||
{{include file="lib/is_show" /}}
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
|
||||
|
||||
@ -10,38 +10,46 @@
|
||||
<label>{{$data.home_site_name.name}}</label>
|
||||
<input type="text" name="{{$data.home_site_name.only_tag}}" minlength="1" placeholder="{{$data.home_site_name.name}}" data-validation-message="{{$data.home_site_name.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_site_name.value}}"{{/if}} required />
|
||||
</div>
|
||||
<div class="am-form-group am-form-file">
|
||||
<div class="am-form-group">
|
||||
<label class="block">{{$data.home_site_logo.name}}<span class="fs-12 fw-100 cr-999">({{$data.home_site_logo.describe}})</span></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> 选择logo</button>
|
||||
<input type="file" class="site-logo" data-tils-tag="#form-file-logo-tips" name="{{$data.home_site_logo.only_tag}}_img" multiple data-validation-message="{{$data.home_site_logo.error_tips}}" accept="image/gif,image/jpeg,image/jpg,image/png" {{if !empty($data)}}value="{{$data.home_site_logo.value}}"{{/if}} />
|
||||
<input type="hidden" name="{{$data.home_site_logo.only_tag}}" {{if !empty($data)}}value="{{$data.home_site_logo.value}}"{{/if}} />
|
||||
<img src="{{$image_host}}{{$data.home_site_logo.value}}" class="form-img-logo-view" />
|
||||
<div id="form-file-logo-tips"></div>
|
||||
<ul class="plug-file-upload-view home_site_logo-images-view" data-form-name="home_site_logo" data-max-number="1" data-dialog-type="images">
|
||||
{{if !empty($data)}}
|
||||
<li>
|
||||
<input type="text" name="home_site_logo" value="{{$data.home_site_logo.value}}" />
|
||||
<img src="{{$data.home_site_logo.value}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<div class="plug-file-upload-submit" data-view-tag="ul.home_site_logo-images-view">+选择logo</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-file">
|
||||
<div class="am-form-group">
|
||||
<label class="block">{{$data.home_site_logo_wap.name}}<span class="fs-12 fw-100 cr-999">({{$data.home_site_logo_wap.describe}})</span></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> 选择logo</button>
|
||||
<input type="file" class="site-logo" data-tils-tag="#form-file-logo-wap-tips" name="{{$data.home_site_logo_wap.only_tag}}_img" multiple data-validation-message="{{$data.home_site_logo_wap.error_tips}}" accept="image/gif,image/jpeg,image/jpg,image/png" {{if !empty($data)}}value="{{$data.home_site_logo_wap.value}}"{{/if}} />
|
||||
<input type="hidden" name="{{$data.home_site_logo_wap.only_tag}}" {{if !empty($data)}}value="{{$data.home_site_logo_wap.value}}"{{/if}} />
|
||||
{{if !empty($data['home_site_logo_wap']['value'])}}
|
||||
<img src="{{$image_host}}{{$data.home_site_logo_wap.value}}" class="form-img-logo-view" />
|
||||
{{/if}}
|
||||
<div id="form-file-logo-wap-tips"></div>
|
||||
<ul class="plug-file-upload-view home_site_logo_wap-images-view" data-form-name="home_site_logo_wap" data-max-number="1" data-dialog-type="images">
|
||||
{{if !empty($data)}}
|
||||
<li>
|
||||
<input type="text" name="home_site_logo_wap" value="{{$data.home_site_logo_wap.value}}" />
|
||||
<img src="{{$data.home_site_logo_wap.value}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<div class="plug-file-upload-submit" data-view-tag="ul.home_site_logo_wap-images-view">+选择logo</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-file">
|
||||
<div class="am-form-group">
|
||||
<label class="block">{{$data.home_site_desktop_icon.name}}<span class="fs-12 fw-100 cr-999">({{$data.home_site_desktop_icon.describe}})</span></label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> 选择图片</button>
|
||||
<input type="file" class="site-logo" data-tils-tag="#form-file-logo-wap-tips" name="{{$data.home_site_desktop_icon.only_tag}}_img" multiple data-validation-message="{{$data.home_site_desktop_icon.error_tips}}" accept="image/gif,image/jpeg,image/jpg,image/png" {{if !empty($data)}}value="{{$data.home_site_desktop_icon.value}}"{{/if}} />
|
||||
<input type="hidden" name="{{$data.home_site_desktop_icon.only_tag}}" {{if !empty($data)}}value="{{$data.home_site_desktop_icon.value}}"{{/if}} />
|
||||
{{if !empty($data['home_site_desktop_icon']['value'])}}
|
||||
<img src="{{$image_host}}{{$data.home_site_desktop_icon.value}}" class="form-img-icon-view" />
|
||||
{{/if}}
|
||||
<div id="form-file-logo-wap-tips"></div>
|
||||
<ul class="plug-file-upload-view home_site_desktop_icon-images-view" data-form-name="home_site_desktop_icon" data-max-number="1" data-dialog-type="images">
|
||||
{{if !empty($data)}}
|
||||
<li>
|
||||
<input type="text" name="home_site_desktop_icon" value="{{$data.home_site_desktop_icon.value}}" />
|
||||
<img src="{{$data.home_site_desktop_icon.value}}" />
|
||||
<i>×</i>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<div class="plug-file-upload-submit" data-view-tag="ul.home_site_desktop_icon-images-view">+选择logo</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
|
||||
@ -8,324 +8,6 @@
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
return array(
|
||||
// 站点信息
|
||||
'common_site_name' => 'ShopXO',
|
||||
'common_site_vice_name' => '后台管理系统',
|
||||
'common_site_title' => 'ShopXO后台管理系统',
|
||||
|
||||
// 应用信息
|
||||
'common_application_name' => 'ShopXO',
|
||||
'common_application_ver' => 'v1.1.0',
|
||||
|
||||
// 公共
|
||||
'common_login_success' => '登录成功',
|
||||
'common_login_invalid' => '登录失效,请重新登录',
|
||||
'common_login_already_had_tips' => '已经登录了,请勿重复登录',
|
||||
'common_reg_already_had_tips' => '已经登录了,如要注册新账户,请先退出当前账户',
|
||||
'common_forget_already_had_tips' => '已经登录了,如要重置密码,请先退出当前账户',
|
||||
'common_jump_tips' => '页面跳转中...',
|
||||
'common_form_loading_tips' => '处理中...',
|
||||
'common_login_loading_tips' => '登录中...',
|
||||
'common_upload_loading_tips' => '上传中...',
|
||||
'common_mobile_name' => '手机号码',
|
||||
'common_mobile_format_error' => '手机号码格式错误',
|
||||
'common_mobile_exist_error' => '手机号码已存在',
|
||||
'common_mobile_no_exist_error' => '手机号码不存在',
|
||||
'common_email_name' => '电子邮箱',
|
||||
'common_email_format_error' => '电子邮箱格式错误',
|
||||
'common_email_exist_error' => '电子邮箱已存在',
|
||||
'common_email_no_exist_error' => '电子邮箱不存在',
|
||||
'common_id_card_name' => '身份证',
|
||||
'common_url_name' => 'url地址',
|
||||
'common_ip_name' => 'ip地址',
|
||||
'common_admin_name' => '管理员',
|
||||
'common_not_login_name' => '未登录',
|
||||
'common_not_data_tips' => '没有相关数据',
|
||||
'common_create_time_name' => '创建时间',
|
||||
'common_focus_time_name' => '关注时间',
|
||||
'common_reg_time_name' => '注册时间',
|
||||
'common_upd_time_name' => '更新时间',
|
||||
'common_time_start_name' => '起始时间',
|
||||
'common_time_end_name' => '结束时间',
|
||||
'common_delete_tips' => '删除后无法恢复,确定继续吗?',
|
||||
'common_cancel_tips' => '取消后无法恢复,确定继续吗?',
|
||||
'common_do_not_operate' => '不可操作',
|
||||
'common_name_text' => '名称',
|
||||
'common_pid_text' => '父id',
|
||||
'common_address_text' => '详细地址',
|
||||
'common_more_screening' => '更多筛选',
|
||||
'common_more_name' => '更多',
|
||||
'common_see_more_name' => '查看更多',
|
||||
'common_detail_content' => '详情内容',
|
||||
'common_operation_excel_export_name'=> '导出Excel',
|
||||
'common_operation_excel_import_name'=> '导入Excel',
|
||||
'common_excel_format_download_name' => 'Excel格式下载',
|
||||
'common_excel_import_tips' => 'PS:导入数据建议一次不要超过10万条。',
|
||||
'common_nav_type_name' => '导航数据类型',
|
||||
'common_view_link_name' => '友情链接',
|
||||
'common_site_maintenance_tips' => '网站维护中...',
|
||||
'common_send_text' => '发送',
|
||||
'common_send_tips' => '发送中...',
|
||||
'common_send_success' => '发送成功',
|
||||
'common_send_error' => '发送失败',
|
||||
'common_verify_text' => '验证码',
|
||||
'common_verify_expire' => '验证码已过期',
|
||||
'common_verify_error' => '验证码错误',
|
||||
'common_verify_tips' => '验证码格式 6 位数字',
|
||||
'common_close_sms_user_reg_text' => '短信注册',
|
||||
'common_close_email_user_reg_text' => '邮箱注册',
|
||||
'common_close_user_reg_tips' => '暂时关闭用户注册',
|
||||
'common_close_sms_user_reg_tips' => '暂时关闭短信注册',
|
||||
'common_close_email_user_reg_tips' => '暂时关闭邮箱注册',
|
||||
'common_close_user_login_tips' => '暂时关闭用户登录',
|
||||
'common_send_time_tips' => '还有 {time} 秒',
|
||||
'common_get_verify_text' => '获取验证码',
|
||||
'common_img_verify_text' => '图形验证码',
|
||||
'common_img_verify_tips' => '请输入有效的图形验证码',
|
||||
'common_img_sms_verify_text' => '短信验证码',
|
||||
'common_img_sms_verify_tips' => '请输入短信验证码',
|
||||
'common_img_verify_submit_text' => '看不清换一张',
|
||||
'common_logout_text' => '退出',
|
||||
'common_set_up_the_text' => '设置',
|
||||
'common_prevent_harassment_error' => '防止造成骚扰,请勿频繁发送',
|
||||
'common_accounts_format_error' => '手机/邮箱格式有误',
|
||||
'common_on_fill_in_the_text' => '未填写',
|
||||
'common_not_set_text' => '未设置',
|
||||
'common_select_file_text' => '选择文件',
|
||||
'common_select_file_tips' => '请选择需要上传的文件',
|
||||
'common_select_images_text' => '选择图片',
|
||||
'common_select_images_tips' => '请选择需要上传的图片',
|
||||
'common_select_video_text' => '选择视频',
|
||||
'common_select_video_tips' => '请选择需要上传的视频',
|
||||
'common_unknown_error' => '未知错误',
|
||||
'common_on_fill_in_images' => '暂无图片',
|
||||
'common_unlimited_text' => '不限',
|
||||
|
||||
'common_library_email_empty_error' => '收件邮箱不能为空',
|
||||
'common_library_content_empty_error'=> '发送内容不能为空',
|
||||
'common_library_title_empty_error' => '邮件标题不能为空',
|
||||
|
||||
'common_param_error' => '参数错误',
|
||||
'common_format_error' => '格式错误',
|
||||
'common_format_success' => '格式正确',
|
||||
'common_success' => '正确',
|
||||
'common_error' => '错误',
|
||||
'common_username_already_exist' => '帐号已经存在',
|
||||
'common_there_is_no_power' => '无权限',
|
||||
'common_select_can_choose' => '可选择...',
|
||||
'common_please_select_choose' => '请选择...',
|
||||
'common_select_level_one_choice' => '一级栏目...',
|
||||
'common_sort_error' => '顺序 0~255 之间的数值',
|
||||
'common_is_exist_son_error' => '该节点下还存在子级数据',
|
||||
'common_name_format' => '名称格式 2~16 个字符',
|
||||
'common_icon_format' => '图标地址格式 最大255个字符',
|
||||
'common_pid_format' => '请选择所属级别',
|
||||
'common_address_format' => '详细地址2~60 个字符',
|
||||
'common_pid_eq_myid_format' => '父级不能是自身节点',
|
||||
'common_user_no_exist_error' => '用户不存在',
|
||||
'common_data_no_exist_error' => '资源不存在或已被删除',
|
||||
'common_icon_text' => 'icon图标',
|
||||
'common_install_msg' => '安装进行中、确认操作吗?',
|
||||
'common_uninstall_msg' => '卸载后不可恢复、确认操作吗?',
|
||||
'common_is_writable_error' => '服务器用户没操作权限',
|
||||
'common_plugins_config_error' => '插件配置有误',
|
||||
'common_plugins_already_existed_error'=> '已存在相同插件',
|
||||
|
||||
'common_operation_name' => '操作',
|
||||
'common_operation_add' => '新增',
|
||||
'common_operation_add2' => '添加',
|
||||
'common_operation_edit' => '编辑',
|
||||
'common_operation_delete' => '删除',
|
||||
'common_operation_remove' => '移除',
|
||||
'common_operation_back' => '返回',
|
||||
'common_operation_save' => '保存',
|
||||
'common_operation_query' => '查询',
|
||||
'common_operation_confirm' => '确认',
|
||||
'common_operation_cancel' => '取消',
|
||||
'common_operation_update' => '更新',
|
||||
'common_operation_test' => '测试',
|
||||
'common_operation_audit' => '审核',
|
||||
'common_operation_cut' => '解除',
|
||||
'common_operation_modify' => '修改',
|
||||
'common_operation_binding' => '绑定',
|
||||
'common_operation_publish' => '发表',
|
||||
'common_operation_comments' => '评价',
|
||||
'common_operation_refresh' => '刷新',
|
||||
'common_operation_reply' => '回复',
|
||||
'common_operation_upload' => '上传',
|
||||
'common_operation_download' => '下载',
|
||||
'common_operation_created' => '生成',
|
||||
'common_operation_numbers' => '成员',
|
||||
'common_operation_submit' => '提交',
|
||||
'common_location_submit' => '定位',
|
||||
'common_pass_submit' => '通过',
|
||||
'common_refuse_submit' => '拒绝',
|
||||
'common_dispose_submit' => '处理',
|
||||
'common_abnormal_submit' => '异常',
|
||||
'common_delivery_submit' => '发货',
|
||||
'common_operation_install' => '安装',
|
||||
'common_operation_uninstall' => '卸载',
|
||||
'common_operation_pay' => '支付',
|
||||
'common_operation_release' => '发布',
|
||||
'common_delivery_tips' => '是否操作发货,操作后不可恢复!',
|
||||
'common_collect_submit' => '收货',
|
||||
'common_collect_tips' => '是否操作收货,操作后不可恢复!',
|
||||
'common_success_submit' => '完成',
|
||||
'common_success_tips' => '是否操作完成,操作后不可恢复!',
|
||||
'common_bind_success' => '绑定成功',
|
||||
'common_bind_error' => '绑定失败',
|
||||
'common_operation_success' => '操作成功',
|
||||
'common_operation_error' => '操作失败',
|
||||
'common_operation_add_success' => '新增成功',
|
||||
'common_operation_add_error' => '新增失败',
|
||||
'common_operation_join_success' => '关联成功',
|
||||
'common_operation_join_error' => '关联失败',
|
||||
'common_operation_publish_success' => '发表成功',
|
||||
'common_operation_publish_error' => '发表失败',
|
||||
'common_operation_comments_success' => '评价成功',
|
||||
'common_operation_comments_error' => '评价失败',
|
||||
'common_operation_edit_success' => '编辑成功',
|
||||
'common_operation_edit_error' => '编辑失败或数据未改变',
|
||||
'common_operation_delete_success' => '删除成功',
|
||||
'common_operation_delete_error' => '删除失败或资源不存在',
|
||||
'common_operation_update_success' => '更新成功',
|
||||
'common_operation_update_error' => '更新失败',
|
||||
'common_operation_cut_success' => '解除成功',
|
||||
'common_operation_cut_error' => '解除失败',
|
||||
'common_operation_unauthorized' => '非法操作',
|
||||
'common_operation_set_success' => '设置成功',
|
||||
'common_operation_set_error' => '设置失败',
|
||||
'common_operation_delivery_success' => '发货成功',
|
||||
'common_operation_delivery_error' => '发货失败',
|
||||
'common_operation_collect_success' => '收货成功',
|
||||
'common_operation_collect_error' => '收货失败',
|
||||
'common_operation_created_success' => '生成成功',
|
||||
'common_operation_created_error' => '生成失败',
|
||||
|
||||
'common_booking_success' => '预约成功',
|
||||
'common_booking_error' => '预约失败',
|
||||
'common_cancel_success' => '取消成功',
|
||||
'common_cancel_error' => '取消失败',
|
||||
'common_upload_success' => '上传成功',
|
||||
'common_upload_error' => '上传失败',
|
||||
'common_complaint_success' => '投诉成功',
|
||||
'common_complaint_error' => '投诉失败',
|
||||
'common_submit_success' => '提交成功',
|
||||
'common_submit_error' => '提交失败',
|
||||
'common_confirm_success' => '确认成功',
|
||||
'common_confirm_error' => '确认失败',
|
||||
'common_favor_success' => '收藏成功',
|
||||
'common_favor_error' => '收藏失败',
|
||||
'common_join_success' => '加入成功',
|
||||
'common_join_error' => '加入失败',
|
||||
'common_install_success' => '安装成功',
|
||||
'common_install_error' => '安装失败',
|
||||
'common_uninstall_success' => '卸载成功',
|
||||
'common_uninstall_error' => '卸载失败',
|
||||
|
||||
'common_value_not_change' => '数据未改变',
|
||||
'common_gender_tips' => '性别值范围不正确',
|
||||
'common_enable_tips' => '启用值范围不正确',
|
||||
'common_show_tips' => '显示值范围不正确',
|
||||
'common_is_header_tips' => '是否含头部值范围不正确',
|
||||
'common_is_footer_tips' => '是否含尾部值范围不正确',
|
||||
'common_is_full_screen_tips' => '是否满屏值范围不正确',
|
||||
'common_new_window_open_tips' => '新窗口打开值范围不正确',
|
||||
'common_view_tel_error' => '联系电话格式有误',
|
||||
'common_view_id_card_format' => '身份证号码格式有误',
|
||||
'common_no_exist_id_card_tips' => '身份证号码不存在',
|
||||
'common_is_exist_id_card_tips' => '身份证号码已存在',
|
||||
'common_data_is_exist_error' => '数据已存在',
|
||||
'common_color_format' => '颜色值格式有误',
|
||||
'common_success_failure_format' => '成功[{$1}]项, 失败[{$2}]项',
|
||||
'common_operation_off_text' => '关',
|
||||
'common_operation_on_text' => '开',
|
||||
'common_operation_off_is_text' => '否',
|
||||
'common_operation_on_is_text' => '是',
|
||||
'common_operation_off_goods_text' => '下架',
|
||||
'common_operation_on_goods_text' => '上架',
|
||||
'common_method_exists_error' => '[{$1}]成员方法未定义',
|
||||
'common_template_access_count' => '浏览 {$1} 次',
|
||||
'common_student_number_tips' => '系统自动生成',
|
||||
'common_reg_success' => '注册成功',
|
||||
'common_reg_success_login_tips' => '注册成功,请到登录页面登录帐号',
|
||||
'common_reg_error' => '注册失败',
|
||||
'common_import_success_name' => '导入成功',
|
||||
'common_import_error_name' => '导入失败',
|
||||
'common_unit_tiao_name' => '条',
|
||||
'common_bubble_mood_nickname' => '新同学',
|
||||
'common_import_text' => '导入',
|
||||
'common_export_text' => '导出',
|
||||
'common_drag_sort_title' => '拖拽排序',
|
||||
|
||||
'common_view_gender_name' => '性别',
|
||||
'common_view_enable_title' => '是否启用',
|
||||
'common_view_default_title' => '是否默认',
|
||||
'common_view_name_title' => '名称',
|
||||
'common_view_status_title' => '状态',
|
||||
'common_view_is_show_title' => '是否显示',
|
||||
'common_view_is_new_window_open_title' => '是否新窗口打开',
|
||||
'common_view_sort_title' => '顺序',
|
||||
'common_view_tel_name' => '联系电话',
|
||||
'common_view_tel_tips' => '(手机或座机)',
|
||||
'common_view_id_card_text' => '身份证号码',
|
||||
'common_view_is_header_text' => '是否含头部',
|
||||
'common_view_is_footer_text' => '是否含尾部',
|
||||
'common_view_is_full_screen_text' => '是否满屏',
|
||||
'common_view_access_count_text' => '访问次数',
|
||||
|
||||
'common_unauthorized_access' => '非法访问',
|
||||
'nav_fulltext_open' => '开启全屏',
|
||||
'nav_fulltext_exit' => '退出全屏',
|
||||
'nav_switch_text' => '导航切换',
|
||||
'common_home_text' => '首页',
|
||||
'common_so_text' => '搜索',
|
||||
'common_login_text' => '登录',
|
||||
'common_reg_text' => '注册',
|
||||
'common_user_home_text' => '用户中心',
|
||||
'common_so_tips' => '其实搜索很简单 ^_^!',
|
||||
'common_go_top_text' => '回到顶部',
|
||||
'common_toview_home_text' => '查看首页',
|
||||
'common_go_home_text' => '回到首页',
|
||||
'common_email_send_user_reg_title' => '用户注册',
|
||||
'common_email_send_user_forget_title'=> '密码找回',
|
||||
'common_layout_slider_more_text' => '了解更多',
|
||||
'common_pay_time_text' => '支付时间',
|
||||
'common_not_pay_text' => '未支付',
|
||||
'common_already_is_enable_error' => '已启用数据不能删除',
|
||||
|
||||
'common_platform_text' => '所属平台',
|
||||
'common_platform_format' => '所属平台有误',
|
||||
'common_jump_url_text' => '跳转地址',
|
||||
'common_jump_url_format' => '跳转地址最多 255 个字符',
|
||||
'common_jump_url_type_text' => '跳转地址类型',
|
||||
'common_jump_url_type_format' => '跳转地址类型有误',
|
||||
'common_jump_url_type_tips' => '仅跳转地址不为空则有效',
|
||||
|
||||
'common_order_status_name' => '订单状态',
|
||||
'common_pay_status_name' => '支付状态',
|
||||
'common_express_name' => '快递公司',
|
||||
'common_background_color' => '背景色',
|
||||
|
||||
'common_favor_ok_text' => '已收藏',
|
||||
'common_favor_not_text' => '收藏',
|
||||
'common_not_install_text' => '未安装',
|
||||
|
||||
'common_linkage_text' => '省市区',
|
||||
'common_linkage_province_text' => '省份',
|
||||
'common_linkage_city_text' => '城市',
|
||||
'common_linkage_county_text' => '区/县',
|
||||
'common_linkage_province_format' => '请选择省份',
|
||||
'common_linkage_city_format' => '请选择城市',
|
||||
'common_linkage_county_format' => '请选择区/县',
|
||||
'common_avatar_upload_title' => '头像上传',
|
||||
|
||||
'common_app_event_type_text' => '事件类型',
|
||||
'common_app_event_type_format' => '事件值类型有误',
|
||||
'common_app_event_type_tips' => 'WEB页面<br />   1.以http开头<br />   2.并在小程序后台加入白名单<br /><br /> 内部页面(小程序/APP内部地址)<br />   1.小程序或APP内部地址<br />   2.小程序以/pages开始<br />   3.例如:/pages/user/user<br />   4.支持带参数 ?x=xx<br /><br /> 跳转原生地图查看指定位置<br />   1.以 | 竖线分割,分别顺序 名称|地址|经度|纬度<br />   2.例如:ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843 ',
|
||||
'common_app_event_value_text' => '事件值',
|
||||
'common_app_event_value_format' => '事件值最多 255 个字符',
|
||||
|
||||
// 性别
|
||||
'common_gender_list' => array(
|
||||
0 => array('id' => 0, 'name' => '保密', 'checked' => true),
|
||||
@ -470,7 +152,7 @@ return array(
|
||||
),
|
||||
|
||||
// 是否上架/下架
|
||||
'common_goods_is_shelves_list' => array(
|
||||
'common_is_shelves_list' => array(
|
||||
0 => array('id' => 0, 'name' => '已下架'),
|
||||
1 => array('id' => 1, 'name' => '已上架', 'checked' => true),
|
||||
),
|
||||
|
||||
@ -90,6 +90,12 @@ class AdminPowerService
|
||||
'is_checked' => 1,
|
||||
'error_msg' => '图标格式 0~30 个字符之间',
|
||||
],
|
||||
[
|
||||
'checked_type' => 'in',
|
||||
'key_name' => 'is_show',
|
||||
'checked_data' => [0,1],
|
||||
'error_msg' => '是否显示范围值有误',
|
||||
],
|
||||
];
|
||||
$ret = params_checked($params, $p);
|
||||
if($ret !== true)
|
||||
@ -105,6 +111,7 @@ class AdminPowerService
|
||||
'name' => $params['name'],
|
||||
'control' => $params['control'],
|
||||
'action' => $params['action'],
|
||||
'is_show' => isset($params['is_show']) ? intval($params['is_show']) : 0,
|
||||
];
|
||||
if(empty($params['id']))
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
namespace app\service;
|
||||
|
||||
use think\Db;
|
||||
use app\service\ResourcesService;
|
||||
|
||||
/**
|
||||
* 配置服务层
|
||||
@ -43,6 +44,14 @@ class ConfigService
|
||||
return DataReturn('参数不能为空', -1);
|
||||
}
|
||||
|
||||
// 附件
|
||||
$data_fields = ['home_site_logo', 'home_site_logo_wap', 'home_site_desktop_icon'];
|
||||
$attachment = ResourcesService::AttachmentParams($params, $data_fields);
|
||||
foreach($attachment['data'] as $k=>$v)
|
||||
{
|
||||
$params[$k] = $v;
|
||||
}
|
||||
|
||||
// 循环保存数据
|
||||
$success = 0;
|
||||
|
||||
|
||||
@ -19,9 +19,9 @@ return [
|
||||
// 应用地址
|
||||
'app_host' => '',
|
||||
// 应用调试模式
|
||||
'app_debug' => true,
|
||||
'app_debug' => APP_DEBUG,
|
||||
// 应用Trace
|
||||
'app_trace' => true,
|
||||
'app_trace' => APP_TRACE,
|
||||
// 是否支持多模块
|
||||
'app_multi_module' => true,
|
||||
// 入口自动绑定模块
|
||||
|
||||
@ -38,9 +38,15 @@ define('__MY_VIEW_URL__', substr(__MY_URL__, 0, -1).$request_url);
|
||||
// exit(header('location:'.$url));
|
||||
// }
|
||||
|
||||
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
|
||||
// 系统版本
|
||||
define('APPLICATION_VERSION', 'v1.2.0');
|
||||
|
||||
// 调试模式 建议开发阶段开启 部署阶段注释或者设为false
|
||||
define('APP_DEBUG', true);
|
||||
|
||||
// 应用Trace 建议开发阶段开启 部署阶段注释或者设为false
|
||||
define('APP_TRACE', true);
|
||||
|
||||
// 分之模式,master,develop,test,debug
|
||||
define('APP_STATUS', 'develop');
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,2 +1,7 @@
|
||||
.form-img-logo-view { max-width: 180px; max-height: 38px; }
|
||||
.form-img-icon-view { max-width: 100px; max-height: 100px; }
|
||||
.form-img-icon-view { max-width: 100px; max-height: 100px; }
|
||||
|
||||
/**
|
||||
* 覆盖插件样式
|
||||
*/
|
||||
ul.home_site_logo-images-view li, ul.home_site_logo_wap-images-view li { width: 220px; height: 60px; }
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 259 KiB |
Reference in New Issue
Block a user