|
|
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
- const emailPopup = () => "../../wxcomponents/email-popup/email-popup.js";
- const _sfc_main = {
- mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
- components: {
- emailPopup
- },
- data() {
- return {
- greeting: "下午好",
- showPhonePopup: false,
- showEmailPopup: false
- };
- },
- created() {
- this.updateGreeting();
- },
- methods: {
- async onRefresh() {
- await new Promise((resolve) => setTimeout(resolve, 1e3));
- common_vendor.index.stopPullRefresh()()();
- },
- // 显示弹窗
- openEmailPopup() {
- this.showEmailPopup = true;
- },
- // 关闭弹窗
- handleCloseEmailPopup() {
- this.showEmailPopup = false;
- },
- navigateBack() {
- common_vendor.index.navigateBack();
- },
- updateGreeting() {
- const hour = (/* @__PURE__ */ new Date()).getHours();
- if (hour < 12) {
- this.greeting = "上午好";
- } else if (hour < 18) {
- this.greeting = "下午好";
- } else {
- this.greeting = "晚上好";
- }
- },
- navigateToFAQ() {
- common_vendor.index.navigateTo({
- url: "/pages/customer-service/faq"
- });
- },
- handleOnlineService() {
- common_vendor.index.__f__("log", "at pages/subcomponent/admin_customer.vue:148", "打开在线客服");
- },
- handlePhoneService() {
- this.showPhonePopup = true;
- },
- hidePhonePopup() {
- this.showPhonePopup = false;
- },
- makePhoneCall() {
- common_vendor.index.makePhoneCall({
- phoneNumber: "0731-599327-8899"
- });
- }
- }
- };
- if (!Array) {
- const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
- const _component_email_popup = common_vendor.resolveComponent("email-popup");
- (_easycom_uni_icons2 + _component_email_popup)();
- }
- const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
- if (!Math) {
- _easycom_uni_icons();
- }
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return common_vendor.e({
- a: common_vendor.p({
- type: "left",
- size: "20"
- }),
- b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)),
- c: common_vendor.t($data.greeting),
- d: common_vendor.o((...args) => $options.handleOnlineService && $options.handleOnlineService(...args)),
- e: common_vendor.o((...args) => $options.handlePhoneService && $options.handlePhoneService(...args)),
- f: common_vendor.o((...args) => $options.navigateToFAQ && $options.navigateToFAQ(...args)),
- g: common_vendor.o((...args) => $options.handlePhoneService && $options.handlePhoneService(...args)),
- h: $data.showPhonePopup
- }, $data.showPhonePopup ? {
- i: common_vendor.o((...args) => $options.hidePhonePopup && $options.hidePhonePopup(...args)),
- j: common_vendor.o((...args) => $options.hidePhonePopup && $options.hidePhonePopup(...args)),
- k: common_vendor.p({
- type: "phone-filled",
- size: "23"
- }),
- l: common_vendor.o((...args) => $options.makePhoneCall && $options.makePhoneCall(...args))
- } : {}, {
- m: common_vendor.o($options.handleCloseEmailPopup),
- n: common_vendor.p({
- show: $data.showEmailPopup
- })
- });
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-56c2ae06"]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/admin_customer.js.map
|