Compare commits

...

3 Commits
main ... jlghly

Author SHA1 Message Date
xiaogang 5c7393377b 吉林工行辽源 2024-10-18 18:03:44 +08:00
xiaogang 5e87aa0da1 sessionstorage改为localstorage 2024-10-15 14:07:35 +08:00
xiaogang eaebf019f7 温江工商银行 2024-10-10 17:45:57 +08:00
22 changed files with 33 additions and 33 deletions

View File

@ -55,7 +55,7 @@ export default {
this.drawerFileList = this.museumfiles;
}
this.headerObj = {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
};
},
methods: {

View File

@ -30,7 +30,7 @@ Vue.prototype.$http = Axios
Vue.prototype.$qs = qs;
Vue.prototype.util = util
// http://211.137.105.198:8020/
Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://cdxy.qyff.86698.cn/" : "/api/"
Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://jlghly.qyff.86698.cn/" : "/api/"
new Vue({
router,
store,

View File

@ -350,7 +350,7 @@ NProgress.inc(0.2)
NProgress.configure({ easing: 'ease', speed: 500, showSpinner: false })
router.beforeEach((to, from, next) => {
let token = sessionStorage.getItem("token")
let token = localStorage.getItem("token")
if (token) {
if (to.name == 'Login') {
next({ path: '/platform' })

View File

@ -34,7 +34,7 @@ export default {
axios.post(url, $qs.stringify(data), {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'token': sessionStorage.getItem("token")
'token': localStorage.getItem("token")
}
}).then(
response => {
@ -63,7 +63,7 @@ export default {
.get(url, {
params: params,
headers: {
'token': sessionStorage.getItem("token")
'token': localStorage.getItem("token")
}
})
.then(response => {
@ -90,7 +90,7 @@ export default {
axios.delete(url, {
params: param, // 请求参数拼接在url上param,
headers: {
'token': sessionStorage.getItem("token")
'token': localStorage.getItem("token")
}
})
.then(response => {
@ -117,7 +117,7 @@ export default {
return new Promise((resolve, reject) => {
axios.put(url, params, {
headers: {
'token': sessionStorage.getItem("token")
'token': localStorage.getItem("token")
}
})
.then(response => {
@ -402,7 +402,7 @@ export default {
headers: {
// 'Content-Type': 'multipart/form-data',
'Content-Type': 'application/json',
'token': sessionStorage.getItem("token")
'token': localStorage.getItem("token")
}
}).then(
response => {

View File

@ -245,10 +245,10 @@ export default {
if (res.code == 200) {
this.$toast.close();
this.goloading = false;
sessionStorage.setItem("token", res.data.token);
sessionStorage.setItem("site_id", res.data.site_id);
sessionStorage.setItem("user_id", res.data.id);
sessionStorage.setItem("adminname", res.data.name);
localStorage.setItem("token", res.data.token);
localStorage.setItem("site_id", res.data.site_id);
localStorage.setItem("user_id", res.data.id);
localStorage.setItem("adminname", res.data.name);
this.$router.push({
name: "didvision",
// params: {

View File

@ -89,7 +89,7 @@ export default {
state: 1,
nickname: "",
name: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
phone: "",
password: "",
role_id: "",

View File

@ -49,7 +49,7 @@ export default {
category_id: "123",
level: 1,
stock: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
loading: false,
};

View File

@ -45,7 +45,7 @@
style="cursor: pointer"
@click="open"
></i>
<div class="bold f22 ml20">扬州兴业银行权益管理中心</div>
<div class="bold f22 ml20">银行权益管理中心</div>
</div>
<!-- 退出 -->
<el-dropdown>
@ -98,14 +98,14 @@ export default {
if (document.documentElement.clientWidth < 768) {
this.isCollapse = true;
}
this.adminname = sessionStorage.getItem("adminname");
this.adminname = localStorage.getItem("adminname");
this.getmenu();
},
methods: {
getmenu() {
this.util
.get(this.HOST + "bank/siteinfo", {
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
})
.then((res) => {
console.log(res);

View File

@ -82,7 +82,7 @@ export default {
file_path: "",
},
headers: {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
},
options: [
{

View File

@ -238,7 +238,7 @@ export default {
this.tableloading = true;
this.util
.get(this.HOST + "bank/siteinfo", {
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
})
.then((res) => {
console.log(res);

View File

@ -390,7 +390,7 @@ export default {
action: "",
dialogVisible: false,
headers: {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
},
plist: [],
aclist: [

View File

@ -100,7 +100,7 @@ export default {
imageUrl: "",
action: "",
headers: {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
},
dialogImageUrl: "",
limit: 1,

View File

@ -51,7 +51,7 @@ export default {
url: "",
target_url: "",
sort: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
loading: false,
};

View File

@ -155,7 +155,7 @@ export default {
this.$toast.loading("加载中...");
this.util
.get(this.HOST + "bank/siteinfo", {
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
})
.then((res) => {
console.log(res);

View File

@ -131,7 +131,7 @@ export default {
imageUrl2: "",
action: "",
headers: {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
},
dialogImageUrl: "",
limit: 1,

View File

@ -160,7 +160,7 @@ export default {
category_id: "",
level: 1,
stock: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
real_price: "",
spec_name: "",
detail_image: [],
@ -173,7 +173,7 @@ export default {
imageUrl2: "",
action: "",
headers: {
token: sessionStorage.getItem("token"),
token: localStorage.getItem("token"),
},
dialogImageUrl: "",
limit: 1,

View File

@ -67,7 +67,7 @@ export default {
category_id: "123",
level: 1,
stock: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
loading: false,
};

View File

@ -69,7 +69,7 @@ export default {
parent_id: "",
icon: "",
sort: 1,
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
loading: false,
title: "添加分类",

View File

@ -55,7 +55,7 @@ export default {
category_id: "123",
level: 1,
stock: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
loading: false,
};

View File

@ -62,7 +62,7 @@ export default {
form: {
state: 1,
name: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
tag_ids: [],
},
tags: [],

View File

@ -137,8 +137,8 @@ export default {
form: {
page: 1,
pageSize: 10,
user_id: sessionStorage.getItem("user_id"),
site_id: sessionStorage.getItem("site_id"),
user_id: localStorage.getItem("user_id"),
site_id: localStorage.getItem("site_id"),
},
options: [
{

View File

@ -152,7 +152,7 @@ export default {
pageSize: 10,
name: "",
state: "",
site_id: sessionStorage.getItem("site_id"),
site_id: localStorage.getItem("site_id"),
},
form2: {
integral: "",