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.

201 lines
9.3 KiB

import {_ as e} from "./index-Ck5sZVes.js";
import {
_ as t,
c as o,
B as a,
L as s,
C as i,
a as n,
b as r,
a1 as c,
F as l,
M as u,
Q as d,
I as p,
d as m,
r as f,
u as h,
E as y,
k as g,
e as L,
$ as b,
ac as v,
a5 as w,
J as x,
D as N,
ad as _,
R as C,
ae as k,
o as q,
N as T
} from "./index-CM4JxjqE.js";
import {k as O} from "./enforce-BniGPKEl.js";
const S = m({name: "Home"}), E = {key: 0, class: "home app_content"}, I = {class: "warp_body"},
j = {class: "noticeContent"}, V = ["onClick"], D = {key: 1, class: "notice_list"}, M = {class: "boutique_box"},
A = {class: "boutique_body"}, R = {class: "box-qr-code"}, W = {class: "link-text"},
F = {key: 0, class: "footer_body"};
const z = t(Object.assign(S, {
setup(e, {expose: t}) {
t();
const o = f(!0), {useCommon: a} = b, s = h(), i = y();
var n = g([]);
let r = g([]), c = g([]), l = g({refreshLoad: !1, listLoading: !1, listFinished: !1, key: 0, animate: !1});
let u = g({
noticeList: [],
notificationtext: "",
noticeTimer: null,
itemWidth: 0,
offset: 0,
step: 3,
speed: 20
});
const d = g({noticeList: [], notNull: !0}), p = g([]),
q = g({columnNum: 4, itemClass: "boutique_item", goodsCradclass: "boutique-crad"});
var T = g("");
const S = () => {
O({isPublish: 1, dateType: 4}, (e => {
0 == (n = e.rows).length && (d.notNull = !1);
for (let o = 0; o < e.rows.length; o++) {
const a = e.rows[o];
if ("quarter" == a.timeType) {
let e = "";
"1" == a.quarter && (e = "一季度"), "2" == a.quarter && (e = "二季度"), "3" == a.quarter && (e = "三季度"), "4" == a.quarter && (e = "四季度"), a.planName = a.planYear + "年" + e + a.planName
} else if ("mouth" == a.timeType) {
const e = a.mouth + "月";
a.planName = a.planYear + "年" + e + a.planName
}
a.planName = a.bureauDeptName + a.planName, u.noticeList.push(a.planName);
var t = {content: a.planName, id: a.id, type: a.type};
d.noticeList.push(t)
}
l.key = 1, E()
}), (e => {
}))
};
L((() => {
let e = window.location.href, t = e.substring(e.indexOf("code=") + 5, e.indexOf("&state="));
o.value = a.firstLoad, v(t, (e => {
//alert(JSON.stringify(e.data));
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";
}
a.SET_USER_ID(e.data.userId), a.SET_TOKEN(e.data.token), a.SET_HAS_LAW(e.data.lawOfficer), a.SET_ORG_ID(e.data.bureauDept.deptId), o.value = !1, a.SET_IS_FIRST_LOAD(!1), S()
}), (e => {
//alert("error:" + JSON.stringify(e));
S()
})), setInterval(I, 3e3)
}));
const E = () => {
clearInterval(u.noticeTimer);
const e = document.getElementById("notification-container").offsetWidth;
let t = 0;
u.notificationtext = u.noticeList[t];
const o = document.getElementById("notification");
u.offset = e, o.style.transform = "translateX(".concat(u.offset, "px)"), u.itemWidth = 20 * u.notificationtext.length, u.noticeTimer = setInterval((() => {
u.offset -= u.step, u.offset < -u.itemWidth && (u.offset = e, t >= u.noticeList.length - 1 ? t = 0 : t++, u.notificationtext = u.noticeList[t], u.itemWidth = 20 * u.notificationtext.length), o.style.transform = "translateX(".concat(u.offset, "px)")
}), u.speed)
}, I = () => {
l.animate = !0, setTimeout((() => {
d.noticeList.push(d.noticeList[0]), d.noticeList.shift(), l.animate = !1
}), 500)
}, j = {
isLoading: o, useCommon: a, router: s, route: i, get carouselList() {
return n
}, set carouselList(e) {
n = e
}, get boutique() {
return r
}, set boutique(e) {
r = e
}, get recommend() {
return c
}, set recommend(e) {
c = e
}, get freshMap() {
return l
}, set freshMap(e) {
l = e
}, noticeList: [], get noticeObj() {
return u
}, set noticeObj(e) {
u = e
}, data: d, adviceList: p, boutiqueAttr: q, getCarousel: async () => {
}, boutiqueGoods: async () => {
}, get noticeStr() {
return T
}, set noticeStr(e) {
T = e
}, toScanCodeView: async () => {
a.hasLaw ? s.push({path: "/enforce/scanQrCode"}) : _("非行政执法人员无法使用该功能")
}, toNonLawView: async () => {
s.push({path: "/non-scan"})
}, toRegistrationListView: async () => {
a.hasLaw ? s.push({path: "/historyCheck"}) : _("非行政执法人员无法使用该功能")
}, toComplaintView: async () => {
s.push({path: "/enterprise/complaint"})
}, toAnalyseView: async () => {
a.hasLaw ? s.push({path: "/comprehensiveAnalysis"}) : _("非行政执法人员无法使用该功能")
}, toNoticeView: async () => {
s.push({path: "/enforce/enforceNotice"})
}, toNoticeDetail: async e => {
null != e ? s.push({path: "/enforce/enforceNotice", query: {type: e.type}}) : _("没有执行计划")
}, queryList: S, flushMessage: () => {
timerObj.value++, l.key = timerObj.value, n.length == timerObj.value && (timerObj.value = 0), l.key = timerObj.value, T = n[timerObj.value].planName
}, onRefresh: () => {
l.listFinished = !1, l.listLoading = !0, l.refreshLoad = !0
}, onLoad: () => {
}, setNotificationMove: E, 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) + u.itemWidth) / u.step * u.speed;
setTimeout((() => {
this.setNotificationMove()
}), t)
} else this.setNotificationMove()
}, showNotice: I, defineComponent: m, get Vconsolefrom() {
return k
}, get Loading() {
return C
}, get showFailToast() {
return _
}, get showToast() {
return N
}, get showSuccessToast() {
return x
}, get getEnterpriseMerchantAuthorization() {
return w
}, get getSzyptLoginAuth() {
return v
}, get queryEnforcementNotice() {
return O
}
};
return Object.defineProperty(j, "__isScriptSetup", {enumerable: !1, value: !0}), j
}
}), [["render", function (t, m, f, h, y, g) {
const L = p, b = e;
return q(), o(l, null, [a(n(h.Loading, {
class: "loading-div",
type: "spinner",
color: "#1989fa"
}, null, 512), [[i, h.isLoading]]), h.isLoading ? s("", !0) : (q(), o("div", E, [r("div", I, [m[6] || (m[6] = r("div", {class: "logobox"}, null, -1)), r("div", j, [h.data.notNull ? (q(), o("ul", {
key: 0,
class: c(["notice_list", h.data.noticeList.length > 1 ? {notice_top: h.freshMap.animate} : ""])
}, [(q(!0), o(l, null, u(h.data.noticeList, ((e, t) => (q(), o("li", {
key: t,
onClick: t => h.toNoticeDetail(e)
}, [r("span", null, T(e.content), 1), n(L, {name: "arrow"})], 8, V)))), 128))], 2)) : (q(), o("ul", D, m[0] || (m[0] = [r("li", null, "近一星期暂无通知消息", -1)])))]), r("div", {
class: "carousel_box",
"on:onLoad": h.onLoad
}, null, 32), r("div", M, [r("div", A, [r("div", R, [m[3] || (m[3] = r("span", {class: "box-qr-code-text"}, "扫码入企", -1)), r("div", W, [r("span", {onClick: h.toScanCodeView}, [m[1] || (m[1] = d("行政执法", -1)), n(L, {name: "arrow"})]), r("span", {onClick: h.toNonLawView}, [m[2] || (m[2] = d("非行政执法", -1)), n(L, {name: "arrow"})])])])]), r("div", {class: "boutique_body"}, [r("div", {
class: "box-info",
onClick: h.toRegistrationListView
}, m[4] || (m[4] = [r("span", {class: "box-info-text"}, "行政执法信息", -1)])), r("div", {
class: "box-complaint",
onClick: h.toAnalyseView
}, m[5] || (m[5] = [r("span", {class: "box-complaint-text"}, "统计分析", -1)]))])])]), h.useCommon.hasLaw ? (q(), o("div", F, [n(b)])) : s("", !0)]))], 64)
}], ["__scopeId", "data-v-d74075e2"], ["__file", "D:/zdxt/ZFJD/zdxtLawEnforcementCodeView/src/views/enforceHome.vue"]]);
export {z as default};