add.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <div class="resourceAdd">
  3. <div class="topBox">
  4. <div class="topTitle">资源预约</div>
  5. <div class="choosTimeBox">
  6. <span class="msg">使用时间</span>
  7. <input placeholder="请选择日期" class="choosIpt" disabled>
  8. <input placeholder="请选择时间段" class="choosIpt" disabled>
  9. </div>
  10. </div>
  11. <ul class="predetermineUl">
  12. <li class="detailLi">
  13. <span class="liName">主题</span>
  14. <span >
  15. <input class="liInfo" placeholder="" v-model="theme" disabled>
  16. </span>
  17. </li>
  18. <li class="detailLi">
  19. <span class="liName">容纳人数</span>
  20. <span >
  21. <input class="liInfo" placeholder="请填写整数">
  22. </span>
  23. </li>
  24. <li class="detailLi">
  25. <span class="liName">联系人</span>
  26. <span >
  27. <input class="liInfo" placeholder="请填写">
  28. </span>
  29. </li>
  30. <li class="detailLi">
  31. <span class="liName">联系电话</span>
  32. <span >
  33. <input class="liInfo" placeholder="请填写">
  34. </span>
  35. </li>
  36. <li class="detailLi2" style="border-bottom: none">
  37. <div class="titleBox" >
  38. <span class="liName">备注</span>
  39. </div>
  40. <van-field
  41. :value="postData.constant"
  42. autosize
  43. type="textarea"
  44. placeholder="请输入"
  45. class="myField"
  46. maxlength="2000"
  47. show-word-limit
  48. />
  49. </li>
  50. </ul>
  51. <ul class="predetermineUl">
  52. <li class="detailLi">
  53. <span class="liName">预约单位</span>
  54. <span >
  55. <input class="liInfo" placeholder="" v-model="unit">
  56. </span>
  57. </li>
  58. <li class="detailLi">
  59. <span class="liName">容纳人数</span>
  60. <span >
  61. <input class="liInfo" placeholder="请填写整数">
  62. </span>
  63. </li>
  64. <li class="detailLi">
  65. <span class="liName">预约人</span>
  66. <span >
  67. <input class="liInfo" placeholder="请填写" value="吴凯旋">
  68. </span>
  69. </li>
  70. <li class="detailLi">
  71. <span class="liName">预约时间</span>
  72. <span >
  73. <input class="liInfo" placeholder="请填写" value="YYYYY-MM-DD HH:MM ">
  74. </span>
  75. </li>
  76. </ul>
  77. <div class="buttonBox">
  78. <button class="btn zcBtn">暂存</button>
  79. <button class="btn tjBtn">提交</button>
  80. </div>
  81. </div>
  82. </template>
  83. <script>
  84. export default {
  85. name: "add",
  86. data(){
  87. return{
  88. theme:'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  89. unit:'XXXXXXXXXXXXXX',
  90. postData: {}
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss">
  96. .resourceAdd{
  97. .topBox{
  98. padding: 24rpx 32rpx;
  99. background: white;
  100. margin: 24rpx 0;
  101. .topTitle{
  102. color: rgba(34, 34, 34, 1);
  103. font-size: 36rpx;
  104. font-weight: 600;
  105. }
  106. .choosTimeBox{
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. .msg{
  111. color: rgba(51, 51, 51, 1);
  112. font-size: 32rpx;
  113. white-space: nowrap;
  114. }
  115. .choosIpt{
  116. width: 260rpx;
  117. height: 96rpx;
  118. padding-left: 50rpx;
  119. background: rgba(245, 247, 250, 1);
  120. box-sizing: border-box;
  121. }
  122. }
  123. }
  124. .predetermineUl{
  125. margin: 24rpx 0;
  126. background: white;
  127. box-sizing: border-box;
  128. padding: 0 32rpx;
  129. .predetermineLi{
  130. padding: 32rpx 0;
  131. border-bottom: 1px solid rgba(230, 230, 230, 1);
  132. display: flex;
  133. justify-content: space-between;
  134. }
  135. .predetermineLi2{
  136. padding: 32rpx 0;
  137. border-bottom: 1px solid rgba(230, 230, 230, 1);
  138. display: flex;
  139. flex-direction: column;
  140. }
  141. .van-cell {
  142. background: #F5F7FA !important;
  143. border-radius: 8rpx;
  144. font-size: 28rpx;
  145. margin-top: 16rpx;
  146. }
  147. .liName{
  148. color: rgba(51, 51, 51, 1);
  149. font-size: 32rpx;
  150. }
  151. .liIpt{
  152. color: rgba(102, 102, 102, 1);
  153. font-size: 32rpx;
  154. text-align: right;
  155. }
  156. .detailLi{
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. padding: 32rpx 0;
  161. border-bottom: 2rpx solid #E6E6E6;
  162. .liInfo{
  163. display: inline-block;
  164. text-align: right;
  165. max-width: 488rpx;
  166. width: 488rpx;
  167. color: rgba(102, 102, 102, 1);
  168. font-size: 32rpx;
  169. line-height: 38rpx;
  170. .radio{
  171. margin-left: 64rpx;
  172. }
  173. }
  174. }
  175. .detailLi2{
  176. display: flex;
  177. flex-direction: column;
  178. padding: 32rpx 0;
  179. border-bottom: 2rpx solid #E6E6E6;
  180. .detailLi2BoxTop{
  181. display: flex;
  182. flex-wrap: wrap;
  183. justify-content: space-between;
  184. margin: 12rpx 0;
  185. .checkItem{
  186. width: 128rpx;
  187. height: 64rpx;
  188. font-size: 28rpx;
  189. color: #666666;
  190. display: flex;
  191. align-items: center;
  192. justify-content: center;
  193. background: #F5F7FA;
  194. border-radius: 8rpx;
  195. margin: 12rpx 0;
  196. }
  197. .checked{
  198. background: #0365F9;
  199. color: white;
  200. }
  201. }
  202. }
  203. }
  204. .buttonBox{
  205. display: flex;
  206. justify-content: center;
  207. .btn{
  208. width: 240rpx;
  209. height: 80rpx;
  210. display: flex;
  211. border-radius: 8rpx;
  212. align-items: center;
  213. justify-content: center;
  214. margin: 48rpx 16rpx 150rpx 16rpx;
  215. color: white;
  216. letter-spacing: 2rpx;
  217. text-indent: 2rpx;
  218. }
  219. .zcBtn{
  220. background: #FE8643;
  221. }
  222. .tjBtn{
  223. background: #0365F9;
  224. }
  225. }
  226. }
  227. </style>