diff --git a/src/addon/personnel/shop/controller/Enterprise.php b/src/addon/personnel/shop/controller/Enterprise.php index 8e423200f..c7c34641c 100644 --- a/src/addon/personnel/shop/controller/Enterprise.php +++ b/src/addon/personnel/shop/controller/Enterprise.php @@ -226,7 +226,7 @@ class Enterprise extends BaseShop ]; return $model->addChannel($data); } else { - return $this->fetch('enterprise/channel/add'); + return $this->fetch('enterprise/channel/edit'); } } @@ -257,6 +257,7 @@ class Enterprise extends BaseShop $this->assign('channel_id', $channel_id); $article_info = $model->getChannelInfo([ [ 'channel_id', '=', $channel_id ] ]); $this->assign('info', $article_info[ 'data' ]); + // 返回统一的 add.html 模板,前端会根据 channel_id 判断是否为编辑模式 return $this->fetch('enterprise/channel/edit'); } } diff --git a/src/addon/personnel/shop/view/enterprise/channel/add.html b/src/addon/personnel/shop/view/enterprise/channel/add.html deleted file mode 100644 index 56ba7967e..000000000 --- a/src/addon/personnel/shop/view/enterprise/channel/add.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - -
- - -
- -
- -
-
- -
- -
- -
-
- -
- -
- - -
-
- -
- -
- -
-
- -
- -
-
-
-
- -

点击上传

-
-
- - x -
-
-
推荐使用 200x200 像素的图片
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- - -
-
- -
- -
- -
-
- -
- -
-
-
-
- -

点击上传

-
-
- - x -
-
-
推荐使用 750x420 像素的图片
-
- -
- -
- -
-
数值越小排序越靠前
-
- -
- -
- - -
-
- -
- - -
-
- - diff --git a/src/addon/personnel/shop/view/enterprise/channel/edit.html b/src/addon/personnel/shop/view/enterprise/channel/edit.html index 0d5d3c543..ec92a1292 100644 --- a/src/addon/personnel/shop/view/enterprise/channel/edit.html +++ b/src/addon/personnel/shop/view/enterprise/channel/edit.html @@ -58,7 +58,7 @@ x -
推荐使用 200x200 像素的图片
+
推荐使用 200x200 像素的图片
@@ -69,14 +69,14 @@
- +
- +
@@ -84,14 +84,14 @@
- +
-
- +
+
@@ -127,6 +127,13 @@
+ + +