From 9020eb960c37659df2b019feb786855b625de224 Mon Sep 17 00:00:00 2001 From: Devil Date: Sat, 28 Nov 2020 20:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=AE=A1=E7=90=86=E3=80=81=E5=BF=AB=E6=8D=B7=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Brand.php | 4 +- application/admin/controller/Goods.php | 14 + .../admin/controller/Goodsparamstemplate.php | 236 +++++++++++++ .../admin/form/Goodsparamstemplate.php | 124 +++++++ .../admin/view/default/goods/detail.html | 25 +- .../admin/view/default/goods/save_info.html | 66 +--- .../default/goodsparamstemplate/detail.html | 16 + .../default/goodsparamstemplate/index.html | 9 + .../goodsparamstemplate/module/operate.html | 13 + .../goodsparamstemplate/save_info.html | 94 +++++ .../admin/view/default/public/footer.html | 1 + .../public/goodsparamstemplate/detail.html | 24 ++ .../public/goodsparamstemplate/table.html | 41 +++ .../public/goodsparamstemplate/tips.html | 10 + application/service/BrandService.php | 10 +- .../service/GoodsParamsTemplateService.php | 321 ++++++++++++++++++ application/service/GoodsService.php | 35 +- config/shopxo.sql | 94 +++-- public/static/admin/default/css/common.css | 20 ++ public/static/admin/default/css/goods.css | 17 - .../admin/default/css/goodsparamstemplate.css | 0 public/static/admin/default/js/common.js | 189 +++++++++++ public/static/admin/default/js/goods.js | 190 +---------- 23 files changed, 1221 insertions(+), 332 deletions(-) create mode 100755 application/admin/controller/Goodsparamstemplate.php create mode 100644 application/admin/form/Goodsparamstemplate.php create mode 100644 application/admin/view/default/goodsparamstemplate/detail.html create mode 100755 application/admin/view/default/goodsparamstemplate/index.html create mode 100644 application/admin/view/default/goodsparamstemplate/module/operate.html create mode 100755 application/admin/view/default/goodsparamstemplate/save_info.html create mode 100644 application/admin/view/default/public/goodsparamstemplate/detail.html create mode 100644 application/admin/view/default/public/goodsparamstemplate/table.html create mode 100644 application/admin/view/default/public/goodsparamstemplate/tips.html create mode 100755 application/service/GoodsParamsTemplateService.php create mode 100644 public/static/admin/default/css/goodsparamstemplate.css create mode 100644 public/static/admin/default/js/common.js diff --git a/application/admin/controller/Brand.php b/application/admin/controller/Brand.php index 8eece4fde..7e7a723bc 100755 --- a/application/admin/controller/Brand.php +++ b/application/admin/controller/Brand.php @@ -143,13 +143,13 @@ class Brand extends Common $brand_category = BrandCategoryService::BrandCategoryList(['field'=>'id,name']); $this->assign('brand_category', $brand_category['data']); - // 品牌编辑页面钩子 + // 编辑页面钩子 $hook_name = 'plugins_view_admin_brand_save'; $this->assign($hook_name.'_data', Hook::listen($hook_name, [ 'hook_name' => $hook_name, 'is_backend' => true, - 'brand_id' => isset($params['id']) ? $params['id'] : 0, + 'data_id' => isset($params['id']) ? $params['id'] : 0, 'data' => &$data, 'params' => &$params, ])); diff --git a/application/admin/controller/Goods.php b/application/admin/controller/Goods.php index 053dec820..878f42de4 100755 --- a/application/admin/controller/Goods.php +++ b/application/admin/controller/Goods.php @@ -14,6 +14,7 @@ use think\facade\Hook; use app\service\GoodsService; use app\service\RegionService; use app\service\BrandService; +use app\service\GoodsParamsTemplateService; /** * 商品管理 @@ -200,6 +201,19 @@ class Goods extends Common // 商品参数类型 $this->assign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list')); + // 商品参数模板 + $data_params = array( + 'm' => 0, + 'n' => 0, + 'where' => [ + ['is_enable', '=', 1], + ['config_count', '>', 0], + ], + 'field' => 'id,name', + ); + $template = GoodsParamsTemplateService::GoodsParamsTemplateList($data_params); + $this->assign('goods_template_list', $template['data']); + // 是否拷贝 $this->assign('is_copy', (isset($params['is_copy']) && $params['is_copy'] == 1) ? 1 : 0); diff --git a/application/admin/controller/Goodsparamstemplate.php b/application/admin/controller/Goodsparamstemplate.php new file mode 100755 index 000000000..489dc2d90 --- /dev/null +++ b/application/admin/controller/Goodsparamstemplate.php @@ -0,0 +1,236 @@ +IsLogin(); + + // 权限校验 + $this->IsPower(); + } + + /** + * 列表 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function Index() + { + // 总数 + $total = GoodsParamsTemplateService::GoodsParamsTemplateTotal($this->form_where); + + // 分页 + $page_params = [ + 'number' => $this->page_size, + 'total' => $total, + 'where' => $this->data_request, + 'page' => $this->page, + 'url' => MyUrl('admin/goodsparamstemplate/index'), + ]; + $page = new \base\Page($page_params); + + // 获取列表 + $data_params = [ + 'where' => $this->form_where, + 'm' => $page->GetPageStarNumber(), + 'n' => $this->page_size, + 'order_by' => $this->form_order_by['data'], + ]; + $ret = GoodsParamsTemplateService::GoodsParamsTemplateList($data_params); + + // 基础参数赋值 + $this->assign('params', $this->data_request); + $this->assign('page_html', $page->GetPageHtml()); + $this->assign('data_list', $ret['data']); + return $this->fetch(); + } + + /** + * 详情 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function Detail() + { + if(!empty($this->data_request['id'])) + { + // 条件 + $where = [ + ['id', '=', intval($this->data_request['id'])], + ]; + + // 获取列表 + $data_params = [ + 'm' => 0, + 'n' => 1, + 'where' => $where, + ]; + $ret = GoodsParamsTemplateService::GoodsParamsTemplateList($data_params); + $data = (empty($ret['data']) || empty($ret['data'][0])) ? [] : $ret['data'][0]; + $this->assign('data', $data); + + // 商品参数类型 + $this->assign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list')); + + // 参数配置 + $this->assign('parameters', empty($data['config_data']) ? [] : $data['config_data']); + } + return $this->fetch(); + } + + /** + * 添加/编辑页面 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function SaveInfo() + { + // 参数 + $params = $this->data_request; + + // 数据 + $data = []; + if(!empty($params['id'])) + { + // 获取列表 + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id'=>intval($params['id'])], + 'field' => '*', + ); + $ret = GoodsParamsTemplateService::GoodsParamsTemplateList($data_params); + $data = empty($ret['data'][0]) ? [] : $ret['data'][0]; + } + + // 商品参数类型 + $this->assign('common_goods_parameters_type_list', lang('common_goods_parameters_type_list')); + + // 参数配置 + $this->assign('parameters', empty($data['config_data']) ? [] : $data['config_data']); + + // 编辑页面钩子 + $hook_name = 'plugins_view_admin_goods_params_template_save'; + $this->assign($hook_name.'_data', Hook::listen($hook_name, + [ + 'hook_name' => $hook_name, + 'is_backend' => true, + 'data_id' => isset($params['id']) ? $params['id'] : 0, + 'data' => &$data, + 'params' => &$params, + ])); + + // 数据 + $this->assign('data', $data); + $this->assign('params', $params); + return $this->fetch(); + } + + /** + * 保存 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = $this->data_request; + return GoodsParamsTemplateService::GoodsParamsTemplateSave($params); + } + + /** + * 删除 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function Delete() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = $this->data_request; + $params['user_type'] = 'admin'; + return GoodsParamsTemplateService::GoodsParamsTemplateDelete($params); + } + + /** + * 状态更新 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-11-27 + * @desc description + */ + public function StatusUpdate() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = $this->data_request; + return GoodsParamsTemplateService::GoodsParamsTemplateStatusUpdate($params); + } +} +?> \ No newline at end of file diff --git a/application/admin/form/Goodsparamstemplate.php b/application/admin/form/Goodsparamstemplate.php new file mode 100644 index 000000000..d92c2c939 --- /dev/null +++ b/application/admin/form/Goodsparamstemplate.php @@ -0,0 +1,124 @@ + [ + 'key_field' => 'id', + 'status_field' => 'is_enable', + 'is_search' => 1, + 'search_url' => MyUrl('admin/goodsparamstemplate/index'), + 'is_delete' => 1, + 'delete_url' => MyUrl('admin/goodsparamstemplate/delete'), + 'delete_key' => 'ids', + 'detail_title' => '基础信息', + ], + // 表单配置 + 'form' => [ + [ + 'view_type' => 'checkbox', + 'is_checked' => 0, + 'checked_text' => '反选', + 'not_checked_text' => '全选', + 'align' => 'center', + 'width' => 80, + ], + [ + 'label' => '名称', + 'view_type' => 'field', + 'view_key' => 'name', + 'is_sort' => 1, + 'search_config' => [ + 'form_type' => 'input', + 'where_type' => 'like', + ], + ], + [ + 'label' => '是否启用', + 'view_type' => 'status', + 'view_key' => 'is_enable', + 'post_url' => MyUrl('admin/goodsparamstemplate/statusupdate'), + 'is_form_su' => 1, + 'align' => 'center', + 'is_sort' => 1, + 'search_config' => [ + 'form_type' => 'select', + 'where_type' => 'in', + 'data' => lang('common_is_enable_list'), + 'data_key' => 'id', + 'data_name' => 'name', + 'is_multiple' => 1, + ], + ], + [ + 'label' => '参数数量', + 'view_type' => 'field', + 'view_key' => 'config_count', + 'is_sort' => 1, + 'search_config' => [ + 'form_type' => 'section', + ], + ], + [ + 'label' => '创建时间', + 'view_type' => 'field', + 'view_key' => 'add_time', + 'is_sort' => 1, + 'search_config' => [ + 'form_type' => 'datetime', + ], + ], + [ + 'label' => '更新时间', + 'view_type' => 'field', + 'view_key' => 'upd_time', + 'is_sort' => 1, + 'search_config' => [ + 'form_type' => 'datetime', + ], + ], + [ + 'label' => '操作', + 'view_type' => 'operate', + 'view_key' => 'goodsparamstemplate/module/operate', + 'align' => 'center', + 'fixed' => 'right', + ], + ], + ]; + } +} +?> \ No newline at end of file diff --git a/application/admin/view/default/goods/detail.html b/application/admin/view/default/goods/detail.html index b91ac2eed..b791390e2 100644 --- a/application/admin/view/default/goods/detail.html +++ b/application/admin/view/default/goods/detail.html @@ -127,30 +127,7 @@
商品参数
- {{if !empty($parameters) and is_array($parameters)}} -
- - - - - - - - - - {{foreach $parameters as $v}} - - - - - - {{/foreach}} - -
展示范围参数名称参数值
{{if isset($common_goods_parameters_type_list[$v['type']])}}{{$common_goods_parameters_type_list[$v['type']]['name']}}{{/if}}{{$v.name}}{{$v.value}}
-
- {{else /}} - {{include file="public/not_data" /}} - {{/if}} + {{include file="public/goodsparamstemplate/detail" /}}
diff --git a/application/admin/view/default/goods/save_info.html b/application/admin/view/default/goods/save_info.html index be543d2dd..8f707c82b 100755 --- a/application/admin/view/default/goods/save_info.html +++ b/application/admin/view/default/goods/save_info.html @@ -191,7 +191,7 @@ +快捷操作 生成规格
- +
@@ -285,7 +285,7 @@ -
规格名
+
{{if !empty($specifications['type'])}} @@ -432,15 +432,7 @@
-
-

1. 展示范围

-
-

1.1 全部(在商品基础信息和详情参数下都展示)

-

1.2 详情(仅在商品详情参数下都展示)

-

1.3 基础(仅在商品基础信息下都展示)

-
-

2. 快捷操作将会清除原来的数据、重载页面便可恢复原来的数据(仅保存商品后生效)

-
+ {{include file="public/goodsparamstemplate/tips" /}}
@@ -448,6 +440,16 @@
+
+ +
@@ -475,47 +477,7 @@ 清空参数 -
-
- - - - - - - - - - {{if !empty($parameters)}} - {{foreach $parameters as $pv}} - - - - - - - {{/foreach}} - {{/if}} - -
展示范围参数名称参数值操作
- - - - - - - 上移 - 下移 - 移除 -
- +添加一行 -
+ {{include file="public/goodsparamstemplate/table" /}} diff --git a/application/admin/view/default/goodsparamstemplate/detail.html b/application/admin/view/default/goodsparamstemplate/detail.html new file mode 100644 index 000000000..cb070e96b --- /dev/null +++ b/application/admin/view/default/goodsparamstemplate/detail.html @@ -0,0 +1,16 @@ + +{{extend name="public/module/detail" /}} + + +{{block name="detail_data"}} + + {__block__} + + +
+
商品参数
+
+ {{include file="public/goodsparamstemplate/detail" /}} +
+
+{{/block}} \ No newline at end of file diff --git a/application/admin/view/default/goodsparamstemplate/index.html b/application/admin/view/default/goodsparamstemplate/index.html new file mode 100755 index 000000000..4f8c107e5 --- /dev/null +++ b/application/admin/view/default/goodsparamstemplate/index.html @@ -0,0 +1,9 @@ + +{{extend name="public/module/form" /}} + + +{{block name="form_operate_top"}} + 新增 + + {__block__} +{{/block}} \ No newline at end of file diff --git a/application/admin/view/default/goodsparamstemplate/module/operate.html b/application/admin/view/default/goodsparamstemplate/module/operate.html new file mode 100644 index 000000000..7d8d4ee5d --- /dev/null +++ b/application/admin/view/default/goodsparamstemplate/module/operate.html @@ -0,0 +1,13 @@ + + + + + 编辑 + + \ No newline at end of file diff --git a/application/admin/view/default/goodsparamstemplate/save_info.html b/application/admin/view/default/goodsparamstemplate/save_info.html new file mode 100755 index 000000000..23887f404 --- /dev/null +++ b/application/admin/view/default/goodsparamstemplate/save_info.html @@ -0,0 +1,94 @@ +{{include file="public/header" /}} + + +
+
+ +
+ + 商品参数{{if empty($data['id'])}}添加{{else /}}编辑{{/if}} + 返回 + +
+ + +
+ +
+ + {{include file="public/goodsparamstemplate/tips" /}} + +
+ + 快捷操作 + + +
+ + +
+
+ + + + 复制配置 + + +
+
+
+ × +
+
+
+ +
+
+
+
+ + + + 清空参数 + + {{include file="public/goodsparamstemplate/table" /}} +
+ +
+ + +
+ + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} +
+ plugins_view_admin_goods_params_template_save +
+ {{/if}} + {{if !empty($plugins_view_admin_goods_params_template_save_data) and is_array($plugins_view_admin_goods_params_template_save_data)}} +
+ +
+ {{foreach $plugins_view_admin_brand_save_data as $hook}} + {{if is_string($hook) or is_int($hook)}} + {{$hook|raw}} + {{/if}} + {{/foreach}} +
+
+ {{/if}} + + +
+ + +
+
+ +
+
+ + + +{{include file="public/footer" /}} + \ No newline at end of file diff --git a/application/admin/view/default/public/footer.html b/application/admin/view/default/public/footer.html index 5fb0859f3..821725cf2 100755 --- a/application/admin/view/default/public/footer.html +++ b/application/admin/view/default/public/footer.html @@ -72,6 +72,7 @@ + {{if !empty($plugins_js)}} diff --git a/application/admin/view/default/public/goodsparamstemplate/detail.html b/application/admin/view/default/public/goodsparamstemplate/detail.html new file mode 100644 index 000000000..bdf0ccd71 --- /dev/null +++ b/application/admin/view/default/public/goodsparamstemplate/detail.html @@ -0,0 +1,24 @@ +{{if !empty($parameters) and is_array($parameters)}} +
+ + + + + + + + + + {{foreach $parameters as $v}} + + + + + + {{/foreach}} + +
展示范围参数名称参数值
{{if isset($common_goods_parameters_type_list[$v['type']])}}{{$common_goods_parameters_type_list[$v['type']]['name']}}{{/if}}{{$v.name}}{{$v.value}}
+
+{{else /}} + {{include file="public/not_data" /}} +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/public/goodsparamstemplate/table.html b/application/admin/view/default/public/goodsparamstemplate/table.html new file mode 100644 index 000000000..b7571e3d2 --- /dev/null +++ b/application/admin/view/default/public/goodsparamstemplate/table.html @@ -0,0 +1,41 @@ +
+ + + + + + + + + + + {{if !empty($parameters) and is_array($parameters)}} + {{foreach $parameters as $pv}} + + + + + + + {{/foreach}} + {{/if}} + +
展示范围参数名称参数值操作
+ + + + + + + 上移 + 下移 + 移除 +
+ +添加一行 +
\ No newline at end of file diff --git a/application/admin/view/default/public/goodsparamstemplate/tips.html b/application/admin/view/default/public/goodsparamstemplate/tips.html new file mode 100644 index 000000000..f7204a439 --- /dev/null +++ b/application/admin/view/default/public/goodsparamstemplate/tips.html @@ -0,0 +1,10 @@ +
+ +

1. 展示范围

+
+

1.1 全部(在商品基础信息和详情参数下都展示)

+

1.2 详情(仅在商品详情参数下都展示)

+

1.3 基础(仅在商品基础信息下都展示)

+
+

2. 快捷操作将会清除原来的数据、重载页面便可恢复原来的数据(仅保存商品后生效)

