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.

202 lines
11 KiB

4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. const store_index = require("../../../../store/index.js");
  4. const config_api = require("../../../../config/api.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_oneBtn2 = common_vendor.resolveComponent("oneBtn");
  124. const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
  125. (_easycom_oneBtn2 + _easycom_up_popup2)();
  126. }
  127. const _easycom_oneBtn = () => "../../../../components/oneBtn/oneBtn.js";
  128. const _easycom_up_popup = () => "../../../../uni_modules/uview-plus/components/u-popup/u-popup.js";
  129. if (!Math) {
  130. (_easycom_oneBtn + _easycom_up_popup)();
  131. }
  132. const _sfc_main = {
  133. __name: "notice",
  134. props: {
  135. list: {
  136. type: Array,
  137. default: []
  138. }
  139. },
  140. setup(__props) {
  141. const counterStore = store_index.userStore();
  142. const showPop = common_vendor.ref(false);
  143. function goDetail(item) {
  144. if (!counterStore.userInfo.myHouse) {
  145. getHousesFn();
  146. }
  147. common_vendor.index.navigateTo({
  148. url: "/pages/subPage/notice/noticeDetail?id=" + item.id
  149. });
  150. }
  151. function oneBtnClickFn() {
  152. showPop.value = false;
  153. common_vendor.index.navigateTo({
  154. url: "/pages/subPage/authentication/authentication"
  155. });
  156. }
  157. async function getHousesFn() {
  158. if (!counterStore.token) {
  159. common_vendor.index.navigateTo({
  160. url: "/pages/subPage/login/login"
  161. });
  162. return;
  163. }
  164. const {
  165. data: res
  166. } = await config_api.getHouses();
  167. if (!res.length) {
  168. return showPop.value = true;
  169. }
  170. counterStore.upDateUseInfo("myHouse", res);
  171. }
  172. return (_ctx, _cache) => {
  173. return {
  174. a: common_vendor.f(__props.list, (item, index, i0) => {
  175. return {
  176. a: common_vendor.t(item.title),
  177. b: common_vendor.t(item.timeDesc),
  178. c: item.picture,
  179. d: index,
  180. e: common_vendor.o(($event) => goDetail(item), index)
  181. };
  182. }),
  183. b: common_vendor.o(oneBtnClickFn),
  184. c: common_vendor.p({
  185. text: "点击认证业主"
  186. }),
  187. d: common_vendor.o(($event) => showPop.value = false),
  188. e: common_vendor.p({
  189. show: showPop.value,
  190. mode: "center",
  191. round: 10,
  192. customStyle: {
  193. width: "90%"
  194. },
  195. closeable: true
  196. })
  197. };
  198. };
  199. }
  200. };
  201. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-95913b5f"], ["__file", "D:/work/xinjiangMiniProgram/pages/tabbar/index/comp/notice.vue"]]);
  202. wx.createComponent(Component);