Commit 592e2e95 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 63e8ea13 0979189d
# 易政秀
VUE_APP_API_ES_URL=http://8.136.255.30
VUE_APP_API_ES_URL=http://www.ezxiu.cn
# 系统名称
VUE_APP_systemName = 智慧大厅集成化综合管理平台
\ No newline at end of file
import http from "../request/http";
let baseURL = "http://8.136.255.30"
let baseURL = process.env.VUE_APP_API_ES_URL;
let proURL = process.env.VUE_APP_API_BASE_URL;
// 查询客户管理列表
......@@ -15,4 +15,4 @@ export function windowList(params) {
// 图片作品
export function picInfoList(params) {
return http.post(`${baseURL}/eas/customer/work/design/picture/list`, params);
}
\ No newline at end of file
}
......@@ -4,19 +4,20 @@ import store from "@/store"; // 导入 Vuex store 实例
const licenseHintModal = vue.extend(LicenseHintModal);
function showLicenseHintModal(duration = 5) {
const existingModal = document.getElementById("licenseHintModal");
if (!existingModal) {
const dom = new licenseHintModal({
store,
el: document.createElement("div"),
data() {
return {
duration: duration,
};
},
});
dom.$el.id = "licenseHintModal";
document.body.appendChild(dom.$el);
if (existingModal) {
document.body.removeChild(existingModal);
}
const dom = new licenseHintModal({
store,
el: document.createElement("div"),
data() {
return {
duration: duration,
};
},
});
dom.$el.id = "licenseHintModal";
document.body.appendChild(dom.$el);
}
function registryModal() {
......
......@@ -12,19 +12,20 @@ let defaultParams = {
};
function showWatermarkCom(watermark = defaultParams) {
const existingModal = document.getElementById("Watermark");
if (!existingModal) {
const dom = new watermarkCom({
store,
el: document.createElement("div"),
data() {
return {
watermark,
};
},
});
dom.$el.id = "Watermark";
document.body.appendChild(dom.$el);
if (existingModal) {
document.body.removeChild(existingModal);
}
const dom = new watermarkCom({
store,
el: document.createElement("div"),
data() {
return {
watermark,
};
},
});
dom.$el.id = "Watermark";
document.body.appendChild(dom.$el);
}
function registryCom() {
......
......@@ -26,18 +26,18 @@ router.beforeEach(async (to, from, next) => {
// let routerPath = store.getters["user/routerList"];
// let toRootPathArr = to.matched.map((v) => v.path);
// let bol = hasIntersection(toRootPathArr, routerPath);
let date = moment().format("YYYY-MM-DD");
let getDate = store.getters["user/licenseInfo"].date;
if (!getDate || date != getDate) {
await store.dispatch("user/checkCipher");
}
let licenseInfo = store.getters["user/licenseInfo"];
if (licenseInfo.isExpire) {
// 打开弹窗
Vue.prototype.$licenseHintModal();
// 打开水印
Vue.prototype.$watermark();
}
// let date = moment().format("YYYY-MM-DD");
// let getDate = store.getters["user/licenseInfo"].date;
// if (!getDate || date != getDate) {
// await store.dispatch("user/checkCipher");
// }
// let licenseInfo = store.getters["user/licenseInfo"];
// if (licenseInfo.isExpire) {
// // 打开弹窗
// Vue.prototype.$licenseHintModal();
// // 打开水印
// Vue.prototype.$watermark();
// }
if (islogin) {
next();
// if (routerPath.includes(to.path) || bol) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment