edit修改相关内容

This commit is contained in:
admin 2024-01-19 15:39:20 +08:00
parent 39977d48c0
commit 256d6cdafa
3 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ use app\models\PickLinkForm;
class WechatController extends Controller class WechatController extends Controller
{ {
public $ids = [ public $ids = [
12,13,14,15,16,17,18,19,20,21,22,23,24,25 12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27
]; ];
public function behaviors() public function behaviors()
{ {

View File

@ -85,6 +85,7 @@ class SlideEditForm extends AdminModel
$this->model->type = $this->type; $this->model->type = $this->type;
$this->model->other_img_url = $this->other_img_url; $this->model->other_img_url = $this->other_img_url;
$this->model->text = $this->text; $this->model->text = $this->text;
$this->model->app_id = $this->app_id;
if($this->url_type == Banner::URL_TYPE_MP_PAGE){ if($this->url_type == Banner::URL_TYPE_MP_PAGE){
$this->model->page_url = $this->page_url; $this->model->page_url = $this->page_url;
} else if($this->url_type == Banner::URL_TYPE_MP){ } else if($this->url_type == Banner::URL_TYPE_MP){

View File

@ -212,6 +212,7 @@ $type = Banner::type();
<label class="layui-form-label">内容</label> <label class="layui-form-label">内容</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<textarea id="editor" style="width: 600px" name="content" rows="30" ><?=$model->text?></textarea> <textarea id="editor" style="width: 600px" name="content" rows="30" ><?=$model->text?></textarea>
<span>图片宽高宽235px高99px</span>
</div> </div>
</div> </div>
<?php endif;?> <?php endif;?>