edit.php 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214
  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 . "/static/plug-in/ueditor/1.4.3/ueditor.config.js");
  10. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/plug-in/ueditor/1.4.3/ueditor.all.min.js");
  11. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/plug-in/ueditor/1.4.3/lang/zh-cn/zh-cn.js");
  12. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/plug-in/jquery-3.2.1.min.js");
  13. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/pinyinjs/dict/pinyin_dict_notone.js");
  14. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/pinyinjs/dict/pinyin_dict_withtone.js");
  15. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/pinyinjs/pinyinUtil.js");
  16. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/pinyinjs/simple-input-method/simple-input-method.js");
  17. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/houses.js");
  18. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/houses_select_city.js");
  19. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/js/lp_map.js");
  20. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/static/js/tuodong.js");
  21. AppAsset::addCss($this, Yii::$app->request->baseUrl . "/static/css/common.css")
  22. ?>
  23. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=lIXbW84tKu6oNCj0bbgTnau7"></script>
  24. <script type="text/javascript" src="http://api.map.baidu.com/library/CityList/1.4/src/CityList_min.js"></script>
  25. <style>
  26. .layui-upload-img {
  27. border: 1px solid #E6E6E6;
  28. }
  29. .layui-table td {
  30. padding: 9px 0;
  31. }
  32. .layui-input, .layui-textarea {
  33. width: 100%;
  34. }
  35. .layui-select-title {
  36. width: 170px;
  37. position: relative;
  38. }
  39. .layui-form-select .layui-anim-upbit {
  40. min-width: 45%;
  41. }
  42. .layui-form-select .layui-edge {
  43. left: 106px;
  44. }
  45. .layui-form-label {
  46. width: 100px;
  47. }
  48. .layui-input-block {
  49. margin-left: 135px;
  50. }
  51. .layui-form-select .layui-edge {
  52. left: 85%;
  53. }
  54. .layui_w_upload {
  55. margin-bottom: 15px
  56. }
  57. #watermarks {
  58. display: inline-block;
  59. vertical-align: middle;
  60. float: right;
  61. }
  62. .layui-tab-title .layui-this {
  63. background-color: #dcdddd;
  64. }
  65. .layui-tab-item.layui-show {
  66. overflow: inherit;
  67. }
  68. .xm_zjzx_Submit {
  69. text-align: center;
  70. }
  71. .layui_w_btn {
  72. display: none;
  73. }
  74. /*去除删除按钮 特别需求*/
  75. .layui_w_box {
  76. margin-top: 20px;
  77. }
  78. .layui_w_addbtn {
  79. height: 32px;
  80. line-height: 32px;
  81. }
  82. .layui-table-cell {
  83. height: 38px;
  84. line-height: 38px;
  85. }
  86. /*地图标注*/
  87. #biaozhu {
  88. cursor: pointer;
  89. }
  90. #jwd input {
  91. height: 30px;
  92. line-height: 30px;
  93. text-align: center;
  94. border: 1px #ddd solid;
  95. display: inline-block;
  96. width: 147px;
  97. }
  98. #drag {
  99. color: #fff;
  100. background: #009688;
  101. position: absolute;
  102. top: 0px;
  103. left: 0;
  104. width: 710px;
  105. height: 500px;
  106. border: 1px solid #444;
  107. border-radius: 5px;
  108. box-shadow: 0 1px 3px 2px #666;
  109. display: none;
  110. z-index: 1000;
  111. }
  112. #drag .title {
  113. position: relative;
  114. height: 32px;
  115. margin: 5px;
  116. top: 0;
  117. left: 0
  118. }
  119. #drag .title h2 {
  120. font-size: 14px;
  121. height: 27px;
  122. line-height: 24px;
  123. border-bottom: 1px solid #A1B4B0;
  124. }
  125. #drag .title div {
  126. position: absolute;
  127. height: 19px;
  128. top: 6px;
  129. right: 3px;
  130. }
  131. #drag .title a {
  132. float: left;
  133. width: 21px;
  134. height: 19px;
  135. display: block;
  136. margin-left: 5px;
  137. background: url(../static/images/tool3.png) no-repeat;
  138. border-radius: 4px;
  139. }
  140. #drag .title a.max {
  141. background-position: -60px 0px;
  142. }
  143. #drag .title a.revert {
  144. background-position: -149px 0;
  145. display: none;
  146. }
  147. #drag .title a.revert:hover {
  148. background-position: -149px -29px;
  149. }
  150. #drag .title a.close {
  151. background-position: -89px -29px;
  152. opacity: 1;
  153. }
  154. #drag .content {
  155. overflow: auto;
  156. margin: 0 5px;
  157. }
  158. #f_container {
  159. position: absolute;
  160. top: 9px;
  161. left: 10px;
  162. z-index: 1000;
  163. }
  164. #container {
  165. width: 290px;
  166. overflow: hidden;
  167. height: 24px;
  168. }
  169. #container select {
  170. height: 23px;
  171. border: none
  172. }
  173. #content .btn {
  174. width: 98px;
  175. height: 23px;
  176. font-size: 13px;
  177. margin-right: 16px;
  178. cursor: pointer;
  179. background: #fff;
  180. border: none;
  181. }
  182. #content .btn:hover {
  183. color: red;
  184. }
  185. #allmap {
  186. height: 415px;
  187. width: 710px;
  188. }
  189. #cha {
  190. width: 248px;
  191. position: absolute;
  192. right: 55px;
  193. top: 10px;
  194. }
  195. #cha #btn {
  196. background: #fff;
  197. border: none;
  198. height: 20px;
  199. margin-right: 10px;
  200. cursor: pointer;
  201. padding: 0 14px
  202. }
  203. #cha #btn:hover {
  204. color: red;
  205. }
  206. #r-result {
  207. width: 305px;
  208. float: left;
  209. }
  210. #r-result input {
  211. border: none;
  212. width: 90px;
  213. height: 20px;
  214. padding: 0 5px;
  215. }
  216. .tangram-suggestion-main {
  217. z-index: 1001;
  218. }
  219. #cityName {
  220. height: 20px;
  221. padding: 0 5px;
  222. border: none;
  223. width: 120px;
  224. margin-right: 7px;
  225. }
  226. #show_map {
  227. width: 300px;
  228. height: 250px;
  229. }
  230. .xm_MapObtain_button {
  231. right: -15%;
  232. }
  233. /*百度编辑器样式*/
  234. iframe {
  235. left: 0;
  236. }
  237. .edui-default {
  238. text-align: left;
  239. }
  240. </style>
  241. <!--地图-->
  242. <div id="drag">
  243. <div class="title">
  244. <div>
  245. <a class="max" href="javascript:;" title="最大化"></a>
  246. <a class="revert" href="javascript:;" title="还原"></a>
  247. <a class="close" href="javascript:;" title="关闭"></a>
  248. </div>
  249. </div>
  250. <div id="content">
  251. <div id="cha">
  252. 地址 : <input id="cityName" type="text" onkeydown="KeyDown();"/>
  253. <input type="button" value="查询" onclick="theLocation()" id="btn"/>
  254. </div>
  255. <div id="allmap"></div>
  256. <div style="margin-top:10px;text-align: right">
  257. <div id="r-result">
  258. 经度 : <input type="text" id="jd"/> 纬度 : <input type="text" id="wd"/>
  259. </div>
  260. <input type="hidden" id="lat"><input type="hidden" id="lng">
  261. <input type="button" onclick="showMap();" class="btn" value="保存">
  262. <input type="button" onclick="dhide()" class="btn" value="取消">
  263. </div>
  264. <div id="f_container">
  265. <div id="container"></div>
  266. </div>
  267. </div>
  268. </div>
  269. <div>
  270. <!-- 内容主体区域 -->
  271. <!-- <div style="padding: 15px;">内容主体区域</div> -->
  272. <form class="layui-form" action="" id="house_edit_form">
  273. <div class="layui-row">
  274. <div class="layui-col-md2"> <!-- 你的内容 2/12 -->
  275. <div class="layui-bg-cyan" style="padding:3px 15px;">楼盘logo</div>
  276. <div class="layui-upload xm_zjzx_Picture_uploading" style="padding:0 20px;">
  277. <div class="layui-upload-list">
  278. <img class="layui-upload-img" id="demo1" style="width:100%;height:120px;"
  279. src="<?php echo $details['thumb'] ?>">
  280. <p id="demoText"></p>
  281. </div>
  282. <div class="layui_w_md3">
  283. <!-- <button type="button" class="layui-btn layui_w_upload" id="test1">上传图片</button>-->
  284. <input type="checkbox" name="watermark" value="1" title="水印">
  285. </div><br/>
  286. <!-- <div>
  287. <label class="layui-ww-label">视频地址:</label>
  288. <input type="text" name="title" required lay-verify="required" placeholder="视频地址" autocomplete="off" class="layui-input" style="margin-top:10px">
  289. </div> -->
  290. </div>
  291. <div class="layui-bg-cyan" style="padding:3px 15px;">视频封面</div>
  292. <div class="layui-upload xm_zjzx_Picture_uploading" style="padding:0 20px;">
  293. <div class="layui-upload-list">
  294. <img class="layui-upload-img" id="demo2" style="width:100%;height:120px;" src="<?php echo $details['video_img'] ?>">
  295. <p id="demoText"></p>
  296. </div>
  297. <div class="layui_w_md3">
  298. </div>
  299. </div>
  300. <div class="layui-bg-cyan" style="padding:3px 15px;">VR封面</div>
  301. <div class="layui-upload xm_zjzx_Picture_uploading" style="padding:0 20px;">
  302. <div class="layui-upload-list">
  303. <img class="layui-upload-img" id="demo3" style="width:100%;height:120px;" src="<?php echo $details['panorama_img'] ?>">
  304. <p id="demoText"></p>
  305. </div>
  306. <div class="layui_w_md3">
  307. </div>
  308. </div>
  309. </div> <!-- 你的内容 2/12 -->
  310. <div class="layui-col-md10 xm_right_box"> <!-- 你的内容 10/12 -->
  311. <div class="layui-bg-cyan" style="padding:3px 15px;">基本内容</div>
  312. <div class="layui-tab" lay-filter="test1">
  313. <ul class="layui-tab-title">
  314. <li class="site-demo-active layui-this" lay-id="assign_1">基本信息</li>
  315. <li class="site-demo-active" lay-id="assign_2">楼盘详情</li>
  316. <li class="site-demo-active" lay-id="assign_3">楼盘标签</li>
  317. <!-- <li class="site-demo-active" lay-id="assign_5">楼盘评测</li>-->
  318. <li class="site-demo-active" lay-id="assign_4">楼盘简介</li>
  319. </ul>
  320. <div class="layui-tab-content">
  321. <div id="assign_1" class="layui-tab-item layui-show">
  322. <table class="layui-table xm_bg_box" lay-skin="line"
  323. style="width:99%;border-left:0;border:0;">
  324. <tbody>
  325. <tr>
  326. <td style="padding:0px 0px;">
  327. <div class="layui-form-item" style="margin-bottom:-5px">
  328. <div class="layui-inline">
  329. <label class="layui-form-label"><span
  330. style="color:red">*</span>楼盘名称:</label>
  331. <div class="layui-input-block ">
  332. <input type="text" name="name" required
  333. value="<?php echo $details['name'] ?>" lay-verify="required"
  334. placeholder="请输入楼盘名称" autocomplete="off"
  335. class="layui-input layui_w_name" style="width:160%;">
  336. </div>
  337. </div>
  338. </div>
  339. </td>
  340. <td>
  341. <div class="layui-form-item" style="margin-bottom:-5px">
  342. <div class="layui-inline">
  343. <label class="layui-form-label">楼盘别名:</label>
  344. <div class="layui-input-block">
  345. <input type="text" name="alias_name"
  346. value="<?php echo $details['alias_name'] ?>"
  347. placeholder="请输入楼盘名称" autocomplete="off" class="layui-input"
  348. style="width:160%;">
  349. </div>
  350. </div>
  351. </div>
  352. </td>
  353. </tr>
  354. <tr>
  355. <td style="padding:10px 0px">
  356. <div class="layui-form-item" style="margin-bottom:-5px">
  357. <div class="layui-inline">
  358. <label class="layui-form-label"><span
  359. style="color:red">*</span>楼盘拼音:</label>
  360. <div class="layui-input-block">
  361. <input type="text" value="<?php echo $details['pinyin'] ?>"
  362. name="pinyin" placeholder="请输入楼盘拼音" autocomplete="off"
  363. class="layui-input layui_w_spell" style="width:160%;">
  364. </div>
  365. </div>
  366. </div>
  367. </td>
  368. <td>
  369. <div class="layui-form-item" style="margin-bottom:-5px">
  370. <div class="layui-inline">
  371. <label class="layui-form-label"><span
  372. style="color:red">*</span>销售状态:</label>
  373. <div class="layui-input-block">
  374. <?php foreach (Yii::$app->params['HouseSalesStatus'] as $k => $v) { ?>
  375. <input type="radio" name="state" value="<?php echo $k ?>"
  376. title="<?php echo $v ?>" <?php if ($k == $details['state']) echo 'checked' ?>>
  377. <?php } ?>
  378. </div>
  379. </div>
  380. </div>
  381. </td>
  382. </tr>
  383. <tr>
  384. <td style="padding:10px 0px">
  385. <div class="layui-form-item" style="margin-bottom:-5px">
  386. <div class="layui-inline">
  387. <label class="layui-form-label">均价:</label>
  388. <div class="layui-input-block">
  389. <input type="text" name="sale_price"
  390. value="<?php echo $details['sale_price'] ?>"
  391. placeholder="不填均价为待定" autocomplete="off" class="layui-input"
  392. style="width:160%;">
  393. </div>
  394. </div>
  395. </div>
  396. </td>
  397. <td>
  398. <div class="layui-form-item" style="margin-bottom:-5px">
  399. <label class="layui-form-label">价格单位:</label>
  400. <div class="layui-input-block">
  401. <select name="price_unit" lay-filter="aihao">
  402. <option value="" selected=""></option>
  403. <?php foreach (Yii::$app->params['HousePriceUnit'] as $val) { ?>
  404. <option value="<?php echo $val ?>" <?php if ($details['price_unit'] == $val) echo 'selected' ?> ><?php echo $val ?></option>
  405. <?php } ?>
  406. <!-- <option value="元/㎡起" -->
  407. <?php //if($details['price_unit'] == '元/㎡起') echo 'selected'?><!-- >元/㎡</option>-->
  408. <!-- <option value="万/套" -->
  409. <?php //if($details['price_unit'] == '万/套') echo 'selected'?><!-- >万/套</option>-->
  410. <!-- <option value="万/套起" -->
  411. <?php //if($details['price_unit'] == '万/套起') echo 'selected'?><!-- >万/套</option>-->
  412. </select>
  413. </div>
  414. </div>
  415. </td>
  416. </tr>
  417. <tr>
  418. <td>
  419. <div class="layui-form-item" style="margin-bottom:-5px">
  420. <label class="layui-form-label">价格区间:</label>
  421. <div class="layui-input-block">
  422. <select name="price" lay-filter="aihao">
  423. <option value="">请选择</option>
  424. <?php foreach ($model['priceList'] as $val) { ?>
  425. <option value="<?php echo $val['price'] ?>" <?php if ($details['price'] == $val['price']) echo 'selected' ?> ><?php echo $val['price'] ?></option>
  426. <?php } ?>
  427. </select>
  428. </div>
  429. </div>
  430. </td>
  431. <td style="padding:10px 0px">
  432. <div class="layui-form-item" style="margin-bottom:-5px">
  433. <div class="layui-inline">
  434. <label class="layui-form-label">优惠信息:</label>
  435. <div class="layui-input-block">
  436. <input type="text" name="preferential"
  437. value="<?php echo $details['preferential'] ?>"
  438. placeholder="优惠信息" autocomplete="off" class="layui-input"
  439. style="width:160%;">
  440. </div>
  441. </div>
  442. </div>
  443. </td>
  444. </tr>
  445. <tr>
  446. <td style="padding:0px 0px;">
  447. <div class="layui-form-item" style="margin-bottom:-5px">
  448. <div class="layui-inline">
  449. <label class="layui-form-label">开盘时间:</label>
  450. <div class="layui-input-block">
  451. <input type="text" name="open_time" placeholder="开盘时间"
  452. value="<?php echo $details['open_time'] ?>" id="date1"
  453. autocomplete="off" class="layui-input" style="width:160%;">
  454. </div>
  455. </div>
  456. </div>
  457. </td>
  458. <td>
  459. <div class="layui-form-item" style="margin-bottom:-5px">
  460. <div class="layui-inline">
  461. <label class="layui-form-label">交房时间:</label>
  462. <div class="layui-input-block">
  463. <input type="text" name="launch_time" id="date1_2"
  464. placeholder="交房时间"
  465. value="<?php echo $details['launch_time'] ?>"
  466. autocomplete="off" class="layui-input" style="width:160%;">
  467. </div>
  468. </div>
  469. </div>
  470. </td>
  471. </tr>
  472. <tr>
  473. <td style="padding:10px 0px">
  474. <div class="layui-form-item" style="margin-bottom:-5px">
  475. <div class="layui-inline">
  476. <label class="layui-form-label">项目地址:</label>
  477. <div class="layui-input-block">
  478. <input type="text" name="address"
  479. value="<?php echo $details['address'] ?>" placeholder="项目地址"
  480. autocomplete="off" class="layui-input" style="width:160%;">
  481. </div>
  482. </div>
  483. </div>
  484. </td>
  485. <td>
  486. <div class="layui-form-item" style="margin-bottom:-5px">
  487. <div class="layui-inline">
  488. <label class="layui-form-label">售楼地址:</label>
  489. <div class="layui-input-block">
  490. <input type="text" name="sales_address"
  491. value="<?php echo $details['sales_address'] ?>"
  492. placeholder="售楼地址" autocomplete="off" class="layui-input"
  493. style="width:160%;">
  494. </div>
  495. </div>
  496. </div>
  497. </td>
  498. </tr>
  499. <tr>
  500. <td>
  501. <div class="layui-form-item" style="margin-bottom:-5px">
  502. <div class="layui-inline">
  503. <label class="layui-form-label">主力户型:</label>
  504. <div class="layui-input-block">
  505. <input type="text" name="main_units"
  506. value="<?php echo $details['main_units'] ?>"
  507. placeholder="主力户型" autocomplete="off" class="layui-input"
  508. style="width:160%;">
  509. </div>
  510. </div>
  511. </div>
  512. </td>
  513. <td>
  514. <div class="layui-form-item" style="margin-bottom:-5px">
  515. <label class="layui-form-label">区域:</label>
  516. <!-- <span>省</?= ?span>-->
  517. <div class="layui-inline">
  518. <input type="hidden" name="select_province"
  519. value="<?= $details['province'] ?>">
  520. <select name="province" lay-search lay-filter="provinceone"
  521. style="width:100%">
  522. </select>
  523. </div>
  524. <!-- <span>市</span>-->
  525. <div class="layui-inline">
  526. <input type="hidden" name="select_city" value="<?= $details['city'] ?>">
  527. <select name="city" lay-search lay-filter="cityone">
  528. </select>
  529. </div>
  530. <!-- <span>区</span>-->
  531. <div class="layui-inline">
  532. <input type="hidden" name="select_area" value="<?= $details['area'] ?>">
  533. <select name="area" lay-search lay-filter="areaone">
  534. </select>
  535. </div>
  536. </div>
  537. <!-- <div class="layui-form-item" style="margin-bottom:-5px">-->
  538. <!-- <label class="layui-form-label">区域:</label>-->
  539. <!-- <div class="layui-input-block">-->
  540. <!-- <select name="city" lay-filter="aihao" lay-search>-->
  541. <!-- <option value="" selected=""></option>-->
  542. <!-- --><?php //foreach ($model['city'] as $val){?>
  543. <!-- <option value="-->
  544. <?php //echo $val['id']?><!--" -->
  545. <?php //if($details['city'] == $val['id']) echo 'selected'?><!-- >-->
  546. <?php //echo $val['city_name']?><!--</option>-->
  547. <!-- --><?php //}?>
  548. <!-- </select>-->
  549. <!-- </div>-->
  550. <!-- </div>-->
  551. </td>
  552. </tr>
  553. <tr>
  554. <td>
  555. <div class="layui-form-item" style="margin-bottom:-5px">
  556. <div class="layui-inline" style="width:100%">
  557. <label class="layui-form-label">电话:</label>
  558. <div class="layui-input-block">
  559. <input type="text" name="is_tel" value="<?= $details['is_tel'] ?>"
  560. placeholder="请添加指定电话" autocomplete="off" class="layui-input"
  561. style="width:60%;">
  562. </div>
  563. </div>
  564. </div>
  565. </td>
  566. <td>
  567. <div class="layui-form-item" style="margin-bottom:-5px">
  568. <div class="layui-inline" style="width:60%">
  569. <label class="layui-form-label">大数据:</label>
  570. <div class="layui-input-block">
  571. <textarea rows="6" name="links" placeholder="大数据"
  572. class="layui-textarea"><?php echo $details['links'] ?></textarea>
  573. <!-- <textarea name="links" id="" cols="30" rows="10"><?php echo $details['links'] ?></textarea>
  574. <input type="text" name="links" value="<?php echo $details['links'] ?>" placeholder="大数据" autocomplete="off" class="layui-input" style="width:360%;"> -->
  575. </div>
  576. </div>
  577. </div>
  578. </td>
  579. </tr>
  580. <tr>
  581. <td>
  582. <div class="layui-form-item" style="margin-bottom:-5px">
  583. <div class="layui-inline">
  584. <label class="layui-form-label">特惠价格(专题):</label>
  585. <div class="layui-input-block">
  586. <input type="text" name="preferential_price"
  587. value="<?= $details['preferential_price'] ?>"
  588. placeholder="请添加活动特价" autocomplete="off" class="layui-input"
  589. style="width:160%;">
  590. </div>
  591. </div>
  592. </div>
  593. <div class="layui-form-item" style="margin-bottom:-5px">
  594. <div class="layui-inline">
  595. <label class="layui-form-label">优惠信息(专题):</label>
  596. <div class="layui-input-block">
  597. <input type="text" name="preferential_zt"
  598. value="<?= $details['preferential_zt'] ?>"
  599. placeholder="请添加优惠信息" autocomplete="off" class="layui-input"
  600. style="width:160%;">
  601. </div>
  602. </div>
  603. </div>
  604. </td>
  605. <td>
  606. <div class="layui-form-item" style="margin-bottom:-5px">
  607. <div class="layui-inline" style="width:60%">
  608. <label class="layui-form-label">推荐理由:</label>
  609. <div class="layui-input-block">
  610. <textarea rows="6" name="push_reason" placeholder="推荐理由"
  611. class="layui-textarea"><?php echo $details['push_reason'] ?></textarea>
  612. <!-- <textarea name="links" id="" cols="30" rows="10"><?php echo $details['links'] ?></textarea>
  613. <input type="text" name="links" value="<?php echo $details['links'] ?>" placeholder="大数据" autocomplete="off" class="layui-input" style="width:360%;"> -->
  614. </div>
  615. </div>
  616. </div>
  617. </td>
  618. </tr>
  619. <tr>
  620. <td>
  621. <div class="layui-form-item" style="margin-bottom:-5px">
  622. <div class="layui-inline" style="">
  623. <label class="layui-form-label">53客服:</label>
  624. <div class="layui-input-block">
  625. <textarea rows="6" name="customer_service" placeholder="53客服"
  626. class="layui-textarea"><?php echo $details['customer_service'] ?></textarea>
  627. </div>
  628. </div>
  629. </div>
  630. </td>
  631. </tr>
  632. </tbody>
  633. </table>
  634. </div>
  635. <div id="assign_2" class="layui-tab-item">
  636. <table class="layui-table xm_bg_box" lay-skin="line"
  637. style="width:99%;border-left:0;border:0;">
  638. <tbody>
  639. <tr>
  640. <td>
  641. <div class="layui-form-item" style="margin-bottom:-5px">
  642. <div class="layui-inline">
  643. <label class="layui-form-label">开发商:</label>
  644. <div class="layui-input-block">
  645. <input type="text" name="developers"
  646. value="<?php echo $details['developers'] ?>"
  647. placeholder="开发商信息" autocomplete="off" class="layui-input"
  648. style="width:160%;">
  649. </div>
  650. </div>
  651. </div>
  652. <!-- <div class="layui-form-item" style="margin-bottom:-5px">-->
  653. <!-- <label class="layui-form-label">开发商:</label>-->
  654. <!-- <div class="layui-input-block" >-->
  655. <!-- <select name="developers" lay-filter="aihao" >-->
  656. <!-- <option value="" ></option>-->
  657. <!-- --><?php //foreach ($model['developers'] as $val){?>
  658. <!-- --><?php //}?>
  659. <!-- </select>-->
  660. <!-- </div>-->
  661. <!-- </div>-->
  662. </td>
  663. <td>
  664. <div class="layui-form-item" style="margin-bottom:-5px">
  665. <div class="layui-inline">
  666. <label class="layui-form-label">投资商:</label>
  667. <div class="layui-input-block">
  668. <input type="text" name="land_agent"
  669. value="<?php echo $details['land_agent'] ?>"
  670. placeholder="投资商" autocomplete="off" class="layui-input"
  671. style="width:160%;">
  672. </div>
  673. </div>
  674. </div>
  675. </td>
  676. </tr>
  677. <tr>
  678. <td style="padding:10px 0px">
  679. <div class="layui-form-item" style="margin-bottom:-5px">
  680. <div class="layui-inline">
  681. <label class="layui-form-label">占地面积:</label>
  682. <div class="layui-input-block">
  683. <input type="text" name="planning_area"
  684. value="<?php echo $details['planning_area'] ?>"
  685. placeholder="占地面积" autocomplete="off" class="layui-input"
  686. style="width:160%;">
  687. </div>
  688. </div>
  689. </div>
  690. </td>
  691. <td>
  692. <div class="layui-inline">
  693. <label class="layui-form-label">建筑面积:</label>
  694. <div class="layui-input-block">
  695. <input type="text" name="construction_area"
  696. value="<?php echo $details['construction_area'] ?>"
  697. placeholder="建筑面积" autocomplete="off" class="layui-input"
  698. style="width:160%;">
  699. </div>
  700. </div>
  701. </td>
  702. </tr>
  703. <tr>
  704. <td style="padding:10px 0px">
  705. <div class="layui-form-item" style="margin-bottom:-5px">
  706. <div class="layui-inline">
  707. <label class="layui-form-label">容积率:</label>
  708. <div class="layui-input-block">
  709. <input type="text" name="volume_rate"
  710. value="<?php echo $details['volume_rate'] ?>"
  711. placeholder="容积率" autocomplete="off" class="layui-input"
  712. style="width:160%;">
  713. </div>
  714. </div>
  715. </div>
  716. </td>
  717. <td>
  718. <div class="layui-inline">
  719. <label class="layui-form-label">绿化率:</label>
  720. <div class="layui-input-block">
  721. <input type="text" name="greening_rate"
  722. value="<?php echo $details['greening_rate'] ?>" placeholder="绿化率"
  723. autocomplete="off" class="layui-input" style="width:160%;">
  724. </div>
  725. </div>
  726. </td>
  727. </tr>
  728. <tr>
  729. <td style="padding:10px 0px">
  730. <div class="layui-form-item" style="margin-bottom:-5px">
  731. <div class="layui-inline">
  732. <label class="layui-form-label">物业公司:</label>
  733. <div class="layui-input-block">
  734. <input type="text" name="property_company"
  735. value="<?php echo $details['property_company'] ?>"
  736. placeholder="物业公司" autocomplete="off" class="layui-input"
  737. style="width:160%;">
  738. </div>
  739. </div>
  740. </div>
  741. </td>
  742. <td>
  743. <div class="layui-form-item" style="margin-bottom:-5px">
  744. <div class="layui-inline">
  745. <label class="layui-form-label">物业费:</label>
  746. <div class="layui-input-block">
  747. <input type="text" name="property_costs"
  748. value="<?php echo $details['property_costs'] ?>"
  749. placeholder="物业费" autocomplete="off" class="layui-input"
  750. style="width:160%;">
  751. </div>
  752. </div>
  753. </div>
  754. </td>
  755. </tr>
  756. <tr>
  757. <td>
  758. <div class="layui-form-item" style="margin-bottom:-5px">
  759. <div class="layui-inline">
  760. <label class="layui-form-label">总栋数:</label>
  761. <div class="layui-input-block">
  762. <input type="text" name="total_building"
  763. value="<?php echo $details['total_building'] ?>"
  764. placeholder="总栋数" autocomplete="off" class="layui-input"
  765. style="width:160%;">
  766. </div>
  767. </div>
  768. </div>
  769. </td>
  770. <td>
  771. <div class="layui-form-item" style="margin-bottom:-5px">
  772. <div class="layui-inline">
  773. <label class="layui-form-label">总户数:</label>
  774. <div class="layui-input-block">
  775. <input type="text" name="planning_households"
  776. value="<?php echo $details['planning_households'] ?>"
  777. placeholder="总户数" autocomplete="off" class="layui-input"
  778. style="width:160%;">
  779. </div>
  780. </div>
  781. </div>
  782. </td>
  783. </tr>
  784. <tr>
  785. <td>
  786. <div class="layui-form-item" style="margin-bottom:-5px">
  787. <div class="layui-inline">
  788. <label class="layui-form-label">楼层状况:</label>
  789. <div class="layui-input-block">
  790. <input type="text" name="floor_condition"
  791. value="<?php echo $details['floor_condition'] ?>"
  792. placeholder="楼层状况" autocomplete="off" class="layui-input"
  793. style="width:160%;">
  794. </div>
  795. </div>
  796. </div>
  797. </td>
  798. <td>
  799. <div class="layui-form-item" style="margin-bottom:-5px">
  800. <div class="layui-inline">
  801. <label class="layui-form-label">车位数量:</label>
  802. <div class="layui-input-block">
  803. <input type="text" name="parking_num"
  804. value="<?php echo $details['parking_num'] ?>"
  805. placeholder="车位数量" autocomplete="off" class="layui-input"
  806. style="width:160%;">
  807. </div>
  808. </div>
  809. </div>
  810. </td>
  811. </tr>
  812. <tr>
  813. <td>
  814. <div class="layui-inline">
  815. <label class="layui-form-label">公交路线:</label>
  816. <div class="layui-input-block">
  817. <input type="text" name="bus_route" placeholder="公交路线"
  818. value="<?php echo $details['bus_route'] ?>" autocomplete="off"
  819. class="layui-input" style="width:160%;">
  820. </div>
  821. </div>
  822. </td>
  823. <!-- <td>
  824. <div class="layui-form-item" style="margin-bottom:-5px">
  825. <div class="layui-inline">
  826. <label class="layui-form-label">许可证号:</label>
  827. <div class="layui-input-block">
  828. <input type="text" name="sale_permit" value="<?php echo $details['sale_permit'] ?>" placeholder="许可证号" autocomplete="off" class="layui-input" style="width:160%;">
  829. </div>
  830. </div>
  831. </div>
  832. </td> -->
  833. <td>
  834. <div class="layui-form-item" style="margin-bottom:-5px">
  835. <div class="layui-inline">
  836. <label class="layui-form-label">产权年限:</label>
  837. <div class="layui-input-block">
  838. <input type="text" name="house_cx"
  839. value="<?php echo $details['house_cx'] ?>" placeholder="产权年限"
  840. autocomplete="off" class="layui-input" style="width:160%;">
  841. </div>
  842. </div>
  843. </div>
  844. </td>
  845. </tr>
  846. <tr>
  847. <td style="padding:10px 0px">
  848. <div class="layui-form-item" style="margin-bottom:-5px">
  849. <div class="layui-inline">
  850. <label class="layui-form-label">经纬度:</label>
  851. <div class="layui-input-block">
  852. <input type="text" id="jwd" name="longitude_latitude"
  853. value="<?php echo $details['longitude_latitude'] ?>"
  854. placeholder="获取经纬度" autocomplete="off" class="layui-input"
  855. style="width:120%;">
  856. </div>
  857. </div>
  858. <div class="layui-inline xm_MapObtain_button" style="right: -4%">
  859. <a class="layui-btn" onclick="show()">获取</a>
  860. </div>
  861. </div>
  862. </td>
  863. <td>
  864. <div class="layui-form-item" style="margin-bottom:-5px">
  865. <div class="layui-inline">
  866. <label class="layui-form-label">VR看房:</label>
  867. <div class="layui-input-block">
  868. <input type="text" name="panorama"
  869. value="<?php echo $details['panorama'] ?>"
  870. placeholder="VR全景看房" autocomplete="off" class="layui-input"
  871. style="width:160%;">
  872. </div>
  873. </div>
  874. </div>
  875. </td>
  876. </tr>
  877. <tr>
  878. <td style="padding:10px 0px">
  879. </td>
  880. <td>
  881. <div class="layui-form-item" style="margin-bottom:-5px">
  882. <div class="layui-inline">
  883. <label class="layui-form-label">视频地址:</label>
  884. <div class="layui-input-block">
  885. <input type="text" name="video_url"
  886. value="<?php echo $details['video_url'] ?>"
  887. placeholder="请输入视频地址" autocomplete="off" class="layui-input"
  888. style="width:160%;">
  889. </div>
  890. </div>
  891. </div>
  892. </td>
  893. </tr>
  894. <tr>
  895. <td colspan="2">
  896. <div class="">
  897. <label class="layui-form-label">楼盘特点:</label>
  898. <div class="layui-input-inline" style="width:75%">
  899. <textarea rows="15" name="features" placeholder="请输入楼盘特点"
  900. class="layui-textarea"><?php echo $details['features'] ?></textarea>
  901. </div>
  902. </div>
  903. </td>
  904. </tr>
  905. </tbody>
  906. </table>
  907. </div>
  908. <div id="assign_3" class="layui-tab-item">
  909. <table class="layui-table xm_bg_box" lay-skin="line"
  910. style="width:99%;border-left:0;border:0;">
  911. <tbody>
  912. <tr>
  913. <td colspan="2">
  914. <div class="layui-form-item" style="margin-bottom:-5px">
  915. <div class="layui-inline">
  916. <label class="layui-form-label">物业类型:</label>
  917. <div class="layui-input-block" style="padding-bottom:8px;">
  918. <?php
  919. foreach ($model['label'] as $val) {
  920. ?>
  921. <input type="checkbox" name="type[]"
  922. value="<?php echo $val['id'] ?>"
  923. <?php if (!empty($details['type'])) if (in_array($val['id'], $details['type'])) echo 'checked' ?>
  924. lay-skin="primary" title="<?php echo $val['name'] ?>">
  925. <?php
  926. }
  927. ?>
  928. </div>
  929. </div>
  930. </div>
  931. </td>
  932. </tr>
  933. <tr>
  934. <td colspan="2">
  935. <div class="layui-form-item" style="margin-bottom:-5px">
  936. <div class="layui-inline">
  937. <label class="layui-form-label">特色主题:</label>
  938. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  939. <?php
  940. if (!empty($model['teseList'])) {
  941. foreach ($model['teseList'] as $val) {
  942. ?>
  943. <input type="checkbox" name="characteristic[]"
  944. value="<?php echo $val['id'] ?>"
  945. <?php if (!empty($details['characteristic'])) if (in_array($val['id'], $details['characteristic'])) echo 'checked' ?>
  946. lay-skin="primary"
  947. title="<?php echo $val['name'] ?>">
  948. <?php
  949. }
  950. }
  951. ?>
  952. </div>
  953. </div>
  954. </div>
  955. </td>
  956. </tr>
  957. <tr>
  958. <td colspan="2">
  959. <div class="layui-form-item" style="margin-bottom:-5px">
  960. <div class="layui-inline">
  961. <label class="layui-form-label">建筑类别:</label>
  962. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  963. <?php foreach ($model['Architecture'] as $val) { ?>
  964. <input type="checkbox"
  965. name="architecture_type[]" <?php if (!empty($details['architecture_type']) && is_array($details['architecture_type'])) if (in_array($val['id'], $details['architecture_type'])) echo 'checked' ?>
  966. value="<?php echo $val['id'] ?>" lay-skin="primary"
  967. title="<?php echo $val['name'] ?>">
  968. <?php } ?>
  969. </div>
  970. </div>
  971. </div>
  972. </td>
  973. </tr>
  974. <tr>
  975. <td colspan="2">
  976. <div class="layui-form-item" style="margin-bottom:-5px">
  977. <div class="layui-inline">
  978. <label class="layui-form-label">楼盘标签:</label>
  979. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  980. <?php foreach ($model['housetag'] as $val) { ?>
  981. <input type="checkbox"
  982. name="property_tag[]" <?php if (!empty($details['property_tag']) && is_array($details['property_tag'])) if (in_array($val['id'], $details['property_tag'])) echo 'checked' ?>
  983. value="<?php echo $val['id'] ?>" lay-skin="primary"
  984. title="<?php echo $val['name'] ?>">
  985. <?php } ?>
  986. </div>
  987. </div>
  988. </div>
  989. </td>
  990. </tr>
  991. <tr>
  992. <td colspan="2">
  993. <div class="layui-form-item" style="margin-bottom:-5px">
  994. <div class="layui-inline">
  995. <label class="layui-form-label">装修状况:</label>
  996. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  997. <?php foreach (Yii::$app->params['Housefit'] as $key => $val) {
  998. ?>
  999. <input type="radio" name="fit" value="<?php echo $key ?>"
  1000. lay-skin="primary"
  1001. title="<?php echo $val ?>" <?php if ($key == $details['fit']) echo 'checked' ?> >
  1002. <?php } ?>
  1003. </div>
  1004. </div>
  1005. </div>
  1006. </td>
  1007. </tr>
  1008. <tr>
  1009. <td colspan="2">
  1010. <div class="layui-form-item" style="margin-bottom:-5px">
  1011. <div class="layui-inline">
  1012. <label class="layui-form-label">热门楼盘:</label>
  1013. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  1014. <input type="radio" name="hot" value="1"
  1015. title="非热门" <?php if ($details['hot'] == 1) echo 'checked' ?>>
  1016. <input type="radio" name="hot" value="2"
  1017. title="热门" <?php if ($details['hot'] == 2) echo 'checked' ?>>
  1018. </div>
  1019. </div>
  1020. </div>
  1021. </td>
  1022. </tr>
  1023. <tr>
  1024. <td colspan="2">
  1025. <div class="layui-form-item" style="margin-bottom:-5px">
  1026. <div class="layui-inline">
  1027. <label class="layui-form-label">主推楼盘:</label>
  1028. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  1029. <input type="radio" name="is_push" value="1"
  1030. title="否" <?php if ($details['is_push'] == 1) echo 'checked' ?>>
  1031. <input type="radio" name="is_push" value="2"
  1032. title="是" <?php if ($details['is_push'] == 2) echo 'checked' ?>>
  1033. </div>
  1034. </div>
  1035. </div>
  1036. </td>
  1037. </tr>
  1038. </tbody>
  1039. </table>
  1040. </div>
  1041. <div id="assign_4" class="layui-tab-item">
  1042. <div class="layui-bg-gray" style="width:97%;padding:8px 15px;">楼盘简介:</div>
  1043. <div class="editor_box layui-form-item" style="width:99%">
  1044. <textarea name="info" id="editor" cols="30" rows="10"
  1045. style="width:100%;height:400px;float:left;"><?php echo $details['info'] ?></textarea>
  1046. </div>
  1047. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="check_words" >敏感词检测</button>
  1048. </div>
  1049. <!-- <div id="assign_5" class="layui-tab-item">-->
  1050. <!-- <div class="layui-bg-gray" style="width:97%;padding:8px 15px;">楼盘评测:</div>-->
  1051. <!-- <div class="layui_w_box">-->
  1052. <!-- <!-- <div class="layui-inline"><a class="layui-btn layui-btn-primary layui_w_addbtn" id="layui_w_y" href="javascript:;">+ 添加一行</a></div> -->
  1053. <!-- <div class="layui_w_licence">-->
  1054. <!-- <table class="layui-table" style="width:80%;text-align:center">-->
  1055. <!-- <colgroup>-->
  1056. <!-- <col width="60">-->
  1057. <!-- <col >-->
  1058. <!-- </colgroup>-->
  1059. <!-- <thead>-->
  1060. <!-- <tr>-->
  1061. <!-- <th>删除</th>-->
  1062. <!-- <th>评测内容</th>-->
  1063. <!-- </tr>-->
  1064. <!-- </thead>-->
  1065. <!-- <tbody class="mai editmai">-->
  1066. <!-- --><?php // if(!empty($details['evaluating'])){foreach ($details['evaluating'] as $key=>$val){ ?>
  1067. <!---->
  1068. <!-- <tr class="otr" id="ue-->
  1069. <?php //echo $key ?><!--" data-id="--><?php //echo $key ?><!--">-->
  1070. <!-- <td lay-event="del">-->
  1071. <!-- <div class="layui-table-cell del" lay-oid=""><i class="layui-icon" style="font-size: 30px; color: #1E9FFF;cursor: pointer">&#xe640;</i></div>-->
  1072. <!-- </td>-->
  1073. <!-- <td data-field="matingName" align="center" data-content="">-->
  1074. <!-- <div class="editor_box layui-form-item" style="width:99%">-->
  1075. <!-- <textarea name="evaluating[]" id="evaluating-->
  1076. <?php //echo $key ?><!--" cols="20" rows="10" style="width:100%;float:left;">-->
  1077. <?php //echo $val ?><!--</textarea>-->
  1078. <!-- </div>-->
  1079. <!-- </td>-->
  1080. <!-- </tr>-->
  1081. <!---->
  1082. <!---->
  1083. <!-- --><?php // } } ?>
  1084. <!-- </tbody>-->
  1085. <!-- </table>-->
  1086. <!-- </div>-->
  1087. <!-- <div class="layui-inline"><a class="layui-btn layui-btn-primary layui_w_addbtn" id="layui_w_y" href="javascript:;">+ 添加一行</a></div>-->
  1088. <!-- </div>-->
  1089. <!-- </div>-->
  1090. </div>
  1091. </div>
  1092. <div class="layui-form-item xm_zjzx_Submit">
  1093. <input type="hidden" name="id" value="<?php echo $details['id'] ?>" id="editimgId">
  1094. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="edit">提交</button>
  1095. </div>
  1096. </div> <!-- 你的内容 9/12 -->
  1097. </div>
  1098. </form>
  1099. </div> <!-- 内容主体区域 -->