index.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/14
  6. * Time: 下午3:24
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/houses.js");
  10. ?>
  11. <style>
  12. body {padding:15px;}
  13. .layui-table-view .layui-form-switch {right: 15px;}
  14. .layui-form-switch {height: 18px;line-height: 18px;padding: 0 4px;}
  15. .layui-form-switch i {top: 1px;left: 2px}
  16. .layui-form-onswitch i {left: 32px;}
  17. .layui-table-page .layui-laypage {float: right;margin-right: 1%;}
  18. .layui-table-view .layui-form-switch { right: 0px}
  19. .layui-form-label {padding:9px 0;width:auto;}
  20. .layui-inline {margin-top:10px;}
  21. .layui-elem-quote {margin-bottom:0;border-left:none;padding:10px;}
  22. .layui-input-block {margin-left:50px;}
  23. /*----------------删格化5等份----------------*/
  24. .layui-col-lg2-4,.layui-col-sm3,.layui-col-sm2-4,.layui-col-xs2-4{position:relative;display:block;box-sizing:border-box}
  25. .layui-col-xs2-4{float:left}
  26. .layui-col-xs2-4{width:19.9999992%}
  27. .layui-col-xs-offset2-4{margin-left:19.9999992%}
  28. @media screen and (min-width:768px){
  29. .layui-col-sm2-4{float:left}
  30. .layui-col-sm2-4{width:19.9999992%}
  31. .layui-col-sm-offset2-4{margin-left:19.9999992%}
  32. }
  33. @media screen and (min-width:992px){
  34. .layui-col-sm3{float:left}
  35. .layui-col-sm3{width:19.9999992%}
  36. .layui-col-md-offset2-4{margin-left:19.9999992%}
  37. }
  38. @media screen and (min-width:1200px){
  39. .layui-col-lg2-4{float:left}
  40. .layui-col-lg2-4{width:19.9999992%}
  41. .layui-col-lg-offset2-4{margin-left:19.9999992%}
  42. }
  43. </style>
  44. <form class="layui-form">
  45. <fieldset class="layui-elem-field">
  46. <legend>搜索信息</legend>
  47. <div class="layui-field-box">
  48. <blockquote class="quoteBox demoTable">
  49. <div class="xm-searchbox layui-row layui-col-space10">
  50. <div class="layui-col-sm4 layui-col-md3 layui-col-lg2-4">
  51. <div class="layui-inline">
  52. <div class="layui-input-inline" style="width:100px">
  53. <select name="input_house">
  54. <option value="name" selected="">楼盘名称</option>
  55. <option value="id">文档id</option>
  56. </select>
  57. </div>
  58. <div class="layui-input-inline">
  59. <input type="text" name="input_house_text" class="layui-input searchVal"
  60. placeholder="请输入搜索的内容"/>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="layui-inline">
  65. <label class="layui-form-label">区域:</label>
  66. <div class="layui-input-inline">
  67. <select name="province" lay-filter="province" class="province" lay-search="">
  68. <option value="">请选择省</option>
  69. </select>
  70. </div>
  71. <div class="layui-input-inline">
  72. <select name="city" lay-filter="city" lay-search="">
  73. <option value="">请选择市</option>
  74. </select>
  75. </div>
  76. </div>
  77. <div class="layui-inline">
  78. <label class="layui-form-label">时间:</label>
  79. <div class="layui-input-inline">
  80. <input type="text" name="start_time" id="date1" placeholder="开始时间" autocomplete="off"
  81. class="layui-input">
  82. </div>
  83. -
  84. <div class="layui-input-inline">
  85. <input type="text" name="end_time" id="date2" placeholder="结束时间" autocomplete="off"
  86. class="layui-input">
  87. </div>
  88. </div>
  89. <div class="layui-form-item">
  90. <div class="layui-inline">
  91. <label class="layui-form-label">状态:</label>
  92. <div class="layui-input-inline">
  93. <select name="show" lay-filter="show" lay-search="">
  94. <option value="">请选择楼盘状态</option>
  95. <?php foreach (Yii::$app->params['house_view'] as $key => $val) { ?>
  96. <option value="<?= $key ?>"><?= $val ?></option>
  97. <?php } ?>
  98. </select>
  99. </div>
  100. </div>
  101. <div class="layui-inline">
  102. <label class="layui-form-label">主推楼盘:</label>
  103. <div class="layui-input-inline">
  104. <select name="is_push" lay-search="">
  105. <option value="">请选择楼盘主推状态</option>
  106. <option value="2">是</option>
  107. <option value="1">否</option>
  108. </select>
  109. </div>
  110. </div>
  111. <div class="layui-inline">
  112. <label class="layui-form-label">筛选:</label>
  113. <div class="layui-input-inline" style="width:145px">
  114. <select name="price_unit">
  115. <option value="" selected="">筛选楼盘</option>
  116. <option value="discounts">有优惠信息</option>
  117. <option value="discount">无优惠信息</option>
  118. <option value="price_unit">无价格单位</option>
  119. <option value="is_permit">无预售证</option>
  120. </select>
  121. </div>
  122. </div>
  123. <!-- <div class="layui-input-inline">-->
  124. <!-- <select name="input_sort">-->
  125. <!-- <option value="" selected="">排序方式</option>-->
  126. <!-- <option value="click" >按点击数</option>-->
  127. <!-- </select>-->
  128. <!-- </div>-->
  129. <div class="layui-inline">
  130. <a class="layui-btn layui-btn-normal " data-type="saveData">批量操作</a>
  131. </div>
  132. <div class="layui-inline">
  133. <a class="layui-btn search_btn " data-type="housesort">排序</a>
  134. </div>
  135. <div class="layui-inline">
  136. <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  137. </div>
  138. </div>
  139. </div>
  140. </blockquote>
  141. </div>
  142. </fieldset>
  143. <blockquote class="layui-elem-quote quoteBox demoTable">
  144. <div class="layui-inline">
  145. <a class="layui-btn layui-btn-normal " data-type="addData">添加楼盘</a>
  146. </div>
  147. </blockquote>
  148. <table id="housesList" lay-filter="housesList"></table>
  149. <!--操作-->
  150. <script type="text/html" id="housesListBar">
  151. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  152. <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="house_price">价格</a>
  153. <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="house_presell">预售证</a>
  154. </script>
  155. <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="house_price">价格</a>-->
  156. <!-- </script>-->
  157. </form>
  158. <!-- 判断数据 -->
  159. <script type="text/html" id="Toexamine">
  160. {{# if(d.is_view === 'N'){ }}
  161. <span style="color: #ff5722;">{{ d.is_view }}</span>
  162. {{# } else { }}
  163. {{ d.is_view }}
  164. {{# } }}
  165. </script>
  166. <!-- 排序 -->
  167. <script type="text/html" id="sortBox">
  168. {{# if(d.sort){ }}
  169. <div style="border:1px solid #E6E6E6;height:27px;line-height:27px;box-shadow:1px 1px 1px 1px rgba(224, 224, 224, 0.76);">
  170. {{ d.sort }}
  171. </div>
  172. {{# } }}
  173. </script>