123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/14
- * Time: 下午3:24
- */
- 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."/static/plug-in/jquery-3.2.1.min.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/other/syncOperate.js");
- ?>
- <style>
- .layui-upload-img {border:1px solid #E6E6E6;}
- .layui-table td {padding:9px 0;}
- .layui-input, .layui-textarea{width:100%;}
- .layui-select-title {width:45%;position: relative;}
- .layui-form-select .layui-anim-upbit{min-width:45%;}
- .layui-form-select .layui-edge{left:106px;}
- .layui-form-label {width:100px;}
- .layui-input-block {margin-left:135px;}
- .layui-form-select .layui-edge{left:85%;}
- .layui_w_upload {margin-bottom:15px}
- #watermarks {display:inline-block;vertical-align:middle;float:right;}
- .layui-tab-title .layui-this {background-color:#dcdddd;}
- .layui-tab-item.layui-show {overflow:inherit;}
- .xm_zjzx_Submit {text-align:center;}
- .layui_w_btn {display:none;} /*去除删除按钮 特别需求*/
- .layui_w_box {margin-top:20px;}
- .layui_w_addbtn {height:32px;line-height:32px;}
- .layui-table-cell {height:38px;line-height:38px;}
- /*百度编辑器样式*/
- iframe {left:0;}
- .edui-default {text-align:left;}
- </style>
- <div>
- <!-- 内容主体区域 -->
- <!-- <div style="padding: 15px;">内容主体区域</div> -->
- <form class="layui-form" action="" id="house_edit_form">
- <div class="layui-row">
- <div class="layui-col-md2"> <!-- 你的内容 2/12 -->
- <div class="layui-bg-cyan" style="padding:3px 15px;">楼盘logo</div>
- <div class="layui-upload xm_zjzx_Picture_uploading" style="padding:0 20px;">
- <div class="layui-upload-list" id="demo2" >
- <img class="layui-upload-img" style="width:100%;height:120px;" src="<?= $details['img_url'].$details['thumb'],'/same'?>">
- </div>
- </div>
- <div>
- <div style="margin-left: 20px;border:1px solid red;">
- <p><span style="color: red;">提示:</span><?= $msg['msg'] ?></p>
- <input type="hidden" name="sync" value="<?= $msg['code'] ?>">
- </div>
- </div>
- </div> <!-- 你的内容 2/12 -->
- <div class="layui-col-md10 xm_right_box"> <!-- 你的内容 10/12 -->
- <div class="layui-bg-cyan" style="padding:3px 15px;">基本内容</div>
- <div class="layui-tab" lay-filter="test1">
- <ul class="layui-tab-title">
- <li class="site-demo-active layui-this" lay-id="assign_1" >基本信息</li>
- <li class="site-demo-active" lay-id="assign_2">楼盘详情</li>
- <li class="site-demo-active" lay-id="assign_3">楼盘标签</li>
- <li class="site-demo-active" lay-id="assign_4">楼盘简介</li>
- <!-- <li class="site-demo-active" lay-id="assign_5">楼盘修改</li>-->
- </ul>
- <div class="layui-tab-content">
- <div id="assign_1" class="layui-tab-item layui-show">
- <table class="layui-table xm_bg_box" lay-skin="line" style="width:99%;border-left:0;border:0;">
- <tbody>
- <tr>
- <td style="padding:0px 0px;">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>楼盘名称:</label>
- <div class="layui-input-block ">
- <input type="text" name="name" readonly="readonly" value="<?php echo $details['name']?>" lay-verify="required" placeholder="请输入楼盘名称" autocomplete="off" class="layui-input layui_w_name" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">楼盘别名:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="alias_name" value="<?php echo $details['alias_name']?>" placeholder="请输入楼盘名称" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>楼盘拼音:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" value="<?php echo $details['pinyin']?>" name="pinyin" placeholder="请输入楼盘拼音" autocomplete="off" class="layui-input layui_w_spell" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>销售状态:</label>
- <div class="layui-input-block" >
- <input type="radio" readonly="readonly" name="state" value="<?= $details['state']?>" title="<?= $details['state']?>" checked="checked">
- <!-- <input type="text" name="state" value="--><?//= $details['state']?><!--" class="layui-input layui_w_spell" style="width:160%;">-->
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">均价:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="sale_price" value="<?= $details['sale_price']?>" placeholder="不填均价为待定" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <label class="layui-form-label">价格单位:</label>
- <div class="layui-input-block">
- <input type="radio" readonly="readonly" name="price_unit" value="<?= $details['price_unit'] ?>" title="<?= $details['price_unit'] ?>" checked="checked">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <label class="layui-form-label">价格区间:</label>
- <div class="layui-input-block">
- <input type="radio" readonly="readonly" name="price" value="<?= $details['price'] ?>" title="<?= $details['price'] ?>" checked="checked">
- </div>
- </div>
- </td>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">优惠信息:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="preferential" value="<?php echo $details['preferential']?>" placeholder="优惠信息" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:0px 0px;">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">开盘时间:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="open_time" placeholder="开盘时间" value="<?= $details['open_time']?>" id="date1" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">交房时间:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="launch_time" id="date1_2" placeholder="交房时间" value="<?= $details['launch_time']?>" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">项目地址:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="address" value="<?= $details['address']?>" placeholder="项目地址" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td >
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">售楼地址:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="sales_address" value="<?= $details['sales_address']?>" placeholder="售楼地址" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">主力户型:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="main_units" value="<?= $details['main_units'] ?>" placeholder="主力户型" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <label class="layui-form-label">区域:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="city" value="<?= $details['city_name'] ?>" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="assign_2" class="layui-tab-item">
- <table class="layui-table xm_bg_box" lay-skin="line" style="width:99%;border-left:0;border:0;">
- <tbody>
- <tr>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">开发商:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="developers" value="<?php echo $details['developers'] ?>" placeholder="开发商信息" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- <!-- <div class="layui-form-item" style="margin-bottom:-5px">-->
- <!-- <label class="layui-form-label">开发商:</label>-->
- <!-- <div class="layui-input-block" >-->
- <!-- <select name="developers" lay-filter="aihao" >-->
- <!-- <option value="" ></option>-->
- <!-- --><?php //foreach ($model['developers'] as $val){?>
- <!-- --><?php //}?>
- <!-- </select>-->
- <!-- </div>-->
- <!-- </div>-->
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">投资商:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="land_agent" value="<?php echo $details['land_agent']?>" placeholder="投资商" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">占地面积:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="planning_area" value="<?php echo $details['planning_area']?>" placeholder="占地面积" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-inline">
- <label class="layui-form-label">建筑面积:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="construction_area" value="<?php echo $details['construction_area']?>" placeholder="建筑面积" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">容积率:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="volume_rate" value="<?php echo $details['volume_rate']?>" placeholder="容积率" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-inline">
- <label class="layui-form-label">绿化率:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="greening_rate" value="<?php echo $details['greening_rate']?>" placeholder="绿化率" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">物业公司:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="property_company" value="<?php echo $details['property_company']?>" placeholder="物业公司" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">物业费:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="property_costs" value="<?php echo $details['property_costs']?>" placeholder="物业费" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">总栋数:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="total_building" value="<?php echo $details['total_building']?>" placeholder="总栋数" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">总户数:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="planning_households" value="<?php echo $details['planning_households']?>" placeholder="总户数" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">楼层状况:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="floor_condition" value="<?php echo $details['floor_condition']?>" placeholder="楼层状况" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">车位数量:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="parking_num" value="<?php echo $details['parking_num']?>" placeholder="车位数量" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="layui-inline">
- <label class="layui-form-label">公交路线:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="bus_route" placeholder="公交路线" value="<?php echo $details['bus_route']?>" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </td>
- <!-- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">许可证号:</label>
- <div class="layui-input-block">
- <input type="text" name="sale_permit" value="<?php echo $details['sale_permit']?>" placeholder="许可证号" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td> -->
- <td><div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">产权年限:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="house_cx" value="<?php echo $details['house_cx']?>" placeholder="产权年限" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
-
- <td style="padding:10px 0px">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">经纬度:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" id="jwd" name="longitude_latitude" value="<?php echo $details['longitude_latitude']?>" placeholder="获取经纬度" autocomplete="off" class="layui-input" style="width:120%;">
- </div>
- </div>
- </div>
- </td>
- <td>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">VR看房:</label>
- <div class="layui-input-block">
- <input type="text" readonly="readonly" name="panorama" value="<?php echo $details['panorama']?>" placeholder="VR全景看房" autocomplete="off" class="layui-input" style="width:160%;">
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="">
- <label class="layui-form-label">楼盘特点:</label>
- <div class="layui-input-inline" style="width:75%">
- <textarea rows="15" readonly="readonly" name="features" placeholder="请输入楼盘特点" class="layui-textarea"><?php echo $details['features'] ?></textarea>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="assign_3" class="layui-tab-item">
- <table class="layui-table xm_bg_box" lay-skin="line" style="width:99%;border-left:0;border:0;">
- <tbody>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">物业类型:</label>
- <div class="layui-input-block" style="padding-bottom:8px;">
- <?php
- foreach ($details['type'] as $val)
- {
- ?>
- <input readonly="readonly" type="checkbox" name="type[]" value="<?= $val ?>"
- <?php echo 'checked'?>
- lay-skin="primary" title="<?= $val?>">
- <?php
- }
- ?>
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">特色主题:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <?php
- if(!empty($details['characteristic'])){
- foreach ($details['characteristic'] as $val){?>
- <input readonly="readonly" type="checkbox" name="characteristic[]" value="<?= $val ?>"
- <?php echo 'checked' ?>
- lay-skin="primary" title="<?= $val ?>">
- <?php
- }
- }
- ?>
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">建筑类别:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <?php foreach ($details['architecture_type'] as $val){?>
- <input readonly="readonly" type="checkbox" name="architecture_type[]" <?php echo 'checked' ?> value="<?php echo $val?>" lay-skin="primary" title="<?php echo $val?>">
- <?php }?>
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">楼盘标签:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <?php foreach ($details['property_tag'] as $val){?>
- <input readonly="readonly" type="checkbox" name="property_tag[]" <?php echo 'checked' ?> value="<?php echo $val?>" lay-skin="primary" title="<?php echo $val?>">
- <?php }?>
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">装修状况:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <input type="radio" name="fit" value="<?php echo $details['fit'] ?>" lay-skin="primary" title="<?php echo $details['fit'] ?>" checked="checked" >
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">热门楼盘:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <input type="radio" name="hot" value="<?= $details['hot'] ?>" title="<?= $details['hot'] ?>" checked="checked" >
- </div>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label">主推楼盘:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <input type="radio" name="is_push" value="<?= $details['is_push'] ?>" title="<?= $details['is_push'] ?>" checked="checked" >
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="assign_4" class="layui-tab-item">
- <div class="layui-bg-gray" style="width:97%;padding:8px 15px;">楼盘简介:</div>
- <div class="editor_box layui-form-item" style="width:99%">
- <textarea name="info" readonly="readonly" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"><?php echo $details['info']?></textarea>
- </div>
- </div>
- </div>
- </div>
- <div class="layui-form-item xm_zjzx_Submit">
- <input type="hidden" name="id" value="<?php echo $details['id']?>" id="editimgId">
- <input type="hidden" name="uniqid" value="<?php echo $details['uniqid']?>" >
- <input type="hidden" name="thumb" value="<?= $details['thumb'] ?>">
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="sync_edit" >提交</button>
- </div>
- </div> <!-- 你的内容 9/12 -->
- </div>
- </form>
- </div> <!-- 内容主体区域 -->
|