userLoginPopup.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. "use strict";
  2. const common_vendor = require("../common/vendor.js");
  3. const utils_system = require("../utils/system.js");
  4. if (!Array) {
  5. const _easycom_wd_popup2 = common_vendor.resolveComponent("wd-popup");
  6. _easycom_wd_popup2();
  7. }
  8. const _easycom_wd_popup = () => "../node-modules/wot-design-uni/components/wd-popup/wd-popup.js";
  9. if (!Math) {
  10. _easycom_wd_popup();
  11. }
  12. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  13. __name: "userLoginPopup",
  14. props: {
  15. path: {
  16. type: String,
  17. default: ""
  18. },
  19. refresh: {
  20. type: Boolean,
  21. default: false
  22. }
  23. },
  24. setup(__props, { expose: __expose, emit: __emit }) {
  25. let show = common_vendor.ref(false);
  26. const emit = __emit;
  27. const props = __props;
  28. const getphonenumber = async (e) => {
  29. const res = await utils_system.getMobile(e.detail.code, props.path);
  30. emit("getPhone", res);
  31. show.value = false;
  32. };
  33. __expose({ show });
  34. return (_ctx, _cache) => {
  35. return {
  36. a: common_vendor.o(getphonenumber),
  37. b: common_vendor.o(_ctx.handleClose),
  38. c: common_vendor.o(($event) => common_vendor.isRef(show) ? show.value = $event : show = $event),
  39. d: common_vendor.p({
  40. position: "bottom",
  41. ["custom-style"]: "height: 400rpx;",
  42. modelValue: common_vendor.unref(show)
  43. })
  44. };
  45. };
  46. }
  47. });
  48. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1b693f85"]]);
  49. wx.createComponent(Component);