Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
xiaogang | 5c7393377b | |
xiaogang | 5e87aa0da1 | |
xiaogang | eaebf019f7 |
|
@ -55,7 +55,7 @@ export default {
|
|||
this.drawerFileList = this.museumfiles;
|
||||
}
|
||||
this.headerObj = {
|
||||
token: sessionStorage.getItem("token"),
|
||||
token: localStorage.getItem("token"),
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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' })
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: "",
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -82,7 +82,7 @@ export default {
|
|||
file_path: "",
|
||||
},
|
||||
headers: {
|
||||
token: sessionStorage.getItem("token"),
|
||||
token: localStorage.getItem("token"),
|
||||
},
|
||||
options: [
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -390,7 +390,7 @@ export default {
|
|||
action: "",
|
||||
dialogVisible: false,
|
||||
headers: {
|
||||
token: sessionStorage.getItem("token"),
|
||||
token: localStorage.getItem("token"),
|
||||
},
|
||||
plist: [],
|
||||
aclist: [
|
||||
|
|
|
@ -100,7 +100,7 @@ export default {
|
|||
imageUrl: "",
|
||||
action: "",
|
||||
headers: {
|
||||
token: sessionStorage.getItem("token"),
|
||||
token: localStorage.getItem("token"),
|
||||
},
|
||||
dialogImageUrl: "",
|
||||
limit: 1,
|
||||
|
|
|
@ -51,7 +51,7 @@ export default {
|
|||
url: "",
|
||||
target_url: "",
|
||||
sort: "",
|
||||
site_id: sessionStorage.getItem("site_id"),
|
||||
site_id: localStorage.getItem("site_id"),
|
||||
},
|
||||
loading: false,
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -131,7 +131,7 @@ export default {
|
|||
imageUrl2: "",
|
||||
action: "",
|
||||
headers: {
|
||||
token: sessionStorage.getItem("token"),
|
||||
token: localStorage.getItem("token"),
|
||||
},
|
||||
dialogImageUrl: "",
|
||||
limit: 1,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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: "添加分类",
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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: [],
|
||||
|
|
|
@ -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: [
|
||||
{
|
||||
|
|
|
@ -152,7 +152,7 @@ export default {
|
|||
pageSize: 10,
|
||||
name: "",
|
||||
state: "",
|
||||
site_id: sessionStorage.getItem("site_id"),
|
||||
site_id: localStorage.getItem("site_id"),
|
||||
},
|
||||
form2: {
|
||||
integral: "",
|
||||
|
|
Loading…
Reference in New Issue