diff --git a/application/goods/controller/Brand.php b/application/goods/controller/Brand.php deleted file mode 100644 index 5327a3419..000000000 --- a/application/goods/controller/Brand.php +++ /dev/null @@ -1,151 +0,0 @@ - - * @date 2017/03/27 14:43 - */ -class Brand extends BasicAdmin -{ - - /** - * 定义当前操作表名 - * @var string - */ - public $table = 'GoodsBrand'; - - /** - * 品牌列表 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function index() - { - $this->title = '品牌管理'; - $get = $this->request->get(); - $db = Db::name($this->table)->where(['is_deleted' => '0']); - if (isset($get['brand_title']) && $get['brand_title'] !== '') { - $db->whereLike('brand_title', "%{$get['brand_title']}%"); - } - if (isset($get['create_at']) && $get['create_at'] !== '') { - list($start, $end) = explode(' - ', $get['create_at']); - $db->whereBetween('create_at', ["{$start} 00:00:00", "{$end} 23:59:59"]); - } - return parent::_list($db->order('sort asc,id desc')); - } - - /** - * 添加品牌 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\Exception - */ - public function add() - { - $this->title = '添加品牌'; - return $this->_form($this->table, 'form'); - } - - /** - * 编辑品牌 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\Exception - */ - public function edit() - { - $this->title = '编辑品牌'; - return $this->_form($this->table, 'form'); - } - - /** - * 表单提交数据处理 - * @param array $data - */ - protected function _form_filter($data) - { - if ($this->request->isPost()) { - empty($data['brand_logo']) && $this->error('请上传品牌Logo图片'); - empty($data['brand_cover']) && $this->error('请上传品牌封面图片'); - } - } - - /** - * 添加成功回跳处理 - * @param bool $result - */ - protected function _form_result($result) - { - if ($result !== false) { - list($base, $spm, $url) = [url('@admin'), $this->request->get('spm'), url('goods/brand/index')]; - $this->success('数据保存成功!', "{$base}#{$url}?spm={$spm}"); - } - } - - /** - * 删除品牌 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function del() - { - if (DataService::update($this->table)) { - $this->success("品牌删除成功!", ''); - } - $this->error("品牌删除失败,请稍候再试!"); - } - - /** - * 品牌禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function forbid() - { - if (DataService::update($this->table)) { - $this->success("品牌禁用成功!", ''); - } - $this->error("品牌禁用失败,请稍候再试!"); - } - - /** - * 品牌签禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function resume() - { - if (DataService::update($this->table)) { - $this->success("品牌启用成功!", ''); - } - $this->error("品牌启用失败,请稍候再试!"); - } - -} diff --git a/application/goods/controller/Cate.php b/application/goods/controller/Cate.php deleted file mode 100644 index 51787d7f9..000000000 --- a/application/goods/controller/Cate.php +++ /dev/null @@ -1,157 +0,0 @@ - - * @date 2017/03/27 14:43 - */ -class Cate extends BasicAdmin -{ - - /** - * 定义当前操作表名 - * @var string - */ - public $table = 'GoodsCate'; - - /** - * 产品分类列表 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function index() - { - $this->title = '产品分类'; - $db = Db::name($this->table)->where(['is_deleted' => '0']); - return parent::_list($db->order('sort asc,id asc'), false); - } - - /** - * 列表数据处理 - * @param array $data - */ - protected function _index_data_filter(&$data) - { - foreach ($data as &$vo) { - $vo['ids'] = join(',', ToolsService::getArrSubIds($data, $vo['id'])); - } - $data = ToolsService::arr2table($data); - } - - /** - * 添加菜单 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function add() - { - return $this->_form($this->table, 'form'); - } - - /** - * 编辑菜单 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function edit() - { - return $this->_form($this->table, 'form'); - } - - /** - * 表单数据前缀方法 - * @param array $vo - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - protected function _form_filter(&$vo) - { - if ($this->request->isGet()) { - // 读取上级分类 - $where = ['status' => '1', 'is_deleted' => '0']; - $_cates = (array)Db::name($this->table)->where($where)->order('sort desc,id desc')->select(); - array_unshift($_cates, ['id' => 0, 'pid' => -1, 'cate_title' => '--- 顶级分类 ---']); - $cates = ToolsService::arr2table($_cates); - foreach ($cates as $key => &$cate) { - if (isset($vo['pid'])) { - $path = "-{$vo['pid']}-{$vo['id']}"; - if ($vo['pid'] !== '' && (stripos("{$cate['path']}-", "{$path}-") !== false || $cate['path'] === $path)) { - unset($cates[$key]); - } - } - } - $this->assign('cates', $cates); - } - } - - /** - * 删除产品分类 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function del() - { - if (DataService::update($this->table)) { - $this->success("产品分类删除成功!", ''); - } - $this->error("产品分类删除失败,请稍候再试!"); - } - - /** - * 产品分类禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function forbid() - { - if (DataService::update($this->table)) { - $this->success("产品分类禁用成功!", ''); - } - $this->error("产品分类禁用失败,请稍候再试!"); - } - - /** - * 产品分类禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function resume() - { - if (DataService::update($this->table)) { - $this->success("产品分类启用成功!", ''); - } - $this->error("产品分类启用失败,请稍候再试!"); - } - -} diff --git a/application/goods/controller/Product.php b/application/goods/controller/Product.php deleted file mode 100644 index 74f96e6cf..000000000 --- a/application/goods/controller/Product.php +++ /dev/null @@ -1,265 +0,0 @@ - - * @date 2017/03/27 14:43 - */ -class Product extends BasicAdmin -{ - - /** - * 定义当前操作表名 - * @var string - */ - public $table = 'Goods'; - - /** - * 普通产品 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function index() - { - $this->title = '产品管理'; - $get = $this->request->get(); - $db = Db::name($this->table)->where(['is_deleted' => '0']); - if (isset($get['tags_id']) && $get['tags_id'] !== '') { - $db->whereLike('tags_id', "%,{$get['tags_id']},%"); - } - if (isset($get['goods_title']) && $get['goods_title'] !== '') { - $db->whereLike('goods_title', "%{$get['goods_title']}%"); - } - foreach (['cate_id', 'brand_id'] as $field) { - (isset($get[$field]) && $get[$field] !== '') && $db->where($field, $get[$field]); - } - if (isset($get['create_at']) && $get['create_at'] !== '') { - list($start, $end) = explode(' - ', $get['create_at']); - $db->whereBetween('create_at', ["{$start} 00:00:00", "{$end} 23:59:59"]); - } - return parent::_list($db->order('status desc,sort asc,id desc')); - } - - /** - * 商城数据处理 - * @param array $data - */ - protected function _data_filter(&$data) - { - $result = ProductService::buildGoodsList($data); - $this->assign([ - 'brands' => $result['brand'], - 'cates' => ToolsService::arr2table($result['cate']), - ]); - } - - /** - * 添加产品 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\Exception - */ - public function add() - { - if ($this->request->isGet()) { - $this->title = '添加产品'; - $this->_form_assign(); - return $this->_form($this->table, 'form'); - } - try { - $data = $this->_form_build_data(); - Db::transaction(function () use ($data) { - $goodsID = Db::name($this->table)->insertGetId($data['main']); - foreach ($data['list'] as &$vo) { - $vo['goods_id'] = $goodsID; - } - Db::name('GoodsList')->insertAll($data['list']); - }); - } catch (HttpResponseException $exception) { - return $exception->getResponse(); - } catch (\Exception $e) { - $this->error('产品添加失败,请稍候再试!'); - } - list($base, $spm, $url) = [url('@admin'), $this->request->get('spm'), url('goods/product/index')]; - $this->success('添加产品成功!', "{$base}#{$url}?spm={$spm}"); - } - - /** - * 编辑产品 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function edit() - { - if (!$this->request->isPost()) { - $goods_id = $this->request->get('id'); - $goods = Db::name($this->table)->where(['id' => $goods_id, 'is_deleted' => '0'])->find(); - empty($goods) && $this->error('需要编辑的产品不存在!'); - $goods['list'] = Db::name('GoodsList')->where(['goods_id' => $goods_id, 'is_deleted' => '0'])->select(); - $this->_form_assign(); - return $this->fetch('form', ['vo' => $goods, 'title' => '编辑产品']); - } - try { - $data = $this->_form_build_data(); - $goods_id = $this->request->post('id'); - $goods = Db::name($this->table)->where(['id' => $goods_id, 'is_deleted' => '0'])->find(); - empty($goods) && $this->error('产品编辑失败,请稍候再试!'); - foreach ($data['list'] as &$vo) { - $vo['goods_id'] = $goods_id; - } - Db::transaction(function () use ($data, $goods_id, $goods) { - // 更新产品主表 - $where = ['id' => $goods_id, 'is_deleted' => '0']; - Db::name('Goods')->where($where)->update(array_merge($goods, $data['main'])); - // 更新产品详细 - Db::name('GoodsList')->where(['goods_id' => $goods_id])->delete(); - Db::name('GoodsList')->insertAll($data['list']); - }); - } catch (HttpResponseException $exception) { - return $exception->getResponse(); - } catch (\Exception $e) { - $this->error('产品编辑失败,请稍候再试!' . $e->getMessage()); - } - list($base, $spm, $url) = [url('@admin'), $this->request->get('spm'), url('goods/product/index')]; - $this->success('产品编辑成功!', "{$base}#{$url}?spm={$spm}"); - } - - /** - * 表单数据处理 - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - protected function _form_assign() - { - list($where, $order) = [['status' => '1', 'is_deleted' => '0'], 'sort asc,id desc']; - $specs = (array)Db::name('GoodsSpec')->where($where)->order($order)->select(); - $brands = (array)Db::name('GoodsBrand')->where($where)->order($order)->select(); - $cates = (array)Db::name('GoodsCate')->where($where)->order($order)->select(); - // 所有的产品信息 - $where = ['is_deleted' => '0', 'status' => '1']; - $goodsListField = 'goods_id,goods_spec,goods_stock,goods_sale'; - $goods = Db::name('Goods')->field('id,goods_title')->where($where)->select(); - $list = Db::name('GoodsList')->field($goodsListField)->where($where)->select(); - foreach ($goods as $k => $g) { - $goods[$k]['list'] = []; - foreach ($list as $v) { - ($g['id'] === $v['goods_id']) && $goods[$k]['list'][] = $v; - } - } - array_unshift($specs, ['spec_title' => ' - 不使用规格模板 -', 'spec_param' => '[]', 'id' => '0']); - $this->assign([ - 'specs' => $specs, - 'cates' => ToolsService::arr2table($cates), - 'brands' => $brands, - 'all' => $goods, - ]); - } - - /** - * 读取POST表单数据 - * @return array - */ - protected function _form_build_data() - { - list($main, $list, $post, $verify) = [[], [], $this->request->post(), false]; - empty($post['goods_logo']) && $this->error('产品LOGO不能为空,请上传后再提交数据!'); - // 产品主数据组装 - $main['cate_id'] = $this->request->post('cate_id', '0'); - $main['spec_id'] = $this->request->post('spec_id', '0'); - $main['brand_id'] = $this->request->post('brand_id', '0'); - $main['goods_logo'] = $this->request->post('goods_logo', ''); - $main['goods_title'] = $this->request->post('goods_title', ''); - $main['goods_video'] = $this->request->post('goods_video', ''); - $main['goods_image'] = $this->request->post('goods_image', ''); - $main['goods_desc'] = $this->request->post('goods_desc', '', null); - $main['goods_content'] = $this->request->post('goods_content', ''); - $main['tags_id'] = ',' . join(',', isset($post['tags_id']) ? $post['tags_id'] : []) . ','; - // 产品从数据组装 - if (!empty($post['goods_spec'])) { - foreach ($post['goods_spec'] as $key => $value) { - $goods = []; - $goods['goods_spec'] = $value; - $goods['market_price'] = $post['market_price'][$key]; - $goods['selling_price'] = $post['selling_price'][$key]; - $goods['status'] = intval(!empty($post['spec_status'][$key])); - !empty($goods['status']) && $verify = true; - $list[] = $goods; - } - } else { - $this->error('没有产品规格或套餐信息哦!'); - } - !$verify && $this->error('没有设置有效的产品规格!'); - return ['main' => $main, 'list' => $list]; - } - - /** - * 删除产品 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function del() - { - if (DataService::update($this->table)) { - $this->success("产品删除成功!", ''); - } - $this->error("产品删除失败,请稍候再试!"); - } - - /** - * 产品禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function forbid() - { - if (DataService::update($this->table)) { - $this->success("产品下架成功!", ''); - } - $this->error("产品下架失败,请稍候再试!"); - } - - /** - * 产品禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function resume() - { - if (DataService::update($this->table)) { - $this->success("产品上架成功!", ''); - } - $this->error("产品上架失败,请稍候再试!"); - } - -} diff --git a/application/goods/controller/Spec.php b/application/goods/controller/Spec.php deleted file mode 100644 index ae32595df..000000000 --- a/application/goods/controller/Spec.php +++ /dev/null @@ -1,157 +0,0 @@ - - * @date 2017/03/27 14:43 - */ -class Spec extends BasicAdmin -{ - - /** - * 定义当前操作表名 - * @var string - */ - public $table = 'GoodsSpec'; - - /** - * 产品列表 - * @return array|string - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - */ - public function index() - { - $this->title = '规格管理(请勿随意修改或删除)'; - $get = $this->request->get(); - $db = Db::name($this->table)->where(['is_deleted' => '0']); - if (isset($get['spec_title']) && $get['spec_title'] !== '') { - $db->whereLike('spec_title', "%{$get['spec_title']}%"); - } - if (isset($get['date']) && $get['date'] !== '') { - list($start, $end) = explode(' - ', $get['date']); - $db->whereBetween('create_at', ["{$start} 00:00:00", "{$end} 23:59:59"]); - } - return parent::_list($db->order('sort asc,id desc')); - } - - /** - * 列表数据处理 - * @param array $data - */ - protected function _index_data_filter(&$data) - { - foreach ($data as &$vo) { - $vo['spec_param'] = json_decode($vo['spec_param'], true); - $vo['spec_param'] = is_array($vo['spec_param']) ? $vo['spec_param'] : []; - } - } - - /** - * 添加产品 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\Exception - */ - public function add() - { - $this->title = '添加规格'; - return $this->_form($this->table, 'form'); - } - - /** - * 编辑产品 - * @return array|string - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\Exception - */ - public function edit() - { - $this->title = '编辑规格'; - return $this->_form($this->table, 'form'); - } - - /** - * 表单数据处理 - * @param array $vo - */ - protected function _form_filter(&$vo) - { - if ($this->request->isPost()) { - $param = json_decode($this->request->post('spec_param', '[]', null), true); - foreach ($param as &$v) { - $count = 1; - while ($count) { - $v['value'] = trim(str_replace([' ', '_', ',', ',', ';', ';'], ' ', $v['value'], $count)); - } - } - $vo['spec_param'] = json_encode($param, JSON_UNESCAPED_UNICODE); - } - } - - /** - * 删除产品规格 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function del() - { - if (DataService::update($this->table)) { - $this->success("产品规格删除成功!", ''); - } - $this->error("产品规格删除失败,请稍候再试!"); - } - - /** - * 产品规格禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function forbid() - { - if (DataService::update($this->table)) { - $this->success("产品规格禁用成功!", ''); - } - $this->error("产品规格禁用失败,请稍候再试!"); - } - - /** - * 产品规格禁用 - * @throws \think\Exception - * @throws \think\exception\PDOException - */ - public function resume() - { - if (DataService::update($this->table)) { - $this->success("产品规格启用成功!", ''); - } - $this->error("产品规格启用失败,请稍候再试!"); - } - -} diff --git a/application/goods/service/ProductService.php b/application/goods/service/ProductService.php deleted file mode 100644 index 9ef8535f9..000000000 --- a/application/goods/service/ProductService.php +++ /dev/null @@ -1,134 +0,0 @@ - '1', 'is_deleted' => '0']; - $cateList = Db::name('GoodsCate')->where($cateWhere)->order('sort asc,id desc')->column($cateField); - // 产品品牌处理 - $brandWhere = ['status' => '1', 'is_deleted' => '0']; - $brandField = 'id,brand_logo,brand_cover,brand_title,brand_desc,brand_detail'; - $brandList = Db::name('GoodsBrand')->where($brandWhere)->order('sort asc,id desc')->column($brandField); - // 无产品列表时 - if (empty($goodsList)) { - return ['list' => $goodsList, 'cate' => $cateList, 'brand' => $brandList]; - } - // 读取产品详情列表 - $specWhere = [['status', 'eq', '1'], ['is_deleted', 'eq', '0'], ['goods_id', 'in', array_column($goodsList, 'id')]]; - $specField = 'id,goods_id,goods_spec,goods_number,market_price,selling_price,goods_stock,goods_sale'; - $specList = Db::name('GoodsList')->where($specWhere)->column($specField); - foreach ($specList as $key => $spec) { - foreach ($goodsList as $goods) { - if ($goods['id'] === $spec['goods_id']) { - $specList[$key]['goods_title'] = $goods['goods_title']; - } - } - if ($spec['goods_spec'] === 'default:default') { - $specList[$key]['goods_spec_alias'] = '默认规格'; - } else { - $specList[$key]['goods_spec_alias'] = str_replace([':', ','], [': ', ', '], $spec['goods_spec']); - } - } - // 产品数据组装 - foreach ($goodsList as $key => $vo) { - // 产品内容处理 - $goodsList[$key]['goods_content'] = $vo['goods_content']; - // 产品品牌处理 - $goodsList[$key]['brand'] = isset($brandList[$vo['brand_id']]) ? $brandList[$vo['brand_id']] : []; - // 产品分类关联 - $goodsList[$key]['cate'] = []; - if (isset($cateList[$vo['cate_id']])) { - $goodsList[$key]['cate'][] = ($tcate = $cateList[$vo['cate_id']]); - while (isset($tcate['pid']) && $tcate['pid'] > 0 && isset($cateList[$tcate['pid']])) { - $goodsList[$key]['cate'][] = ($tcate = $cateList[$tcate['pid']]); - } - $goodsList[$key]['cate'] = array_reverse($goodsList[$key]['cate']); - } - // 产品详细列表关联 - $goodsList[$key]['spec'] = []; - foreach ($specList as $spec) { - if ($vo['id'] === $spec['goods_id']) { - $goodsList[$key]['spec'][] = $spec; - } - } - } - return ['list' => $goodsList, 'cate' => $cateList, 'brand' => $brandList]; - } - - /** - * 同步更新产品库存及售出(@todo 需要重新做库存统计) - * @param int $goods_id 产品ID - * @return array - * @throws \think\Exception - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\ModelNotFoundException - * @throws \think\exception\DbException - * @throws \think\exception\PDOException - */ - public static function syncGoodsStock($goods_id) - { - // 检查产品是否需要更新库存 - $map = ['id' => $goods_id, 'is_deleted' => '0']; - if (!($goods = Db::name('Goods')->where($map)->find())) { - return ['code' => 0, 'msg' => '指定产品信息无法同步库存!']; - } - // 统计入库信息 - $stockField = 'goods_id,goods_spec,ifnull(sum(goods_stock), 0) goods_stock'; - $stockWhere = ['status' => '1', 'is_deleted' => '0', 'goods_id' => $goods_id, 'mch_id' => $mch_id]; - $stockList = (array)Db::name('GoodsStock')->field($stockField)->where($stockWhere)->group('goods_id,goods_spec')->select(); - // 统计销售信息 - $saleField = 'goods_id,goods_spec,ifnull(sum(number), 0) goods_sale'; - $saleWhere = ['status' => '1', 'is_deleted' => '0', 'goods_id' => $goods_id, 'mch_id' => $mch_id]; - $saleList = (array)Db::name('StoreOrderList')->field($saleField)->where($saleWhere)->group('goods_id,goods_spec')->select(); - // 库存置零 - list($where, $total_stock, $total_sale) = [['goods_id' => $goods_id], 0, 0]; - Db::name('GoodsList')->where($where)->update(['goods_stock' => 0, 'goods_sale' => 0, 'mch_id' => $mch_id]); - // 更新产品库存 - foreach ($stockList as $stock) { - $total_stock += intval($stock['goods_stock']); - $where = ['goods_id' => $goods_id, 'goods_spec' => $stock['goods_spec'], 'mch_id' => $mch_id]; - Db::name('GoodsList')->where($where)->update(['goods_stock' => $stock['goods_stock']]); - } - // 更新产品销量 - foreach ($saleList as $sale) { - $total_sale += intval($sale['goods_sale']); - $where = ['goods_id' => $goods_id, 'goods_spec' => $sale['goods_spec'], 'mch_id' => $mch_id]; - Db::name('GoodsList')->where($where)->update(['goods_sale' => $sale['goods_sale']]); - } - // 更新总库存及总销量 - $update = ['package_stock' => $total_stock, 'package_sale' => $total_sale, 'mch_id' => $mch_id]; - Db::name('Goods')->where(['id' => $goods_id])->update($update); - return ['code' => 1, 'msg' => '同步产品库存成功!']; - } - -} \ No newline at end of file diff --git a/application/goods/view/brand/form.html b/application/goods/view/brand/form.html deleted file mode 100644 index 9db6c4522..000000000 --- a/application/goods/view/brand/form.html +++ /dev/null @@ -1,82 +0,0 @@ -{extend name='admin@public/content'} - -{block name="content"} -
-{/block} \ No newline at end of file diff --git a/application/goods/view/brand/index.html b/application/goods/view/brand/index.html deleted file mode 100644 index 404e0a341..000000000 --- a/application/goods/view/brand/index.html +++ /dev/null @@ -1,108 +0,0 @@ -{extend name='admin@public/content'} - -{block name="button"} - - - - - - - - - -{/block} - -{block name="content"} - - - - - - - - -{/block} \ No newline at end of file diff --git a/application/goods/view/cate/form.html b/application/goods/view/cate/form.html deleted file mode 100644 index bfbac66e6..000000000 --- a/application/goods/view/cate/form.html +++ /dev/null @@ -1,39 +0,0 @@ - diff --git a/application/goods/view/cate/index.html b/application/goods/view/cate/index.html deleted file mode 100644 index de1b8fb4f..000000000 --- a/application/goods/view/cate/index.html +++ /dev/null @@ -1,83 +0,0 @@ -{extend name='admin@public/content'} - -{block name="button"} - - - - - - -{/block} - -{block name="content"} - -{/block} \ No newline at end of file diff --git a/application/goods/view/product/form.html b/application/goods/view/product/form.html deleted file mode 100644 index 382da7be2..000000000 --- a/application/goods/view/product/form.html +++ /dev/null @@ -1,357 +0,0 @@ -{extend name='admin@public/content'} - -{block name="content"} - - - -{/block} - -{block name="style"} - -{/block} \ No newline at end of file diff --git a/application/goods/view/product/index.html b/application/goods/view/product/index.html deleted file mode 100644 index 3491e8479..000000000 --- a/application/goods/view/product/index.html +++ /dev/null @@ -1,189 +0,0 @@ -{extend name='admin@public/content'} - -{block name="button"} - - - - - - - - - - - - - - - - - -{/block} - -{block name="content"} - - - - - - - -{/block} \ No newline at end of file diff --git a/application/goods/view/spec/form.html b/application/goods/view/spec/form.html deleted file mode 100644 index 9d60ff2e2..000000000 --- a/application/goods/view/spec/form.html +++ /dev/null @@ -1,200 +0,0 @@ - diff --git a/application/goods/view/spec/index.html b/application/goods/view/spec/index.html deleted file mode 100644 index ebe56255c..000000000 --- a/application/goods/view/spec/index.html +++ /dev/null @@ -1,116 +0,0 @@ -{extend name='admin@public/content'} - -{block name="button"} - - - - - - - - - -{/block} - -{block name="content"} - - - - - - - - -{/block} \ No newline at end of file