diff --git a/service/Application/Admin/Controller/GoodsController.class.php b/service/Application/Admin/Controller/GoodsController.class.php index d1b0e9938..242f9dde8 100755 --- a/service/Application/Admin/Controller/GoodsController.class.php +++ b/service/Application/Admin/Controller/GoodsController.class.php @@ -282,6 +282,7 @@ class GoodsController extends CommonController 'images' => isset($photo['data'][0]) ? $photo['data'][0] : '', 'photo_count' => count($photo['data']), ]; + print_r($_POST);die; // 添加/编辑 $m = D('Goods'); diff --git a/service/Application/Admin/Lang/zh-cn/goods.php b/service/Application/Admin/Lang/zh-cn/goods.php index 9a12c3710..b7708098e 100755 --- a/service/Application/Admin/Lang/zh-cn/goods.php +++ b/service/Application/Admin/Lang/zh-cn/goods.php @@ -52,6 +52,9 @@ return array( 'goods_is_shelves_text' => '是否上下架', 'goods_is_shelves_tips' => '下架后用户不可见', + 'goods_is_home_recommended_text' => '是否首页推荐', + 'goods_is_home_recommended_tips' => '推荐后在首页展示', + 'goods_images_text' => '相册', 'goods_images_tips' => '可拖拽图片进行排序', 'goods_images_format' => '请上传相册', diff --git a/service/Application/Admin/View/Default/Goods/Index.html b/service/Application/Admin/View/Default/Goods/Index.html index 97c940a24..002c75a60 100755 --- a/service/Application/Admin/View/Default/Goods/Index.html +++ b/service/Application/Admin/View/Default/Goods/Index.html @@ -44,6 +44,7 @@ {{:L('goods_title_text')}} {{:L('goods_price_text')}} {{:L('goods_is_shelves_text')}} + {{:L('goods_is_home_recommended_text')}} {{:L('goods_inventory_text')}} {{:L('goods_model_text')}} {{:L('common_create_time_name')}} @@ -70,6 +71,9 @@ am-successam-default" data-url="{{:U('Admin/Goods/StatusUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_shelves']}}"> + + am-successam-default" data-url="{{:U('Admin/Goods/StatusUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_home_recommended']}}"> + {{$v.inventory}} {{$v.inventory_unit}} {{$v.model}} {{$v.add_time}} diff --git a/service/Application/Admin/View/Default/Goods/SaveInfo.html b/service/Application/Admin/View/Default/Goods/SaveInfo.html index 3d708e473..6e075c7f5 100755 --- a/service/Application/Admin/View/Default/Goods/SaveInfo.html +++ b/service/Application/Admin/View/Default/Goods/SaveInfo.html @@ -124,6 +124,10 @@ checked="true" /> +
+ + checked="true" /> +
diff --git a/service/Application/Admin/View/Default/GoodsCategory/Index.html b/service/Application/Admin/View/Default/GoodsCategory/Index.html index 9fd2502b8..3f63d9c3d 100755 --- a/service/Application/Admin/View/Default/GoodsCategory/Index.html +++ b/service/Application/Admin/View/Default/GoodsCategory/Index.html @@ -51,7 +51,7 @@ -
+

{{:L('common_form_loading_tips')}}

diff --git a/service/Application/Common/Conf/debug.php b/service/Application/Common/Conf/debug.php index 18fea2abf..0f2f6fb60 100755 --- a/service/Application/Common/Conf/debug.php +++ b/service/Application/Common/Conf/debug.php @@ -11,7 +11,7 @@ return array( // 数据库配置信息 'DB_TYPE' => 'mysql', // 数据库类型 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shop', // 数据库名 + 'DB_NAME' => 'shopxo', // 数据库名 'DB_USER' => 'root', // 用户名 'DB_PWD' => 'root', // 密码 'DB_PORT' => 3306, // 端口 diff --git a/service/Application/Common/Conf/develop.php b/service/Application/Common/Conf/develop.php index 18fea2abf..0f2f6fb60 100755 --- a/service/Application/Common/Conf/develop.php +++ b/service/Application/Common/Conf/develop.php @@ -11,7 +11,7 @@ return array( // 数据库配置信息 'DB_TYPE' => 'mysql', // 数据库类型 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shop', // 数据库名 + 'DB_NAME' => 'shopxo', // 数据库名 'DB_USER' => 'root', // 用户名 'DB_PWD' => 'root', // 密码 'DB_PORT' => 3306, // 端口 diff --git a/service/Application/Common/Conf/master.php b/service/Application/Common/Conf/master.php index f1863acd3..beb73ae03 100755 --- a/service/Application/Common/Conf/master.php +++ b/service/Application/Common/Conf/master.php @@ -11,7 +11,7 @@ return array( // 数据库配置信息 'DB_TYPE' => 'mysql', // 数据库类型 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'boyuan', // 数据库名 + 'DB_NAME' => 'shopxo', // 数据库名 'DB_USER' => 'root', // 用户名 'DB_PWD' => 'gfx#ml@520', // 密码 'DB_PORT' => 3306, // 端口 diff --git a/service/Application/Common/Conf/test.php b/service/Application/Common/Conf/test.php index 18fea2abf..0f2f6fb60 100755 --- a/service/Application/Common/Conf/test.php +++ b/service/Application/Common/Conf/test.php @@ -11,7 +11,7 @@ return array( // 数据库配置信息 'DB_TYPE' => 'mysql', // 数据库类型 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shop', // 数据库名 + 'DB_NAME' => 'shopxo', // 数据库名 'DB_USER' => 'root', // 用户名 'DB_PWD' => 'root', // 密码 'DB_PORT' => 3306, // 端口 diff --git a/service/Public/Common/Js/Common.js b/service/Public/Common/Js/Common.js index 1032639a1..9c420462b 100755 --- a/service/Public/Common/Js/Common.js +++ b/service/Public/Common/Js/Common.js @@ -739,6 +739,10 @@ $(function() */ $('#tree').on('click', '.tree-submit-add-node', function() { + // 清空表单数据 + tree_form_init(); + + // 父节点赋值 var id = parseInt($(this).data('id')) || 0; $('#data-save-win').find('input[name="pid"]').val(id); }); @@ -787,6 +791,19 @@ $(function() * @datetime 2016-12-25T22:11:34+0800 */ $('.tree-submit-add').on('click', function() + { + tree_form_init(); + }); + + /** + * 添加窗口初始化 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-08-06 + * @desc description + */ + function tree_form_init() { // 更改窗口名称 $title = $('#data-save-win').find('.am-popup-title'); @@ -824,7 +841,7 @@ $(function() $(icon_tag).attr('src', $(icon_tag).data('default')); } } - }); + } /** * [submit-ajax 公共数据ajax操作]