瑶都万能墙
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.

199 lines
3.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view>
  3. <navbar title="租房列表" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="flex"
  5. style="padding: 30rpx;">
  6. <!-- <view class="flex area">
  7. <view>永州</view>
  8. <uv-icon name="down" color="#333" size="30rpx" />
  9. </view>
  10. <view class="s-div b-relative">
  11. </view> -->
  12. <uv-search
  13. bgColor="#fff"
  14. @search="getData"
  15. @custom="getData"
  16. searchIconSize="30rpx"
  17. placeholder="请输入搜索关键字..."
  18. v-model="queryParams.title"></uv-search>
  19. </view>
  20. <view class="flex-wrap rx">
  21. <view class="sb-w3">
  22. <image src="/static/image/home/1.png" />
  23. <view>居住</view>
  24. </view>
  25. <view class="sb-w3">
  26. <image src="/static/2.png" />
  27. <view>办公</view>
  28. </view>
  29. <view class="sb-w3">
  30. <image src="/static/3.png" />
  31. <view>做生意</view>
  32. </view>
  33. </view>
  34. <view class="container">
  35. <view class="re-empty font-c" style="display: none;">暂无数据</view>
  36. <view class="card-item flex-sb" v-for="i in 10" @click="clickDetail()">
  37. <view>
  38. <image class="imx" src="/static/R01.png" />
  39. </view>
  40. <view style="width: calc(100% - 330rpx);">
  41. <view class="t1">整租·康卓新城</view>
  42. <view class="t2">1室1卫 60m2 | </view>
  43. <view class="flex">
  44. <view class="t3">优选</view>
  45. <view class="t3">低价</view>
  46. </view>
  47. <view class="t4">2400/</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. keyword : '',
  58. queryParams : {
  59. pageNo : 1,
  60. pageSize : 10,
  61. }
  62. }
  63. },
  64. onShow() {
  65. this.getRentPage()
  66. },
  67. methods: {
  68. clickDetail(){
  69. uni.navigateTo({
  70. url: '/pages_order/renting/rentingDetail'
  71. })
  72. },
  73. //根据分类获取租房信息列表
  74. getRentPage(){
  75. this.$api('getRentPage', this.queryParams,res =>{
  76. // console.log(res);
  77. })
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped lang="scss">
  83. .container {
  84. padding: 0 30rpx;
  85. }
  86. .area {
  87. width: 154rpx;
  88. line-height: 78rpx;
  89. margin: 0 20rpx;
  90. }
  91. .s-div {
  92. margin: 0 10rpx;
  93. }
  94. .seacher {
  95. width: 486rpx;
  96. height: 78rpx;
  97. background: #F3F3F3;
  98. border-radius: 44rpx 44rpx 44rpx 44rpx;
  99. font-weight: 400;
  100. font-size: 28rpx;
  101. text-align: left;
  102. font-style: normal;
  103. text-transform: none;
  104. padding: 0 0 0 80rpx;
  105. }
  106. .seacher-placeholder {
  107. color: #BFBFBF;
  108. }
  109. .icon {
  110. position: absolute;
  111. left: 30rpx;
  112. top: 18rpx;
  113. }
  114. .rx {
  115. height: 214rpx;
  116. width: 100%;
  117. padding: 40rpx 0 0;
  118. }
  119. .sb-w3 image {
  120. width: 100rpx;
  121. height: 100rpx;
  122. }
  123. .sb-w3 view {
  124. line-height: 52rpx;
  125. font-weight: 400;
  126. font-size: 28rpx;
  127. color: #3D3D3D;
  128. }
  129. .card-item {
  130. width: 690rpx;
  131. height: 250rpx;
  132. background: #FFFFFF;
  133. box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(0, 0, 0, 0.16);
  134. border-radius: 8rpx 8rpx 8rpx 8rpx;
  135. margin-bottom: 36rpx;
  136. }
  137. .imx {
  138. width: 300rpx;
  139. height: 250rpx;
  140. }
  141. .t1 {
  142. font-weight: 400;
  143. font-size: 32rpx;
  144. color: #3D3D3D;
  145. line-height: 80rpx;
  146. text-align: left;
  147. }
  148. .t2 {
  149. font-weight: 400;
  150. font-size: 20rpx;
  151. color: #656565;
  152. line-height: 20rpx;
  153. text-align: left;
  154. }
  155. .t3 {
  156. font-weight: 400;
  157. font-size: 20rpx;
  158. line-height: 32rpx;
  159. color: #00B90C;
  160. text-align: center;
  161. height: 32rpx;
  162. width: 60rpx;
  163. margin: 15rpx 10rpx 0 0;
  164. background: rgba(121, 255, 179, 0.21);
  165. border-radius: 4rpx 4rpx 4rpx 4rpx;
  166. }
  167. .t4 {
  168. font-weight: 400;
  169. font-size: 32rpx;
  170. color: #FF0000;
  171. line-height: 100rpx;
  172. text-align: left;
  173. }
  174. </style>