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.

105 lines
1.8 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="content padding">
  3. <view class="tit">选择房屋类型</view>
  4. <!-- <view class="searchBox">
  5. <searchRow placeholder="请输入房屋类型"/>
  6. </view> -->
  7. <view class="ul">
  8. <view class="li" v-for="(item,index) in houseList" :key="index" @click="chooseItem(item)">{{ item.houseTypeName }}</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup>
  13. import { houseTree } from '@/config/api.js'
  14. import { ref } from 'vue'
  15. import {userStore} from '@/store/index.js';
  16. const counterStore = userStore();
  17. let houseList = ref([])
  18. async function houseTreeFn() {
  19. console.log('没有请求吗、')
  20. const {data: res} = await houseTree()
  21. houseList.value = res[0].houseTypeNode
  22. console.log(res)
  23. console.log(houseList.value)
  24. }
  25. function chooseItem(item) {
  26. counterStore.upDateHouse('houseType', item.houseTypeId)
  27. counterStore.upDateHouse('houseTypeName', item.houseTypeName)
  28. uni.navigateTo({
  29. url: '/pages/subPage/authentication/comp/select3'
  30. })
  31. }
  32. houseTreeFn()
  33. </script>
  34. <style lang="scss" scoped>
  35. image {
  36. display: block;
  37. width: 100%;
  38. height: 100%;
  39. }
  40. .content {
  41. .tit {
  42. font-size: 54rpx;
  43. color: #2E2E2E;
  44. padding: 40rpx 0 30rpx 0;
  45. }
  46. .searchBox {
  47. height: 68rpx;
  48. }
  49. .poz {
  50. height: 86rpx;
  51. .lab {
  52. font-size: 28rpx;
  53. }
  54. .flex {
  55. .icon {
  56. width: 32rpx;
  57. height: 32rpx;
  58. }
  59. .city {
  60. font-size: 28rpx;
  61. margin-left: 10rpx;
  62. color: $themC;
  63. }
  64. }
  65. }
  66. .huicity {
  67. width: 100%;
  68. height: 48rpx;
  69. background: #EFEFEF;
  70. border-radius: 10rpx;
  71. line-height: 48rpx;
  72. color: #9C9C9C;
  73. font-size: 28rpx;
  74. line-height: 48rpx;
  75. padding-left: 20rpx;
  76. }
  77. .ul {
  78. width: 100%;
  79. .li {
  80. width: 100%;
  81. height: 94rpx;
  82. line-height: 94rpx;
  83. font-size: 36rpx;
  84. border-bottom: 1px solid #EFEFEF;
  85. }
  86. }
  87. }
  88. </style>