+
\ No newline at end of file diff --git a/application/service/BrandService.php b/application/service/BrandService.php index c86cc3816..54b807aa3 100755 --- a/application/service/BrandService.php +++ b/application/service/BrandService.php @@ -51,16 +51,8 @@ class BrandService { $cnames = Db::name('BrandCategory')->where(['id'=>$cids])->column('name', 'id'); } - - $common_is_enable_tips = lang('common_is_enable_tips'); foreach($data as &$v) { - // 是否启用 - if(isset($v['is_enable'])) - { - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - } - // 分类名称 if(isset($v['id'])) { @@ -271,7 +263,7 @@ class BrandService 'is_backend' => true, 'params' => &$params, 'data' => &$data, - 'brand_id' => isset($params['id']) ? intval($params['id']) : 0, + 'data_id' => isset($params['id']) ? intval($params['id']) : 0, ])); if(isset($ret['code']) && $ret['code'] != 0) { diff --git a/application/service/GoodsParamsTemplateService.php b/application/service/GoodsParamsTemplateService.php new file mode 100755 index 000000000..a01cf6271 --- /dev/null +++ b/application/service/GoodsParamsTemplateService.php @@ -0,0 +1,321 @@ +where($where)->order($order_by)->field($field)->limit($m, $n)->select(); + if(!empty($data)) + { + // 获取配置数据 + $res = Db::name('GoodsParamsTemplateConfig')->where(['template_id'=>array_column($data, 'id')])->field('id,template_id,type,name,value')->order('id asc')->select(); + $config = []; + if(!empty($res)) + { + foreach($res as $c) + { + $config[$c['template_id']][] = $c; + } + } + + foreach($data as &$v) + { + // 参数配置 + $v['config_data'] = empty($config[$v['id']]) ? [] : $config[$v['id']]; + + // 时间 + if(isset($v['add_time'])) + { + $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); + } + if(isset($v['upd_time'])) + { + $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); + } + } + } + return DataReturn('处理成功', 0, $data); + } + + /** + * 总数 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-18 + * @desc description + * @param [array] $params [输入参数] + */ + public static function GoodsParamsTemplateTotal($where) + { + return (int) Db::name('GoodsParamsTemplate')->where($where)->count(); + } + + /** + * 保存 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-18 + * @desc description + * @param [array] $params [输入参数] + */ + public static function GoodsParamsTemplateSave($params = []) + { + // 请求类型 + $p = [ + [ + 'checked_type' => 'length', + 'key_name' => 'name', + 'checked_data' => '2,30', + 'error_msg' => '名称格式 2~30 个字符', + ], + ]; + $ret = ParamsChecked($params, $p); + if($ret !== true) + { + return DataReturn($ret, -1); + } + + // 获取参数解析并添加 + $config = self::GoodsParamsTemplateHandle($params); + if($config['code'] != 0) + { + return $config; + } + + // 数据 + $data = [ + 'name' => $params['name'], + 'config_count' => count($config['data']), + 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, + ]; + + // 保存处理钩子 + $hook_name = 'plugins_service_goods_params_template_save_handle'; + $ret = HookReturnHandle(Hook::listen($hook_name, [ + 'hook_name' => $hook_name, + 'is_backend' => true, + 'params' => &$params, + 'data' => &$data, + 'data_id' => isset($params['id']) ? intval($params['id']) : 0, + ])); + if(isset($ret['code']) && $ret['code'] != 0) + { + return $ret; + } + + // 启动事务 + Db::startTrans(); + + // 捕获异常 + try { + // 添加/编辑 + if(empty($params['id'])) + { + $data['add_time'] = time(); + $template_id = Db::name('GoodsParamsTemplate')->insertGetId($data); + if($template_id <= 0) + { + throw new \Exception('添加失败'); + } + } else { + $data['upd_time'] = time(); + if(Db::name('GoodsParamsTemplate')->where(['id'=>intval($params['id'])])->update($data) === false) + { + throw new \Exception('更新失败'); + } else { + $template_id = $params['id']; + } + } + + // 删除商品参数 + Db::name('GoodsParamsTemplateConfig')->where(['template_id'=>$template_id])->delete(); + + // 参数配置 + if($config['code'] == 0 && !empty($config['data'])) + { + foreach($config['data'] as &$v) + { + $v['template_id'] = $template_id; + $v['add_time'] = time(); + } + if(Db::name('GoodsParamsTemplateConfig')->insertAll($config['data']) < count($config['data'])) + { + throw new \Exception('规格参数添加失败'); + } + } + + // 完成 + Db::commit(); + return DataReturn('操作成功', 0); + } catch(\Exception $e) { + Db::rollback(); + return DataReturn($e->getMessage(), -1); + } + } + + /** + * 删除 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-18 + * @desc description + * @param [array] $params [输入参数] + */ + public static function GoodsParamsTemplateDelete($params = []) + { + // 参数是否有误 + if(empty($params['ids'])) + { + return DataReturn('操作id有误', -1); + } + // 是否数组 + if(!is_array($params['ids'])) + { + $params['ids'] = explode(',', $params['ids']); + } + + // 启动事务 + Db::startTrans(); + + // 捕获异常 + try { + // 模板删除 + if(!Db::name('GoodsParamsTemplate')->where(['id'=>$params['ids']])->delete()) + { + throw new \Exception('模板删除失败'); + } + + // 参数配置删除 + if(Db::name('GoodsParamsTemplateConfig')->where(['template_id'=>$params['ids']])->delete() === false) + { + throw new \Exception('规格参数删除失败'); + } + + // 完成 + Db::commit(); + return DataReturn('删除成功', 0); + } catch(\Exception $e) { + Db::rollback(); + return DataReturn($e->getMessage(), -1); + } + } + + /** + * 状态更新 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-18 + * @desc description + * @param [array] $params [输入参数] + */ + public static function GoodsParamsTemplateStatusUpdate($params = []) + { + // 请求参数 + $p = [ + [ + 'checked_type' => 'empty', + 'key_name' => 'id', + 'error_msg' => '操作id有误', + ], + [ + 'checked_type' => 'empty', + 'key_name' => 'field', + 'error_msg' => '未指定操作字段', + ], + [ + 'checked_type' => 'in', + 'key_name' => 'state', + 'checked_data' => [0,1], + 'error_msg' => '状态有误', + ], + ]; + $ret = ParamsChecked($params, $p); + if($ret !== true) + { + return DataReturn($ret, -1); + } + + // 数据更新 + if(Db::name('GoodsParamsTemplate')->where(['id'=>intval($params['id'])])->update([$params['field']=>intval($params['state']), 'upd_time'=>time()])) + { + return DataReturn('操作成功'); + } + return DataReturn('操作失败', -100); + } + + /** + * 商品参数处理 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-08-31 + * @desc description + * @param [array] $params [输入参数] + */ + public static function GoodsParamsTemplateHandle($params = []) + { + // 展示范围、参数名称、参数值 + if(!empty($params['parameters_type']) && !empty($params['parameters_name']) && !empty($params['parameters_value']) && is_array($params['parameters_type']) && is_array($params['parameters_name']) && is_array($params['parameters_value'])) + { + $data = []; + foreach($params['parameters_type'] as $k=>$v) + { + if(isset($params['parameters_name'][$k]) && isset($params['parameters_value'][$k])) + { + $data[] = [ + 'type' => $v, + 'name' => $params['parameters_name'][$k], + 'value' => $params['parameters_value'][$k], + ]; + } + } + if(!empty($data)) + { + return DataReturn('处理成功', 0, $data); + } + } + return DataReturn('请填写参数配置', -1); + } +} +?> \ No newline at end of file diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 773c4fdfe..6ea8f81a8 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -16,6 +16,7 @@ use app\service\ResourcesService; use app\service\BrandService; use app\service\RegionService; use app\service\WarehouseGoodsService; +use app\service\GoodsParamsTemplateService; /** * 商品服务层 @@ -1152,7 +1153,7 @@ class GoodsService } // 商品参数 - $ret = self::GoodsParametersInsert($params, $goods_id); + $ret = self::GoodsParamsInsert($params, $goods_id); if($ret['code'] != 0) { throw new \Exception($ret['msg']); @@ -1196,38 +1197,26 @@ class GoodsService * @param [array] $params [输入参数] * @param [int] $goods_id [商品id] */ - public static function GoodsParametersInsert($params, $goods_id) + public static function GoodsParamsInsert($params, $goods_id) { // 删除商品参数 Db::name('GoodsParams')->where(['goods_id'=>$goods_id])->delete(); - // 展示范围、参数名称、参数值 - if(!empty($params['parameters_type']) && !empty($params['parameters_name']) && !empty($params['parameters_value']) && is_array($params['parameters_type']) && is_array($params['parameters_name']) && is_array($params['parameters_value'])) + // 获取参数解析并添加 + $config = GoodsParamsTemplateService::GoodsParamsTemplateHandle($params); + if($config['code'] == 0 && !empty($config['data'])) { - $data = []; - $time = time(); - foreach($params['parameters_type'] as $k=>$v) + foreach($config['data'] as &$v) { - if(isset($params['parameters_name'][$k]) && isset($params['parameters_value'][$k])) - { - $data[] = [ - 'type' => $v, - 'name' => $params['parameters_name'][$k], - 'value' => $params['parameters_value'][$k], - 'goods_id' => $goods_id, - 'add_time' => $time, - ]; - } + $v['goods_id'] = $goods_id; + $v['add_time'] = time(); } - if(!empty($data)) + if(Db::name('GoodsParams')->insertAll($config['data']) < count($config['data'])) { - if(Db::name('GoodsParams')->insertAll($data) < count($data)) - { - return DataReturn('规格参数添加失败', -1); - } + return DataReturn('规格参数添加失败', -1); } } - return DataReturn('添加成功', 0); + return DataReturn('操作成功', 0); } /** diff --git a/config/shopxo.sql b/config/shopxo.sql index 5e7661c6f..d750aa004 100644 --- a/config/shopxo.sql +++ b/config/shopxo.sql @@ -11,7 +11,7 @@ Target Server Version : 50728 File Encoding : utf-8 - Date: 11/27/2020 14:12:47 PM + Date: 11/28/2020 20:58:46 PM */ SET NAMES utf8mb4; @@ -41,7 +41,7 @@ CREATE TABLE `s_admin` ( -- Records of `s_admin` -- ---------------------------- BEGIN; -INSERT INTO `s_admin` VALUES ('1', 'admin', '608d470ae8be570bc23c7df2f213ca99', '437789', '17688888888', '0', '0', '651', '1606457117', '1', '1481350313', '1593747210'), ('4', 'shopxo', 'c547c7fdfc244cef6747b306d390cc12', '898429', '', '0', '0', '7', '1600938931', '13', '1580807200', '1598279043'); +INSERT INTO `s_admin` VALUES ('1', 'admin', 'ffb6c018bb996e459025b5e6c0f8b8ba', '808281', '17688888888', '0', '0', '657', '1606462474', '1', '1481350313', '1593747210'), ('4', 'shopxo', 'c547c7fdfc244cef6747b306d390cc12', '898429', '', '0', '0', '7', '1600938931', '13', '1580807200', '1598279043'); COMMIT; -- ---------------------------- @@ -466,7 +466,7 @@ CREATE TABLE `s_goods` ( -- Records of `s_goods` -- ---------------------------- BEGIN; -INSERT INTO `s_goods` VALUES ('1', '1', '-1', 'MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE(4G)/TD-SCD', '', '', '', '0', '8', '步', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '3200.00', '3200.00', '3200.00', '2100.00', '2100.00', '2100.00', '10', '1', '0', '1', '1', '1', '


', '2', '10', '600', '', '0', '', '

https://pan.baidu.com/s/18xyUNruvohr5JCdorvaz5w     提取码 v3y4

', null, '', '', '', '0', '1547450921', '1605345053'), ('2', '2', '-1', '苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G', '', '', 'iPhone 6 Plus', '0', '1997', '步', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '6000.00-7600.00', '6000.00', '7600.00', '4500.00-6800.00', '4500.00', '6800.00', '30', '1', '0', '1', '1', '1', '


', '2', '36', '1897', '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', '1', '', '', null, '', '', '', '0', '1547451624', '1605345051'), ('3', '2', '-1', 'Samsung/三星 SM-G8508S GALAXY Alpha四核智能手机 新品 闪耀白', '', '', '', '0', '333', '步', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '6866.00', '6866.00', '6866.00', '3888.00', '3888.00', '3888.00', '20', '1', '0', '1', '1', '1', '


', '2', '4', '298', '', '0', '', '', null, '', '', '', '0', '1547452007', '1605432752'), ('4', '1', '-1', 'Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓', '', '', '', '0', '333', '步', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '2300.00', '2300.00', '2300.00', '1999.00', '1999.00', '1999.00', '19', '1', '0', '1', '1', '1', '


', '2', '4', '290', '', '0', '', '', null, '', '', '', '0', '1547452553', '1605432758'), ('5', '2', '-1', 'Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G', '', '', '', '0', '555', '步', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '3200.00', '3200.00', '3200.00', '2499.00', '2499.00', '2499.00', '56', '1', '0', '1', '1', '1', '


', '2', '10', '554', '', '0', null, null, null, '', '', '', '0', '1547452798', '1605432763'), ('6', '1', '-1', 'vivo X5MAX L 移动4G 八核超薄大屏5.5吋双卡手机vivoX5max', '', '', '', '0', '666', '步', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '3200.00', '3200.00', '3200.00', '2998.90', '2998.90', '2998.90', '65', '1', '0', '1', '1', '1', '

 X5L/SL/V/M (5.0寸)  X5max钢化膜(5.5寸)  X5pro钢化膜(5.2寸) 



', '2', '2', '402', '', '0', '', '', null, '', '', '', '0', '1547453135', '1605432769'), ('7', '1', '-1', '纽芝兰包包女士2018新款潮百搭韩版时尚单肩斜挎包少女小挎包链条', '', '', '', '0', '218', '件', '/static/upload/images/goods/2019/01/15/1547540603500383.jpg', '760.00', '760.00', '760.00', '168.00', '168.00', '168.00', '11', '1', '0', '1', '1', '1', '


', '2', '8', '1151', '', '0', null, null, null, '', '', '', '0', '1547453967', '1602428921'), ('8', '1', '-1', 'MARNI Trunk 女士 中号拼色十字纹小牛皮 斜挎风琴包', '', '', '', '0', '3', '件', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '0.00', '0.00', '0.00', '356.00', '356.00', '356.00', '8', '1', '6', '1', '1', '1', '



', '2', '2', '766', '', '0', '', '', null, '', '', '', '0', '1547454269', '1605345199'), ('9', '2', '2', '睡衣女长袖春秋季纯棉韩版女士大码薄款春夏季全棉家居服两件套装', '', '', '', '0', '1087', '件', '/static/upload/images/goods/2019/01/14/1547454567172116.jpg', '160.00-216.00', '160.00', '216.00', '120.00-158.00', '120.00', '158.00', '2', '1', '0', '1', '1', '1', '


', '3', '18', '981', '', '1', '', '', null, '', '', '', '0', '1547454786', '1605345103'), ('10', '0', '1', '夏装女装古力娜扎明星同款一字领露肩蓝色蕾丝修身显瘦连衣裙礼服', '', '', '', '0', '222', '件', '/static/upload/images/goods/2019/01/14/1547455222990904.jpg', '568.00', '568.00', '568.00', '228.00', '228.00', '228.00', '28', '1', '1', '1', '1', '1', '

【品牌】欧单 学媛风 猫咪良品

【吊牌】xueyuanfeng 猫咪良品

【面料质地】涤棉拼接蕾丝  后中拉链 有内衬(非专业机构鉴定,介意请慎拍)

好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦

【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦


XS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM


S码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM

M码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM

L码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM


(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

PS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~

蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~


', '2', '8', '653', '', '0', '', '

https://pan.baidu.com/s/1XTSM-EJZwEgLmGx3ZyFMGQ   提取码:dcs4

', null, '', '', '', '0', '1547455375', '1602428921'), ('11', '0', '3', '夏季复古ins风格网红SP同款 短袖大圆领香槟色蕾丝绣花钉珠连衣裙', '', '', '', '0', '1998', '件', '/static/upload/images/goods/2019/01/14/1547455566118614.jpg', '268.00-422.00', '268.00', '422.00', '160.00-258.00', '160.00', '258.00', '0', '1', '0', '1', '1', '1', '

【品牌】欧单 学媛风 猫咪良品

【吊牌】xueyuanfeng 猫咪良品

【面料质地】网纱绣花钉珠拼接蕾丝 拉链有内衬(非专业机构鉴定,介意请慎拍)

好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦

【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦


XS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM


S码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM

M码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM

L码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM


(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

PS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~

大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~

肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~



', '4', '4', '490', '', '1', '', '', null, '', '', '', '0', '1547455700', '1605434325'), ('12', '2', '4', 'ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏', '', '轻奢醋酸面料,高标准的生产要求,品质保证', 'hello', '2', '25', '箱', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '0.00', '0.00', '0.00', '0.01', '0.01', '0.01', '50', '1', '0', '1', '1', '1', '


112233445566
qwerty
asdfgh
zxcvbn


\"d-1.jpg\"/

\"d-2.jpg\"/

', '3', '18', '1649', '', '1', '[{\"title\":\"颜色\",\"value\":[\"粉色\",\"白色\"]},{\"title\":\"尺码\",\"value\":[\"S+S\",\"M+M\",\"L+L\"]}]', '', '', 'ZK爆款连衣裙', '连衣裙,裙子', '夏季连衣裙,瘦身裙子', '0', '1547456230', '1606199005'); +INSERT INTO `s_goods` VALUES ('1', '1', '-1', 'MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE(4G)/TD-SCD', '', '', '', '0', '8', '步', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '3200.00', '3200.00', '3200.00', '2100.00', '2100.00', '2100.00', '10', '1', '0', '1', '1', '1', '


', '2', '10', '600', '', '0', '', '

https://pan.baidu.com/s/18xyUNruvohr5JCdorvaz5w     提取码 v3y4

', null, '', '', '', '0', '1547450921', '1605345053'), ('2', '2', '-1', '苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G', '', '', 'iPhone 6 Plus', '0', '1997', '步', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '6000.00-7600.00', '6000.00', '7600.00', '4500.00-6800.00', '4500.00', '6800.00', '30', '1', '0', '1', '1', '1', '


', '2', '36', '1897', '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', '1', '', '', null, '', '', '', '0', '1547451624', '1605345051'), ('3', '2', '-1', 'Samsung/三星 SM-G8508S GALAXY Alpha四核智能手机 新品 闪耀白', '', '', '', '0', '333', '步', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '6866.00', '6866.00', '6866.00', '3888.00', '3888.00', '3888.00', '20', '1', '0', '1', '1', '1', '


', '2', '4', '298', '', '0', '', '', null, '', '', '', '0', '1547452007', '1605432752'), ('4', '1', '-1', 'Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓', '', '', '', '0', '333', '步', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '2300.00', '2300.00', '2300.00', '1999.00', '1999.00', '1999.00', '19', '1', '0', '1', '1', '1', '


', '2', '4', '290', '', '0', '', '', null, '', '', '', '0', '1547452553', '1605432758'), ('5', '2', '-1', 'Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G', '', '', '', '0', '555', '步', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '3200.00', '3200.00', '3200.00', '2499.00', '2499.00', '2499.00', '56', '1', '0', '1', '1', '1', '


', '2', '10', '554', '', '0', null, null, null, '', '', '', '0', '1547452798', '1605432763'), ('6', '1', '-1', 'vivo X5MAX L 移动4G 八核超薄大屏5.5吋双卡手机vivoX5max', '', '', '', '0', '666', '步', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '3200.00', '3200.00', '3200.00', '2998.90', '2998.90', '2998.90', '65', '1', '0', '1', '1', '1', '

 X5L/SL/V/M (5.0寸)  X5max钢化膜(5.5寸)  X5pro钢化膜(5.2寸) 



', '2', '2', '402', '', '0', '', '', null, '', '', '', '0', '1547453135', '1605432769'), ('7', '1', '-1', '纽芝兰包包女士2018新款潮百搭韩版时尚单肩斜挎包少女小挎包链条', '', '', '', '0', '218', '件', '/static/upload/images/goods/2019/01/15/1547540603500383.jpg', '760.00', '760.00', '760.00', '168.00', '168.00', '168.00', '11', '1', '0', '1', '1', '1', '


', '2', '8', '1151', '', '0', null, null, null, '', '', '', '0', '1547453967', '1602428921'), ('8', '1', '-1', 'MARNI Trunk 女士 中号拼色十字纹小牛皮 斜挎风琴包', '', '', '', '0', '3', '件', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '0.00', '0.00', '0.00', '356.00', '356.00', '356.00', '8', '1', '6', '1', '1', '1', '



', '2', '2', '766', '', '0', '', '', null, '', '', '', '0', '1547454269', '1605345199'), ('9', '2', '2', '睡衣女长袖春秋季纯棉韩版女士大码薄款春夏季全棉家居服两件套装', '', '', '', '0', '1087', '件', '/static/upload/images/goods/2019/01/14/1547454567172116.jpg', '160.00-216.00', '160.00', '216.00', '120.00-158.00', '120.00', '158.00', '2', '1', '0', '1', '1', '1', '


', '3', '18', '981', '', '1', '', '', null, '', '', '', '0', '1547454786', '1605345103'), ('10', '0', '1', '夏装女装古力娜扎明星同款一字领露肩蓝色蕾丝修身显瘦连衣裙礼服', '', '', '', '0', '222', '件', '/static/upload/images/goods/2019/01/14/1547455222990904.jpg', '568.00', '568.00', '568.00', '228.00', '228.00', '228.00', '28', '1', '1', '1', '1', '1', '

【品牌】欧单 学媛风 猫咪良品

【吊牌】xueyuanfeng 猫咪良品

【面料质地】涤棉拼接蕾丝  后中拉链 有内衬(非专业机构鉴定,介意请慎拍)

好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦

【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦


XS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM


S码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM

M码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM

L码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM


(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

PS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~

蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~


', '2', '8', '653', '', '0', '', '

https://pan.baidu.com/s/1XTSM-EJZwEgLmGx3ZyFMGQ   提取码:dcs4

', null, '', '', '', '0', '1547455375', '1602428921'), ('11', '0', '3', '夏季复古ins风格网红SP同款 短袖大圆领香槟色蕾丝绣花钉珠连衣裙', '', '', '', '0', '1998', '件', '/static/upload/images/goods/2019/01/14/1547455566118614.jpg', '268.00-422.00', '268.00', '422.00', '160.00-258.00', '160.00', '258.00', '0', '1', '0', '1', '1', '1', '

【品牌】欧单 学媛风 猫咪良品

【吊牌】xueyuanfeng 猫咪良品

【面料质地】网纱绣花钉珠拼接蕾丝 拉链有内衬(非专业机构鉴定,介意请慎拍)

好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦

【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦


XS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM


S码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM

M码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM

L码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM


(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

PS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~

大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~

肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~



', '4', '4', '490', '', '1', '', '', null, '', '', '', '0', '1547455700', '1605434325'), ('12', '2', '4', 'ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏', '', '轻奢醋酸面料,高标准的生产要求,品质保证', 'hello', '2', '25', '箱', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '0.00', '0.00', '0.00', '0.01', '0.01', '0.01', '50', '1', '0', '1', '1', '1', '


112233445566
qwerty
asdfgh
zxcvbn


\"d-1.jpg\"/

\"d-2.jpg\"/

', '3', '18', '1650', '', '1', '[{\"title\":\"颜色\",\"value\":[\"粉色\",\"白色\"]},{\"title\":\"尺码\",\"value\":[\"S+S\",\"M+M\",\"L+L\"]}]', '', '', 'ZK爆款连衣裙', '连衣裙,裙子', '夏季连衣裙,瘦身裙子', '0', '1547456230', '1606538014'); COMMIT; -- ---------------------------- @@ -486,7 +486,7 @@ CREATE TABLE `s_goods_browse` ( -- Records of `s_goods_browse` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_browse` VALUES ('1', '6', '1', '1604832044', '1605657568'), ('2', '7', '1', '1604832045', '1605958554'), ('3', '8', '1', '1604832046', '1605373518'), ('4', '9', '1', '1604832047', '1605662748'), ('5', '12', '1', '1604839365', '1606199009'), ('6', '10', '1', '1604841381', '1605440096'), ('7', '2', '1', '1605107670', '1605668719'), ('8', '3', '1', '1605188357', '1605657570'), ('9', '4', '1', '1605188359', '1605195043'), ('10', '5', '1', '1605188361', '1605668118'), ('11', '1', '1', '1605188366', '1605668119'), ('12', '2', '2', '1605373852', '1605373858'), ('13', '9', '2', '1605373864', '1605373921'), ('14', '11', '1', '1605432723', '0'), ('15', '7', '3', '1605958837', '1605959317'), ('16', '1', '3', '1605959293', '1605959313'), ('17', '2', '3', '1605960043', '1605960249'); +INSERT INTO `s_goods_browse` VALUES ('1', '6', '1', '1604832044', '1605657568'), ('2', '7', '1', '1604832045', '1605958554'), ('3', '8', '1', '1604832046', '1605373518'), ('4', '9', '1', '1604832047', '1605662748'), ('5', '12', '1', '1604839365', '1606538018'), ('6', '10', '1', '1604841381', '1605440096'), ('7', '2', '1', '1605107670', '1605668719'), ('8', '3', '1', '1605188357', '1605657570'), ('9', '4', '1', '1605188359', '1605195043'), ('10', '5', '1', '1605188361', '1605668118'), ('11', '1', '1', '1605188366', '1605668119'), ('12', '2', '2', '1605373852', '1605373858'), ('13', '9', '2', '1605373864', '1605373921'), ('14', '11', '1', '1605432723', '0'), ('15', '7', '3', '1605958837', '1605959317'), ('16', '1', '3', '1605959293', '1605959313'), ('17', '2', '3', '1605960043', '1605960249'); COMMIT; -- ---------------------------- @@ -536,13 +536,13 @@ CREATE TABLE `s_goods_category_join` ( PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`), KEY `category_id` (`category_id`) -) ENGINE=InnoDB AUTO_INCREMENT=696 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品分类关联'; +) ENGINE=InnoDB AUTO_INCREMENT=699 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品分类关联'; -- ---------------------------- -- Records of `s_goods_category_join` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_category_join` VALUES ('10', '5', '68', '1547452798'), ('11', '5', '69', '1547452798'), ('79', '7', '58', '1554485498'), ('80', '7', '194', '1554485498'), ('81', '7', '196', '1554485498'), ('299', '1', '68', '1574168666'), ('300', '1', '304', '1574168666'), ('410', '11', '304', '1593703443'), ('411', '11', '318', '1593703443'), ('458', '10', '304', '1594905899'), ('459', '10', '318', '1594905899'), ('460', '10', '446', '1594905899'), ('479', '6', '1', '1594957734'), ('488', '13', '304', '1596114615'), ('489', '13', '318', '1596114615'), ('494', '14', '304', '1597152213'), ('495', '14', '318', '1597152213'), ('499', '2', '68', '1598698299'), ('500', '2', '69', '1598698299'), ('501', '2', '304', '1598698299'), ('581', '9', '363', '1599803472'), ('582', '3', '68', '1600151429'), ('583', '3', '69', '1600151429'), ('584', '3', '305', '1600151429'), ('585', '4', '68', '1600151450'), ('586', '4', '69', '1600151450'), ('587', '4', '318', '1600151450'), ('588', '8', '58', '1600771192'), ('589', '8', '195', '1600771192'), ('590', '8', '198', '1600771192'), ('693', '12', '53', '1606199005'), ('694', '12', '611', '1606199005'), ('695', '12', '612', '1606199005'); +INSERT INTO `s_goods_category_join` VALUES ('10', '5', '68', '1547452798'), ('11', '5', '69', '1547452798'), ('79', '7', '58', '1554485498'), ('80', '7', '194', '1554485498'), ('81', '7', '196', '1554485498'), ('299', '1', '68', '1574168666'), ('300', '1', '304', '1574168666'), ('410', '11', '304', '1593703443'), ('411', '11', '318', '1593703443'), ('458', '10', '304', '1594905899'), ('459', '10', '318', '1594905899'), ('460', '10', '446', '1594905899'), ('479', '6', '1', '1594957734'), ('488', '13', '304', '1596114615'), ('489', '13', '318', '1596114615'), ('494', '14', '304', '1597152213'), ('495', '14', '318', '1597152213'), ('499', '2', '68', '1598698299'), ('500', '2', '69', '1598698299'), ('501', '2', '304', '1598698299'), ('581', '9', '363', '1599803472'), ('582', '3', '68', '1600151429'), ('583', '3', '69', '1600151429'), ('584', '3', '305', '1600151429'), ('585', '4', '68', '1600151450'), ('586', '4', '69', '1600151450'), ('587', '4', '318', '1600151450'), ('588', '8', '58', '1600771192'), ('589', '8', '195', '1600771192'), ('590', '8', '198', '1600771192'), ('696', '12', '53', '1606538014'), ('697', '12', '611', '1606538014'), ('698', '12', '612', '1606538014'); COMMIT; -- ---------------------------- @@ -585,13 +585,13 @@ CREATE TABLE `s_goods_content_app` ( PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`), KEY `sort` (`sort`) -) ENGINE=InnoDB AUTO_INCREMENT=997 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品手机详情'; +) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品手机详情'; -- ---------------------------- -- Records of `s_goods_content_app` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_content_app` VALUES ('17', '5', '/static/upload/images/goods/2019/01/14/1547452760417982.jpg', '', '0', '1547452798'), ('18', '5', '/static/upload/images/goods/2019/01/14/1547452760984656.jpg', '', '1', '1547452798'), ('19', '5', '/static/upload/images/goods/2019/01/14/1547452760659259.jpg', '', '2', '1547452798'), ('135', '7', '/static/upload/images/goods/2019/01/14/1547453910353340.jpg', '', '0', '1554485498'), ('136', '7', '/static/upload/images/goods/2019/01/14/1547453910505349.jpg', '', '1', '1554485498'), ('137', '7', '/static/upload/images/goods/2019/01/14/1547453910394886.jpg', '', '2', '1554485498'), ('507', '1', '/static/upload/images/goods/2019/01/14/1547450880620837.png', '', '0', '1574168666'), ('508', '1', '/static/upload/images/goods/2019/01/14/1547450880750687.png', '', '1', '1574168666'), ('509', '1', '/static/upload/images/goods/2019/01/14/1547450880917418.png', '', '2', '1574168666'), ('675', '11', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '【品牌】欧单 学媛风 猫咪良品\n\n【吊牌】xueyuanfeng 猫咪良品\n\n【面料质地】网纱绣花钉珠拼接蕾丝 有拉链有内衬(非专业机构鉴定,介意请慎拍)\n\n好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~\n\n【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦\n\n【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦\n\n\nXS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM\n\nS码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM\n\nM码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM\n\nL码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM\n\n\n(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)\n\n\nPS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~\n\n大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~\n\n肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~', '0', '1593703443'), ('676', '11', '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', '', '1', '1593703443'), ('677', '11', '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', '', '2', '1593703443'), ('678', '11', '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', '', '3', '1593703443'), ('717', '10', '/static/upload/images/goods/2019/01/14/1547455266527628.jpg', '【品牌】欧单 学媛风 猫咪良品\n\n【吊牌】xueyuanfeng 猫咪良品\n\n【面料质地】涤棉拼接蕾丝 后中拉链 有内衬(非专业机构鉴定,介意请慎拍)\n\n好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~\n\n【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦\n\n【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦\n\n\nXS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM\n\nS码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM\n\nM码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM\n\nL码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM\n\n\n(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)\n\n\nPS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~\n\n蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~', '0', '1594905899'), ('718', '10', '/static/upload/images/goods/2019/01/14/1547455266234658.jpg', '', '1', '1594905899'), ('737', '6', '/static/upload/images/goods/2019/01/14/1547453042405182.jpg', 'X5L/SL/V/M (5.0寸) X5max钢化膜(5.5寸) X5pro钢化膜(5.2寸)', '0', '1594957734'), ('738', '6', '/static/upload/images/goods/2019/01/14/1547453042614480.jpg', '', '1', '1594957734'), ('739', '6', '/static/upload/images/goods/2019/01/14/1547453042816509.jpg', '', '2', '1594957734'), ('768', '2', '/static/upload/images/goods/2019/01/14/1547451595700972.jpg', '', '0', '1598698299'), ('769', '2', '/static/upload/images/goods/2019/01/14/1547451595528800.jpg', '', '1', '1598698299'), ('770', '2', '/static/upload/images/goods/2019/01/14/1547451595616298.jpg', '', '2', '1598698299'), ('843', '9', '/static/upload/images/goods/2019/01/14/1547454712270511.jpg', '', '0', '1599803472'), ('844', '9', '/static/upload/images/goods/2019/01/14/1547454713556301.jpg', '', '1', '1599803472'), ('845', '9', '/static/upload/images/goods/2019/01/14/1547454713800333.jpg', '', '2', '1599803472'), ('846', '9', '/static/upload/images/goods/2019/01/14/1547454713456602.jpg', '', '3', '1599803472'), ('847', '3', '/static/upload/images/goods/2019/01/14/1547451947383902.jpg', '', '0', '1600151429'), ('848', '3', '/static/upload/images/goods/2019/01/14/1547451947686990.jpg', '', '1', '1600151429'), ('849', '3', '/static/upload/images/goods/2019/01/14/1547451947676180.jpg', '', '2', '1600151429'), ('850', '3', '/static/upload/images/goods/2019/01/14/1547451947791154.jpg', '', '3', '1600151429'), ('851', '4', '/static/upload/images/goods/2019/01/14/1547452505568604.jpg', '', '0', '1600151450'), ('852', '4', '/static/upload/images/goods/2019/01/14/1547452505349986.jpg', '', '1', '1600151450'), ('853', '4', '/static/upload/images/goods/2019/01/14/1547452505184884.jpg', '', '2', '1600151450'), ('854', '8', '/static/upload/images/goods/2019/01/14/1547454192301566.jpg', '', '0', '1600771192'), ('855', '8', '/static/upload/images/goods/2019/01/14/1547454192448116.jpg', '', '1', '1600771192'), ('856', '8', '/static/upload/images/goods/2019/01/14/1547454192474638.jpg', '', '2', '1600771192'), ('993', '12', '/static/upload/images/goods/2019/01/14/1547456214155362.jpg', '每个人都有一个死角, 自己走不出来,别人也闯不进去。\n我把最深沉的秘密放在那里。\n你不懂我,我不怪你。\n每个人都有一道伤口, 或深或浅,盖上布,以为不存在。', '0', '1606199005'), ('994', '12', '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', '', '1', '1606199005'), ('995', '12', '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', '', '2', '1606199005'), ('996', '12', '/static/upload/images/goods/2019/01/14/1547456228913731.jpg', '', '3', '1606199005'); +INSERT INTO `s_goods_content_app` VALUES ('17', '5', '/static/upload/images/goods/2019/01/14/1547452760417982.jpg', '', '0', '1547452798'), ('18', '5', '/static/upload/images/goods/2019/01/14/1547452760984656.jpg', '', '1', '1547452798'), ('19', '5', '/static/upload/images/goods/2019/01/14/1547452760659259.jpg', '', '2', '1547452798'), ('135', '7', '/static/upload/images/goods/2019/01/14/1547453910353340.jpg', '', '0', '1554485498'), ('136', '7', '/static/upload/images/goods/2019/01/14/1547453910505349.jpg', '', '1', '1554485498'), ('137', '7', '/static/upload/images/goods/2019/01/14/1547453910394886.jpg', '', '2', '1554485498'), ('507', '1', '/static/upload/images/goods/2019/01/14/1547450880620837.png', '', '0', '1574168666'), ('508', '1', '/static/upload/images/goods/2019/01/14/1547450880750687.png', '', '1', '1574168666'), ('509', '1', '/static/upload/images/goods/2019/01/14/1547450880917418.png', '', '2', '1574168666'), ('675', '11', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '【品牌】欧单 学媛风 猫咪良品\n\n【吊牌】xueyuanfeng 猫咪良品\n\n【面料质地】网纱绣花钉珠拼接蕾丝 有拉链有内衬(非专业机构鉴定,介意请慎拍)\n\n好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~\n\n【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦\n\n【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦\n\n\nXS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM\n\nS码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM\n\nM码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM\n\nL码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM\n\n\n(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)\n\n\nPS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~\n\n大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~\n\n肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~', '0', '1593703443'), ('676', '11', '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', '', '1', '1593703443'), ('677', '11', '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', '', '2', '1593703443'), ('678', '11', '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', '', '3', '1593703443'), ('717', '10', '/static/upload/images/goods/2019/01/14/1547455266527628.jpg', '【品牌】欧单 学媛风 猫咪良品\n\n【吊牌】xueyuanfeng 猫咪良品\n\n【面料质地】涤棉拼接蕾丝 后中拉链 有内衬(非专业机构鉴定,介意请慎拍)\n\n好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~\n\n【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦\n\n【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦\n\n\nXS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM\n\nS码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM\n\nM码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM\n\nL码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM\n\n\n(测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)\n\n\nPS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~\n\n蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~', '0', '1594905899'), ('718', '10', '/static/upload/images/goods/2019/01/14/1547455266234658.jpg', '', '1', '1594905899'), ('737', '6', '/static/upload/images/goods/2019/01/14/1547453042405182.jpg', 'X5L/SL/V/M (5.0寸) X5max钢化膜(5.5寸) X5pro钢化膜(5.2寸)', '0', '1594957734'), ('738', '6', '/static/upload/images/goods/2019/01/14/1547453042614480.jpg', '', '1', '1594957734'), ('739', '6', '/static/upload/images/goods/2019/01/14/1547453042816509.jpg', '', '2', '1594957734'), ('768', '2', '/static/upload/images/goods/2019/01/14/1547451595700972.jpg', '', '0', '1598698299'), ('769', '2', '/static/upload/images/goods/2019/01/14/1547451595528800.jpg', '', '1', '1598698299'), ('770', '2', '/static/upload/images/goods/2019/01/14/1547451595616298.jpg', '', '2', '1598698299'), ('843', '9', '/static/upload/images/goods/2019/01/14/1547454712270511.jpg', '', '0', '1599803472'), ('844', '9', '/static/upload/images/goods/2019/01/14/1547454713556301.jpg', '', '1', '1599803472'), ('845', '9', '/static/upload/images/goods/2019/01/14/1547454713800333.jpg', '', '2', '1599803472'), ('846', '9', '/static/upload/images/goods/2019/01/14/1547454713456602.jpg', '', '3', '1599803472'), ('847', '3', '/static/upload/images/goods/2019/01/14/1547451947383902.jpg', '', '0', '1600151429'), ('848', '3', '/static/upload/images/goods/2019/01/14/1547451947686990.jpg', '', '1', '1600151429'), ('849', '3', '/static/upload/images/goods/2019/01/14/1547451947676180.jpg', '', '2', '1600151429'), ('850', '3', '/static/upload/images/goods/2019/01/14/1547451947791154.jpg', '', '3', '1600151429'), ('851', '4', '/static/upload/images/goods/2019/01/14/1547452505568604.jpg', '', '0', '1600151450'), ('852', '4', '/static/upload/images/goods/2019/01/14/1547452505349986.jpg', '', '1', '1600151450'), ('853', '4', '/static/upload/images/goods/2019/01/14/1547452505184884.jpg', '', '2', '1600151450'), ('854', '8', '/static/upload/images/goods/2019/01/14/1547454192301566.jpg', '', '0', '1600771192'), ('855', '8', '/static/upload/images/goods/2019/01/14/1547454192448116.jpg', '', '1', '1600771192'), ('856', '8', '/static/upload/images/goods/2019/01/14/1547454192474638.jpg', '', '2', '1600771192'), ('997', '12', '/static/upload/images/goods/2019/01/14/1547456214155362.jpg', '每个人都有一个死角, 自己走不出来,别人也闯不进去。\n我把最深沉的秘密放在那里。\n你不懂我,我不怪你。\n每个人都有一道伤口, 或深或浅,盖上布,以为不存在。', '0', '1606538014'), ('998', '12', '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', '', '1', '1606538014'), ('999', '12', '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', '', '2', '1606538014'), ('1000', '12', '/static/upload/images/goods/2019/01/14/1547456228913731.jpg', '', '3', '1606538014'); COMMIT; -- ---------------------------- @@ -627,13 +627,59 @@ CREATE TABLE `s_goods_params` ( PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`), KEY `type` (`type`) -) ENGINE=InnoDB AUTO_INCREMENT=463 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品参数'; +) ENGINE=InnoDB AUTO_INCREMENT=473 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品参数'; -- ---------------------------- -- Records of `s_goods_params` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_params` VALUES ('453', '12', '0', '流行元素/工艺', '树脂固色', '1606199005'), ('454', '12', '2', '款式', '长款连衣裙', '1606199005'), ('455', '12', '2', '适用年龄', '30-34周岁', '1606199005'), ('456', '12', '1', '图案', '纯色', '1606199005'), ('457', '12', '1', '袖长', '短袖', '1606199005'), ('458', '12', '1', '风格', '复古风', '1606199005'), ('459', '12', '1', '衣门襟', '套头', '1606199005'), ('460', '12', '1', '裙型', '大摆型', '1606199005'), ('461', '12', '1', '组合形式', '单件', '1606199005'), ('462', '12', '0', '款式类别', '图案花纹', '1606199005'); +INSERT INTO `s_goods_params` VALUES ('463', '12', '0', '流行元素/工艺', '树脂固色', '1606538014'), ('464', '12', '2', '款式', '长款连衣裙', '1606538014'), ('465', '12', '2', '适用年龄', '30-34周岁', '1606538014'), ('466', '12', '1', '图案', '纯色', '1606538014'), ('467', '12', '1', '袖长', '短袖', '1606538014'), ('468', '12', '1', '风格', '复古风', '1606538014'), ('469', '12', '1', '衣门襟', '套头', '1606538014'), ('470', '12', '1', '裙型', '大摆型', '1606538014'), ('471', '12', '1', '组合形式', '单件', '1606538014'), ('472', '12', '0', '款式类别', '图案花纹', '1606538014'); +COMMIT; + +-- ---------------------------- +-- Table structure for `s_goods_params_template` +-- ---------------------------- +DROP TABLE IF EXISTS `s_goods_params_template`; +CREATE TABLE `s_goods_params_template` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', + `name` char(60) NOT NULL DEFAULT '' COMMENT '名称', + `is_enable` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否启用(0否,1是)', + `config_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '参数配置数量', + `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', + `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', + PRIMARY KEY (`id`), + KEY `name` (`name`), + KEY `config_count` (`config_count`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品参数模板'; + +-- ---------------------------- +-- Records of `s_goods_params_template` +-- ---------------------------- +BEGIN; +INSERT INTO `s_goods_params_template` VALUES ('1', '测试一下', '1', '10', '1606554077', '1606556282'); +COMMIT; + +-- ---------------------------- +-- Table structure for `s_goods_params_template_config` +-- ---------------------------- +DROP TABLE IF EXISTS `s_goods_params_template_config`; +CREATE TABLE `s_goods_params_template_config` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', + `template_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模板id', + `type` tinyint(1) unsigned DEFAULT '1' COMMENT '展示范围(0全部, 1详情, 2基础)默认1详情', + `name` char(180) NOT NULL DEFAULT '' COMMENT '参数名称', + `value` char(230) NOT NULL DEFAULT '' COMMENT '参数值', + `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', + PRIMARY KEY (`id`), + KEY `template_id` (`template_id`), + KEY `type` (`type`) +) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品参数模板值'; + +-- ---------------------------- +-- Records of `s_goods_params_template_config` +-- ---------------------------- +BEGIN; +INSERT INTO `s_goods_params_template_config` VALUES ('24', '1', '2', '款式', '长款连衣裙', '1606555034'), ('25', '1', '0', '流行元素/工艺', '树脂固色', '1606555034'), ('26', '1', '2', '适用年龄', '30-34周岁', '1606555034'), ('27', '1', '1', '图案', '纯色', '1606555034'), ('28', '1', '1', '袖长', '短袖', '1606555034'), ('29', '1', '1', '风格', '复古风', '1606555034'), ('30', '1', '1', '衣门襟', '套头', '1606555034'), ('31', '1', '1', '裙型', '大摆型', '1606555034'), ('32', '1', '1', '组合形式', '单件', '1606555034'), ('33', '1', '0', '款式类别', '图案花纹', '1606555034'); COMMIT; -- ---------------------------- @@ -651,13 +697,13 @@ CREATE TABLE `s_goods_photo` ( KEY `goods_id` (`goods_id`), KEY `is_show` (`is_show`), KEY `sort` (`sort`) -) ENGINE=InnoDB AUTO_INCREMENT=774 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品相册图片'; +) ENGINE=InnoDB AUTO_INCREMENT=777 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品相册图片'; -- ---------------------------- -- Records of `s_goods_photo` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_photo` VALUES ('11', '5', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '1', '0', '1547452798'), ('12', '5', '/static/upload/images/goods/2019/01/14/1547452752648264.jpg', '1', '1', '1547452798'), ('105', '7', '/static/upload/images/goods/2019/01/14/1547453895416529.jpg', '1', '0', '1554485498'), ('106', '7', '/static/upload/images/goods/2019/01/14/1547453895864876.jpg', '1', '1', '1554485498'), ('399', '1', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '1', '0', '1574168666'), ('400', '1', '/static/upload/images/goods/2019/01/14/1547450818141662.jpg', '1', '1', '1574168666'), ('529', '11', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '1', '0', '1593703443'), ('530', '11', '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', '1', '1', '1593703443'), ('531', '11', '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', '1', '2', '1593703443'), ('532', '11', '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', '1', '3', '1593703443'), ('567', '10', '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', '1', '0', '1594905899'), ('568', '10', '/static/upload/images/goods/2019/01/14/1547455240700820.jpg', '1', '1', '1594905899'), ('581', '6', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '1', '0', '1594957734'), ('582', '6', '/static/upload/images/goods/2019/01/14/1547453032949003.jpg', '1', '1', '1594957734'), ('604', '2', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '1', '0', '1598698299'), ('605', '2', '/static/upload/images/goods/2019/01/14/1547451576558478.jpg', '1', '1', '1598698299'), ('660', '9', '/static/upload/images/goods/2019/01/14/1547454702543219.jpg', '1', '0', '1599803472'), ('661', '9', '/static/upload/images/goods/2019/01/14/1547454702272215.jpg', '1', '1', '1599803472'), ('662', '9', '/static/upload/images/goods/2019/01/14/1547454702814719.jpg', '1', '2', '1599803472'), ('663', '3', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '1', '0', '1600151429'), ('664', '3', '/static/upload/images/goods/2019/01/14/1547451936230948.jpg', '1', '1', '1600151429'), ('665', '4', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '1', '0', '1600151450'), ('666', '4', '/static/upload/images/goods/2019/01/14/1547452496713777.jpg', '1', '1', '1600151450'), ('667', '8', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '1', '0', '1600771192'), ('668', '8', '/static/upload/images/goods/2019/01/14/1547454172213779.jpg', '1', '1', '1600771192'), ('771', '12', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '1', '0', '1606199005'), ('772', '12', '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', '1', '1', '1606199005'), ('773', '12', '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', '1', '2', '1606199005'); +INSERT INTO `s_goods_photo` VALUES ('11', '5', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '1', '0', '1547452798'), ('12', '5', '/static/upload/images/goods/2019/01/14/1547452752648264.jpg', '1', '1', '1547452798'), ('105', '7', '/static/upload/images/goods/2019/01/14/1547453895416529.jpg', '1', '0', '1554485498'), ('106', '7', '/static/upload/images/goods/2019/01/14/1547453895864876.jpg', '1', '1', '1554485498'), ('399', '1', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '1', '0', '1574168666'), ('400', '1', '/static/upload/images/goods/2019/01/14/1547450818141662.jpg', '1', '1', '1574168666'), ('529', '11', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '1', '0', '1593703443'), ('530', '11', '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', '1', '1', '1593703443'), ('531', '11', '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', '1', '2', '1593703443'), ('532', '11', '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', '1', '3', '1593703443'), ('567', '10', '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', '1', '0', '1594905899'), ('568', '10', '/static/upload/images/goods/2019/01/14/1547455240700820.jpg', '1', '1', '1594905899'), ('581', '6', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '1', '0', '1594957734'), ('582', '6', '/static/upload/images/goods/2019/01/14/1547453032949003.jpg', '1', '1', '1594957734'), ('604', '2', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '1', '0', '1598698299'), ('605', '2', '/static/upload/images/goods/2019/01/14/1547451576558478.jpg', '1', '1', '1598698299'), ('660', '9', '/static/upload/images/goods/2019/01/14/1547454702543219.jpg', '1', '0', '1599803472'), ('661', '9', '/static/upload/images/goods/2019/01/14/1547454702272215.jpg', '1', '1', '1599803472'), ('662', '9', '/static/upload/images/goods/2019/01/14/1547454702814719.jpg', '1', '2', '1599803472'), ('663', '3', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '1', '0', '1600151429'), ('664', '3', '/static/upload/images/goods/2019/01/14/1547451936230948.jpg', '1', '1', '1600151429'), ('665', '4', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '1', '0', '1600151450'), ('666', '4', '/static/upload/images/goods/2019/01/14/1547452496713777.jpg', '1', '1', '1600151450'), ('667', '8', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '1', '0', '1600771192'), ('668', '8', '/static/upload/images/goods/2019/01/14/1547454172213779.jpg', '1', '1', '1600771192'), ('774', '12', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '1', '0', '1606538014'), ('775', '12', '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', '1', '1', '1606538014'), ('776', '12', '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', '1', '2', '1606538014'); COMMIT; -- ---------------------------- @@ -677,13 +723,13 @@ CREATE TABLE `s_goods_spec_base` ( `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1295 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格基础'; +) ENGINE=InnoDB AUTO_INCREMENT=1301 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格基础'; -- ---------------------------- -- Records of `s_goods_spec_base` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_spec_base` VALUES ('23', '5', '2499.00', '555', '0.00', '', '', '3200.00', null, '1547452798'), ('155', '7', '168.00', '218', '0.00', '', '', '760.00', null, '1554485498'), ('626', '1', '2100.00', '8', '0.00', '', '', '3200.00', null, '1574168666'), ('813', '11', '258.00', '666', '0.00', '', '', '268.00', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|10\"}', '1593703443'), ('814', '11', '238.00', '666', '0.00', '', '', '343.00', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|1\"}', '1593703443'), ('815', '11', '160.00', '666', '0.00', '', '', '422.00', '{\"plugins_distribution_rules_20191202164330784159\":\"r|8\",\"plugins_distribution_rules_20191204113948916981\":\"\"}', '1593703443'), ('854', '10', '228.00', '222', '0.00', '', '', '568.00', null, '1594905899'), ('909', '6', '2998.90', '666', '0.00', '', '', '3200.00', '{\"plugins_distribution_rules_1\":\"r|10\\nr|10\\nr|10\",\"plugins_distribution_down_rules_1\":\"\"}', '1594957734'), ('955', '2', '6050.00', '221', '12.00', '', '', '6800.00', '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', '1598698299'), ('956', '2', '6600.00', '222', '21.00', '', '', '7200.00', null, '1598698299'), ('957', '2', '6800.00', '222', '22.00', '', '', '7600.00', null, '1598698299'), ('958', '2', '6050.00', '222', '23.00', '', '', '6800.00', null, '1598698299'), ('959', '2', '6600.00', '222', '12.00', '', '', '7200.00', null, '1598698299'), ('960', '2', '6800.00', '222', '32.00', '', '', '7600.00', null, '1598698299'), ('961', '2', '4500.00', '222', '23.00', '', '', '6800.00', null, '1598698299'), ('962', '2', '4800.00', '222', '32.00', '', '', '6600.00', null, '1598698299'), ('963', '2', '5500.00', '222', '11.00', '', '', '6000.00', null, '1598698299'), ('1072', '9', '120.00', '162', '17.00', '', '', '160.00', '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', '1599803472'), ('1073', '9', '120.00', '116', '17.00', '', '', '160.00', null, '1599803472'), ('1074', '9', '120.00', '115', '17.00', '', '', '160.00', null, '1599803472'), ('1075', '9', '120.00', '116', '17.00', '', '', '160.00', null, '1599803472'), ('1076', '9', '136.00', '116', '17.00', '', '', '188.00', null, '1599803472'), ('1077', '9', '136.00', '116', '17.00', '', '', '188.00', null, '1599803472'), ('1078', '9', '136.00', '115', '17.00', '', '', '188.00', null, '1599803472'), ('1079', '9', '158.00', '116', '17.00', '', '', '216.00', null, '1599803472'), ('1080', '9', '158.00', '115', '17.00', '', '', '216.00', null, '1599803472'), ('1081', '3', '3888.00', '333', '0.00', '', '', '6866.00', null, '1600151429'), ('1082', '4', '1999.00', '333', '0.00', '', '', '2300.00', null, '1600151450'), ('1083', '8', '356.00', '3', '0.00', '', '', '0.00', null, '1600771192'), ('1289', '12', '0.01', '1', '0.00', '', '', '0.00', null, '1606199005'), ('1290', '12', '0.01', '4', '0.00', '', '', '0.00', null, '1606199005'), ('1291', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606199005'), ('1292', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606199005'), ('1293', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606199005'), ('1294', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606199005'); +INSERT INTO `s_goods_spec_base` VALUES ('23', '5', '2499.00', '555', '0.00', '', '', '3200.00', null, '1547452798'), ('155', '7', '168.00', '218', '0.00', '', '', '760.00', null, '1554485498'), ('626', '1', '2100.00', '8', '0.00', '', '', '3200.00', null, '1574168666'), ('813', '11', '258.00', '666', '0.00', '', '', '268.00', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|10\"}', '1593703443'), ('814', '11', '238.00', '666', '0.00', '', '', '343.00', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|1\"}', '1593703443'), ('815', '11', '160.00', '666', '0.00', '', '', '422.00', '{\"plugins_distribution_rules_20191202164330784159\":\"r|8\",\"plugins_distribution_rules_20191204113948916981\":\"\"}', '1593703443'), ('854', '10', '228.00', '222', '0.00', '', '', '568.00', null, '1594905899'), ('909', '6', '2998.90', '666', '0.00', '', '', '3200.00', '{\"plugins_distribution_rules_1\":\"r|10\\nr|10\\nr|10\",\"plugins_distribution_down_rules_1\":\"\"}', '1594957734'), ('955', '2', '6050.00', '221', '12.00', '', '', '6800.00', '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', '1598698299'), ('956', '2', '6600.00', '222', '21.00', '', '', '7200.00', null, '1598698299'), ('957', '2', '6800.00', '222', '22.00', '', '', '7600.00', null, '1598698299'), ('958', '2', '6050.00', '222', '23.00', '', '', '6800.00', null, '1598698299'), ('959', '2', '6600.00', '222', '12.00', '', '', '7200.00', null, '1598698299'), ('960', '2', '6800.00', '222', '32.00', '', '', '7600.00', null, '1598698299'), ('961', '2', '4500.00', '222', '23.00', '', '', '6800.00', null, '1598698299'), ('962', '2', '4800.00', '222', '32.00', '', '', '6600.00', null, '1598698299'), ('963', '2', '5500.00', '222', '11.00', '', '', '6000.00', null, '1598698299'), ('1072', '9', '120.00', '162', '17.00', '', '', '160.00', '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', '1599803472'), ('1073', '9', '120.00', '116', '17.00', '', '', '160.00', null, '1599803472'), ('1074', '9', '120.00', '115', '17.00', '', '', '160.00', null, '1599803472'), ('1075', '9', '120.00', '116', '17.00', '', '', '160.00', null, '1599803472'), ('1076', '9', '136.00', '116', '17.00', '', '', '188.00', null, '1599803472'), ('1077', '9', '136.00', '116', '17.00', '', '', '188.00', null, '1599803472'), ('1078', '9', '136.00', '115', '17.00', '', '', '188.00', null, '1599803472'), ('1079', '9', '158.00', '116', '17.00', '', '', '216.00', null, '1599803472'), ('1080', '9', '158.00', '115', '17.00', '', '', '216.00', null, '1599803472'), ('1081', '3', '3888.00', '333', '0.00', '', '', '6866.00', null, '1600151429'), ('1082', '4', '1999.00', '333', '0.00', '', '', '2300.00', null, '1600151450'), ('1083', '8', '356.00', '3', '0.00', '', '', '0.00', null, '1600771192'), ('1295', '12', '0.01', '1', '0.00', '', '', '0.00', null, '1606538014'), ('1296', '12', '0.01', '4', '0.00', '', '', '0.00', null, '1606538014'), ('1297', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606538014'), ('1298', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606538014'), ('1299', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606538014'), ('1300', '12', '0.01', '5', '0.00', '', '', '0.00', null, '1606538014'); COMMIT; -- ---------------------------- @@ -698,13 +744,13 @@ CREATE TABLE `s_goods_spec_type` ( `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`) -) ENGINE=InnoDB AUTO_INCREMENT=422 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格类型'; +) ENGINE=InnoDB AUTO_INCREMENT=424 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格类型'; -- ---------------------------- -- Records of `s_goods_spec_type` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_spec_type` VALUES ('262', '11', '[{\"name\":\"M\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907486857.jpg\"},{\"name\":\"L\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907256518.jpg\"},{\"name\":\"XL\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455601528614.jpg\"}]', '尺码', '1593703443'), ('315', '2', '[{\"name\":\"套餐一\",\"images\":\"\"},{\"name\":\"套餐二\",\"images\":\"\"}]', '套餐', '1598698299'), ('316', '2', '[{\"name\":\"金色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451274847894.jpg\"},{\"name\":\"银色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451576558478.jpg\"}]', '颜色', '1598698299'), ('317', '2', '[{\"name\":\"32G\",\"images\":\"\"},{\"name\":\"64G\",\"images\":\"\"},{\"name\":\"128G\",\"images\":\"\"}]', '容量', '1598698299'), ('354', '9', '[{\"name\":\"白色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702543219.jpg\"},{\"name\":\"粉色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702272215.jpg\"},{\"name\":\"黑色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702814719.jpg\"}]', '颜色', '1599803472'), ('355', '9', '[{\"name\":\"S\",\"images\":\"\"},{\"name\":\"M\",\"images\":\"\"},{\"name\":\"L\",\"images\":\"\"},{\"name\":\"XL\",\"images\":\"\"}]', '尺码', '1599803472'), ('420', '12', '[{\"name\":\"粉色\",\"images\":\"\"},{\"name\":\"白色\",\"images\":\"\"}]', '颜色', '1606199005'), ('421', '12', '[{\"name\":\"S+Sad,f\",\"images\":\"\"},{\"name\":\"M+M\",\"images\":\"\"},{\"name\":\"L+L\",\"images\":\"\"},{\"name\":\"S+S\",\"images\":\"\"}]', '尺,码', '1606199005'); +INSERT INTO `s_goods_spec_type` VALUES ('262', '11', '[{\"name\":\"M\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907486857.jpg\"},{\"name\":\"L\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907256518.jpg\"},{\"name\":\"XL\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455601528614.jpg\"}]', '尺码', '1593703443'), ('315', '2', '[{\"name\":\"套餐一\",\"images\":\"\"},{\"name\":\"套餐二\",\"images\":\"\"}]', '套餐', '1598698299'), ('316', '2', '[{\"name\":\"金色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451274847894.jpg\"},{\"name\":\"银色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451576558478.jpg\"}]', '颜色', '1598698299'), ('317', '2', '[{\"name\":\"32G\",\"images\":\"\"},{\"name\":\"64G\",\"images\":\"\"},{\"name\":\"128G\",\"images\":\"\"}]', '容量', '1598698299'), ('354', '9', '[{\"name\":\"白色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702543219.jpg\"},{\"name\":\"粉色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702272215.jpg\"},{\"name\":\"黑色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702814719.jpg\"}]', '颜色', '1599803472'), ('355', '9', '[{\"name\":\"S\",\"images\":\"\"},{\"name\":\"M\",\"images\":\"\"},{\"name\":\"L\",\"images\":\"\"},{\"name\":\"XL\",\"images\":\"\"}]', '尺码', '1599803472'), ('422', '12', '[{\"name\":\"粉色\",\"images\":\"\"},{\"name\":\"白色\",\"images\":\"\"}]', '颜色', '1606538014'), ('423', '12', '[{\"name\":\"S+Sad,f\",\"images\":\"\"},{\"name\":\"M+M\",\"images\":\"\"},{\"name\":\"L+L\",\"images\":\"\"},{\"name\":\"S+S\",\"images\":\"\"}]', '尺,码', '1606538014'); COMMIT; -- ---------------------------- @@ -720,13 +766,13 @@ CREATE TABLE `s_goods_spec_value` ( PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`), KEY `goods_spec_base_id` (`goods_spec_base_id`) -) ENGINE=InnoDB AUTO_INCREMENT=2543 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格值'; +) ENGINE=InnoDB AUTO_INCREMENT=2555 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品规格值'; -- ---------------------------- -- Records of `s_goods_spec_value` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_spec_value` VALUES ('1559', '11', '813', 'M', '1593703443'), ('1560', '11', '814', 'L', '1593703443'), ('1561', '11', '815', 'XL', '1593703443'), ('1862', '2', '955', '套餐一', '1598698299'), ('1863', '2', '955', '金色', '1598698299'), ('1864', '2', '955', '32G', '1598698299'), ('1865', '2', '956', '套餐一', '1598698299'), ('1866', '2', '956', '金色', '1598698299'), ('1867', '2', '956', '64G', '1598698299'), ('1868', '2', '957', '套餐一', '1598698299'), ('1869', '2', '957', '金色', '1598698299'), ('1870', '2', '957', '128G', '1598698299'), ('1871', '2', '958', '套餐一', '1598698299'), ('1872', '2', '958', '银色', '1598698299'), ('1873', '2', '958', '32G', '1598698299'), ('1874', '2', '959', '套餐一', '1598698299'), ('1875', '2', '959', '银色', '1598698299'), ('1876', '2', '959', '64G', '1598698299'), ('1877', '2', '960', '套餐一', '1598698299'), ('1878', '2', '960', '银色', '1598698299'), ('1879', '2', '960', '128G', '1598698299'), ('1880', '2', '961', '套餐二', '1598698299'), ('1881', '2', '961', '金色', '1598698299'), ('1882', '2', '961', '32G', '1598698299'), ('1883', '2', '962', '套餐二', '1598698299'), ('1884', '2', '962', '金色', '1598698299'), ('1885', '2', '962', '128G', '1598698299'), ('1886', '2', '963', '套餐二', '1598698299'), ('1887', '2', '963', '银色', '1598698299'), ('1888', '2', '963', '64G', '1598698299'), ('2105', '9', '1072', '白色', '1599803472'), ('2106', '9', '1072', 'S', '1599803472'), ('2107', '9', '1073', '白色', '1599803472'), ('2108', '9', '1073', 'M', '1599803472'), ('2109', '9', '1074', '白色', '1599803472'), ('2110', '9', '1074', 'L', '1599803472'), ('2111', '9', '1075', '白色', '1599803472'), ('2112', '9', '1075', 'XL', '1599803472'), ('2113', '9', '1076', '粉色', '1599803472'), ('2114', '9', '1076', 'S', '1599803472'), ('2115', '9', '1077', '粉色', '1599803472'), ('2116', '9', '1077', 'M', '1599803472'), ('2117', '9', '1078', '粉色', '1599803472'), ('2118', '9', '1078', 'L', '1599803472'), ('2119', '9', '1079', '黑色', '1599803472'), ('2120', '9', '1079', 'S', '1599803472'), ('2121', '9', '1080', '黑色', '1599803472'), ('2122', '9', '1080', 'XL', '1599803472'), ('2531', '12', '1289', '粉色', '1606199005'), ('2532', '12', '1289', 'S+Sad,f', '1606199005'), ('2533', '12', '1290', '粉色', '1606199005'), ('2534', '12', '1290', 'M+M', '1606199005'), ('2535', '12', '1291', '粉色', '1606199005'), ('2536', '12', '1291', 'L+L', '1606199005'), ('2537', '12', '1292', '白色', '1606199005'), ('2538', '12', '1292', 'S+S', '1606199005'), ('2539', '12', '1293', '白色', '1606199005'), ('2540', '12', '1293', 'M+M', '1606199005'), ('2541', '12', '1294', '白色', '1606199005'), ('2542', '12', '1294', 'L+L', '1606199005'); +INSERT INTO `s_goods_spec_value` VALUES ('1559', '11', '813', 'M', '1593703443'), ('1560', '11', '814', 'L', '1593703443'), ('1561', '11', '815', 'XL', '1593703443'), ('1862', '2', '955', '套餐一', '1598698299'), ('1863', '2', '955', '金色', '1598698299'), ('1864', '2', '955', '32G', '1598698299'), ('1865', '2', '956', '套餐一', '1598698299'), ('1866', '2', '956', '金色', '1598698299'), ('1867', '2', '956', '64G', '1598698299'), ('1868', '2', '957', '套餐一', '1598698299'), ('1869', '2', '957', '金色', '1598698299'), ('1870', '2', '957', '128G', '1598698299'), ('1871', '2', '958', '套餐一', '1598698299'), ('1872', '2', '958', '银色', '1598698299'), ('1873', '2', '958', '32G', '1598698299'), ('1874', '2', '959', '套餐一', '1598698299'), ('1875', '2', '959', '银色', '1598698299'), ('1876', '2', '959', '64G', '1598698299'), ('1877', '2', '960', '套餐一', '1598698299'), ('1878', '2', '960', '银色', '1598698299'), ('1879', '2', '960', '128G', '1598698299'), ('1880', '2', '961', '套餐二', '1598698299'), ('1881', '2', '961', '金色', '1598698299'), ('1882', '2', '961', '32G', '1598698299'), ('1883', '2', '962', '套餐二', '1598698299'), ('1884', '2', '962', '金色', '1598698299'), ('1885', '2', '962', '128G', '1598698299'), ('1886', '2', '963', '套餐二', '1598698299'), ('1887', '2', '963', '银色', '1598698299'), ('1888', '2', '963', '64G', '1598698299'), ('2105', '9', '1072', '白色', '1599803472'), ('2106', '9', '1072', 'S', '1599803472'), ('2107', '9', '1073', '白色', '1599803472'), ('2108', '9', '1073', 'M', '1599803472'), ('2109', '9', '1074', '白色', '1599803472'), ('2110', '9', '1074', 'L', '1599803472'), ('2111', '9', '1075', '白色', '1599803472'), ('2112', '9', '1075', 'XL', '1599803472'), ('2113', '9', '1076', '粉色', '1599803472'), ('2114', '9', '1076', 'S', '1599803472'), ('2115', '9', '1077', '粉色', '1599803472'), ('2116', '9', '1077', 'M', '1599803472'), ('2117', '9', '1078', '粉色', '1599803472'), ('2118', '9', '1078', 'L', '1599803472'), ('2119', '9', '1079', '黑色', '1599803472'), ('2120', '9', '1079', 'S', '1599803472'), ('2121', '9', '1080', '黑色', '1599803472'), ('2122', '9', '1080', 'XL', '1599803472'), ('2543', '12', '1295', '粉色', '1606538014'), ('2544', '12', '1295', 'S+Sad,f', '1606538014'), ('2545', '12', '1296', '粉色', '1606538014'), ('2546', '12', '1296', 'M+M', '1606538014'), ('2547', '12', '1297', '粉色', '1606538014'), ('2548', '12', '1297', 'L+L', '1606538014'), ('2549', '12', '1298', '白色', '1606538014'), ('2550', '12', '1298', 'S+S', '1606538014'), ('2551', '12', '1299', '白色', '1606538014'), ('2552', '12', '1299', 'M+M', '1606538014'), ('2553', '12', '1300', '白色', '1606538014'), ('2554', '12', '1300', 'L+L', '1606538014'); COMMIT; -- ---------------------------- @@ -1813,13 +1859,13 @@ CREATE TABLE `s_power` ( `icon` char(60) NOT NULL DEFAULT '' COMMENT '图标class', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=462 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='权限'; +) ENGINE=InnoDB AUTO_INCREMENT=468 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='权限'; -- ---------------------------- -- Records of `s_power` -- ---------------------------- BEGIN; -INSERT INTO `s_power` VALUES ('1', '0', '权限控制', 'Power', 'Index', '', '3', '1', 'icon-quanxian', '1481612301'), ('4', '1', '角色管理', 'Role', 'Index', '', '20', '1', '', '1481639037'), ('13', '1', '权限分配', 'Power', 'Index', '', '30', '1', '', '1482156143'), ('15', '1', '权限添加/编辑', 'Power', 'Save', '', '31', '0', '', '1482243750'), ('16', '1', '权限删除', 'Power', 'Delete', '', '32', '0', '', '1482243797'), ('17', '1', '角色组添加/编辑页面', 'Role', 'SaveInfo', '', '21', '0', '', '1482243855'), ('18', '1', '角色组添加/编辑', 'Role', 'Save', '', '22', '0', '', '1482243888'), ('19', '1', '管理员添加/编辑页面', 'Admin', 'SaveInfo', '', '2', '0', '', '1482244637'), ('20', '1', '管理员添加/编辑', 'Admin', 'Save', '', '3', '0', '', '1482244666'), ('21', '1', '管理员删除', 'Admin', 'Delete', '', '4', '0', '', '1482244688'), ('22', '1', '管理员列表', 'Admin', 'Index', '', '1', '1', '', '1482568868'), ('23', '1', '角色删除', 'Role', 'Delete', '', '23', '0', '', '1482569155'), ('38', '0', '商品管理', 'Goods', 'Index', '', '5', '1', 'icon-shangpin', '1483283430'), ('39', '38', '商品管理', 'Goods', 'Index', '', '1', '1', '', '1483283546'), ('41', '0', '系统设置', 'Config', 'Index', '', '1', '1', 'icon-peizhi', '1483362358'), ('42', '41', '配置保存', 'Config', 'Save', '', '10', '0', '', '1483432335'), ('57', '38', '商品添加/编辑页面', 'Goods', 'SaveInfo', '', '2', '0', '', '1483616439'), ('58', '38', '商品添加/编辑', 'Goods', 'Save', '', '3', '0', '', '1483616492'), ('59', '38', '商品删除', 'Goods', 'Delete', '', '4', '0', '', '1483616569'), ('81', '0', '站点配置', 'Site', 'Index', '', '2', '1', 'icon-zhandianpeizhi', '1486182943'), ('103', '81', '站点设置', 'Site', 'Index', '', '0', '1', '', '1486561470'), ('104', '81', '短信设置', 'Sms', 'Index', '', '10', '1', '', '1486561615'), ('105', '81', '站点设置编辑', 'Site', 'Save', '', '1', '0', '', '1486561780'), ('107', '81', '短信设置编辑', 'Sms', 'Save', '', '11', '0', '', '1486562011'), ('118', '0', '工具', 'Tool', 'Index', '', '50', '1', 'icon-tools', '1488108044'), ('119', '118', '缓存管理', 'Cache', 'Index', '', '1', '1', '', '1488108107'), ('120', '118', '站点缓存更新', 'Cache', 'StatusUpdate', '', '2', '0', '', '1488108235'), ('121', '118', '模板缓存更新', 'Cache', 'TemplateUpdate', '', '2', '0', '', '1488108390'), ('122', '118', '模块缓存更新', 'Cache', 'ModuleUpdate', '', '3', '0', '', '1488108436'), ('126', '0', '用户管理', 'User', 'Index', '', '4', '1', 'icon-yonghuguanli', '1490794162'), ('127', '126', '用户列表', 'User', 'Index', '', '0', '1', '', '1490794316'), ('128', '126', '用户编辑/添加页面', 'User', 'SaveInfo', '', '1', '0', '', '1490794458'), ('129', '126', '用户添加/编辑', 'User', 'Save', '', '2', '0', '', '1490794510'), ('130', '126', '用户删除', 'User', 'Delete', '', '3', '0', '', '1490794585'), ('146', '126', 'Excel导出', 'User', 'ExcelExport', '', '6', '0', '', '1522223773'), ('153', '222', '地区管理', 'Region', 'Index', '', '60', '1', '', '1526304473'), ('154', '222', '地区添加/编辑', 'Region', 'Save', '', '61', '0', '', '1526304503'), ('155', '222', '地区删除', 'Region', 'Delete', '', '62', '0', '', '1526304531'), ('156', '222', '快递管理', 'Express', 'Index', '', '70', '1', '', '1526304473'), ('157', '222', '快递添加/编辑', 'Express', 'Save', '', '71', '0', '', '1526304473'), ('158', '222', '快递删除', 'Express', 'Delete', '', '72', '0', '', '1526304473'), ('172', '222', '首页轮播', 'Slide', 'Index', '', '40', '1', '', '1527149117'), ('173', '222', '轮播添加/编辑页面', 'Slide', 'SaveInfo', '', '41', '0', '', '1527149152'), ('174', '222', '轮播添加/编辑', 'Slide', 'Save', '', '42', '0', '', '1527149186'), ('175', '222', '轮播状态更新', 'Slide', 'StatusUpdate', '', '43', '0', '', '1527156980'), ('176', '222', '轮播删除', 'Slide', 'Delete', '', '44', '0', '', '1527157260'), ('177', '0', '订单管理', 'Order', 'Index', '', '6', '1', 'icon-dingdan', '1522229870'), ('178', '177', '订单管理', 'Order', 'Index', '', '1', '1', '', '1522317898'), ('179', '177', '订单删除', 'Order', 'Delete', '', '2', '0', '', '1522317917'), ('180', '177', '订单取消', 'Order', 'Cancel', '', '3', '0', '', '1527497803'), ('181', '38', '商品状态更新', 'Goods', 'StatusUpdate', '', '5', '0', '', '1528080200'), ('182', '0', '数据管理', 'Data', 'Index', '', '22', '1', 'icon-shuju', '1528096661'), ('183', '182', '消息管理', 'Message', 'Index', '', '10', '1', '', '1528080200'), ('184', '182', '消息删除', 'Message', 'Delete', '', '11', '0', '', '1528080200'), ('185', '182', '支付日志', 'PayLog', 'Index', '', '20', '1', '', '1528080200'), ('186', '182', '积分日志', 'IntegralLog', 'Index', '', '40', '1', '', '1528103067'), ('193', '222', '筛选价格', 'ScreeningPrice', 'Index', '', '50', '1', '', '1528708578'), ('194', '222', '筛选价格添加/编辑', 'ScreeningPrice', 'Save', '', '51', '0', '', '1528708609'), ('199', '81', 'SEO设置', 'Seo', 'Index', '', '30', '1', '', '1528771081'), ('200', '81', 'SEO设置编辑', 'Seo', 'Save', '', '31', '0', '', '1528771105'), ('201', '38', '商品分类', 'GoodsCategory', 'Index', '', '10', '1', '', '1529041901'), ('202', '38', '商品分类添加/编辑', 'GoodsCategory', 'Save', '', '11', '0', '', '1529041928'), ('203', '38', '商品分类删除', 'GoodsCategory', 'Delete', '', '12', '0', '', '1529041949'), ('204', '0', '文章管理', 'Article', 'Index', '', '21', '1', 'icon-wenzhang', '1530360560'), ('205', '204', '文章管理', 'Article', 'Index', '', '0', '1', '', '1530360593'), ('206', '204', '文章添加/编辑页面', 'Article', 'SaveInfo', '', '1', '0', '', '1530360625'), ('207', '204', '文章添加/编辑', 'Article', 'Save', '', '2', '0', '', '1530360663'), ('208', '204', '文章删除', 'Article', 'Delete', '', '3', '0', '', '1530360692'), ('209', '204', '文章状态更新', 'Article', 'StatusUpdate', '', '4', '0', '', '1530360730'), ('210', '204', '文章分类', 'ArticleCategory', 'Index', '', '10', '1', '', '1530361071'), ('211', '204', '文章分类编辑/添加', 'ArticleCategory', 'Save', '', '11', '0', '', '1530361101'), ('212', '204', '文章分类删除', 'ArticleCategory', 'Delete', '', '12', '0', '', '1530361126'), ('214', '182', '问答留言', 'Answer', 'Index', '', '0', '1', '', '1533112443'), ('215', '182', '问答留言回复', 'Answer', 'Reply', '', '1', '0', '', '1533119660'), ('216', '182', '问答留言删除', 'Answer', 'Delete', '', '2', '0', '', '1533119680'), ('217', '182', '问答留言状态更新', 'Answer', 'StatusUpdate', '', '3', '0', '', '1533119704'), ('219', '81', '邮箱设置', 'Email', 'Index', '', '20', '1', '', '1533636067'), ('220', '81', '邮箱设置/编辑', 'Email', 'Save', '', '21', '0', '', '1533636109'), ('221', '81', '邮件发送测试', 'Email', 'EmailTest', '', '22', '0', '', '1533636157'), ('222', '0', '网站管理', 'Navigation', 'Index', '', '7', '1', 'icon-wangzhanguanli', '1533692051'), ('223', '222', '导航管理', 'Navigation', 'Index', '', '0', '1', '', '1486183114'), ('226', '222', '导航添加/编辑', 'Navigation', 'Save', '', '2', '0', '', '1486183367'), ('227', '222', '导航删除', 'Navigation', 'Delete', '', '3', '0', '', '1486183410'), ('228', '222', '导航状态更新', 'Navigation', 'StatusUpdate', '', '4', '0', '', '1486183462'), ('234', '222', '自定义页面', 'CustomView', 'Index', '', '11', '1', '', '1486193400'), ('235', '222', '自定义页面添加/编辑页面', 'CustomView', 'SaveInfo', '', '12', '0', '', '1486193449'), ('236', '222', '自定义页面添加/编辑', 'CustomView', 'Save', '', '13', '0', '', '1486193473'), ('237', '222', '自定义页面删除', 'CustomView', 'Delete', '', '14', '0', '', '1486193516'), ('238', '222', '自定义页面状态更新', 'CustomView', 'StatusUpdate', '', '15', '0', '', '1486193582'), ('239', '222', '友情链接', 'Link', 'Index', '', '21', '1', '', '1486194358'), ('240', '222', '友情链接添加/编辑页面', 'Link', 'SaveInfo', '', '22', '0', '', '1486194392'), ('241', '222', '友情链接添加/编辑', 'Link', 'Save', '', '23', '0', '', '1486194413'), ('242', '222', '友情链接删除', 'Link', 'Delete', '', '24', '0', '', '1486194435'), ('243', '222', '友情链接状态更新', 'Link', 'StatusUpdate', '', '25', '0', '', '1486194479'), ('244', '222', '主题管理', 'Theme', 'Index', '', '30', '1', '', '1494381693'), ('245', '222', '主题管理添加/编辑', 'Theme', 'Save', '', '31', '0', '', '1494398194'), ('246', '222', '主题上传安装', 'Theme', 'Upload', '', '32', '0', '', '1494405096'), ('247', '222', '主题删除', 'Theme', 'Delete', '', '33', '0', '', '1494410655'), ('248', '204', '文章详情', 'Article', 'Detail', '', '5', '0', '', '1534156400'), ('249', '252', '品牌管理', 'Brand', 'Index', '', '0', '1', '', '1535683271'), ('250', '252', '品牌添加/编辑', 'Brand', 'Save', '', '2', '0', '', '1535683310'), ('251', '252', '品牌删除', 'Brand', 'Delete', '', '4', '0', '', '1535683351'), ('252', '0', '品牌管理', 'Brand', 'Index', '', '8', '1', 'icon-ico-pinpaiguanli', '1535684308'), ('253', '252', '品牌分类', 'BrandCategory', 'Index', '', '10', '1', '', '1535684401'), ('254', '252', '品牌分类添加/编辑', 'BrandCategory', 'Save', '', '11', '0', '', '1535684424'), ('255', '252', '品牌分类删除', 'BrandCategory', 'Delete', '', '12', '0', '', '1535684444'), ('256', '252', '品牌添加/编辑页面', 'Brand', 'SaveInfo', '', '1', '0', '', '1535694837'), ('257', '252', '品牌状态更新', 'Brand', 'StatusUpdate', '', '3', '0', '', '1535694880'), ('258', '222', '筛选价格删除', 'ScreeningPrice', 'Delete', '', '52', '0', '', '1536227071'), ('259', '222', '支付方式', 'Payment', 'Index', '', '80', '1', '', '1537156351'), ('260', '222', '支付方式安装/编辑页面', 'Payment', 'SaveInfo', '', '81', '0', '', '1537156423'), ('261', '222', '支付方式安装/编辑', 'Payment', 'Save', '', '82', '0', '', '1537156463'), ('262', '222', '支付方式删除', 'Payment', 'Delete', '', '83', '0', '', '1537156502'), ('263', '222', '支付方式安装', 'Payment', 'Install', '', '84', '0', '', '1537166090'), ('264', '222', '支付方式状态更新', 'Payment', 'StatusUpdate', '', '85', '0', '', '1537166149'), ('265', '222', '支付方式卸载', 'Payment', 'Uninstall', '', '86', '0', '', '1537167814'), ('266', '222', '支付方式上传', 'Payment', 'Upload', '', '87', '0', '', '1537173653'), ('267', '177', '订单发货', 'Order', 'Delivery', '', '4', '0', '', '1538413499'), ('268', '177', '订单收货', 'Order', 'Collect', '', '5', '0', '', '1538414034'), ('269', '177', '订单支付', 'Order', 'Pay', '', '6', '0', '', '1538757043'), ('310', '177', '订单确认', 'Order', 'Confirm', '', '7', '0', '', '1542011799'), ('311', '1', '角色状态更新', 'Role', 'StatusUpdate', '', '24', '0', '', '1542102071'), ('314', '319', '首页导航', 'AppHomeNav', 'Index', '', '10', '1', '', '1542558318'), ('315', '319', '首页导航添加/编辑页面', 'AppHomeNav', 'SaveInfo', '', '11', '0', '', '1542558686'), ('316', '319', '首页导航添加/编辑', 'AppHomeNav', 'Save', '', '12', '0', '', '1542558706'), ('317', '319', '首页导航状态更新', 'AppHomeNav', 'StatusUpdate', '', '13', '0', '', '1542558747'), ('318', '319', '首页导航删除', 'AppHomeNav', 'Delete', '', '14', '0', '', '1542558767'), ('319', '0', '手机管理', 'App', 'Index', '', '20', '1', 'icon-shouji', '1483362358'), ('326', '319', '基础配置', 'AppConfig', 'Index', '', '0', '1', '', '1543206359'), ('327', '319', '基础配置保存', 'AppConfig', 'Save', '', '1', '0', '', '1543206402'), ('331', '118', '日志删除', 'Cache', 'LogDelete', '', '4', '0', '', '1545642163'), ('332', '319', '小程序列表', 'AppMini', 'Index', '', '30', '1', '', '1546935020'), ('333', '319', '小程序配置', 'AppMini', 'Config', '', '40', '1', '', '1546935090'), ('334', '319', '小程序配置保存', 'AppMini', 'Save', '', '41', '0', '', '1546935118'), ('336', '319', '小程序包生成', 'AppMini', 'Created', '', '31', '0', '', '1546935187'), ('337', '319', '小程序包删除', 'AppMini', 'Delete', '', '32', '0', '', '1546935212'), ('339', '41', '后台配置', 'Config', 'Index', '', '0', '1', '', '1549419752'), ('340', '0', '应用中心', 'Store', 'Index', '', '30', '1', 'icon-application', '1549496703'), ('341', '340', '应用管理', 'Pluginsadmin', 'Index', '', '1', '1', '', '1549497306'), ('342', '340', '应用状态更新', 'Pluginsadmin', 'StatusUpdate', '', '3', '0', '', '1549694138'), ('343', '340', '应用调用管理', 'Plugins', 'Index', '', '0', '0', '', '1549958187'), ('345', '340', '应用添加/编辑页面', 'Pluginsadmin', 'SaveInfo', '', '1', '0', '', '1549977925'), ('346', '340', '应用添加/编辑', 'Pluginsadmin', 'Save', '', '2', '0', '', '1549977958'), ('347', '340', '应用删除', 'Pluginsadmin', 'Delete', '', '4', '0', '', '1549977993'), ('348', '340', '应用上传', 'Pluginsadmin', 'Upload', '', '5', '0', '', '1550110821'), ('349', '118', 'SQL控制台', 'Sqlconsole', 'Index', '', '10', '1', '', '1550476002'), ('350', '118', 'SQL执行', 'Sqlconsole', 'Implement', '', '11', '0', '', '1550476023'), ('351', '340', '应用打包', 'Pluginsadmin', 'Download', '', '6', '0', '', '1553248727'), ('352', '182', '问答添加/编辑页面', 'Answer', 'SaveInfo', '', '4', '0', '', '1553964318'), ('353', '182', '问答添加/编辑', 'Answer', 'Save', '', '5', '0', '', '1553964354'), ('354', '41', '商店信息', 'Config', 'Store', '', '0', '1', '', '1554803430'), ('356', '38', '商品评论', 'Goodscomments', 'Index', '', '20', '1', '', '1533112443'), ('357', '38', '商品评论回复', 'Goodscomments', 'Reply', '', '21', '0', '', '1533119660'), ('358', '38', '商品评论删除', 'Goodscomments', 'Delete', '', '22', '0', '', '1533119680'), ('359', '38', '商品评论状态更新', 'Goodscomments', 'StatusUpdate', '', '23', '0', '', '1533119704'), ('360', '38', '商品评论添加/编辑页面', 'Goodscomments', 'SaveInfo', '', '24', '0', '', '1553964318'), ('361', '38', '商品评论添加/编辑', 'Goodscomments', 'Save', '', '25', '0', '', '1553964354'), ('362', '81', '协议管理', 'Agreement', 'Index', '', '40', '1', '', '1486561615'), ('363', '81', '协议设置编辑', 'Agreement', 'Save', '', '41', '0', '', '1486562011'), ('364', '177', '订单售后', 'Orderaftersale', 'Index', '', '10', '1', '', '1522317898'), ('365', '177', '订单售后删除', 'Orderaftersale', 'Delete', '', '11', '0', '', '1522317917'), ('366', '177', '订单售后取消', 'Orderaftersale', 'Cancel', '', '12', '0', '', '1527497803'), ('367', '177', '订单售后审核', 'Orderaftersale', 'Audit', '', '13', '0', '', '1538413499'), ('368', '177', '订单售后确认', 'Orderaftersale', 'Confirm', '', '14', '0', '', '1538414034'), ('369', '177', '订单售后拒绝', 'Orderaftersale', 'Refuse', '', '15', '0', '', '1538757043'), ('372', '182', '退款日志', 'RefundLog', 'Index', '', '30', '1', '', '1528080200'), ('373', '340', '应用商店', 'Store', 'Index', '', '10', '1', '', '1553248727'), ('374', '340', '应用安装', 'Pluginsadmin', 'Install', '', '6', '0', '', '1561369950'), ('375', '340', '应用卸载', 'Pluginsadmin', 'Uninstall', '', '7', '0', '', '1561370063'), ('376', '319', '用户中心导航', 'AppCenterNav', 'Index', '', '20', '1', '', '1542558318'), ('377', '319', '用户中心导航添加/编辑页面', 'AppCenterNav', 'SaveInfo', '', '21', '0', '', '1542558686'), ('378', '319', '用户中心导航添加/编辑', 'AppCenterNav', 'Save', '', '22', '0', '', '1542558706'), ('379', '319', '用户中心导航状态更新', 'AppCenterNav', 'StatusUpdate', '', '23', '0', '', '1542558747'), ('380', '319', '用户中心导航删除', 'AppCenterNav', 'Delete', '', '24', '0', '', '1542558767'), ('387', '222', '主题下载', 'Theme', 'Download', '', '34', '0', '', '1494410699'), ('400', '177', '订单详情', 'Order', 'Detail', '', '8', '0', '', '1589534580'), ('401', '177', '订单售后详情', 'Orderaftersale', 'Detail', '', '16', '0', '', '1589538361'), ('402', '38', '商品详情', 'Goods', 'Detail', '', '6', '0', '', '1589539780'), ('403', '38', '商品评论详情', 'Goodscomments', 'Detail', '', '26', '0', '', '1591609904'), ('404', '126', '用户详情', 'User', 'Detail', '', '7', '0', '', '1591621569'), ('405', '1', '管理员详情', 'Admin', 'Detail', '', '5', '0', '', '1591951422'), ('406', '1', '角色详情', 'Role', 'Detail', '', '25', '0', '', '1542102071'), ('407', '222', '自定义页面详情', 'CustomView', 'Detail', '', '16', '0', '', '1592287822'), ('408', '222', '轮播详情', 'Slide', 'Detail', '', '45', '0', '', '1592413297'), ('409', '252', '品牌详情', 'Brand', 'Detail', '', '6', '0', '', '1592563170'), ('410', '319', '首页导航详情', 'AppHomeNav', 'Detail', '', '15', '0', '', '1592652323'), ('411', '319', '用户中心导航详情', 'AppCenterNav', 'Detail', '', '25', '0', '', '1592661364'), ('412', '182', '问答留言详情', 'Answer', 'Detail', '', '6', '0', '', '1592840031'), ('413', '182', '消息详情', 'Message', 'Detail', '', '12', '0', '', '1593181414'), ('414', '222', '友情链接详情', 'Link', 'Detail', '', '26', '0', '', '1593181677'), ('415', '182', '支付日志详情', 'PayLog', 'Detail', '', '21', '0', '', '1593355200'), ('416', '182', '退款日志详情', 'RefundLog', 'Detail', '', '31', '0', '', '1593355237'), ('417', '182', '积分日志详情', 'IntegralLog', 'Detail', '', '41', '0', '', '1593355265'), ('418', '38', '商品浏览', 'GoodsBrowse', 'Index', '', '30', '1', '', '1591609904'), ('419', '38', '商品浏览删除', 'GoodsBrowse', 'Delete', '', '31', '0', '', '1591609904'), ('420', '38', '商品浏览详情', 'GoodsBrowse', 'Detail', '', '32', '0', '', '1591609904'), ('421', '38', '商品收藏', 'GoodsFavor', 'Index', '', '40', '1', '', '1591609904'), ('422', '38', '商品收藏删除', 'GoodsFavor', 'Delete', '', '41', '0', '', '1591609904'), ('423', '38', '商品收藏详情', 'GoodsFavor', 'Detail', '', '42', '0', '', '1591609904'), ('425', '438', '仓库管理', 'Warehouse', 'Index', '', '0', '1', '', '1488108044'), ('426', '438', '仓库添加/编辑页面', 'Warehouse', 'SaveInfo', '', '1', '0', '', '1530360625'), ('427', '438', '仓库添加/编辑', 'Warehouse', 'Save', '', '2', '0', '', '1530360663'), ('428', '438', '仓库删除', 'Warehouse', 'Delete', '', '3', '0', '', '1530360692'), ('429', '438', '仓库状态更新', 'Warehouse', 'StatusUpdate', '', '4', '0', '', '1530360730'), ('430', '438', '仓库详情', 'Warehouse', 'Detail', '', '5', '0', '', '1534156400'), ('431', '438', '仓库商品管理', 'WarehouseGoods', 'Index', '', '10', '1', '', '1488108044'), ('432', '438', '仓库商品删除', 'WarehouseGoods', 'Delete', '', '12', '0', '', '1530360625'), ('433', '438', '仓库商品搜索添加', 'WarehouseGoods', 'GoodsAdd', '', '15', '0', '', '1530360663'), ('434', '438', '仓库商品搜索删除', 'WarehouseGoods', 'GoodsDel', '', '16', '0', '', '1530360692'), ('435', '438', '仓库商品状态更新', 'WarehouseGoods', 'StatusUpdate', '', '13', '0', '', '1530360730'), ('436', '438', '仓库商品详情', 'WarehouseGoods', 'Detail', '', '11', '0', '', '1534156400'), ('438', '0', '仓库管理', 'Warehouse', 'Index', '', '9', '1', 'icon-cangku', '1483362358'), ('439', '438', '仓库商品搜索', 'WarehouseGoods', 'GoodsSearch', '', '14', '0', '', '1534156400'), ('440', '438', '仓库商品库存编辑页面', 'WarehouseGoods', 'InventoryInfo', '', '17', '0', '', '1534156400'), ('441', '438', '仓库商品库存编辑', 'WarehouseGoods', 'InventorySave', '', '18', '0', '', '0'), ('442', '182', '支付日志关闭', 'PayLog', 'Close', '', '22', '0', '', '1593355200'), ('443', '222', '快捷导航', 'QuickNav', 'Index', '', '90', '1', '', '1542558318'), ('444', '222', '快捷导航添加/编辑页面', 'QuickNav', 'SaveInfo', '', '91', '0', '', '1542558686'), ('445', '222', '快捷导航添加/编辑', 'QuickNav', 'Save', '', '92', '0', '', '1542558706'), ('446', '222', '快捷导航状态更新', 'QuickNav', 'StatusUpdate', '', '93', '0', '', '1542558747'), ('447', '222', '快捷导航删除', 'QuickNav', 'Delete', '', '94', '0', '', '1542558767'), ('448', '222', '快捷导航详情', 'QuickNav', 'Detail', '', '95', '0', '', '1592652323'), ('449', '182', '支付请求日志列表', 'PayRequestLog', 'Index', '', '25', '0', '', '1593355200'), ('450', '182', '支付请求日志详情', 'PayRequestLog', 'Detail', '', '26', '0', '', '1593355200'), ('451', '126', '用户地址', 'UserAddress', 'Index', '', '10', '1', '', '1490794316'), ('452', '126', '用户地址编辑页面', 'UserAddress', 'SaveInfo', '', '11', '0', '', '1490794510'), ('453', '126', '用户地址编辑', 'UserAddress', 'Save', '', '12', '0', '', '1490794510'), ('454', '126', '用户地址删除', 'UserAddress', 'Delete', '', '13', '0', '', '1591621569'), ('455', '126', '用户地址详情', 'UserAddress', 'Detail', '', '14', '0', '', '0'), ('456', '319', '小程序包列表', 'AppMini', 'Package', '', '33', '0', '', '1605872721'), ('457', '319', '小程序主题上传', 'AppMini', 'ThemeUpload', '', '34', '0', '', '1605872721'), ('458', '319', '小程序主题切换', 'AppMini', 'ThemeSave', '', '35', '0', '', '1605872721'), ('459', '319', '小程序主题切换', 'AppMini', 'ThemeDelete', '', '36', '0', '', '1605872721'), ('460', '319', '小程序主题下载', 'AppMini', 'ThemeDownload', '', '37', '0', '', '1605872721'), ('461', '81', '站点设置商品搜索', 'Site', 'GoodsSearch', '', '1', '0', '', '1486561780'); +INSERT INTO `s_power` VALUES ('1', '0', '权限控制', 'Power', 'Index', '', '3', '1', 'icon-quanxian', '1481612301'), ('4', '1', '角色管理', 'Role', 'Index', '', '20', '1', '', '1481639037'), ('13', '1', '权限分配', 'Power', 'Index', '', '30', '1', '', '1482156143'), ('15', '1', '权限添加/编辑', 'Power', 'Save', '', '31', '0', '', '1482243750'), ('16', '1', '权限删除', 'Power', 'Delete', '', '32', '0', '', '1482243797'), ('17', '1', '角色组添加/编辑页面', 'Role', 'SaveInfo', '', '21', '0', '', '1482243855'), ('18', '1', '角色组添加/编辑', 'Role', 'Save', '', '22', '0', '', '1482243888'), ('19', '1', '管理员添加/编辑页面', 'Admin', 'SaveInfo', '', '2', '0', '', '1482244637'), ('20', '1', '管理员添加/编辑', 'Admin', 'Save', '', '3', '0', '', '1482244666'), ('21', '1', '管理员删除', 'Admin', 'Delete', '', '4', '0', '', '1482244688'), ('22', '1', '管理员列表', 'Admin', 'Index', '', '1', '1', '', '1482568868'), ('23', '1', '角色删除', 'Role', 'Delete', '', '23', '0', '', '1482569155'), ('38', '0', '商品管理', 'Goods', 'Index', '', '5', '1', 'icon-shangpin', '1483283430'), ('39', '38', '商品管理', 'Goods', 'Index', '', '1', '1', '', '1483283546'), ('41', '0', '系统设置', 'Config', 'Index', '', '1', '1', 'icon-peizhi', '1483362358'), ('42', '41', '配置保存', 'Config', 'Save', '', '10', '0', '', '1483432335'), ('57', '38', '商品添加/编辑页面', 'Goods', 'SaveInfo', '', '2', '0', '', '1483616439'), ('58', '38', '商品添加/编辑', 'Goods', 'Save', '', '3', '0', '', '1483616492'), ('59', '38', '商品删除', 'Goods', 'Delete', '', '4', '0', '', '1483616569'), ('81', '0', '站点配置', 'Site', 'Index', '', '2', '1', 'icon-zhandianpeizhi', '1486182943'), ('103', '81', '站点设置', 'Site', 'Index', '', '0', '1', '', '1486561470'), ('104', '81', '短信设置', 'Sms', 'Index', '', '10', '1', '', '1486561615'), ('105', '81', '站点设置编辑', 'Site', 'Save', '', '1', '0', '', '1486561780'), ('107', '81', '短信设置编辑', 'Sms', 'Save', '', '11', '0', '', '1486562011'), ('118', '0', '工具', 'Tool', 'Index', '', '50', '1', 'icon-tools', '1488108044'), ('119', '118', '缓存管理', 'Cache', 'Index', '', '1', '1', '', '1488108107'), ('120', '118', '站点缓存更新', 'Cache', 'StatusUpdate', '', '2', '0', '', '1488108235'), ('121', '118', '模板缓存更新', 'Cache', 'TemplateUpdate', '', '2', '0', '', '1488108390'), ('122', '118', '模块缓存更新', 'Cache', 'ModuleUpdate', '', '3', '0', '', '1488108436'), ('126', '0', '用户管理', 'User', 'Index', '', '4', '1', 'icon-yonghuguanli', '1490794162'), ('127', '126', '用户列表', 'User', 'Index', '', '0', '1', '', '1490794316'), ('128', '126', '用户编辑/添加页面', 'User', 'SaveInfo', '', '1', '0', '', '1490794458'), ('129', '126', '用户添加/编辑', 'User', 'Save', '', '2', '0', '', '1490794510'), ('130', '126', '用户删除', 'User', 'Delete', '', '3', '0', '', '1490794585'), ('146', '126', 'Excel导出', 'User', 'ExcelExport', '', '6', '0', '', '1522223773'), ('153', '222', '地区管理', 'Region', 'Index', '', '60', '1', '', '1526304473'), ('154', '222', '地区添加/编辑', 'Region', 'Save', '', '61', '0', '', '1526304503'), ('155', '222', '地区删除', 'Region', 'Delete', '', '62', '0', '', '1526304531'), ('156', '222', '快递管理', 'Express', 'Index', '', '70', '1', '', '1526304473'), ('157', '222', '快递添加/编辑', 'Express', 'Save', '', '71', '0', '', '1526304473'), ('158', '222', '快递删除', 'Express', 'Delete', '', '72', '0', '', '1526304473'), ('172', '222', '首页轮播', 'Slide', 'Index', '', '40', '1', '', '1527149117'), ('173', '222', '轮播添加/编辑页面', 'Slide', 'SaveInfo', '', '41', '0', '', '1527149152'), ('174', '222', '轮播添加/编辑', 'Slide', 'Save', '', '42', '0', '', '1527149186'), ('175', '222', '轮播状态更新', 'Slide', 'StatusUpdate', '', '43', '0', '', '1527156980'), ('176', '222', '轮播删除', 'Slide', 'Delete', '', '44', '0', '', '1527157260'), ('177', '0', '订单管理', 'Order', 'Index', '', '6', '1', 'icon-dingdan', '1522229870'), ('178', '177', '订单管理', 'Order', 'Index', '', '1', '1', '', '1522317898'), ('179', '177', '订单删除', 'Order', 'Delete', '', '2', '0', '', '1522317917'), ('180', '177', '订单取消', 'Order', 'Cancel', '', '3', '0', '', '1527497803'), ('181', '38', '商品状态更新', 'Goods', 'StatusUpdate', '', '5', '0', '', '1528080200'), ('182', '0', '数据管理', 'Data', 'Index', '', '22', '1', 'icon-shuju', '1528096661'), ('183', '182', '消息管理', 'Message', 'Index', '', '10', '1', '', '1528080200'), ('184', '182', '消息删除', 'Message', 'Delete', '', '11', '0', '', '1528080200'), ('185', '182', '支付日志', 'PayLog', 'Index', '', '20', '1', '', '1528080200'), ('186', '182', '积分日志', 'IntegralLog', 'Index', '', '40', '1', '', '1528103067'), ('193', '222', '筛选价格', 'ScreeningPrice', 'Index', '', '50', '1', '', '1528708578'), ('194', '222', '筛选价格添加/编辑', 'ScreeningPrice', 'Save', '', '51', '0', '', '1528708609'), ('199', '81', 'SEO设置', 'Seo', 'Index', '', '30', '1', '', '1528771081'), ('200', '81', 'SEO设置编辑', 'Seo', 'Save', '', '31', '0', '', '1528771105'), ('201', '38', '商品分类', 'GoodsCategory', 'Index', '', '10', '1', '', '1529041901'), ('202', '38', '商品分类添加/编辑', 'GoodsCategory', 'Save', '', '11', '0', '', '1529041928'), ('203', '38', '商品分类删除', 'GoodsCategory', 'Delete', '', '12', '0', '', '1529041949'), ('204', '0', '文章管理', 'Article', 'Index', '', '21', '1', 'icon-wenzhang', '1530360560'), ('205', '204', '文章管理', 'Article', 'Index', '', '0', '1', '', '1530360593'), ('206', '204', '文章添加/编辑页面', 'Article', 'SaveInfo', '', '1', '0', '', '1530360625'), ('207', '204', '文章添加/编辑', 'Article', 'Save', '', '2', '0', '', '1530360663'), ('208', '204', '文章删除', 'Article', 'Delete', '', '3', '0', '', '1530360692'), ('209', '204', '文章状态更新', 'Article', 'StatusUpdate', '', '4', '0', '', '1530360730'), ('210', '204', '文章分类', 'ArticleCategory', 'Index', '', '10', '1', '', '1530361071'), ('211', '204', '文章分类编辑/添加', 'ArticleCategory', 'Save', '', '11', '0', '', '1530361101'), ('212', '204', '文章分类删除', 'ArticleCategory', 'Delete', '', '12', '0', '', '1530361126'), ('214', '182', '问答留言', 'Answer', 'Index', '', '0', '1', '', '1533112443'), ('215', '182', '问答留言回复', 'Answer', 'Reply', '', '1', '0', '', '1533119660'), ('216', '182', '问答留言删除', 'Answer', 'Delete', '', '2', '0', '', '1533119680'), ('217', '182', '问答留言状态更新', 'Answer', 'StatusUpdate', '', '3', '0', '', '1533119704'), ('219', '81', '邮箱设置', 'Email', 'Index', '', '20', '1', '', '1533636067'), ('220', '81', '邮箱设置/编辑', 'Email', 'Save', '', '21', '0', '', '1533636109'), ('221', '81', '邮件发送测试', 'Email', 'EmailTest', '', '22', '0', '', '1533636157'), ('222', '0', '网站管理', 'Navigation', 'Index', '', '7', '1', 'icon-wangzhanguanli', '1533692051'), ('223', '222', '导航管理', 'Navigation', 'Index', '', '0', '1', '', '1486183114'), ('226', '222', '导航添加/编辑', 'Navigation', 'Save', '', '2', '0', '', '1486183367'), ('227', '222', '导航删除', 'Navigation', 'Delete', '', '3', '0', '', '1486183410'), ('228', '222', '导航状态更新', 'Navigation', 'StatusUpdate', '', '4', '0', '', '1486183462'), ('234', '222', '自定义页面', 'CustomView', 'Index', '', '11', '1', '', '1486193400'), ('235', '222', '自定义页面添加/编辑页面', 'CustomView', 'SaveInfo', '', '12', '0', '', '1486193449'), ('236', '222', '自定义页面添加/编辑', 'CustomView', 'Save', '', '13', '0', '', '1486193473'), ('237', '222', '自定义页面删除', 'CustomView', 'Delete', '', '14', '0', '', '1486193516'), ('238', '222', '自定义页面状态更新', 'CustomView', 'StatusUpdate', '', '15', '0', '', '1486193582'), ('239', '222', '友情链接', 'Link', 'Index', '', '21', '1', '', '1486194358'), ('240', '222', '友情链接添加/编辑页面', 'Link', 'SaveInfo', '', '22', '0', '', '1486194392'), ('241', '222', '友情链接添加/编辑', 'Link', 'Save', '', '23', '0', '', '1486194413'), ('242', '222', '友情链接删除', 'Link', 'Delete', '', '24', '0', '', '1486194435'), ('243', '222', '友情链接状态更新', 'Link', 'StatusUpdate', '', '25', '0', '', '1486194479'), ('244', '222', '主题管理', 'Theme', 'Index', '', '30', '1', '', '1494381693'), ('245', '222', '主题管理添加/编辑', 'Theme', 'Save', '', '31', '0', '', '1494398194'), ('246', '222', '主题上传安装', 'Theme', 'Upload', '', '32', '0', '', '1494405096'), ('247', '222', '主题删除', 'Theme', 'Delete', '', '33', '0', '', '1494410655'), ('248', '204', '文章详情', 'Article', 'Detail', '', '5', '0', '', '1534156400'), ('249', '252', '品牌管理', 'Brand', 'Index', '', '0', '1', '', '1535683271'), ('250', '252', '品牌添加/编辑', 'Brand', 'Save', '', '2', '0', '', '1535683310'), ('251', '252', '品牌删除', 'Brand', 'Delete', '', '4', '0', '', '1535683351'), ('252', '0', '品牌管理', 'Brand', 'Index', '', '8', '1', 'icon-ico-pinpaiguanli', '1535684308'), ('253', '252', '品牌分类', 'BrandCategory', 'Index', '', '10', '1', '', '1535684401'), ('254', '252', '品牌分类添加/编辑', 'BrandCategory', 'Save', '', '11', '0', '', '1535684424'), ('255', '252', '品牌分类删除', 'BrandCategory', 'Delete', '', '12', '0', '', '1535684444'), ('256', '252', '品牌添加/编辑页面', 'Brand', 'SaveInfo', '', '1', '0', '', '1535694837'), ('257', '252', '品牌状态更新', 'Brand', 'StatusUpdate', '', '3', '0', '', '1535694880'), ('258', '222', '筛选价格删除', 'ScreeningPrice', 'Delete', '', '52', '0', '', '1536227071'), ('259', '222', '支付方式', 'Payment', 'Index', '', '80', '1', '', '1537156351'), ('260', '222', '支付方式安装/编辑页面', 'Payment', 'SaveInfo', '', '81', '0', '', '1537156423'), ('261', '222', '支付方式安装/编辑', 'Payment', 'Save', '', '82', '0', '', '1537156463'), ('262', '222', '支付方式删除', 'Payment', 'Delete', '', '83', '0', '', '1537156502'), ('263', '222', '支付方式安装', 'Payment', 'Install', '', '84', '0', '', '1537166090'), ('264', '222', '支付方式状态更新', 'Payment', 'StatusUpdate', '', '85', '0', '', '1537166149'), ('265', '222', '支付方式卸载', 'Payment', 'Uninstall', '', '86', '0', '', '1537167814'), ('266', '222', '支付方式上传', 'Payment', 'Upload', '', '87', '0', '', '1537173653'), ('267', '177', '订单发货', 'Order', 'Delivery', '', '4', '0', '', '1538413499'), ('268', '177', '订单收货', 'Order', 'Collect', '', '5', '0', '', '1538414034'), ('269', '177', '订单支付', 'Order', 'Pay', '', '6', '0', '', '1538757043'), ('310', '177', '订单确认', 'Order', 'Confirm', '', '7', '0', '', '1542011799'), ('311', '1', '角色状态更新', 'Role', 'StatusUpdate', '', '24', '0', '', '1542102071'), ('314', '319', '首页导航', 'AppHomeNav', 'Index', '', '10', '1', '', '1542558318'), ('315', '319', '首页导航添加/编辑页面', 'AppHomeNav', 'SaveInfo', '', '11', '0', '', '1542558686'), ('316', '319', '首页导航添加/编辑', 'AppHomeNav', 'Save', '', '12', '0', '', '1542558706'), ('317', '319', '首页导航状态更新', 'AppHomeNav', 'StatusUpdate', '', '13', '0', '', '1542558747'), ('318', '319', '首页导航删除', 'AppHomeNav', 'Delete', '', '14', '0', '', '1542558767'), ('319', '0', '手机管理', 'App', 'Index', '', '20', '1', 'icon-shouji', '1483362358'), ('326', '319', '基础配置', 'AppConfig', 'Index', '', '0', '1', '', '1543206359'), ('327', '319', '基础配置保存', 'AppConfig', 'Save', '', '1', '0', '', '1543206402'), ('331', '118', '日志删除', 'Cache', 'LogDelete', '', '4', '0', '', '1545642163'), ('332', '319', '小程序列表', 'AppMini', 'Index', '', '30', '1', '', '1546935020'), ('333', '319', '小程序配置', 'AppMini', 'Config', '', '40', '1', '', '1546935090'), ('334', '319', '小程序配置保存', 'AppMini', 'Save', '', '41', '0', '', '1546935118'), ('336', '319', '小程序包生成', 'AppMini', 'Created', '', '31', '0', '', '1546935187'), ('337', '319', '小程序包删除', 'AppMini', 'Delete', '', '32', '0', '', '1546935212'), ('339', '41', '后台配置', 'Config', 'Index', '', '0', '1', '', '1549419752'), ('340', '0', '应用中心', 'Store', 'Index', '', '30', '1', 'icon-application', '1549496703'), ('341', '340', '应用管理', 'Pluginsadmin', 'Index', '', '1', '1', '', '1549497306'), ('342', '340', '应用状态更新', 'Pluginsadmin', 'StatusUpdate', '', '3', '0', '', '1549694138'), ('343', '340', '应用调用管理', 'Plugins', 'Index', '', '0', '0', '', '1549958187'), ('345', '340', '应用添加/编辑页面', 'Pluginsadmin', 'SaveInfo', '', '1', '0', '', '1549977925'), ('346', '340', '应用添加/编辑', 'Pluginsadmin', 'Save', '', '2', '0', '', '1549977958'), ('347', '340', '应用删除', 'Pluginsadmin', 'Delete', '', '4', '0', '', '1549977993'), ('348', '340', '应用上传', 'Pluginsadmin', 'Upload', '', '5', '0', '', '1550110821'), ('349', '118', 'SQL控制台', 'Sqlconsole', 'Index', '', '10', '1', '', '1550476002'), ('350', '118', 'SQL执行', 'Sqlconsole', 'Implement', '', '11', '0', '', '1550476023'), ('351', '340', '应用打包', 'Pluginsadmin', 'Download', '', '6', '0', '', '1553248727'), ('352', '182', '问答添加/编辑页面', 'Answer', 'SaveInfo', '', '4', '0', '', '1553964318'), ('353', '182', '问答添加/编辑', 'Answer', 'Save', '', '5', '0', '', '1553964354'), ('354', '41', '商店信息', 'Config', 'Store', '', '0', '1', '', '1554803430'), ('356', '38', '商品评论', 'Goodscomments', 'Index', '', '30', '1', '', '1533112443'), ('357', '38', '商品评论回复', 'Goodscomments', 'Reply', '', '31', '0', '', '1533119660'), ('358', '38', '商品评论删除', 'Goodscomments', 'Delete', '', '32', '0', '', '1533119680'), ('359', '38', '商品评论状态更新', 'Goodscomments', 'StatusUpdate', '', '33', '0', '', '1533119704'), ('360', '38', '商品评论添加/编辑页面', 'Goodscomments', 'SaveInfo', '', '34', '0', '', '1553964318'), ('361', '38', '商品评论添加/编辑', 'Goodscomments', 'Save', '', '35', '0', '', '1553964354'), ('362', '81', '协议管理', 'Agreement', 'Index', '', '40', '1', '', '1486561615'), ('363', '81', '协议设置编辑', 'Agreement', 'Save', '', '41', '0', '', '1486562011'), ('364', '177', '订单售后', 'Orderaftersale', 'Index', '', '10', '1', '', '1522317898'), ('365', '177', '订单售后删除', 'Orderaftersale', 'Delete', '', '11', '0', '', '1522317917'), ('366', '177', '订单售后取消', 'Orderaftersale', 'Cancel', '', '12', '0', '', '1527497803'), ('367', '177', '订单售后审核', 'Orderaftersale', 'Audit', '', '13', '0', '', '1538413499'), ('368', '177', '订单售后确认', 'Orderaftersale', 'Confirm', '', '14', '0', '', '1538414034'), ('369', '177', '订单售后拒绝', 'Orderaftersale', 'Refuse', '', '15', '0', '', '1538757043'), ('372', '182', '退款日志', 'RefundLog', 'Index', '', '30', '1', '', '1528080200'), ('373', '340', '应用商店', 'Store', 'Index', '', '10', '1', '', '1553248727'), ('374', '340', '应用安装', 'Pluginsadmin', 'Install', '', '6', '0', '', '1561369950'), ('375', '340', '应用卸载', 'Pluginsadmin', 'Uninstall', '', '7', '0', '', '1561370063'), ('376', '319', '用户中心导航', 'AppCenterNav', 'Index', '', '20', '1', '', '1542558318'), ('377', '319', '用户中心导航添加/编辑页面', 'AppCenterNav', 'SaveInfo', '', '21', '0', '', '1542558686'), ('378', '319', '用户中心导航添加/编辑', 'AppCenterNav', 'Save', '', '22', '0', '', '1542558706'), ('379', '319', '用户中心导航状态更新', 'AppCenterNav', 'StatusUpdate', '', '23', '0', '', '1542558747'), ('380', '319', '用户中心导航删除', 'AppCenterNav', 'Delete', '', '24', '0', '', '1542558767'), ('387', '222', '主题下载', 'Theme', 'Download', '', '34', '0', '', '1494410699'), ('400', '177', '订单详情', 'Order', 'Detail', '', '8', '0', '', '1589534580'), ('401', '177', '订单售后详情', 'Orderaftersale', 'Detail', '', '16', '0', '', '1589538361'), ('402', '38', '商品详情', 'Goods', 'Detail', '', '6', '0', '', '1589539780'), ('403', '38', '商品评论详情', 'Goodscomments', 'Detail', '', '36', '0', '', '1591609904'), ('404', '126', '用户详情', 'User', 'Detail', '', '7', '0', '', '1591621569'), ('405', '1', '管理员详情', 'Admin', 'Detail', '', '5', '0', '', '1591951422'), ('406', '1', '角色详情', 'Role', 'Detail', '', '25', '0', '', '1542102071'), ('407', '222', '自定义页面详情', 'CustomView', 'Detail', '', '16', '0', '', '1592287822'), ('408', '222', '轮播详情', 'Slide', 'Detail', '', '45', '0', '', '1592413297'), ('409', '252', '品牌详情', 'Brand', 'Detail', '', '6', '0', '', '1592563170'), ('410', '319', '首页导航详情', 'AppHomeNav', 'Detail', '', '15', '0', '', '1592652323'), ('411', '319', '用户中心导航详情', 'AppCenterNav', 'Detail', '', '25', '0', '', '1592661364'), ('412', '182', '问答留言详情', 'Answer', 'Detail', '', '6', '0', '', '1592840031'), ('413', '182', '消息详情', 'Message', 'Detail', '', '12', '0', '', '1593181414'), ('414', '222', '友情链接详情', 'Link', 'Detail', '', '26', '0', '', '1593181677'), ('415', '182', '支付日志详情', 'PayLog', 'Detail', '', '21', '0', '', '1593355200'), ('416', '182', '退款日志详情', 'RefundLog', 'Detail', '', '31', '0', '', '1593355237'), ('417', '182', '积分日志详情', 'IntegralLog', 'Detail', '', '41', '0', '', '1593355265'), ('418', '38', '商品浏览', 'GoodsBrowse', 'Index', '', '40', '1', '', '1591609904'), ('419', '38', '商品浏览删除', 'GoodsBrowse', 'Delete', '', '41', '0', '', '1591609904'), ('420', '38', '商品浏览详情', 'GoodsBrowse', 'Detail', '', '42', '0', '', '1591609904'), ('421', '38', '商品收藏', 'GoodsFavor', 'Index', '', '50', '1', '', '1591609904'), ('422', '38', '商品收藏删除', 'GoodsFavor', 'Delete', '', '51', '0', '', '1591609904'), ('423', '38', '商品收藏详情', 'GoodsFavor', 'Detail', '', '52', '0', '', '1591609904'), ('425', '438', '仓库管理', 'Warehouse', 'Index', '', '0', '1', '', '1488108044'), ('426', '438', '仓库添加/编辑页面', 'Warehouse', 'SaveInfo', '', '1', '0', '', '1530360625'), ('427', '438', '仓库添加/编辑', 'Warehouse', 'Save', '', '2', '0', '', '1530360663'), ('428', '438', '仓库删除', 'Warehouse', 'Delete', '', '3', '0', '', '1530360692'), ('429', '438', '仓库状态更新', 'Warehouse', 'StatusUpdate', '', '4', '0', '', '1530360730'), ('430', '438', '仓库详情', 'Warehouse', 'Detail', '', '5', '0', '', '1534156400'), ('431', '438', '仓库商品管理', 'WarehouseGoods', 'Index', '', '10', '1', '', '1488108044'), ('432', '438', '仓库商品删除', 'WarehouseGoods', 'Delete', '', '12', '0', '', '1530360625'), ('433', '438', '仓库商品搜索添加', 'WarehouseGoods', 'GoodsAdd', '', '15', '0', '', '1530360663'), ('434', '438', '仓库商品搜索删除', 'WarehouseGoods', 'GoodsDel', '', '16', '0', '', '1530360692'), ('435', '438', '仓库商品状态更新', 'WarehouseGoods', 'StatusUpdate', '', '13', '0', '', '1530360730'), ('436', '438', '仓库商品详情', 'WarehouseGoods', 'Detail', '', '11', '0', '', '1534156400'), ('438', '0', '仓库管理', 'Warehouse', 'Index', '', '9', '1', 'icon-cangku', '1483362358'), ('439', '438', '仓库商品搜索', 'WarehouseGoods', 'GoodsSearch', '', '14', '0', '', '1534156400'), ('440', '438', '仓库商品库存编辑页面', 'WarehouseGoods', 'InventoryInfo', '', '17', '0', '', '1534156400'), ('441', '438', '仓库商品库存编辑', 'WarehouseGoods', 'InventorySave', '', '18', '0', '', '0'), ('442', '182', '支付日志关闭', 'PayLog', 'Close', '', '22', '0', '', '1593355200'), ('443', '222', '快捷导航', 'QuickNav', 'Index', '', '90', '1', '', '1542558318'), ('444', '222', '快捷导航添加/编辑页面', 'QuickNav', 'SaveInfo', '', '91', '0', '', '1542558686'), ('445', '222', '快捷导航添加/编辑', 'QuickNav', 'Save', '', '92', '0', '', '1542558706'), ('446', '222', '快捷导航状态更新', 'QuickNav', 'StatusUpdate', '', '93', '0', '', '1542558747'), ('447', '222', '快捷导航删除', 'QuickNav', 'Delete', '', '94', '0', '', '1542558767'), ('448', '222', '快捷导航详情', 'QuickNav', 'Detail', '', '95', '0', '', '1592652323'), ('449', '182', '支付请求日志列表', 'PayRequestLog', 'Index', '', '25', '0', '', '1593355200'), ('450', '182', '支付请求日志详情', 'PayRequestLog', 'Detail', '', '26', '0', '', '1593355200'), ('451', '126', '用户地址', 'UserAddress', 'Index', '', '10', '1', '', '1490794316'), ('452', '126', '用户地址编辑页面', 'UserAddress', 'SaveInfo', '', '11', '0', '', '1490794510'), ('453', '126', '用户地址编辑', 'UserAddress', 'Save', '', '12', '0', '', '1490794510'), ('454', '126', '用户地址删除', 'UserAddress', 'Delete', '', '13', '0', '', '1591621569'), ('455', '126', '用户地址详情', 'UserAddress', 'Detail', '', '14', '0', '', '0'), ('456', '319', '小程序包列表', 'AppMini', 'Package', '', '33', '0', '', '1605872721'), ('457', '319', '小程序主题上传', 'AppMini', 'ThemeUpload', '', '34', '0', '', '1605872721'), ('458', '319', '小程序主题切换', 'AppMini', 'ThemeSave', '', '35', '0', '', '1605872721'), ('459', '319', '小程序主题切换', 'AppMini', 'ThemeDelete', '', '36', '0', '', '1605872721'), ('460', '319', '小程序主题下载', 'AppMini', 'ThemeDownload', '', '37', '0', '', '1605872721'), ('461', '81', '站点设置商品搜索', 'Site', 'GoodsSearch', '', '1', '0', '', '1486561780'), ('462', '38', '商品参数', 'GoodsParamsTemplate', 'Index', '', '20', '1', '', '1533112443'), ('463', '38', '商品参数删除', 'GoodsParamsTemplate', 'Delete', '', '21', '0', '', '1533119680'), ('464', '38', '商品参数状态更新', 'GoodsParamsTemplate', 'StatusUpdate', '', '22', '0', '', '1533119704'), ('465', '38', '商品参数添加/编辑页面', 'GoodsParamsTemplate', 'SaveInfo', '', '23', '0', '', '1553964318'), ('466', '38', '商品参数添加/编辑', 'GoodsParamsTemplate', 'Save', '', '24', '0', '', '1553964354'), ('467', '38', '商品参数详情', 'GoodsParamsTemplate', 'Detail', '', '25', '0', '', '1591609904'); COMMIT; -- ---------------------------- @@ -2110,7 +2156,7 @@ CREATE TABLE `s_user` ( -- Records of `s_user` -- ---------------------------- BEGIN; -INSERT INTO `s_user` VALUES ('1', '', '', '', '', '', '', '', '', '0', '380152', 'ae89f04305d514553fb318b94aebc3dd', '', 'qqqqqq', '', '', '', '0', '/static/upload/images/user_avatar/compr/2020/11/23/20201123160002645270163.gif', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1604644427', '1606457414'), ('2', '', '', '', '', '', '', '', '', '0', '907730', '4d9694b8b3fb8e1f34b10e6bf64b5cce', '', 'vvvvvv', '', '', '', '0', '', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1605373850', '1605373850'), ('3', '', 'oB6US5SNOngn196qzb3lagEBTh6w', '', '', '', '', '', '', '0', '', '', '0f669adc2a60fdbcd2b18d448bdeb5b8', '', '', '17602128368', '', '2', 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLyAtj7FMjZYFhr3FADapWV8TibSNWVRVYFmAEJGg4bYgw0WMx4cibF7RChJicFb0YWDWwdAglrRI42A/132', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1605958823', '1606457180'); +INSERT INTO `s_user` VALUES ('1', '', '', '', '', '', '', '', '', '0', '656625', 'cefdc04cc627fc6b79a158335c04913e', '', 'qqqqqq', '', '', '', '0', '/static/upload/images/user_avatar/compr/2020/11/23/20201123160002645270163.gif', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1604644427', '1606463686'), ('2', '', '', '', '', '', '', '', '', '0', '907730', '4d9694b8b3fb8e1f34b10e6bf64b5cce', '', 'vvvvvv', '', '', '', '0', '', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1605373850', '1605373850'), ('3', '', 'oB6US5SNOngn196qzb3lagEBTh6w', '', '', '', '', '', '', '0', '', '', '0f669adc2a60fdbcd2b18d448bdeb5b8', '', '', '17602128368', '', '2', 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLyAtj7FMjZYFhr3FADapWV8TibSNWVRVYFmAEJGg4bYgw0WMx4cibF7RChJicFb0YWDWwdAglrRI42A/132', '', '', '0', '', '0', '0', '0', '0', '0', '0', '1605958823', '1606457180'); COMMIT; -- ---------------------------- @@ -2227,7 +2273,7 @@ CREATE TABLE `s_warehouse_goods` ( -- Records of `s_warehouse_goods` -- ---------------------------- BEGIN; -INSERT INTO `s_warehouse_goods` VALUES ('20', '2', '1', '1', '8', '1595068577', '1595068582'), ('22', '2', '8', '1', '2', '1595076197', '1605345194'), ('24', '2', '2', '1', '1997', '1595077992', '1598698244'), ('25', '2', '7', '1', '218', '1595863207', '1598698236'), ('26', '2', '12', '1', '25', '1596084332', '1606199005'), ('49', '2', '10', '1', '222', '1596635742', '1598698220'), ('50', '2', '9', '1', '88', '1596635833', '1602671920'), ('51', '4', '8', '1', '1', '1605345085', '1605345199'), ('52', '4', '9', '1', '999', '1605345089', '1605345103'), ('53', '2', '11', '1', '1998', '1605432741', '1605434325'), ('54', '2', '6', '1', '666', '1605432742', '1605432769'), ('55', '2', '5', '1', '555', '1605432742', '1605432763'), ('56', '2', '4', '1', '333', '1605432743', '1605432758'), ('57', '2', '3', '1', '333', '1605432744', '1605432752'); +INSERT INTO `s_warehouse_goods` VALUES ('20', '2', '1', '1', '8', '1595068577', '1595068582'), ('22', '2', '8', '1', '2', '1595076197', '1605345194'), ('24', '2', '2', '1', '1997', '1595077992', '1598698244'), ('25', '2', '7', '1', '218', '1595863207', '1598698236'), ('26', '2', '12', '1', '25', '1596084332', '1606538014'), ('49', '2', '10', '1', '222', '1596635742', '1598698220'), ('50', '2', '9', '1', '88', '1596635833', '1602671920'), ('51', '4', '8', '1', '1', '1605345085', '1605345199'), ('52', '4', '9', '1', '999', '1605345089', '1605345103'), ('53', '2', '11', '1', '1998', '1605432741', '1605434325'), ('54', '2', '6', '1', '666', '1605432742', '1605432769'), ('55', '2', '5', '1', '555', '1605432742', '1605432763'), ('56', '2', '4', '1', '333', '1605432743', '1605432758'), ('57', '2', '3', '1', '333', '1605432744', '1605432752'); COMMIT; -- ---------------------------- @@ -2249,13 +2295,13 @@ CREATE TABLE `s_warehouse_goods_spec` ( KEY `goods_id` (`goods_id`), KEY `md5_key` (`md5_key`), KEY `inventory` (`inventory`) -) ENGINE=InnoDB AUTO_INCREMENT=729 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='仓库商品规格'; +) ENGINE=InnoDB AUTO_INCREMENT=735 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='仓库商品规格'; -- ---------------------------- -- Records of `s_warehouse_goods_spec` -- ---------------------------- BEGIN; -INSERT INTO `s_warehouse_goods_spec` VALUES ('189', '20', '2', '1', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '8', '1595068582'), ('347', '49', '2', '10', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '222', '1598698219'), ('357', '25', '2', '7', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '218', '1598698236'), ('358', '24', '2', '2', '674eee93efe8de506e9f7f776d09f1e5', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '221', '1598698244'), ('359', '24', '2', '2', '40c2afb68f3cc84cc305bce8ab8d5f47', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('360', '24', '2', '2', '7ffbb29c5dfb16f6c6b32034d22e3fef', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('361', '24', '2', '2', 'ca455d91ca7da72892f87745a04500bc', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '222', '1598698244'), ('362', '24', '2', '2', '107e3e2e6320d811564c2704b034d8fa', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('363', '24', '2', '2', 'a7cf0be020f452a8b7d8777e6bbfa041', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('364', '24', '2', '2', '224734fbe895debc3c7999a2f157f05d', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '222', '1598698244'), ('365', '24', '2', '2', '35c55bca127aa2f3c77fecfdd802c18f', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('366', '24', '2', '2', '3d09a0554e685e5de759819564ca592b', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('695', '50', '2', '9', 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '51', '1602671920'), ('696', '50', '2', '9', '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '5', '1602671920'), ('697', '50', '2', '9', 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '4', '1602671920'), ('698', '50', '2', '9', '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '5', '1602671920'), ('699', '50', '2', '9', '4acc2580a89270113477b4b8466ecef9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '5', '1602671920'), ('700', '50', '2', '9', 'b0935dae40102d2bcbd588fc50a6a118', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '5', '1602671920'), ('701', '50', '2', '9', '5b51b52dde87b3608c97ff80a2215275', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '4', '1602671920'), ('702', '50', '2', '9', '2f3924a3bf7c8491af2dad598b54764f', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '5', '1602671920'), ('703', '50', '2', '9', '5f077e081d727adcb617a413f038d043', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '4', '1602671920'), ('704', '52', '4', '9', 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('705', '52', '4', '9', '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '111', '1605345103'), ('706', '52', '4', '9', 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '111', '1605345103'), ('707', '52', '4', '9', '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '111', '1605345103'), ('708', '52', '4', '9', '4acc2580a89270113477b4b8466ecef9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('709', '52', '4', '9', 'b0935dae40102d2bcbd588fc50a6a118', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '111', '1605345103'), ('710', '52', '4', '9', '5b51b52dde87b3608c97ff80a2215275', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '111', '1605345103'), ('711', '52', '4', '9', '2f3924a3bf7c8491af2dad598b54764f', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('712', '52', '4', '9', '5f077e081d727adcb617a413f038d043', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '111', '1605345103'), ('714', '22', '2', '8', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '2', '1605345194'), ('715', '51', '4', '8', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '1', '1605345199'), ('716', '57', '2', '3', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '333', '1605432752'), ('717', '56', '2', '4', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '333', '1605432758'), ('718', '55', '2', '5', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '555', '1605432763'), ('719', '54', '2', '6', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '666', '1605432769'), ('720', '53', '2', '11', '69691c7bdcc3ce6d5d8a1361f22d04ac', '[{\"type\":\"尺码\",\"value\":\"M\"}]', '666', '1605434325'), ('721', '53', '2', '11', 'd20caec3b48a1eef164cb4ca81ba2587', '[{\"type\":\"尺码\",\"value\":\"L\"}]', '666', '1605434325'), ('722', '53', '2', '11', 'a7a4ccc5e1a068d87f4965e014329201', '[{\"type\":\"尺码\",\"value\":\"XL\"}]', '666', '1605434325'), ('723', '26', '2', '12', '32d68312fb367dd8a78ab789c3dce9c5', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"S+Sad,f\"}]', '1', '1606199005'), ('724', '26', '2', '12', 'f5c75bc99305a664f1d92d572ee78289', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"M+M\"}]', '4', '1606199005'), ('725', '26', '2', '12', '24ac3b718ed8542628cfe5f1843f8ed9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"L+L\"}]', '5', '1606199005'), ('726', '26', '2', '12', 'eda0100ccdfa2942729825effc96f571', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"S+S\"}]', '5', '1606199005'), ('727', '26', '2', '12', 'ec0bf37ae952cd7c60f2cdbb5153086a', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"M+M\"}]', '5', '1606199005'), ('728', '26', '2', '12', 'ae7a23a3e2693f7aec7b919e16fd74d5', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"L+L\"}]', '5', '1606199005'); +INSERT INTO `s_warehouse_goods_spec` VALUES ('189', '20', '2', '1', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '8', '1595068582'), ('347', '49', '2', '10', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '222', '1598698219'), ('357', '25', '2', '7', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '218', '1598698236'), ('358', '24', '2', '2', '674eee93efe8de506e9f7f776d09f1e5', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '221', '1598698244'), ('359', '24', '2', '2', '40c2afb68f3cc84cc305bce8ab8d5f47', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('360', '24', '2', '2', '7ffbb29c5dfb16f6c6b32034d22e3fef', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('361', '24', '2', '2', 'ca455d91ca7da72892f87745a04500bc', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '222', '1598698244'), ('362', '24', '2', '2', '107e3e2e6320d811564c2704b034d8fa', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('363', '24', '2', '2', 'a7cf0be020f452a8b7d8777e6bbfa041', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('364', '24', '2', '2', '224734fbe895debc3c7999a2f157f05d', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', '222', '1598698244'), ('365', '24', '2', '2', '35c55bca127aa2f3c77fecfdd802c18f', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', '222', '1598698244'), ('366', '24', '2', '2', '3d09a0554e685e5de759819564ca592b', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', '222', '1598698244'), ('695', '50', '2', '9', 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '51', '1602671920'), ('696', '50', '2', '9', '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '5', '1602671920'), ('697', '50', '2', '9', 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '4', '1602671920'), ('698', '50', '2', '9', '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '5', '1602671920'), ('699', '50', '2', '9', '4acc2580a89270113477b4b8466ecef9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '5', '1602671920'), ('700', '50', '2', '9', 'b0935dae40102d2bcbd588fc50a6a118', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '5', '1602671920'), ('701', '50', '2', '9', '5b51b52dde87b3608c97ff80a2215275', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '4', '1602671920'), ('702', '50', '2', '9', '2f3924a3bf7c8491af2dad598b54764f', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '5', '1602671920'), ('703', '50', '2', '9', '5f077e081d727adcb617a413f038d043', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '4', '1602671920'), ('704', '52', '4', '9', 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('705', '52', '4', '9', '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '111', '1605345103'), ('706', '52', '4', '9', 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '111', '1605345103'), ('707', '52', '4', '9', '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '111', '1605345103'), ('708', '52', '4', '9', '4acc2580a89270113477b4b8466ecef9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('709', '52', '4', '9', 'b0935dae40102d2bcbd588fc50a6a118', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', '111', '1605345103'), ('710', '52', '4', '9', '5b51b52dde87b3608c97ff80a2215275', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', '111', '1605345103'), ('711', '52', '4', '9', '2f3924a3bf7c8491af2dad598b54764f', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', '111', '1605345103'), ('712', '52', '4', '9', '5f077e081d727adcb617a413f038d043', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', '111', '1605345103'), ('714', '22', '2', '8', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '2', '1605345194'), ('715', '51', '4', '8', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '1', '1605345199'), ('716', '57', '2', '3', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '333', '1605432752'), ('717', '56', '2', '4', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '333', '1605432758'), ('718', '55', '2', '5', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '555', '1605432763'), ('719', '54', '2', '6', 'c21f969b5f03d33d43e04f8f136e7682', 'default', '666', '1605432769'), ('720', '53', '2', '11', '69691c7bdcc3ce6d5d8a1361f22d04ac', '[{\"type\":\"尺码\",\"value\":\"M\"}]', '666', '1605434325'), ('721', '53', '2', '11', 'd20caec3b48a1eef164cb4ca81ba2587', '[{\"type\":\"尺码\",\"value\":\"L\"}]', '666', '1605434325'), ('722', '53', '2', '11', 'a7a4ccc5e1a068d87f4965e014329201', '[{\"type\":\"尺码\",\"value\":\"XL\"}]', '666', '1605434325'), ('729', '26', '2', '12', '32d68312fb367dd8a78ab789c3dce9c5', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"S+Sad,f\"}]', '1', '1606538014'), ('730', '26', '2', '12', 'f5c75bc99305a664f1d92d572ee78289', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"M+M\"}]', '4', '1606538014'), ('731', '26', '2', '12', '24ac3b718ed8542628cfe5f1843f8ed9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺,码\",\"value\":\"L+L\"}]', '5', '1606538014'), ('732', '26', '2', '12', 'eda0100ccdfa2942729825effc96f571', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"S+S\"}]', '5', '1606538014'), ('733', '26', '2', '12', 'ec0bf37ae952cd7c60f2cdbb5153086a', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"M+M\"}]', '5', '1606538014'), ('734', '26', '2', '12', 'ae7a23a3e2693f7aec7b919e16fd74d5', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺,码\",\"value\":\"L+L\"}]', '5', '1606538014'); COMMIT; SET FOREIGN_KEY_CHECKS = 1; diff --git a/public/static/admin/default/css/common.css b/public/static/admin/default/css/common.css index b35e8f56a..fff188572 100755 --- a/public/static/admin/default/css/common.css +++ b/public/static/admin/default/css/common.css @@ -591,4 +591,24 @@ table.am-table .am-btn-danger:hover { } .second-nav li.am-active a { background-color: #1cc09f !important; +} + + +/** + * 表格头部美化 + */ +.table-thead-beautify thead th { + background-color: #f5f7fa; + position: relative; + border-bottom: 0 !important; +} + +/** + * 商品参数 + */ +#parameters-quick-copy-modal textarea { + resize: none; +} +#parameters-quick-container .am-dropdown-content { + width: 260px; } \ No newline at end of file diff --git a/public/static/admin/default/css/goods.css b/public/static/admin/default/css/goods.css index 4bd8b9f47..aa5b03514 100755 --- a/public/static/admin/default/css/goods.css +++ b/public/static/admin/default/css/goods.css @@ -65,13 +65,6 @@ /** * 规格 */ -.specifications-table .title-nav th, -.spec-quick table thead th, -.parameters-table thead th { - background-color: #f5f7fa; - position: relative; - border-bottom: 0 !important; -} .specifications-table .title-nav th input { width: calc(100% - 25px); } @@ -198,14 +191,4 @@ ul li { .spec-quick-td-value .value-item { width: calc(50% - 12px) !important; } -} - -/** - * 商品参数 - */ -#goods-nav-parameters textarea { - resize: none; -} -#parameters-quick-container .am-dropdown-content { - width: 260px; } \ No newline at end of file diff --git a/public/static/admin/default/css/goodsparamstemplate.css b/public/static/admin/default/css/goodsparamstemplate.css new file mode 100644 index 000000000..e69de29bb diff --git a/public/static/admin/default/js/common.js b/public/static/admin/default/js/common.js new file mode 100644 index 000000000..c11748dc5 --- /dev/null +++ b/public/static/admin/default/js/common.js @@ -0,0 +1,189 @@ +/** + * 商品参数数据创建 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2020-09-02 + * @desc description + * @param {[int]} type [展示类型(0,1,2)] + * @param {[string]} name [参数名称] + * @param {[string]} value [参数值] + */ +function ParametersItemHtmlCreated(type, name, value) +{ + var index = parseInt(Math.random()*1000001); + var html = ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += '上移'; + html += '下移'; + html += '移除'; + html += ''; + + // 数据添加 + var $parameters_table = $('.parameters-table'); + $parameters_table.append(html); + + // select组件初始化 + $parameters_table.find('.parameters-line-'+index+' .chosen-select').chosen({ + inherit_select_classes: true, + enable_split_word_search: true, + search_contains: true, + no_results_text: '没有匹配到结果' + }); +} + +$(function() +{ + // 商品参数添加 + var $parameters_table = $('.parameters-table'); + $('.parameters-line-add').on('click', function() + { + // 追加内容 + ParametersItemHtmlCreated(); + }); + + // 商品参数移动 + $parameters_table.on('click', '.line-move', function() + { + // 类型 + var type = $(this).data('type') || null; + if(type == null) + { + Prompt('操作类型配置有误'); + return false; + } + + // 索引 + var count = $parameters_table.find('tbody tr').length; + var index = $(this).parents('tr').index() || 0; + var $parent = $(this).parents('tr'); + switch(type) + { + // 上移 + case 'top' : + if(index == 0) + { + Prompt('已到最顶部'); + return false; + } + $parent.prev().insertAfter($parent); + break; + + // 下移 + case 'bottom' : + if(index >= count-1) + { + Prompt('已到最底部'); + return false; + } + $parent.next().insertBefore($parent); + break; + + // 默认 + default : + Prompt('操作类型配置有误'); + } + }); + + // 商品参数移除 + $parameters_table.on('click', '.line-remove', function() + { + $(this).parents('tr').remove(); + }); + + // 商品参数配置信息复制 + var $parameters_copy_modal = $('#parameters-quick-copy-modal'); + var clipboard = new ClipboardJS('.parameters-quick-copy', + { + text: function() + { + // 获取商品参数配置信息 + var data = []; + $parameters_table.find('tbody tr').each(function(k, v) + { + data.push({ + "type": $(this).find('td:eq(0) select').val(), + "name": $(this).find('td:eq(1) input').val(), + "value": $(this).find('td:eq(2) input').val(), + }); + }); + data = JSON.stringify(data); + $parameters_copy_modal.find('textarea').val(data); + return data; + } + }); + clipboard.on('success', function(e) + { + Prompt('复制成功', 'success'); + }); + clipboard.on('error', function(e) + { + // 复制失败则开启复制窗口,让用户自己复制 + $parameters_copy_modal.modal({ + width: 200, + height: 135 + }); + }); + // 点击选中复制的值 + $parameters_copy_modal.find('textarea').on('click', function() + { + $(this).select(); + }); + + // 商品参数快捷操作 + var $parameters_quick_config = $('.parameters-quick-config'); + $parameters_quick_config.find('button').on('click', function() + { + // 配置数据 + var data = $parameters_quick_config.find('textarea').val() || null; + if(data == null) + { + Prompt('请先粘贴配置信息'); + return false; + } + + // 异常处理、防止json格式错误 + try { + data = JSON.parse(data); + } catch(e) { + Prompt('配置格式错误'); + return false; + } + if(data.length <= 0) + { + Prompt('配置为空'); + return false; + } + + // 数据生成 + $parameters_table.find('tbody').html(''); + for(var i in data) + { + var type = (data[i]['type'] == undefined) ? 1 : data[i]['type']; + var name = data[i]['name'] || ''; + var value = data[i]['value'] || ''; + ParametersItemHtmlCreated(type, name, value); + } + $('#parameters-quick-container').dropdown('close'); + Prompt('生成成功', 'success'); + }); + + // 商品参数清空 + $('.parameters-quick-remove').on('click', function() + { + $parameters_table.find('tbody').html(''); + }); +}); \ No newline at end of file diff --git a/public/static/admin/default/js/goods.js b/public/static/admin/default/js/goods.js index 45d1e4109..69ab34c32 100755 --- a/public/static/admin/default/js/goods.js +++ b/public/static/admin/default/js/goods.js @@ -46,53 +46,6 @@ function SpecCartesian(arr1, arr2) // 返回最终笛卡尔积 return result; } - -/** - * 商品参数数据创建 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2020-09-02 - * @desc description - * @param {[int]} type [展示类型(0,1,2)] - * @param {[string]} name [参数名称] - * @param {[string]} value [参数值] - */ -function ParametersItemHtmlCreated(type, name, value) -{ - var index = parseInt(Math.random()*1000001); - var html = ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += '上移'; - html += '下移'; - html += '移除'; - html += ''; - - // 数据添加 - var $parameters_table = $('.parameters-table'); - $parameters_table.append(html); - - // select组件初始化 - $parameters_table.find('.parameters-line-'+index+' .chosen-select').chosen({ - inherit_select_classes: true, - enable_split_word_search: true, - search_contains: true, - no_results_text: '没有匹配到结果' - }); -} $(function() { @@ -734,143 +687,18 @@ $(function() $(this).addClass('am-primary'); }); - // 参数添加 - var $parameters_table = $('.parameters-table'); - $('.parameters-line-add').on('click', function() + // 商品参数模板选择 + $('.goods-template-params-select').on('change', function() { - // 追加内容 - ParametersItemHtmlCreated(); - }); - - // 商品参数移动 - $parameters_table.on('click', '.line-move', function() - { - // 类型 - var type = $(this).data('type') || null; - if(type == null) + var value = $(this).val() || null; + if(value != null) { - Prompt('操作类型配置有误'); - return false; - } - - // 索引 - var count = $parameters_table.find('tbody tr').length; - var index = $(this).parents('tr').index() || 0; - var $parent = $(this).parents('tr'); - switch(type) - { - // 上移 - case 'top' : - if(index == 0) - { - Prompt('已到最顶部'); - return false; - } - $parent.prev().insertAfter($parent); - break; - - // 下移 - case 'bottom' : - if(index >= count-1) - { - Prompt('已到最底部'); - return false; - } - $parent.next().insertBefore($parent); - break; - - // 默认 - default : - Prompt('操作类型配置有误'); - } - }); - - // 商品参数移除 - $parameters_table.on('click', '.line-remove', function() - { - $(this).parents('tr').remove(); - }); - - // 商品参数配置信息复制 - var $parameters_copy_modal = $('#parameters-quick-copy-modal'); - var clipboard = new ClipboardJS('.parameters-quick-copy', - { - text: function() - { - // 获取商品参数配置信息 - var data = []; - $parameters_table.find('tbody tr').each(function(k, v) + value = decodeURIComponent(value); + if(typeof(value) == 'object') { - data.push({ - "type": $(this).find('td:eq(0) select').val(), - "name": $(this).find('td:eq(1) input').val(), - "value": $(this).find('td:eq(2) input').val(), - }); - }); - data = JSON.stringify(data); - $parameters_copy_modal.find('textarea').val(data); - return data; + value = JSON.stringify(value); + } } - }); - clipboard.on('success', function(e) - { - Prompt('复制成功', 'success'); - }); - clipboard.on('error', function(e) - { - // 复制失败则开启复制窗口,让用户自己复制 - $parameters_copy_modal.modal({ - width: 200, - height: 135 - }); - }); - // 点击选中复制的值 - $parameters_copy_modal.find('textarea').on('click', function() - { - $(this).select(); - }); - - // 商品参数快捷操作 - var $parameters_quick_config = $('.parameters-quick-config'); - $parameters_quick_config.find('button').on('click', function() - { - // 配置数据 - var data = $parameters_quick_config.find('textarea').val() || null; - if(data == null) - { - Prompt('请先粘贴配置信息'); - return false; - } - - // 异常处理、防止json格式错误 - try { - data = JSON.parse(data); - } catch(e) { - Prompt('配置格式错误'); - return false; - } - if(data.length <= 0) - { - Prompt('配置为空'); - return false; - } - - // 数据生成 - $parameters_table.find('tbody').html(''); - for(var i in data) - { - var type = (data[i]['type'] == undefined) ? 1 : data[i]['type']; - var name = data[i]['name'] || ''; - var value = data[i]['value'] || ''; - ParametersItemHtmlCreated(type, name, value); - } - $('#parameters-quick-container').dropdown('close'); - Prompt('生成成功', 'success'); - }); - - // 商品参数清空 - $('.parameters-quick-remove').on('click', function() - { - $parameters_table.find('tbody').html(''); + $('#parameters-quick-container textarea').val(value || ''); }); }); \ No newline at end of file