create.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/19
  6. * Time: 上午11:01
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/routine/comment.js");
  10. ?>
  11. <style>
  12. .layui-upload-img img{display: block;height: 100%;width: 100%;}
  13. .layui-upload-img{display: inline-block;height:120px;width: 120px;border: 1px solid #999;margin-right: 10px;position: absolute;position: relative;
  14. overflow: hidden;}
  15. .xm_qytc_box {width:80%;margin:20px auto 0;}
  16. </style>
  17. <div class="xm_qytc_box">
  18. <form class="layui-form layui-form-pane" id="citysignupForm">
  19. <div class="layui-form-item">
  20. <label class="layui-form-label ">添加人:</label>
  21. <div class="layui-input-inline" style="width:270px;">
  22. <input type="text" name="author" value="<?php echo Yii::$app->session['user_info']['name'] ?>" placeholder="" autocomplete="off" class="layui-input" readonly>
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label ">所属楼盘:</label>
  27. <div class="layui-input-inline" style="width:270px;">
  28. <input type="text" id="house_name" name="house_name" disabled placeholder="选择所属楼盘" autocomplete="off" class="layui-input">
  29. </div>
  30. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  31. </div>
  32. <div class="layui-form-item" style="margin-bottom:-5px">
  33. <div class="layui-inline">
  34. <label class="layui-form-label">购房需求:</label>
  35. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  36. <?php foreach($label as $key=>$val){ ?>
  37. <input type="radio" name="demand" value="<?php echo $key ?>" lay-skin="primary" title="<?php echo $val ?>">
  38. <?php }?>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label">手机号码:</label>
  44. <div class="layui-input-inline" style="width:270px;">
  45. <input type="text" name="mobile" lay-verify="required" placeholder="请输入手机号码" autocomplete="off" class="layui-input">
  46. </div>
  47. </div>
  48. <style>
  49. .w_up_degree_con {display:inline-block;vertical-align:top;width:75%;margin-top:10px;margin-left:10px}
  50. .w_up_degree_con dl + dl {margin-top:8px;}
  51. .w_up_degree_con dl dt {display:inline-block;font-size:0.875rem;color:#424E5F;margin-right:10px;}
  52. .w_up_degree_con dl dd {display:inline-block;width:15px;height:14px;background:url(/img/house/w_star_1.png) no-repeat center/15px 14px;}
  53. .w_up_degree_con dl dd + dd {margin-left:8px;}
  54. .w_up_degree_con dl dd.in {background:url(/img/house/w_star_2.png) no-repeat center/15px 14px;}
  55. </style>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label">地段:</label>
  58. <div class="layui-input-inline" style="width:270px;">
  59. <div class="w_up_degree_con">
  60. <dl data-title="地段">
  61. <dd></dd>
  62. <dd></dd>
  63. <dd></dd>
  64. <dd></dd>
  65. <dd></dd>
  66. </dl>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="layui-form-item">
  71. <label class="layui-form-label">交通:</label>
  72. <div class="layui-input-inline" style="width:270px;">
  73. <div class="w_up_degree_con">
  74. <dl data-title="交通">
  75. <dd></dd>
  76. <dd></dd>
  77. <dd></dd>
  78. <dd></dd>
  79. <dd></dd>
  80. </dl>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="layui-form-item">
  85. <label class="layui-form-label">配套:</label>
  86. <div class="layui-input-inline" style="width:270px;">
  87. <div class="w_up_degree_con">
  88. <dl data-title="配套">
  89. <dd></dd>
  90. <dd></dd>
  91. <dd></dd>
  92. <dd></dd>
  93. <dd></dd>
  94. </dl>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="layui-form-item">
  99. <label class="layui-form-label">环境:</label>
  100. <div class="layui-input-inline" style="width:270px;">
  101. <div class="w_up_degree_con">
  102. <dl data-title="环境">
  103. <dd></dd>
  104. <dd></dd>
  105. <dd></dd>
  106. <dd></dd>
  107. <dd></dd>
  108. </dl>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="layui-form-item">
  113. <label class="layui-form-label">性价比:</label>
  114. <div class="layui-input-inline" style="width:270px;">
  115. <div class="w_up_degree_con">
  116. <dl data-title="性价比">
  117. <dd></dd>
  118. <dd></dd>
  119. <dd></dd>
  120. <dd></dd>
  121. <dd></dd>
  122. </dl>
  123. </div>
  124. </div>
  125. </div>
  126. <label class="layui-form-label">内容:</label>
  127. <div class="layui-input-inline" >
  128. <textarea name="content" style="width: 400px;height:200px;" placeholder="请输入点评内容" class="layui-textarea"></textarea>
  129. </div>
  130. <input type="hidden" name="diduan" id="diduan" value="">
  131. <input type="hidden" name="jiaotong" id="jiaotong" value="">
  132. <input type="hidden" name="peitao" id="peitao" value="">
  133. <input type="hidden" name="huanjing" id="huanjing" value="">
  134. <input type="hidden" name="xingjiabi" id="xingjiabi" value="">
  135. <!---->
  136. <!-- <div class="layui-form-item xm_pr">-->
  137. <!-- <div class="layui-upload">-->
  138. <!-- <button type="button" class="layui-btn" id="upload_edits">图集(3张)</button>-->
  139. <!-- <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">-->
  140. <!-- 预览图:-->
  141. <!-- <div class="layui-upload-list" id="demo1"></div>-->
  142. <!-- </blockquote>-->
  143. <!-- </div>-->
  144. <!-- </div>-->
  145. <!-- <div class="layui-form-item">-->
  146. <!-- <div class="layui-input-inline" style="width:390px;">-->
  147. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">-->
  148. <!-- <span style="color:red;font-size:12px;margin-left:5px;">(水印默认选中,不添加水印去掉勾选!)</span>-->
  149. <!-- </div>-->
  150. <!-- </div>-->
  151. <!-- <hr class="layui-bg-blue">-->
  152. <div class="layui-form-item">
  153. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  154. <button class="layui-btn" lay-submit="" lay-filter="tijiao">提交</button>
  155. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  156. </div>
  157. </div>
  158. </form>
  159. </div>