lookhouseadd.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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/lookhouse/look.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. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  30. <div class="layui-form-item">
  31. <label class="layui-form-label">楼盘信息:</label>
  32. <div class="layui-input-block">
  33. <table class="layui-table" style="width:80%;text-align:center">
  34. <colgroup>
  35. <col width="50">
  36. <col width="300">
  37. <col >
  38. </colgroup>
  39. <thead>
  40. <tr>
  41. <th>删除</th>
  42. <th>楼盘名称</th>
  43. </tr>
  44. </thead>
  45. <tbody></tbody>
  46. </table>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="layui-form-item">
  51. <label class="layui-form-label">标题:</label>
  52. <div class="layui-input-inline" style="width:32%">
  53. <input type="text" name="title" placeholder="请输入标题" autocomplete="off" class="layui-input">
  54. </div>
  55. </div>
  56. <div class="layui-form-item xm_pr">
  57. <div class="layui-inline">
  58. <label class="layui-form-label">缩略图:</label>
  59. <div class="layui-inline">
  60. <div class="layui-upload">
  61. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  62. <img class="layui-upload-img layui_magnify" name="img_pc" src="" id="breviary_img" style="width:200px;height:80px;margin-left:10px;">
  63. <p id="demoText"></p>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="img_pc">选择图片</button>
  69. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  70. </div>
  71. <div class="layui-form-item">
  72. <label class="layui-form-label">团购优惠:</label>
  73. <textarea cols="43" rows="5" name="odiscount" placeholder="请输入描述"></textarea>
  74. </div>
  75. <div class="layui-form-item">
  76. <label class="layui-form-label">开始时间:</label>
  77. <div class="layui-input-inline" style="width:32%">
  78. <input type="text" name="start_at" placeholder="请输入结束时间" id="e_date" autocomplete="off" class="layui-input">
  79. </div>
  80. </div>
  81. <div class="layui-form-item">
  82. <label class="layui-form-label">截止时间:</label>
  83. <div class="layui-input-inline" style="width:32%">
  84. <input type="text" name="end_at" placeholder="请输入结束时间" id="e_date" autocomplete="off" class="layui-input">
  85. </div>
  86. </div>
  87. <div class="layui-form-item">
  88. <label class="layui-form-label">推荐理由:</label>
  89. <textarea cols="43" rows="5" name="recommend" placeholder="请输入推荐理由"></textarea>
  90. </div>
  91. <div class="layui-form-item">
  92. <label class="layui-form-label">作者:</label>
  93. <div class="layui-input-inline" style="width:32%">
  94. <input type="text" name="author" placeholder="请输入作者" value="<?= Yii::$app->session['user_info']['name'] ?>" autocomplete="off" class="layui-input">
  95. </div>
  96. </div>
  97. <div class="layui-form-item">
  98. <label class="layui-form-label">满意度:</label>
  99. <div class="layui-input-inline" style="width:32%">
  100. <input type="text" name="satisfaction" placeholder="请输入关键词" autocomplete="off" class="layui-input">
  101. </div>
  102. </div>
  103. <div class="layui-form-item">
  104. <label class="layui-form-label">报名人数:</label>
  105. <div class="layui-input-inline" style="width:32%">
  106. <input type="text" name="attend_num" placeholder="请输入关键词" autocomplete="off" class="layui-input">
  107. </div>
  108. </div>
  109. <!-- <div class="layui-form-item">-->
  110. <!-- <label class="layui-form-label">浏览人数:</label>-->
  111. <!-- <div class="layui-input-inline" style="width:32%">-->
  112. <!-- <input type="text" name="click" placeholder="请输入关键词" autocomplete="off" class="layui-input">-->
  113. <!-- </div>-->
  114. <!-- </div>-->
  115. <!---->
  116. <!-- <div class="layui-form-item">-->
  117. <!-- <label class="layui-form-label">推荐理由:</label>-->
  118. <!-- <div class="layui-input-inline" style="width:32%">-->
  119. <!-- <input type="text" name="recommend" placeholder="请输入关键词" autocomplete="off" class="layui-input">-->
  120. <!-- </div>-->
  121. <!-- </div>-->
  122. <!---->
  123. <!---->
  124. <!-- <div class="layui-form-item">-->
  125. <!-- <label class="layui-form-label">描述:</label>-->
  126. <!-- <textarea cols="43" rows="5" name="description" placeholder="请输入描述"></textarea>-->
  127. <!-- </div>-->
  128. <!-- <div class="layui-form-item">-->
  129. <!-- <label class="layui-form-label">团购类型:</label>-->
  130. <!-- <div class="layui-input-inline" style="width:32%">-->
  131. <!-- <input type="text" name="type" placeholder="请输入团购类型" autocomplete="off" class="layui-input">-->
  132. <!-- </div>-->
  133. <!-- </div>-->
  134. <div class="layui-form-item">
  135. <label class="layui-form-label">咨询电话:</label>
  136. <div class="layui-input-inline" style="width:32%">
  137. <input type="text" name="tel" placeholder="请输入咨询电话" autocomplete="off" class="layui-input">
  138. </div>
  139. </div>
  140. <!-- <div class="layui-form-item">-->
  141. <!-- <label class="layui-form-label">市场价格:</label>-->
  142. <!-- <div class="layui-input-inline" style="width:32%">-->
  143. <!-- <input type="text" name="market_pricce" placeholder="请输入市场价格" autocomplete="off" class="layui-input">-->
  144. <!-- </div>-->
  145. <!-- </div>-->
  146. <!-- <div class="layui-form-item">-->
  147. <!-- <label class="layui-form-label">团购价格:</label>-->
  148. <!-- <div class="layui-input-inline" style="width:32%">-->
  149. <!-- <input type="text" name="group_price" placeholder="请输入团购价格" autocomplete="off" class="layui-input">-->
  150. <!-- </div>-->
  151. <!-- </div>-->
  152. <!-- <div class="layui-form-item">-->
  153. <!-- <label class="layui-form-label">报名截止时间:</label>-->
  154. <!-- <div class="layui-input-inline" style="width:32%">-->
  155. <!-- <input type="text" name="start_at" placeholder="请输入开始时间" id="s_date" autocomplete="off" class="layui-input">-->
  156. <!-- </div>-->
  157. <!-- </div>-->
  158. <!-- <div class="layui-form-item">-->
  159. <!-- <label class="layui-form-label">点击数:</label>-->
  160. <!-- <div class="layui-input-inline" style="width:32%">-->
  161. <!-- <input type="text" name="clicks" placeholder="请输入点击数" autocomplete="off" class="layui-input">-->
  162. <!-- </div>-->
  163. <!-- </div>-->
  164. <!-- <div class="layui-form-item">-->
  165. <!-- <label class="layui-form-label">报名人数:</label>-->
  166. <!-- <div class="layui-input-inline" style="width:32%">-->
  167. <!-- <input type="text" name="attend_num" placeholder="请输入点击数" autocomplete="off" class="layui-input">-->
  168. <!-- </div>-->
  169. <!-- </div>-->
  170. <div class="layui-form-item">
  171. <label class="layui-form-label">推荐/热门</label>
  172. <div class="layui-input-block">
  173. <input type="radio" name="type" value="1" title="推荐" >
  174. <input type="radio" name="type" value="2" title="热门" >
  175. </div>
  176. </div>
  177. <div class="layui-form-item">
  178. <label class="layui-form-label">类目</label>
  179. <div class="layui-input-block">
  180. <input type="radio" name="is_num" value="1" title="单个" >
  181. <input type="radio" name="is_num" value="2" title="多个" >
  182. </div>
  183. </div>
  184. <!-- <div class="layui-form-item">-->
  185. <!-- <label class="layui-form-label">排序:</label>-->
  186. <!-- <div class="layui-input-inline" style="width:32%">-->
  187. <!-- <input type="text" name="sort" placeholder="排序" autocomplete="off" class="layui-input">-->
  188. <!-- </div>-->
  189. <!-- </div>-->
  190. <div class="layui-form-item">
  191. <label class="layui-form-label">团购内容:</label>
  192. <textarea name="introduce" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"></textarea>
  193. </div>
  194. <div class="layui-form-item mt">
  195. <input type="hidden" name="uid" value="<?= Yii::$app->session['user_info']['uid'] ?>">
  196. <button class="layui-btn" lay-submit="" lay-filter="look_submit">提交</button>
  197. </div>
  198. </div>
  199. </form>