123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/14
- * Time: 下午3:24
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/houses.js");
- ?>
- <style>
- body {padding:15px;}
- .layui-table-view .layui-form-switch {right: 15px;}
- .layui-form-switch {height: 18px;line-height: 18px;padding: 0 4px;}
- .layui-form-switch i {top: 1px;left: 2px}
- .layui-form-onswitch i {left: 32px;}
- .layui-table-page .layui-laypage {float: right;margin-right: 1%;}
- .layui-table-view .layui-form-switch { right: 0px}
- .layui-form-label {padding:9px 0;width:auto;}
- .layui-inline {margin-top:10px;}
- .layui-elem-quote {margin-bottom:0;border-left:none;padding:10px;}
- .layui-input-block {margin-left:50px;}
- /*----------------删格化5等份----------------*/
- .layui-col-lg2-4,.layui-col-sm3,.layui-col-sm2-4,.layui-col-xs2-4{position:relative;display:block;box-sizing:border-box}
- .layui-col-xs2-4{float:left}
- .layui-col-xs2-4{width:19.9999992%}
- .layui-col-xs-offset2-4{margin-left:19.9999992%}
- @media screen and (min-width:768px){
- .layui-col-sm2-4{float:left}
- .layui-col-sm2-4{width:19.9999992%}
- .layui-col-sm-offset2-4{margin-left:19.9999992%}
- }
- @media screen and (min-width:992px){
- .layui-col-sm3{float:left}
- .layui-col-sm3{width:19.9999992%}
- .layui-col-md-offset2-4{margin-left:19.9999992%}
- }
- @media screen and (min-width:1200px){
- .layui-col-lg2-4{float:left}
- .layui-col-lg2-4{width:19.9999992%}
- .layui-col-lg-offset2-4{margin-left:19.9999992%}
- }
- </style>
- <form class="layui-form">
- <fieldset class="layui-elem-field">
- <legend>搜索信息</legend>
- <div class="layui-field-box">
- <blockquote class="quoteBox demoTable">
- <div class="xm-searchbox layui-row layui-col-space10">
- <div class="layui-col-sm4 layui-col-md3 layui-col-lg2-4">
- <div class="layui-inline">
- <div class="layui-input-inline" style="width:100px">
- <select name="input_house">
- <option value="name" selected="">楼盘名称</option>
- <option value="id">文档id</option>
- </select>
- </div>
- <div class="layui-input-inline">
- <input type="text" name="input_house_text" class="layui-input searchVal"
- placeholder="请输入搜索的内容"/>
- </div>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">区域:</label>
- <div class="layui-input-inline">
- <select name="province" lay-filter="province" class="province" lay-search="">
- <option value="">请选择省</option>
- </select>
- </div>
- <div class="layui-input-inline">
- <select name="city" lay-filter="city" lay-search="">
- <option value="">请选择市</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">时间:</label>
- <div class="layui-input-inline">
- <input type="text" name="start_time" id="date1" placeholder="开始时间" autocomplete="off"
- class="layui-input">
- </div>
- -
- <div class="layui-input-inline">
- <input type="text" name="end_time" id="date2" placeholder="结束时间" autocomplete="off"
- class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label">状态:</label>
- <div class="layui-input-inline">
- <select name="show" lay-filter="show" lay-search="">
- <option value="">请选择楼盘状态</option>
- <?php foreach (Yii::$app->params['house_view'] as $key => $val) { ?>
- <option value="<?= $key ?>"><?= $val ?></option>
- <?php } ?>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">主推楼盘:</label>
- <div class="layui-input-inline">
- <select name="is_push" lay-search="">
- <option value="">请选择楼盘主推状态</option>
- <option value="2">是</option>
- <option value="1">否</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">筛选:</label>
- <div class="layui-input-inline" style="width:145px">
- <select name="price_unit">
- <option value="" selected="">筛选楼盘</option>
- <option value="discounts">有优惠信息</option>
- <option value="discount">无优惠信息</option>
- <option value="price_unit">无价格单位</option>
- <option value="is_permit">无预售证</option>
- </select>
- </div>
- </div>
- <!-- <div class="layui-input-inline">-->
- <!-- <select name="input_sort">-->
- <!-- <option value="" selected="">排序方式</option>-->
- <!-- <option value="click" >按点击数</option>-->
- <!-- </select>-->
- <!-- </div>-->
- <div class="layui-inline">
- <a class="layui-btn layui-btn-normal " data-type="saveData">批量操作</a>
- </div>
- <div class="layui-inline">
- <a class="layui-btn search_btn " data-type="housesort">排序</a>
- </div>
- <div class="layui-inline">
- <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
- </div>
- </div>
- </div>
- </blockquote>
- </div>
- </fieldset>
- <blockquote class="layui-elem-quote quoteBox demoTable">
- <div class="layui-inline">
- <a class="layui-btn layui-btn-normal " data-type="addData">添加楼盘</a>
- </div>
- </blockquote>
- <table id="housesList" lay-filter="housesList"></table>
- <!--操作-->
- <script type="text/html" id="housesListBar">
- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="house_price">价格</a>
- <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="house_presell">预售证</a>
- </script>
- <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="house_price">价格</a>-->
- <!-- </script>-->
- </form>
- <!-- 判断数据 -->
- <script type="text/html" id="Toexamine">
- {{# if(d.is_view === 'N'){ }}
- <span style="color: #ff5722;">{{ d.is_view }}</span>
- {{# } else { }}
- {{ d.is_view }}
- {{# } }}
- </script>
- <!-- 排序 -->
- <script type="text/html" id="sortBox">
- {{# if(d.sort){ }}
- <div style="border:1px solid #E6E6E6;height:27px;line-height:27px;box-shadow:1px 1px 1px 1px rgba(224, 224, 224, 0.76);">
- {{ d.sort }}
- </div>
- {{# } }}
- </script>
|