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.

177 lines
11 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
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. const config_api = require("../../../../config/api.js");
  4. const store_index = require("../../../../store/index.js");
  5. require("../../../../uni_modules/uview-plus/index.js");
  6. require("../../../../uni_modules/uview-plus/libs/mixin/mixin.js");
  7. require("../../../../uni_modules/uview-plus/libs/vue.js");
  8. require("../../../../uni_modules/uview-plus/libs/function/index.js");
  9. require("../../../../uni_modules/uview-plus/libs/function/test.js");
  10. require("../../../../uni_modules/uview-plus/libs/function/digit.js");
  11. require("../../../../uni_modules/uview-plus/libs/config/config.js");
  12. require("../../../../uni_modules/uview-plus/libs/util/route.js");
  13. require("../../../../uni_modules/uview-plus/libs/mixin/mpMixin.js");
  14. require("../../../../uni_modules/uview-plus/libs/luch-request/core/Request.js");
  15. require("../../../../uni_modules/uview-plus/libs/luch-request/core/dispatchRequest.js");
  16. require("../../../../uni_modules/uview-plus/libs/luch-request/adapters/index.js");
  17. require("../../../../uni_modules/uview-plus/libs/luch-request/helpers/buildURL.js");
  18. require("../../../../uni_modules/uview-plus/libs/luch-request/utils.js");
  19. require("../../../../uni_modules/uview-plus/libs/luch-request/core/buildFullPath.js");
  20. require("../../../../uni_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js");
  21. require("../../../../uni_modules/uview-plus/libs/luch-request/helpers/combineURLs.js");
  22. require("../../../../uni_modules/uview-plus/libs/luch-request/core/settle.js");
  23. require("../../../../uni_modules/uview-plus/libs/luch-request/core/InterceptorManager.js");
  24. require("../../../../uni_modules/uview-plus/libs/luch-request/core/mergeConfig.js");
  25. require("../../../../uni_modules/uview-plus/libs/luch-request/core/defaults.js");
  26. require("../../../../uni_modules/uview-plus/libs/luch-request/utils/clone.js");
  27. require("../../../../uni_modules/uview-plus/libs/function/colorGradient.js");
  28. require("../../../../uni_modules/uview-plus/libs/function/debounce.js");
  29. require("../../../../uni_modules/uview-plus/libs/function/throttle.js");
  30. require("../../../../uni_modules/uview-plus/libs/config/props.js");
  31. require("../../../../uni_modules/uview-plus/libs/config/props/actionSheet.js");
  32. require("../../../../uni_modules/uview-plus/libs/config/props/album.js");
  33. require("../../../../uni_modules/uview-plus/libs/config/props/alert.js");
  34. require("../../../../uni_modules/uview-plus/libs/config/props/avatar.js");
  35. require("../../../../uni_modules/uview-plus/libs/config/props/avatarGroup.js");
  36. require("../../../../uni_modules/uview-plus/libs/config/props/backtop.js");
  37. require("../../../../uni_modules/uview-plus/libs/config/props/badge.js");
  38. require("../../../../uni_modules/uview-plus/libs/config/props/button.js");
  39. require("../../../../uni_modules/uview-plus/libs/config/props/calendar.js");
  40. require("../../../../uni_modules/uview-plus/libs/config/props/carKeyboard.js");
  41. require("../../../../uni_modules/uview-plus/libs/config/props/cell.js");
  42. require("../../../../uni_modules/uview-plus/libs/config/props/cellGroup.js");
  43. require("../../../../uni_modules/uview-plus/libs/config/props/checkbox.js");
  44. require("../../../../uni_modules/uview-plus/libs/config/props/checkboxGroup.js");
  45. require("../../../../uni_modules/uview-plus/libs/config/props/circleProgress.js");
  46. require("../../../../uni_modules/uview-plus/libs/config/props/code.js");
  47. require("../../../../uni_modules/uview-plus/libs/config/props/codeInput.js");
  48. require("../../../../uni_modules/uview-plus/libs/config/props/col.js");
  49. require("../../../../uni_modules/uview-plus/libs/config/props/collapse.js");
  50. require("../../../../uni_modules/uview-plus/libs/config/props/collapseItem.js");
  51. require("../../../../uni_modules/uview-plus/libs/config/props/columnNotice.js");
  52. require("../../../../uni_modules/uview-plus/libs/config/props/countDown.js");
  53. require("../../../../uni_modules/uview-plus/libs/config/props/countTo.js");
  54. require("../../../../uni_modules/uview-plus/libs/config/props/datetimePicker.js");
  55. require("../../../../uni_modules/uview-plus/libs/config/props/divider.js");
  56. require("../../../../uni_modules/uview-plus/libs/config/props/empty.js");
  57. require("../../../../uni_modules/uview-plus/libs/config/props/form.js");
  58. require("../../../../uni_modules/uview-plus/libs/config/props/formItem.js");
  59. require("../../../../uni_modules/uview-plus/libs/config/props/gap.js");
  60. require("../../../../uni_modules/uview-plus/libs/config/props/grid.js");
  61. require("../../../../uni_modules/uview-plus/libs/config/props/gridItem.js");
  62. require("../../../../uni_modules/uview-plus/libs/config/props/icon.js");
  63. require("../../../../uni_modules/uview-plus/libs/config/props/image.js");
  64. require("../../../../uni_modules/uview-plus/libs/config/props/indexAnchor.js");
  65. require("../../../../uni_modules/uview-plus/libs/config/props/indexList.js");
  66. require("../../../../uni_modules/uview-plus/libs/config/props/input.js");
  67. require("../../../../uni_modules/uview-plus/libs/config/props/keyboard.js");
  68. require("../../../../uni_modules/uview-plus/libs/config/props/line.js");
  69. require("../../../../uni_modules/uview-plus/libs/config/props/lineProgress.js");
  70. require("../../../../uni_modules/uview-plus/libs/config/props/link.js");
  71. require("../../../../uni_modules/uview-plus/libs/config/props/list.js");
  72. require("../../../../uni_modules/uview-plus/libs/config/props/listItem.js");
  73. require("../../../../uni_modules/uview-plus/libs/config/props/loadingIcon.js");
  74. require("../../../../uni_modules/uview-plus/libs/config/props/loadingPage.js");
  75. require("../../../../uni_modules/uview-plus/libs/config/props/loadmore.js");
  76. require("../../../../uni_modules/uview-plus/libs/config/props/modal.js");
  77. require("../../../../uni_modules/uview-plus/libs/config/props/navbar.js");
  78. require("../../../../uni_modules/uview-plus/libs/config/color.js");
  79. require("../../../../uni_modules/uview-plus/libs/config/props/noNetwork.js");
  80. require("../../../../uni_modules/uview-plus/libs/config/props/noticeBar.js");
  81. require("../../../../uni_modules/uview-plus/libs/config/props/notify.js");
  82. require("../../../../uni_modules/uview-plus/libs/config/props/numberBox.js");
  83. require("../../../../uni_modules/uview-plus/libs/config/props/numberKeyboard.js");
  84. require("../../../../uni_modules/uview-plus/libs/config/props/overlay.js");
  85. require("../../../../uni_modules/uview-plus/libs/config/props/parse.js");
  86. require("../../../../uni_modules/uview-plus/libs/config/props/picker.js");
  87. require("../../../../uni_modules/uview-plus/libs/config/props/popup.js");
  88. require("../../../../uni_modules/uview-plus/libs/config/props/radio.js");
  89. require("../../../../uni_modules/uview-plus/libs/config/props/radioGroup.js");
  90. require("../../../../uni_modules/uview-plus/libs/config/props/rate.js");
  91. require("../../../../uni_modules/uview-plus/libs/config/props/readMore.js");
  92. require("../../../../uni_modules/uview-plus/libs/config/props/row.js");
  93. require("../../../../uni_modules/uview-plus/libs/config/props/rowNotice.js");
  94. require("../../../../uni_modules/uview-plus/libs/config/props/scrollList.js");
  95. require("../../../../uni_modules/uview-plus/libs/config/props/search.js");
  96. require("../../../../uni_modules/uview-plus/libs/config/props/section.js");
  97. require("../../../../uni_modules/uview-plus/libs/config/props/skeleton.js");
  98. require("../../../../uni_modules/uview-plus/libs/config/props/slider.js");
  99. require("../../../../uni_modules/uview-plus/libs/config/props/statusBar.js");
  100. require("../../../../uni_modules/uview-plus/libs/config/props/steps.js");
  101. require("../../../../uni_modules/uview-plus/libs/config/props/stepsItem.js");
  102. require("../../../../uni_modules/uview-plus/libs/config/props/sticky.js");
  103. require("../../../../uni_modules/uview-plus/libs/config/props/subsection.js");
  104. require("../../../../uni_modules/uview-plus/libs/config/props/swipeAction.js");
  105. require("../../../../uni_modules/uview-plus/libs/config/props/swipeActionItem.js");
  106. require("../../../../uni_modules/uview-plus/libs/config/props/swiper.js");
  107. require("../../../../uni_modules/uview-plus/libs/config/props/swipterIndicator.js");
  108. require("../../../../uni_modules/uview-plus/libs/config/props/switch.js");
  109. require("../../../../uni_modules/uview-plus/libs/config/props/tabbar.js");
  110. require("../../../../uni_modules/uview-plus/libs/config/props/tabbarItem.js");
  111. require("../../../../uni_modules/uview-plus/libs/config/props/tabs.js");
  112. require("../../../../uni_modules/uview-plus/libs/config/props/tag.js");
  113. require("../../../../uni_modules/uview-plus/libs/config/props/text.js");
  114. require("../../../../uni_modules/uview-plus/libs/config/props/textarea.js");
  115. require("../../../../uni_modules/uview-plus/libs/config/props/toast.js");
  116. require("../../../../uni_modules/uview-plus/libs/config/props/toolbar.js");
  117. require("../../../../uni_modules/uview-plus/libs/config/props/tooltip.js");
  118. require("../../../../uni_modules/uview-plus/libs/config/props/transition.js");
  119. require("../../../../uni_modules/uview-plus/libs/config/props/upload.js");
  120. require("../../../../uni_modules/uview-plus/libs/config/zIndex.js");
  121. require("../../../../uni_modules/uview-plus/libs/function/platform.js");
  122. if (!Array) {
  123. const _easycom_searchRow2 = common_vendor.resolveComponent("searchRow");
  124. _easycom_searchRow2();
  125. }
  126. const _easycom_searchRow = () => "../../../../components/searchRow/searchRow.js";
  127. if (!Math) {
  128. _easycom_searchRow();
  129. }
  130. const _sfc_main = {
  131. __name: "select3",
  132. setup(__props) {
  133. const counterStore = store_index.userStore();
  134. let houseList = common_vendor.ref([]);
  135. async function houseTreeFn(roomNum = "") {
  136. let obj = {
  137. "roomNum": roomNum,
  138. "houseType": counterStore.chooseHouse.houseType,
  139. "communityId": counterStore.chooseHouse.communityId
  140. };
  141. const { data: res } = await config_api.houseRoom(obj);
  142. if (!res)
  143. return houseList.value = [];
  144. houseList.value = res;
  145. console.log(res);
  146. console.log(houseList.value);
  147. }
  148. function chooseItem(item) {
  149. counterStore.upDateHouse("roomNum", item.roomNumDesc);
  150. counterStore.upDateHouse("houseId", item.houseId);
  151. common_vendor.index.navigateTo({
  152. url: "/pages/subPage/authentication/authentication"
  153. });
  154. }
  155. function searchFn(val) {
  156. houseTreeFn(val);
  157. }
  158. houseTreeFn();
  159. return (_ctx, _cache) => {
  160. return {
  161. a: common_vendor.o(searchFn),
  162. b: common_vendor.p({
  163. placeholder: "请输入您的房号"
  164. }),
  165. c: common_vendor.f(common_vendor.unref(houseList), (item, index, i0) => {
  166. return {
  167. a: common_vendor.t(item.roomNumDesc),
  168. b: index,
  169. c: common_vendor.o(($event) => chooseItem(item), index)
  170. };
  171. })
  172. };
  173. };
  174. }
  175. };
  176. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-31a868f6"], ["__file", "D:/work/xinjiangMiniProgram/pages/subPage/authentication/comp/select3.vue"]]);
  177. wx.createPage(MiniProgramPage);