diff --git a/application/admin/controller/Appconfig.php b/application/admin/controller/Appconfig.php new file mode 100755 index 000000000..1baac4576 --- /dev/null +++ b/application/admin/controller/Appconfig.php @@ -0,0 +1,64 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 配置列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 配置信息 + $this->assign('data', ConfigService::ConfigList()); + + // 是否 + $this->assign('common_is_text_list', lang('common_is_text_list')); + + return $this->fetch(); + } + + /** + * [Save 配置数据保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2017-01-02T23:08:19+0800 + */ + public function Save() + { + return ConfigService::ConfigSave($_POST); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Apphomenav.php b/application/admin/controller/Apphomenav.php new file mode 100755 index 000000000..c8d98c80c --- /dev/null +++ b/application/admin/controller/Apphomenav.php @@ -0,0 +1,195 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 手机管理-首页导航列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 参数 + $params = input(); + + // 分页 + $number = MyC('admin_page_number', 10, true); + + // 条件 + $where = AppNavService::AppHomeNavListWhere($params); + + // 获取总数 + $total = AppNavService::AppHomeNavTotal($where); + + // 分页 + $page_params = array( + 'number' => $number, + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/apphomenav/index'), + ); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); + + // 获取列表 + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data_list', $data['data']); + + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + // 所属平台 + $this->assign('common_platform_type', lang('common_platform_type')); + + // app事件类型 + $this->assign('common_app_event_type', lang('common_app_event_type')); + + // 参数 + $this->assign('params', $params); + return $this->fetch(); + } + + /** + * [SaveInfo 添加/编辑页面] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-14T21:37:02+0800 + */ + public function SaveInfo() + { + // 参数 + $params = input(); + + // 数据 + if(!empty($params['id'])) + { + // 获取列表 + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id'=>intval($params['id'])], + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data', empty($data['data'][0]) ? [] : $data['data'][0]); + } + + // 所属平台 + $this->assign('common_platform_type', lang('common_platform_type')); + + // app事件类型 + $this->assign('common_app_event_type', lang('common_app_event_type')); + + // 参数 + $this->assign('params', $params); + + // 编辑器文件存放地址 + $this->assign('editor_path_type', 'app_nav'); + + return $this->fetch(); + } + + /** + * [Save 手机管理-首页导航添加/编辑] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-14T21:37:02+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavSave($params); + return json($ret); + } + + /** + * [Delete 手机管理-首页导航删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-15T11:03:30+0800 + */ + public function Delete() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $params['user_type'] = 'admin'; + $ret = AppNavService::AppHomeNavDelete($params); + return json($ret); + } + + /** + * [StatusUpdate 状态更新] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2017-01-12T22:23:06+0800 + */ + public function StatusUpdate() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavStatusUpdate($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Appminialipayconfig.php b/application/admin/controller/Appminialipayconfig.php new file mode 100755 index 000000000..32b154867 --- /dev/null +++ b/application/admin/controller/Appminialipayconfig.php @@ -0,0 +1,61 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 配置列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 配置信息 + $this->assign('data', ConfigService::ConfigList()); + + return $this->fetch(); + } + + /** + * [Save 配置数据保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2017-01-02T23:08:19+0800 + */ + public function Save() + { + return ConfigService::ConfigSave($_POST); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Appminialipaylist.php b/application/admin/controller/Appminialipaylist.php new file mode 100755 index 000000000..9d9d43e49 --- /dev/null +++ b/application/admin/controller/Appminialipaylist.php @@ -0,0 +1,95 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + + // 参数 + $this->params = input(); + $params['application_name'] = 'alipay'; + } + + /** + * [Index 列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + $this->assign('data', AppMiniService::DataList($this->params)); + return $this->fetch(); + } + + /** + * [Created 生成] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2017-02-05T20:12:30+0800 + */ + public function Created() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = AppMiniService::Created($this->params); + return json($ret); + } + + /** + * [Delete 删除包] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-09T21:13:47+0800 + */ + public function Delete() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = AppMiniService::Delete($this->params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Articlecategory.php b/application/admin/controller/Articlecategory.php new file mode 100755 index 000000000..2fbd96295 --- /dev/null +++ b/application/admin/controller/Articlecategory.php @@ -0,0 +1,111 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 文章分类列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + return $this->fetch(); + } + + /** + * [GetNodeSon 获取节点子列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T15:19:45+0800 + */ + public function GetNodeSon() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = ArticleService::ArticleCategoryNodeSon(input()); + return json($ret); + } + + /** + * [Save 文章分类保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = ArticleService::ArticleCategorySave(input()); + return json($ret); + } + + /** + * [Delete 文章分类删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Delete() + { + // 是否ajax + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始操作 + $params = input('post.'); + $params['admin'] = $this->admin; + $ret = ArticleService::ArticleCategoryDelete($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Brandcategory.php b/application/admin/controller/Brandcategory.php new file mode 100755 index 000000000..dd1e6757a --- /dev/null +++ b/application/admin/controller/Brandcategory.php @@ -0,0 +1,111 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 品牌分类列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + return $this->fetch(); + } + + /** + * [GetNodeSon 获取节点子列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T15:19:45+0800 + */ + public function GetNodeSon() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = BrandService::BrandCategoryNodeSon(input()); + return json($ret); + } + + /** + * [Save 品牌分类保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = BrandService::BrandCategorySave(input()); + return json($ret); + } + + /** + * [Delete 品牌分类删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Delete() + { + // 是否ajax + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始操作 + $params = input('post.'); + $params['admin'] = $this->admin; + $ret = BrandService::BrandCategoryDelete($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Customview.php b/application/admin/controller/Customview.php new file mode 100755 index 000000000..9e608e868 --- /dev/null +++ b/application/admin/controller/Customview.php @@ -0,0 +1,198 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 文章列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 参数 + $params = input(); + + // 分页 + $number = 10; + + // 条件 + $where = CustomViewService::CustomViewListWhere($params); + + // 获取总数 + $total = CustomViewService::CustomViewTotal($where); + + // 分页 + $page_params = array( + 'number' => $number, + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/customview/index'), + ); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); + + // 获取列表 + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + 'field' => '*', + ); + $data = CustomViewService::CustomViewList($data_params); + $this->assign('data_list', $data['data']); + + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + // 是否包含头部 + $this->assign('common_is_header_list', lang('common_is_header_list')); + + // 是否包含尾部 + $this->assign('common_is_footer_list', lang('common_is_footer_list')); + + // 是否满屏 + $this->assign('common_is_full_screen_list', lang('common_is_full_screen_list')); + + // 参数 + $this->assign('params', $params); + return $this->fetch(); + } + + /** + * [SaveInfo 添加/编辑页面] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-14T21:37:02+0800 + */ + public function SaveInfo() + { + // 参数 + $params = input(); + + // 数据 + if(!empty($params['id'])) + { + // 获取列表 + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id'=>intval($params['id'])], + 'field' => '*', + ); + $data = CustomViewService::CustomViewList($data_params); + $this->assign('data', empty($data['data'][0]) ? [] : $data['data'][0]); + } + + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + // 是否包含头部 + $this->assign('common_is_header_list', lang('common_is_header_list')); + + // 是否包含尾部 + $this->assign('common_is_footer_list', lang('common_is_footer_list')); + + // 是否满屏 + $this->assign('common_is_full_screen_list', lang('common_is_full_screen_list')); + + return $this->fetch(); + } + + /** + * [Save 添加/编辑] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-14T21:37:02+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $ret = CustomViewService::CustomViewSave($params); + return json($ret); + } + + /** + * [Delete 删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-15T11:03:30+0800 + */ + public function Delete() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $params['user_type'] = 'admin'; + $ret = CustomViewService::CustomViewDelete($params); + return json($ret); + } + + /** + * [StatusUpdate 状态更新] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2017-01-12T22:23:06+0800 + */ + public function StatusUpdate() + { + // 是否ajax请求 + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始处理 + $params = input(); + $ret = CustomViewService::CustomViewStatusUpdate($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Goodscategory.php b/application/admin/controller/Goodscategory.php new file mode 100755 index 000000000..6c26ac119 --- /dev/null +++ b/application/admin/controller/Goodscategory.php @@ -0,0 +1,118 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 分类列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + // 是否 + $this->assign('common_is_text_list', lang('common_is_text_list')); + + // 编辑器文件存放地址 + $this->assign('editor_path_type', 'goods_category'); + + return $this->fetch(); + } + + /** + * [GetNodeSon 获取节点子列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T15:19:45+0800 + */ + public function GetNodeSon() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = GoodsService::GoodsCategoryNodeSon(input()); + return json($ret); + } + + + /** + * [Save 分类保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = GoodsService::GoodsCategorySave(input()); + return json($ret); + } + + /** + * [Delete 分类删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Delete() + { + // 是否ajax + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始操作 + $params = input('post.'); + $params['admin'] = $this->admin; + $ret = GoodsService::GoodsCategoryDelete($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Integrallog.php b/application/admin/controller/Integrallog.php new file mode 100755 index 000000000..d9c616159 --- /dev/null +++ b/application/admin/controller/Integrallog.php @@ -0,0 +1,88 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 用户积分日志列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 参数 + $params = input(); + $params['user'] = $this->admin; + $params['user_type'] = 'admin'; + + // 分页 + $number = MyC('admin_page_number', 10, true); + + // 条件 + $where = IntegralService::AdminIntegralListWhere($params); + + // 获取总数 + $total = IntegralService::AdminIntegralTotal($where); + + // 分页 + $page_params = array( + 'number' => $number, + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/integrallog/index'), + ); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); + + // 获取列表 + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + ); + $data = IntegralService::AdminIntegralList($data_params); + $this->assign('data_list', $data['data']); + + // 性别 + $this->assign('common_gender_list', lang('common_gender_list')); + + // 操作类型 + $this->assign('common_integral_log_type_list', lang('common_integral_log_type_list')); + + // 参数 + $this->assign('params', $params); + return $this->fetch(); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Paylog.php b/application/admin/controller/Paylog.php new file mode 100755 index 000000000..142c7a9b8 --- /dev/null +++ b/application/admin/controller/Paylog.php @@ -0,0 +1,92 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 支付日志列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 参数 + $params = input(); + $params['user'] = $this->admin; + $params['user_type'] = 'admin'; + + // 分页 + $number = MyC('admin_page_number', 10, true); + + // 条件 + $where = PayLogService::AdminPayLogListWhere($params); + + // 获取总数 + $total = PayLogService::AdminPayLogTotal($where); + + // 分页 + $page_params = array( + 'number' => $number, + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/paylog/index'), + ); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); + + // 获取列表 + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + ); + $data = PayLogService::AdminPayLogList($data_params); + $this->assign('data_list', $data['data']); + + // 性别 + $this->assign('common_gender_list', lang('common_gender_list')); + + // 业务类型 + $this->assign('common_business_type_list', lang('common_business_type_list')); + + // 支付日志类型 + $pay_type_list = PayLogService::PayLogTypeList($params); + $this->assign('common_pay_type_list', $pay_type_list['data']); + + // 参数 + $this->assign('params', $params); + return $this->fetch(); + } +} +?> \ No newline at end of file diff --git a/application/admin/controller/Screeningprice.php b/application/admin/controller/Screeningprice.php new file mode 100755 index 000000000..9dda4dc95 --- /dev/null +++ b/application/admin/controller/Screeningprice.php @@ -0,0 +1,117 @@ +Is_Login(); + + // 权限校验 + $this->Is_Power(); + } + + /** + * [Index 筛选价格列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + */ + public function Index() + { + // 是否启用 + $this->assign('common_is_enable_list', lang('common_is_enable_list')); + + return $this->fetch(); + } + + /** + * [GetNodeSon 获取节点子列表] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T15:19:45+0800 + */ + public function GetNodeSon() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = ScreeningPriceService::ScreeningPriceNodeSon(input()); + return json($ret); + + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + } + + /** + * [Save 筛选价格保存] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Save() + { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 开始操作 + $ret = ScreeningPriceService::ScreeningPriceSave(input()); + return json($ret); + } + + /** + * [Delete 筛选价格删除] + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-25T22:36:12+0800 + */ + public function Delete() + { + // 是否ajax + if(!IS_AJAX) + { + return $this->error('非法访问'); + } + + // 开始操作 + $params = input('post.'); + $params['admin'] = $this->admin; + $ret = ScreeningPriceService::ScreeningPriceDelete($params); + return json($ret); + } +} +?> \ No newline at end of file diff --git a/application/admin/view/default/goods/save_info.html b/application/admin/view/default/goods/save_info.html index d72d1ab0c..70a477568 100755 --- a/application/admin/view/default/goods/save_info.html +++ b/application/admin/view/default/goods/save_info.html @@ -155,13 +155,8 @@