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.

185 lines
26 KiB

System.register(["./index-legacy-C3rXBNFm.js", "./index-legacy-COZ5mJbg.js", "./enforce-legacy-ysCDrJU6.js"], (function (e, t) {
"use strict";
var o, i, a, n, r, s, d, l, c, m, u, b, f, h, p, g, x, A, v, w, U, k, y, C, N, L, F, Q, T, V;
return {
setters: [e => {
o = e._
}, e => {
i = e._, a = e.c, n = e.B, r = e.L, s = e.C, d = e.a, l = e.b, c = e.a1, m = e.F, u = e.M, b = e.Q, f = e.I, h = e.d, p = e.r, g = e.u, x = e.E, A = e.k, v = e.e, w = e.$, U = e.ac, k = e.a5, y = e.J, C = e.D, N = e.ad, L = e.R, F = e.ae, Q = e.o, T = e.N
}, e => {
V = e.k
}], execute: function () {
var q = document.createElement("style");
q.textContent = ".home[data-v-d74075e2]{display:flex;flex-direction:column;height:100%;overflow:hidden;background-color:#f4f4f4}.home .warp_body[data-v-d74075e2]{position:relative;margin:0;width:100%;height:100%;background:#c6e6ff url(" + new URL("../jpg/bg_el-DujJYyby.jpg", t.meta.url).href + ') no-repeat top;background-size:auto 100%;overflow-x:hidden;overflow-y:auto}.home .warp_body .carousel_box[data-v-d74075e2]{height:4rem;width:100%;padding-bottom:.27rem}.home .boutique_box[data-v-d74075e2]{position:absolute;width:100%;bottom:.5rem}.home .boutique_box .boutique_body[data-v-d74075e2]{padding:0 0 .27rem;display:flex;justify-content:center}.home .boutique_box .box-qr-code[data-v-d74075e2]{position:relative;margin:2% 0;width:90%;height:3.67rem;text-align:right;border-radius:.27rem}.home .boutique_box .box-qr-code .box-qr-code-text[data-v-d74075e2]{position:absolute;z-index:10;top:6%;left:2.65rem;display:block;font-size:.5rem}.home .boutique_box .box-qr-code[data-v-d74075e2]:before{content:"";position:absolute;top:-.14rem;left:-.14rem;z-index:0;width:calc(100% + .13rem);height:calc(100% + .13rem);background-color:#fff;border:.14rem solid rgba(255,255,255,.5);border-radius:.27rem}.home .boutique_box .box-qr-code[data-v-d74075e2]:after{content:"";position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;border-radius:.27rem;background:#fff url(' + new URL("../jpg/item_scan2-DGRVesoa.jpg", t.meta.url).href + ') no-repeat left;background-size:auto 100%;border:.01rem solid #8db4ff}.home .boutique_box .box-info[data-v-d74075e2]{position:relative;margin-right:2%;width:50%;height:3.67rem;text-align:right;border-radius:.27rem}.home .boutique_box .box-info .box-info-text[data-v-d74075e2]{position:absolute;z-index:10;top:6%;right:.35rem;display:block;font-size:.5rem}.home .boutique_box .box-info[data-v-d74075e2]:before{content:"";position:absolute;top:-.14rem;left:-.14rem;z-index:0;width:calc(100% + .13rem);height:calc(100% + .13rem);background-color:#fff;border:.14rem solid rgba(255,255,255,.5);border-radius:.27rem}.home .boutique_box .box-info[data-v-d74075e2]:after{content:"";position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;border-radius:.27rem;background:#fff url(' + new URL("../jpg/item_check-EC79Fwl9.jpg", t.meta.url).href + ') no-repeat left;background-size:auto 100%;border:.02667rem solid #8db4ff}.home .boutique_box .box-complaint[data-v-d74075e2]{position:relative;margin-left:3%;width:35%;height:3.67rem;text-align:right;border-radius:.27rem}.home .boutique_box .box-complaint .box-complaint-text[data-v-d74075e2]{position:absolute;z-index:10;top:6%;right:.35rem;display:block;font-size:.5rem}.home .box-complaint[data-v-d74075e2]:before{content:"";position:absolute;top:-.14rem;left:-.14rem;z-index:0;width:calc(100% + .13rem);height:calc(100% + .13rem);background-color:#fff;border:.14rem solid rgba(255,255,255,.5);border-radius:.27rem}.home .box-complaint[data-v-d74075e2]:after{content:"";position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;border-radius:.27rem;background:#fff url(' + new URL("../jpg/item_count-CIg0qZqJ.jpg", t.meta.url).href + ") no-repeat left;background-size:auto 100%;border:.01rem solid #8db4ff}.home .recommend_box .recommend_body[data-v-d74075e2]{width:100%}.streamer[data-v-d74075e2],.noticbox[data-v-d74075e2]{display:flex;position:absolute;top:calc(1% + 10vh);right:3%;z-index:999;padding:0 .25rem;width:90%;min-height:1rem;background-color:rgba(249,238,219,.9);border-radius:.5rem;color:#c35b01;font-size:.42rem;line-height:1rem;white-space:nowrap;box-sizing:content-box}.noticbox[data-v-d74075e2]{top:33%;right:0;padding:0 .2rem;width:1.9rem;min-height:1rem;background-color:rgba(249,238,219,.7);border-radius:.5rem 0 0 .5rem;color:#000}.streamer>i[data-v-d74075e2],.noticbox>i[data-v-d74075e2]{display:inline-block;position:relative;top:.18rem;margin:0 .3rem 0 0;width:.6rem;height:.6rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA4CAYAAACsc+sjAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACV5JREFUeNrUWmtsHFcVPufOruPYzqbETuImDQTTxAlpCElNKL
const W = h({name: "Home"}), S = {key: 0, class: "home app_content"}, X = {class: "warp_body"},
D = {class: "noticeContent"}, O = ["onClick"], B = {key: 1, class: "notice_list"},
R = {class: "boutique_box"}, P = {class: "boutique_body"}, J = {class: "box-qr-code"},
I = {class: "link-text"}, H = {key: 0, class: "footer_body"};
e("default", i(Object.assign(W, {
setup(e, {expose: t}) {
t();
const o = p(!0), {useCommon: i} = w, a = g(), n = x();
var r = A([]);
let s = A([]), d = A([]),
l = A({refreshLoad: !1, listLoading: !1, listFinished: !1, key: 0, animate: !1}), c = A({
noticeList: [],
notificationtext: "",
noticeTimer: null,
itemWidth: 0,
offset: 0,
step: 3,
speed: 20
});
const m = A({noticeList: [], notNull: !0}), u = A([]),
b = A({columnNum: 4, itemClass: "boutique_item", goodsCradclass: "boutique-crad"});
var f = A("");
const Q = () => {
V({isPublish: 1, dateType: 4}, (e => {
0 == (r = e.rows).length && (m.notNull = !1);
for (let o = 0; o < e.rows.length; o++) {
const i = e.rows[o];
if ("quarter" == i.timeType) {
let e = "";
"1" == i.quarter && (e = "一季度"), "2" == i.quarter && (e = "二季度"), "3" == i.quarter && (e = "三季度"), "4" == i.quarter && (e = "四季度"), i.planName = i.planYear + "年" + e + i.planName
} else if ("mouth" == i.timeType) {
const e = i.mouth + "月";
i.planName = i.planYear + "年" + e + i.planName
}
i.planName = i.bureauDeptName + i.planName, c.noticeList.push(i.planName);
var t = {content: i.planName, id: i.id, type: i.type};
m.noticeList.push(t)
}
l.key = 1, T()
}), (e => {
}))
};
v((() => {
let e = window.location.href, t = e.substring(e.indexOf("code=") + 5, e.indexOf("&state="));
o.value = i.firstLoad, U(t, (e => {
if(e.data.userId==17608417058){
3 months ago
window.location.href="http://jdm.szssfj.cn/efcode20-enf-app/enforcement/loginByPassword?loginUserId=d76453e3-6945-4b02-9943-efbd0e8aee9e";
}
i.SET_USER_ID(e.data.userId), i.SET_TOKEN(e.data.token), i.SET_HAS_LAW(e.data.lawOfficer), i.SET_ORG_ID(e.data.bureauDept.deptId), o.value = !1, i.SET_IS_FIRST_LOAD(!1), Q()
}), (e => {
//alert("error:" + JSON.stringify(e));
Q()
})), setInterval(q, 3e3)
}));
const T = () => {
clearInterval(c.noticeTimer);
const e = document.getElementById("notification-container").offsetWidth;
let t = 0;
c.notificationtext = c.noticeList[t];
const o = document.getElementById("notification");
c.offset = e, o.style.transform = `translateX(${c.offset}px)`, c.itemWidth = 20 * c.notificationtext.length, c.noticeTimer = setInterval((() => {
c.offset -= c.step, c.offset < -c.itemWidth && (c.offset = e, t >= c.noticeList.length - 1 ? t = 0 : t++, c.notificationtext = c.noticeList[t], c.itemWidth = 20 * c.notificationtext.length), o.style.transform = `translateX(${c.offset}px)`
}), c.speed)
}, q = () => {
l.animate = !0, setTimeout((() => {
m.noticeList.push(m.noticeList[0]), m.noticeList.shift(), l.animate = !1
}), 500)
}, W = {
isLoading: o, useCommon: i, router: a, route: n, get carouselList() {
return r
}, set carouselList(e) {
r = e
}, get boutique() {
return s
}, set boutique(e) {
s = e
}, get recommend() {
return d
}, set recommend(e) {
d = e
}, get freshMap() {
return l
}, set freshMap(e) {
l = e
}, noticeList: [], get noticeObj() {
return c
}, set noticeObj(e) {
c = e
}, data: m, adviceList: u, boutiqueAttr: b, getCarousel: async () => {
}, boutiqueGoods: async () => {
}, get noticeStr() {
return f
}, set noticeStr(e) {
f = e
}, toScanCodeView: async () => {
i.hasLaw ? a.push({path: "/enforce/scanQrCode"}) : N("非行政执法人员无法使用该功能")
}, toNonLawView: async () => {
a.push({path: "/non-scan"})
}, toRegistrationListView: async () => {
i.hasLaw ? a.push({path: "/historyCheck"}) : N("非行政执法人员无法使用该功能")
}, toComplaintView: async () => {
a.push({path: "/enterprise/complaint"})
}, toAnalyseView: async () => {
i.hasLaw ? a.push({path: "/comprehensiveAnalysis"}) : N("非行政执法人员无法使用该功能")
}, toNoticeView: async () => {
a.push({path: "/enforce/enforceNotice"})
}, toNoticeDetail: async e => {
null != e ? a.push({
path: "/enforce/enforceNotice",
query: {type: e.type}
}) : N("没有执行计划")
}, queryList: Q, flushMessage: () => {
timerObj.value++, l.key = timerObj.value, r.length == timerObj.value && (timerObj.value = 0), l.key = timerObj.value, f = r[timerObj.value].planName
}, onRefresh: () => {
l.listFinished = !1, l.listLoading = !0, l.refreshLoad = !0
}, onLoad: () => {
}, setNotificationMove: T, delayNoticeMove: () => {
let e = document.getElementById("notification").style.transform;
if (e) {
e = e.split("(")[1], e = e.substring(0, e.indexOf("px"));
let t = (Number(e) + c.itemWidth) / c.step * c.speed;
setTimeout((() => {
this.setNotificationMove()
}), t)
} else this.setNotificationMove()
}, showNotice: q, defineComponent: h, get Vconsolefrom() {
return F
}, get Loading() {
return L
}, get showFailToast() {
return N
}, get showToast() {
return C
}, get showSuccessToast() {
return y
}, get getEnterpriseMerchantAuthorization() {
return k
}, get getSzyptLoginAuth() {
return U
}, get queryEnforcementNotice() {
return V
}
};
return Object.defineProperty(W, "__isScriptSetup", {enumerable: !1, value: !0}), W
}
}), [["render", function (e, t, i, h, p, g) {
const x = f, A = o;
return Q(), a(m, null, [n(d(h.Loading, {
class: "loading-div",
type: "spinner",
color: "#1989fa"
}, null, 512), [[s, h.isLoading]]), h.isLoading ? r("", !0) : (Q(), a("div", S, [l("div", X, [t[6] || (t[6] = l("div", {class: "logobox"}, null, -1)), l("div", D, [h.data.notNull ? (Q(), a("ul", {
key: 0,
class: c(["notice_list", h.data.noticeList.length > 1 ? {notice_top: h.freshMap.animate} : ""])
}, [(Q(!0), a(m, null, u(h.data.noticeList, ((e, t) => (Q(), a("li", {
key: t,
onClick: t => h.toNoticeDetail(e)
}, [l("span", null, T(e.content), 1), d(x, {name: "arrow"})], 8, O)))), 128))], 2)) : (Q(), a("ul", B, t[0] || (t[0] = [l("li", null, "近一星期暂无通知消息", -1)])))]), l("div", {
class: "carousel_box",
"on:onLoad": h.onLoad
}, null, 32), l("div", R, [l("div", P, [l("div", J, [t[3] || (t[3] = l("span", {class: "box-qr-code-text"}, "扫码入企", -1)), l("div", I, [l("span", {onClick: h.toScanCodeView}, [t[1] || (t[1] = b("行政执法", -1)), d(x, {name: "arrow"})]), l("span", {onClick: h.toNonLawView}, [t[2] || (t[2] = b("非行政执法", -1)), d(x, {name: "arrow"})])])])]), l("div", {class: "boutique_body"}, [l("div", {
class: "box-info",
onClick: h.toRegistrationListView
}, t[4] || (t[4] = [l("span", {class: "box-info-text"}, "行政执法信息", -1)])), l("div", {
class: "box-complaint",
onClick: h.toAnalyseView
}, t[5] || (t[5] = [l("span", {class: "box-complaint-text"}, "统计分析", -1)]))])])]), h.useCommon.hasLaw ? (Q(), a("div", H, [d(A)])) : r("", !0)]))], 64)
}], ["__scopeId", "data-v-d74075e2"], ["__file", "D:/zdxt/ZFJD/zdxtLawEnforcementCodeView/src/views/enforceHome.vue"]]))
}
}
}));