add.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.config.js");
  4. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.all.min.js");
  5. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/lang/zh-cn/zh-cn.js");
  6. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/grouppurchase.js");
  7. ?>
  8. <style>
  9. .layui_box {width:60%;margin:0 auto;margin-top:25px;}
  10. .layui-code, .layui-upload-list {margin-top:0;}
  11. hr {width:100%;margin:0 auto;}
  12. .mt {text-align:center;margin-top:15px;}
  13. .The_house {background:#FBFBFB;color:#333;}
  14. .The_house:hover {border:1px solid #a9a9a9;color:#333;}
  15. .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
  16. .xm_xcxqTc_img{margin:0;}
  17. .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
  18. .xm_pr{position:relative;}
  19. .ml{margin-left:18px}
  20. /*.layui-form-pane .layui-form-checkbox{position:absolute;bottom:0;left:100px;}*/
  21. .layui-upload-img{display: inline-block;height:120px;width: 120px;border: 1px solid #999;margin-right: 10px;position: absolute;position: relative;
  22. overflow: hidden;}
  23. .layui-upload-img img{display: block;height: 100%;width: 100%;}
  24. .close-icon{position: absolute;right:5px;top: 1px;color: #000;cursor: pointer;}
  25. </style>
  26. <form class="layui-form layui-form-pane" id="signupForm">
  27. <div class="layui_box">
  28. <div class="layui-form-item">
  29. <label class="layui-form-label">所属区域:</label>
  30. <div class="layui-input-block" style="width:32%">
  31. <select name="city" lay-filter="aihao">
  32. <option value="">请选择</option>
  33. <?php foreach ($city as $val) { ?>
  34. <option value="<?php echo $val['id']?>"><?php echo $val['city_name'] ?></option>
  35. <?php }?>
  36. </select>
  37. </div>
  38. </div>
  39. <div class="layui-form-item">
  40. <label class="layui-form-label ">所属楼盘:</label>
  41. <div class="layui-input-inline">
  42. <input type="text" id="house_name" name="house_name" lay-verify="required" disabled placeholder="请输入分类名称" autocomplete="off" class="layui-input">
  43. </div>
  44. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  45. </div>
  46. <input type="hidden" id="hiddenBox" name="hid" value="" />
  47. <div class="layui-form-item">
  48. <label class="layui-form-label">标题:</label>
  49. <div class="layui-input-inline" style="width:32%">
  50. <input type="text" name="title" placeholder="请输入标题" autocomplete="off" class="layui-input">
  51. </div>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label">关键词:</label>
  55. <div class="layui-input-inline" style="width:32%">
  56. <input type="text" name="keyword" placeholder="请输入关键词" autocomplete="off" class="layui-input">
  57. </div>
  58. </div>
  59. <div class="layui-form-item">
  60. <label class="layui-form-label">描述:</label>
  61. <!-- <div class="layui-input-inline" style="width:32%"> -->
  62. <!-- <input type="text" name="description" placeholder="请输入描述" autocomplete="off" class="layui-input"> -->
  63. <textarea cols="43" rows="5" name="description" placeholder="请输入描述">
  64. </textarea>
  65. <!-- </div> -->
  66. </div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label">项目地址:</label>
  69. <div class="layui-input-inline" style="width:32%">
  70. <input type="text" name="address" placeholder="请输入项目地址" autocomplete="off" class="layui-input">
  71. </div>
  72. </div>
  73. <div class="layui-form-item">
  74. <label class="layui-form-label">团购类型:</label>
  75. <div class="layui-input-inline" style="width:32%">
  76. <input type="text" name="type" placeholder="请输入团购类型" autocomplete="off" class="layui-input">
  77. </div>
  78. </div>
  79. <div class="layui-form-item xm_pr">
  80. <div class="layui-inline">
  81. <label class="layui-form-label">PC封面图:</label>
  82. <!-- <div class="layui-input-inline" style="width:270px;">
  83. <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
  84. </div> -->
  85. <div class="layui-inline">
  86. <div class="layui-upload">
  87. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  88. <img class="layui-upload-img layui_magnify" name="img_pc" src="" id="breviary_img" style="width:100px;height:80px;margin-left:10px;">
  89. <p id="demoText"></p>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="img_pc">选择图片</button>
  95. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  96. </div>
  97. <div class="layui-form-item xm_pr">
  98. <div class="layui-inline">
  99. <label class="layui-form-label">手机端封面图:</label>
  100. <!-- <div class="layui-input-inline" style="width:270px;">
  101. <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
  102. </div> -->
  103. <div class="layui-inline">
  104. <div class="layui-upload">
  105. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  106. <img class="layui-upload-img layui_magnify" name="img_mobile" src="" id="img_mobile_src" style="width:100px;height:80px;margin-left:10px;">
  107. <p id="demoText"></p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="img_mobile">选择图片</button>
  113. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  114. </div>
  115. <div class="layui-form-item xm_pr">
  116. <div class="layui-upload">
  117. <button type="button" class="layui-btn" id="upload_edit">多图片上传</button>
  118. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="thumb_size" value="2" title="大图"> -->
  119. <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">
  120. <span style="color:red;font-size:12px;margin-left:5px;">(水印默认选中,不添加水印去掉勾选!)</span>
  121. <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
  122. 预览图:
  123. <div class="layui-upload-list" id="demo2"></div>
  124. </blockquote>
  125. </div>
  126. </div>
  127. <div class="layui-form-item">
  128. <label class="layui-form-label">优惠说明:</label>
  129. <div class="layui-input-inline" style="width:32%">
  130. <input type="text" name="odiscount" placeholder="请输入优惠说明" autocomplete="off" class="layui-input">
  131. </div>
  132. </div>
  133. <div class="layui-form-item">
  134. <label class="layui-form-label">咨询电话:</label>
  135. <div class="layui-input-inline" style="width:32%">
  136. <input type="text" name="tel" placeholder="请输入咨询电话" autocomplete="off" class="layui-input">
  137. </div>
  138. </div>
  139. <div class="layui-form-item">
  140. <label class="layui-form-label">市场价格:</label>
  141. <div class="layui-input-inline" style="width:32%">
  142. <input type="text" name="market_pricce" placeholder="请输入市场价格" autocomplete="off" class="layui-input">
  143. </div>
  144. </div>
  145. <div class="layui-form-item">
  146. <label class="layui-form-label">团购价格:</label>
  147. <div class="layui-input-inline" style="width:32%">
  148. <input type="text" name="group_price" placeholder="请输入团购价格" autocomplete="off" class="layui-input">
  149. </div>
  150. </div>
  151. <div class="layui-form-item">
  152. <label class="layui-form-label">开始时间:</label>
  153. <div class="layui-input-inline" style="width:32%">
  154. <input type="text" name="start_date" placeholder="请输入开始时间" id="s_date" autocomplete="off" class="layui-input">
  155. </div>
  156. </div>
  157. <div class="layui-form-item">
  158. <label class="layui-form-label">结束时间:</label>
  159. <div class="layui-input-inline" style="width:32%">
  160. <input type="text" name="end_date" placeholder="请输入结束时间" id="e_date" autocomplete="off" class="layui-input">
  161. </div>
  162. </div>
  163. <div class="layui-form-item">
  164. <label class="layui-form-label">点击数:</label>
  165. <div class="layui-input-inline" style="width:32%">
  166. <input type="text" name="clicks" placeholder="请输入点击数" autocomplete="off" class="layui-input">
  167. </div>
  168. </div>
  169. <div class="layui-form-item">
  170. <label class="layui-form-label">报名人数:</label>
  171. <div class="layui-input-inline" style="width:32%">
  172. <input type="text" name="sign_num" placeholder="请输入点击数" autocomplete="off" class="layui-input">
  173. </div>
  174. </div>
  175. <div class="layui-form-item">
  176. <label class="layui-form-label">显示/隐藏</label>
  177. <div class="layui-input-block">
  178. <input type="radio" name="is_view" value="1" title="显示" checked>
  179. <input type="radio" name="is_view" value="2" title="隐藏" >
  180. </div>
  181. </div>
  182. <div class="layui-form-item">
  183. <label class="layui-form-label">排序:</label>
  184. <div class="layui-input-inline" style="width:32%">
  185. <input type="text" name="sort" placeholder="排序" autocomplete="off" class="layui-input">
  186. </div>
  187. </div>
  188. <div class="layui-form-item">
  189. <label class="layui-form-label">简介:</label>
  190. <textarea name="content" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"></textarea>
  191. </div>
  192. <div class="layui-form-item mt">
  193. <button class="layui-btn" lay-submit="" lay-filter="group_submit">提交</button>
  194. </div>
  195. </div>
  196. </form>