瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
3.4 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="发布租房" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="form">
  5. <view class="help-issue">
  6. <text>租房标题</text>
  7. <text style="color: #BD3624;">*</text>
  8. </view>
  9. <view class="form-sheet-cell">
  10. <input type="text" class="title-input"/>
  11. </view>
  12. <uv-cell
  13. title="租房地点"
  14. rightIconStyle="fontSize: 30rpx;"
  15. value="请选择租房地点"
  16. isLink
  17. ></uv-cell>
  18. <uv-cell
  19. title="所属工种"
  20. rightIconStyle="fontSize: 30rpx;"
  21. value="请选择所属工种"
  22. isLink
  23. ></uv-cell>
  24. <view class="form-sheet-cell">
  25. <view class="label">
  26. 价格/
  27. </view>
  28. <view class="price">
  29. <input placeholder="请输入价格" v-model="form.price" />
  30. </view>
  31. </view>
  32. <view class="form-sheet-cell">
  33. <view class="label">
  34. 面积
  35. </view>
  36. <view class="price">
  37. <input placeholder="请输入面积" v-model="form.price" />
  38. </view>
  39. </view>
  40. <view class="form-sheet-cell">
  41. <view class="label">
  42. 结算方式
  43. </view>
  44. <uv-radio-group v-model="radiovalue">
  45. <view class="price">
  46. <uv-radio
  47. :customStyle="{margin: '8px'}"
  48. v-for="(item, index) in priceType"
  49. :key="index"
  50. iconSize="30rpx"
  51. size="40rpx"
  52. labelSize="26rpx"
  53. :label="item.name"
  54. :name="item.name">
  55. </uv-radio>
  56. </view>
  57. </uv-radio-group>
  58. </view>
  59. <view class="form-sheet-cell">
  60. <view class="label">
  61. 看房
  62. </view>
  63. <uv-radio-group v-model="radiovalue">
  64. <view class="price">
  65. <uv-radio
  66. :customStyle="{margin: '8px'}"
  67. iconSize="30rpx"
  68. size="40rpx"
  69. labelSize="26rpx"
  70. label="随时可看"
  71. name="0">
  72. </uv-radio>
  73. </view>
  74. </uv-radio-group>
  75. </view>
  76. <view class="form-sheet-cell">
  77. <view class="label">
  78. 联系电话
  79. </view>
  80. <input placeholder="请输入联系电话" v-model="form.phone" />
  81. </view>
  82. <view class="">
  83. <uv-textarea
  84. v-model="form.content"
  85. count
  86. :maxlength="300"
  87. autoHeight
  88. placeholder="请输入详细介绍"></uv-textarea>
  89. </view>
  90. <view class="uni-color-btn">
  91. 发布
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. data() {
  99. return {
  100. form : {
  101. },
  102. radiovalue : '',
  103. priceType : [
  104. {
  105. name : '月付',
  106. },
  107. {
  108. name : '季付',
  109. },
  110. {
  111. name : '年付',
  112. },
  113. ],
  114. radiolist : [
  115. {
  116. name : '日结',
  117. },
  118. {
  119. name : '月结',
  120. },
  121. ],
  122. }
  123. },
  124. methods: {
  125. }
  126. }
  127. </script>
  128. <style scoped lang="scss">
  129. .page{
  130. background-color: #fff;
  131. min-height: 100vh;
  132. box-sizing: border-box;
  133. color: #333333;
  134. font-size: 28rpx;
  135. /deep/ text{
  136. font-size: 28rpx !important;
  137. }
  138. .form{
  139. padding: 30rpx;
  140. .help-issue {
  141. margin: 20rpx;
  142. }
  143. .title-input{
  144. border: 1px solid $uni-color;
  145. width: 100%;
  146. border-radius: 10rpx;
  147. padding: 10rpx 20rpx;
  148. box-sizing: border-box;
  149. height: 65rpx;
  150. }
  151. .form-sheet-cell{
  152. display: flex;
  153. background-color: #fff;
  154. padding: 20rpx 30rpx;
  155. align-items: center;
  156. .label{
  157. width: 160rpx;
  158. }
  159. .price{
  160. display: flex;
  161. // text-align: center;
  162. input{
  163. width: 450rpx;
  164. // border: 1px solid $uni-color;
  165. margin: 0 10rpx;
  166. }
  167. }
  168. .right-icon{
  169. margin-left: auto;
  170. }
  171. }
  172. }
  173. }
  174. </style>