123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?php
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.config.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.all.min.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/lang/zh-cn/zh-cn.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/grouppurchase.js");
- ?>
- <style>
- .layui_box {width:60%;margin:0 auto;margin-top:25px;}
- .layui-code, .layui-upload-list {margin-top:0;}
- hr {width:100%;margin:0 auto;}
- .mt {text-align:center;margin-top:15px;}
- .The_house {background:#FBFBFB;color:#333;}
- .The_house:hover {border:1px solid #a9a9a9;color:#333;}
- .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
- .xm_xcxqTc_img{margin:0;}
- .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
- .xm_pr{position:relative;}
- .ml{margin-left:18px}
- /*.layui-form-pane .layui-form-checkbox{position:absolute;bottom:0;left:100px;}*/
- .layui-upload-img{display: inline-block;height:120px;width: 120px;border: 1px solid #999;margin-right: 10px;position: absolute;position: relative;
- overflow: hidden;}
- .layui-upload-img img{display: block;height: 100%;width: 100%;}
- .close-icon{position: absolute;right:5px;top: 1px;color: #000;cursor: pointer;}
- </style>
- <form class="layui-form layui-form-pane" id="signupForm">
- <div class="layui_box">
- <div class="layui-form-item">
- <label class="layui-form-label">所属区域:</label>
- <div class="layui-input-block" style="width:32%">
- <select name="city" lay-filter="aihao">
- <option value="">请选择</option>
- <?php foreach ($city as $val) { ?>
- <option value="<?php echo $val['id']?>" <?php if($val['id'] == $group['city']) echo 'selected' ?>><?php echo $val['city_name'] ?></option>
- <?php }?>
- </select>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label ">所属楼盘:</label>
- <div class="layui-input-inline">
- <input type="text" id="house_name" name="house_name" value="<?php echo $post['house_name'] ?>" lay-verify="required" disabled placeholder="请输入分类名称" autocomplete="off" class="layui-input">
- </div>
- <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">标题:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="title" value="<?php echo $group['title'] ?>" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">关键词:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="keyword" value="<?php echo $group['keyword'] ?>" placeholder="请输入关键词" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">描述:</label>
- <!-- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="description" value="" placeholder="请输入描述" autocomplete="off" class="layui-input">
- </div> -->
- <textarea cols="43" rows="5" name="description" placeholder="请输入描述">
- <?php echo $group['description'] ?>
- </textarea>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">项目地址:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="address" value="<?php echo $group['address'] ?>" placeholder="请输入项目地址" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">团购类型:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="type" placeholder="请输入团购类型" value="<?php echo $group['type'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item xm_pr">
- <div class="layui-inline">
- <label class="layui-form-label">PC封面图:</label>
- <!-- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
- </div> -->
- <div class="layui-inline">
- <div class="layui-upload">
- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
- <img class="layui-upload-img layui_magnify" name="img_pc" src="<?php echo $group['img_pc'] ?>" id="breviary_img" style="width:100px;height:80px;margin-left:10px;">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- </div>
- <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="img_pc">选择图片</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
- </div>
- <div class="layui-form-item xm_pr">
- <div class="layui-inline">
- <label class="layui-form-label">手机端封面图:</label>
- <!-- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
- </div> -->
- <div class="layui-inline">
- <div class="layui-upload">
- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
- <img class="layui-upload-img layui_magnify" name="img_mobile" src="<?php echo $group['img_mobile'] ?>" id="img_mobile_src" style="width:100px;height:80px;margin-left:10px;">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- </div>
- <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="img_mobile">选择图片</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
- </div>
- <div class="layui-form-item xm_pr">
- <div class="layui-upload">
- <button type="button" class="layui-btn" id="upload_edit">多图片上传</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="thumb_size" value="2" title="大图"> -->
- <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">
- <span style="color:red;font-size:12px;margin-left:5px;">(水印默认选中,不添加水印去掉勾选!)</span>
- <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
- 预览图:
- <div class="layui-upload-list" id="demo2">
- <?php if(isset($group['many_img'])): foreach ($group['many_img'] as $key=>$val):?>
- <div class="layui-upload-img">
- <div class="delete-list" id="delimg"><i class="layui-icon fa-trash-o" ></i></div>
- <img imgname="<?=$val?>" src="<?php echo Yii::$app->params['httpImg']['host'].Yii::$app->params['httpImg']['group'].$val ?>" >
- </div>
- <?php endforeach; endif;?>
- </div>
- </blockquote>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">优惠说明:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="odiscount" value="<?php echo $group['odiscount'] ?>" placeholder="请输入优惠说明" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">咨询电话:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="tel" placeholder="请输入咨询电话" value="<?php echo $group['tel'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">市场价格:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="market_pricce" placeholder="请输入市场价格" value="<?php echo $group['market_pricce'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">团购价格:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="group_price" placeholder="请输入团购价格" value="<?php echo $group['group_price'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">开始时间:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="start_date" placeholder="请输入开始时间" value="<?php echo $group['start_date'] ?>" id="s_date" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">结束时间:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="end_date" placeholder="请输入结束时间" value="<?php echo $group['end_date'] ?>" id="e_date" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">点击数:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="clicks" placeholder="请输入点击数" value="<?php echo $group['clicks'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">报名人数:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="sign_num" placeholder="请输入点击数" value="<?php echo $group['sign_num'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">显示/隐藏</label>
- <div class="layui-input-block">
- <input type="radio" name="is_view" value="1" <?php if($group['is_view']==1) echo 'checked' ?> title="显示">
- <input type="radio" name="is_view" value="2" <?php if($group['is_view']==2) echo 'checked' ?> title="隐藏" >
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">排序:</label>
- <div class="layui-input-inline" style="width:32%">
- <input type="text" name="sort" placeholder="排序" value="<?php echo $group['sort'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">简介:</label>
- <textarea name="content" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php echo $group['content'] ?></textarea>
- </div>
- <div class="layui-form-item mt">
- <input type="hidden" name="id" value="<?php echo $group['id'] ?>">
- <input type="hidden" id="hiddenBox" name="hid" value="<?php echo $group['hid'] ?>" />
- <button class="layui-btn" lay-submit="" lay-filter="edit_group_submit">提交</button>
- </div>
- </div>
- </form>
|