爱简收旧衣按件回收前端代码仓库
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.

63 lines
2.0 KiB

  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
  4. const emailPopup = () => "../../wxcomponents/email-popup/email-popup.js";
  5. const _sfc_main = {
  6. components: {
  7. emailPopup
  8. },
  9. mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
  10. data() {
  11. return {
  12. showEmailPopup: false
  13. };
  14. },
  15. methods: {
  16. async onRefresh() {
  17. await new Promise((resolve) => setTimeout(resolve, 1e3));
  18. common_vendor.index.stopPullRefresh();
  19. },
  20. // 显示弹窗
  21. openEmailPopup() {
  22. this.showEmailPopup = true;
  23. },
  24. // 关闭弹窗
  25. handleCloseEmailPopup() {
  26. this.showEmailPopup = false;
  27. },
  28. navigateBack() {
  29. common_vendor.index.navigateBack();
  30. },
  31. handleOnlineService() {
  32. common_vendor.index.navigateTo({
  33. url: "/pages/customer-service/index"
  34. });
  35. }
  36. }
  37. };
  38. if (!Array) {
  39. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  40. const _component_email_popup = common_vendor.resolveComponent("email-popup");
  41. (_easycom_uni_icons2 + _component_email_popup)();
  42. }
  43. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  44. if (!Math) {
  45. _easycom_uni_icons();
  46. }
  47. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  48. return {
  49. a: common_vendor.p({
  50. type: "left",
  51. size: "20"
  52. }),
  53. b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)),
  54. c: common_vendor.o((...args) => $options.openEmailPopup && $options.openEmailPopup(...args)),
  55. d: common_vendor.o($options.handleCloseEmailPopup),
  56. e: common_vendor.p({
  57. show: $data.showEmailPopup
  58. })
  59. };
  60. }
  61. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a871b013"]]);
  62. wx.createPage(MiniProgramPage);
  63. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/faq.js.map