105 lines
8.7 KiB
JavaScript
Raw Permalink Normal View History

2025-12-19 09:46:56 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const ME_push_show_model = require("./model.js");
const ME_push_show_method = require("./method.js");
require("../../common/libraries/request.js");
2026-01-30 09:54:46 +08:00
require("../../common/store/useWatermarkStore.js");
2025-12-19 09:46:56 +08:00
const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js");
require("../../common/store/useWorkStore.js");
require("../../common/libraries/day.js");
require("../../common/libraries/apiLoading.js");
require("../../gen/Apis.js");
require("../../common/libraries/naviHelper.js");
require("../../common/libraries/sendWxWork.js");
if (!Array) {
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
_easycom_hs_footer2();
}
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
if (!Math) {
_easycom_hs_footer();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
const auth = common_store_useWeAppAuthStore.useWeAppAuthStore();
common_vendor.onShow(() => {
var _a, _b, _c, _d, _e, _f, _g;
if ((_c = (_b = (_a = ME_push_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.id) {
(_g = ME_push_show_method.method) == null ? void 0 : _g.getCustomerMomentsShow((_f = (_e = (_d = ME_push_show_model.useModel) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.id);
}
});
common_vendor.onLoad((e) => {
var _a;
ME_push_show_model.useModel.formData.value = {
customer_moments_id: e == null ? void 0 : e.model_id,
company_employee_backlogs_id: e == null ? void 0 : e.id
};
(_a = ME_push_show_method.method) == null ? void 0 : _a.getCustomerMomentsShow(e == null ? void 0 : e.data_id);
});
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha;
return common_vendor.e({
a: (_e = (_d = (_c = (_b = (_a = common_vendor.unref(auth)) == null ? void 0 : _a.data) == null ? void 0 : _b.user) == null ? void 0 : _c.avatar) == null ? void 0 : _d[0]) == null ? void 0 : _e.url,
b: common_vendor.t(((_h = (_g = (_f = common_vendor.unref(auth)) == null ? void 0 : _f.data) == null ? void 0 : _g.user) == null ? void 0 : _h.name) || "员工名称"),
c: common_vendor.t((_k = (_j = (_i = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.title),
d: common_vendor.t(((_m = (_l = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _l.status) == null ? void 0 : _m.value) === "Sent" ? "已发送" : "待发送"),
e: common_vendor.n(`status status_${(_o = (_n = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _n.status) == null ? void 0 : _o.value}`),
f: ((_r = (_q = (_p = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.content_type) === "Image"
}, ((_u = (_t = (_s = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.content_type) === "Image" ? {
g: common_vendor.f((_x = (_w = (_v = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _v.showData) == null ? void 0 : _w.value) == null ? void 0 : _x.attachments, (i, index, i0) => {
return {
a: `img_${index}`,
b: i.url
};
})
} : {}, {
h: ((_A = (_z = (_y = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _y.showData) == null ? void 0 : _z.value) == null ? void 0 : _A.content_type) === "Link"
}, ((_D = (_C = (_B = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _B.showData) == null ? void 0 : _C.value) == null ? void 0 : _D.content_type) === "Link" ? {
i: common_vendor.f((_G = (_F = (_E = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.cover_image, (i, index, i0) => {
return {
a: `img_${index}`,
b: i.url
};
}),
j: common_vendor.t((_J = (_I = (_H = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _H.showData) == null ? void 0 : _I.value) == null ? void 0 : _J.content)
} : {}, {
k: ((_M = (_L = (_K = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _K.showData) == null ? void 0 : _L.value) == null ? void 0 : _M.content_type) === "Video"
}, ((_P = (_O = (_N = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _N.showData) == null ? void 0 : _O.value) == null ? void 0 : _P.content_type) === "Video" ? {
l: (_U = (_T = (_S = (_R = (_Q = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.attachments) == null ? void 0 : _T[0]) == null ? void 0 : _U.url
} : {}, {
m: ((_X = (_W = (_V = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _V.showData) == null ? void 0 : _W.value) == null ? void 0 : _X.content_type) === "MiniProgram"
}, ((__ = (_Z = (_Y = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Y.showData) == null ? void 0 : _Z.value) == null ? void 0 : __.content_type) === "MiniProgram" ? {
n: common_vendor.t((_ba = (_aa = (_$ = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _$.showData) == null ? void 0 : _aa.value) == null ? void 0 : _ba.content),
o: (_ga = (_fa = (_ea = (_da = (_ca = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ca.showData) == null ? void 0 : _da.value) == null ? void 0 : _ea.cover_image) == null ? void 0 : _fa[0]) == null ? void 0 : _ga.url
} : {}, {
p: ((_ja = (_ia = (_ha = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.channel) === "MomentCorp"
}, ((_ma = (_la = (_ka = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ka.showData) == null ? void 0 : _la.value) == null ? void 0 : _ma.channel) === "MomentCorp" ? {
q: common_vendor.o((_na = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _na.handleMomentCorpSend),
r: common_vendor.p({
btnParimaryName: "发送客户朋友圈",
parimaryDisabled: ((_pa = (_oa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _oa.status) == null ? void 0 : _pa.value) === "Sent"
})
} : {}, {
s: ((_sa = (_ra = (_qa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _qa.showData) == null ? void 0 : _ra.value) == null ? void 0 : _sa.channel) === "CustomerDirectCorp"
}, ((_va = (_ua = (_ta = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ta.showData) == null ? void 0 : _ua.value) == null ? void 0 : _va.channel) === "CustomerDirectCorp" ? {
t: common_vendor.o((_wa = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _wa.handleCustomerDirectCorpSend),
v: common_vendor.p({
btnParimaryName: "1对1群发客户",
parimaryDisabled: ((_ya = (_xa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _xa.status) == null ? void 0 : _ya.value) === "Sent"
})
} : {}, {
w: ((_Ba = (_Aa = (_za = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _za.showData) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.channel) === "CustomerGroupCorp"
}, ((_Ea = (_Da = (_Ca = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Ca.showData) == null ? void 0 : _Da.value) == null ? void 0 : _Ea.channel) === "CustomerGroupCorp" ? {
x: common_vendor.o((_Fa = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _Fa.handleCustomerGroupCorpSend),
y: common_vendor.p({
btnParimaryName: "群发客户群",
parimaryDisabled: ((_Ha = (_Ga = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Ga.status) == null ? void 0 : _Ha.value) === "Sent"
})
} : {});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/push_show/index.vue"]]);
wx.createPage(MiniProgramPage);