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

103 lines
3.3 KiB

  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const emailPopup = () => "../../wxcomponents/email-popup/email-popup.js";
  4. const _sfc_main = {
  5. components: {
  6. emailPopup
  7. },
  8. data() {
  9. return {
  10. greeting: "下午好",
  11. showPhonePopup: false,
  12. showEmailPopup: false
  13. };
  14. },
  15. created() {
  16. this.updateGreeting();
  17. },
  18. methods: {
  19. // 显示弹窗
  20. openEmailPopup() {
  21. this.showEmailPopup = true;
  22. },
  23. // 关闭弹窗
  24. handleCloseEmailPopup() {
  25. this.showEmailPopup = false;
  26. },
  27. navigateBack() {
  28. common_vendor.index.navigateBack();
  29. },
  30. updateGreeting() {
  31. const hour = (/* @__PURE__ */ new Date()).getHours();
  32. if (hour < 12) {
  33. this.greeting = "上午好";
  34. } else if (hour < 18) {
  35. this.greeting = "下午好";
  36. } else {
  37. this.greeting = "晚上好";
  38. }
  39. },
  40. navigateBack() {
  41. common_vendor.index.navigateBack();
  42. },
  43. navigateToFAQ() {
  44. common_vendor.index.navigateTo({
  45. url: "/pages/customer-service/faq"
  46. });
  47. },
  48. handleOnlineService() {
  49. common_vendor.index.__f__("log", "at pages/subcomponent/customer.vue:144", "打开在线客服");
  50. },
  51. handlePhoneService() {
  52. this.showPhonePopup = true;
  53. },
  54. hidePhonePopup() {
  55. this.showPhonePopup = false;
  56. },
  57. makePhoneCall() {
  58. common_vendor.index.makePhoneCall({
  59. phoneNumber: "0731-599327-8899"
  60. });
  61. }
  62. }
  63. };
  64. if (!Array) {
  65. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  66. const _component_email_popup = common_vendor.resolveComponent("email-popup");
  67. (_easycom_uni_icons2 + _component_email_popup)();
  68. }
  69. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  70. if (!Math) {
  71. _easycom_uni_icons();
  72. }
  73. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  74. return common_vendor.e({
  75. a: common_vendor.p({
  76. type: "left",
  77. size: "20"
  78. }),
  79. b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)),
  80. c: common_vendor.t($data.greeting),
  81. d: common_vendor.o((...args) => $options.handleOnlineService && $options.handleOnlineService(...args)),
  82. e: common_vendor.o((...args) => $options.handlePhoneService && $options.handlePhoneService(...args)),
  83. f: common_vendor.o((...args) => $options.navigateToFAQ && $options.navigateToFAQ(...args)),
  84. g: common_vendor.o((...args) => $options.handlePhoneService && $options.handlePhoneService(...args)),
  85. h: $data.showPhonePopup
  86. }, $data.showPhonePopup ? {
  87. i: common_vendor.o((...args) => $options.hidePhonePopup && $options.hidePhonePopup(...args)),
  88. j: common_vendor.o((...args) => $options.hidePhonePopup && $options.hidePhonePopup(...args)),
  89. k: common_vendor.p({
  90. type: "phone-filled",
  91. size: "23"
  92. }),
  93. l: common_vendor.o((...args) => $options.makePhoneCall && $options.makePhoneCall(...args))
  94. } : {}, {
  95. m: common_vendor.o($options.handleCloseEmailPopup),
  96. n: common_vendor.p({
  97. show: $data.showEmailPopup
  98. })
  99. });
  100. }
  101. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7adfd733"]]);
  102. wx.createPage(MiniProgramPage);
  103. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/customer.js.map