Compare commits
No commits in common. "jlghly" and "main" have entirely different histories.
|
@ -55,7 +55,7 @@ export default {
|
||||||
this.drawerFileList = this.museumfiles;
|
this.drawerFileList = this.museumfiles;
|
||||||
}
|
}
|
||||||
this.headerObj = {
|
this.headerObj = {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -30,7 +30,7 @@ Vue.prototype.$http = Axios
|
||||||
Vue.prototype.$qs = qs;
|
Vue.prototype.$qs = qs;
|
||||||
Vue.prototype.util = util
|
Vue.prototype.util = util
|
||||||
// http://211.137.105.198:8020/
|
// http://211.137.105.198:8020/
|
||||||
Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://jlghly.qyff.86698.cn/" : "/api/"
|
Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://cdxy.qyff.86698.cn/" : "/api/"
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
|
|
|
@ -350,7 +350,7 @@ NProgress.inc(0.2)
|
||||||
NProgress.configure({ easing: 'ease', speed: 500, showSpinner: false })
|
NProgress.configure({ easing: 'ease', speed: 500, showSpinner: false })
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
let token = localStorage.getItem("token")
|
let token = sessionStorage.getItem("token")
|
||||||
if (token) {
|
if (token) {
|
||||||
if (to.name == 'Login') {
|
if (to.name == 'Login') {
|
||||||
next({ path: '/platform' })
|
next({ path: '/platform' })
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default {
|
||||||
axios.post(url, $qs.stringify(data), {
|
axios.post(url, $qs.stringify(data), {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'token': localStorage.getItem("token")
|
'token': sessionStorage.getItem("token")
|
||||||
}
|
}
|
||||||
}).then(
|
}).then(
|
||||||
response => {
|
response => {
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
.get(url, {
|
.get(url, {
|
||||||
params: params,
|
params: params,
|
||||||
headers: {
|
headers: {
|
||||||
'token': localStorage.getItem("token")
|
'token': sessionStorage.getItem("token")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
||||||
axios.delete(url, {
|
axios.delete(url, {
|
||||||
params: param, // 请求参数拼接在url上param,
|
params: param, // 请求参数拼接在url上param,
|
||||||
headers: {
|
headers: {
|
||||||
'token': localStorage.getItem("token")
|
'token': sessionStorage.getItem("token")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
@ -117,7 +117,7 @@ export default {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios.put(url, params, {
|
axios.put(url, params, {
|
||||||
headers: {
|
headers: {
|
||||||
'token': localStorage.getItem("token")
|
'token': sessionStorage.getItem("token")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
@ -402,7 +402,7 @@ export default {
|
||||||
headers: {
|
headers: {
|
||||||
// 'Content-Type': 'multipart/form-data',
|
// 'Content-Type': 'multipart/form-data',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'token': localStorage.getItem("token")
|
'token': sessionStorage.getItem("token")
|
||||||
}
|
}
|
||||||
}).then(
|
}).then(
|
||||||
response => {
|
response => {
|
||||||
|
|
|
@ -245,10 +245,10 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$toast.close();
|
this.$toast.close();
|
||||||
this.goloading = false;
|
this.goloading = false;
|
||||||
localStorage.setItem("token", res.data.token);
|
sessionStorage.setItem("token", res.data.token);
|
||||||
localStorage.setItem("site_id", res.data.site_id);
|
sessionStorage.setItem("site_id", res.data.site_id);
|
||||||
localStorage.setItem("user_id", res.data.id);
|
sessionStorage.setItem("user_id", res.data.id);
|
||||||
localStorage.setItem("adminname", res.data.name);
|
sessionStorage.setItem("adminname", res.data.name);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "didvision",
|
name: "didvision",
|
||||||
// params: {
|
// params: {
|
||||||
|
|
|
@ -89,7 +89,7 @@ export default {
|
||||||
state: 1,
|
state: 1,
|
||||||
nickname: "",
|
nickname: "",
|
||||||
name: "",
|
name: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
phone: "",
|
phone: "",
|
||||||
password: "",
|
password: "",
|
||||||
role_id: "",
|
role_id: "",
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default {
|
||||||
category_id: "123",
|
category_id: "123",
|
||||||
level: 1,
|
level: 1,
|
||||||
stock: "",
|
stock: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
@click="open"
|
@click="open"
|
||||||
></i>
|
></i>
|
||||||
<div class="bold f22 ml20">银行权益管理中心</div>
|
<div class="bold f22 ml20">扬州兴业银行权益管理中心</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 退出 -->
|
<!-- 退出 -->
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
|
@ -98,14 +98,14 @@ export default {
|
||||||
if (document.documentElement.clientWidth < 768) {
|
if (document.documentElement.clientWidth < 768) {
|
||||||
this.isCollapse = true;
|
this.isCollapse = true;
|
||||||
}
|
}
|
||||||
this.adminname = localStorage.getItem("adminname");
|
this.adminname = sessionStorage.getItem("adminname");
|
||||||
this.getmenu();
|
this.getmenu();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getmenu() {
|
getmenu() {
|
||||||
this.util
|
this.util
|
||||||
.get(this.HOST + "bank/siteinfo", {
|
.get(this.HOST + "bank/siteinfo", {
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
|
@ -82,7 +82,7 @@ export default {
|
||||||
file_path: "",
|
file_path: "",
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -238,7 +238,7 @@ export default {
|
||||||
this.tableloading = true;
|
this.tableloading = true;
|
||||||
this.util
|
this.util
|
||||||
.get(this.HOST + "bank/siteinfo", {
|
.get(this.HOST + "bank/siteinfo", {
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
|
@ -390,7 +390,7 @@ export default {
|
||||||
action: "",
|
action: "",
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
headers: {
|
headers: {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
},
|
},
|
||||||
plist: [],
|
plist: [],
|
||||||
aclist: [
|
aclist: [
|
||||||
|
|
|
@ -100,7 +100,7 @@ export default {
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
action: "",
|
action: "",
|
||||||
headers: {
|
headers: {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
},
|
},
|
||||||
dialogImageUrl: "",
|
dialogImageUrl: "",
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
|
|
@ -51,7 +51,7 @@ export default {
|
||||||
url: "",
|
url: "",
|
||||||
target_url: "",
|
target_url: "",
|
||||||
sort: "",
|
sort: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -155,7 +155,7 @@ export default {
|
||||||
this.$toast.loading("加载中...");
|
this.$toast.loading("加载中...");
|
||||||
this.util
|
this.util
|
||||||
.get(this.HOST + "bank/siteinfo", {
|
.get(this.HOST + "bank/siteinfo", {
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
|
@ -131,7 +131,7 @@ export default {
|
||||||
imageUrl2: "",
|
imageUrl2: "",
|
||||||
action: "",
|
action: "",
|
||||||
headers: {
|
headers: {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
},
|
},
|
||||||
dialogImageUrl: "",
|
dialogImageUrl: "",
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
|
|
@ -160,7 +160,7 @@ export default {
|
||||||
category_id: "",
|
category_id: "",
|
||||||
level: 1,
|
level: 1,
|
||||||
stock: "",
|
stock: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
real_price: "",
|
real_price: "",
|
||||||
spec_name: "",
|
spec_name: "",
|
||||||
detail_image: [],
|
detail_image: [],
|
||||||
|
@ -173,7 +173,7 @@ export default {
|
||||||
imageUrl2: "",
|
imageUrl2: "",
|
||||||
action: "",
|
action: "",
|
||||||
headers: {
|
headers: {
|
||||||
token: localStorage.getItem("token"),
|
token: sessionStorage.getItem("token"),
|
||||||
},
|
},
|
||||||
dialogImageUrl: "",
|
dialogImageUrl: "",
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
|
|
@ -67,7 +67,7 @@ export default {
|
||||||
category_id: "123",
|
category_id: "123",
|
||||||
level: 1,
|
level: 1,
|
||||||
stock: "",
|
stock: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default {
|
||||||
parent_id: "",
|
parent_id: "",
|
||||||
icon: "",
|
icon: "",
|
||||||
sort: 1,
|
sort: 1,
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
title: "添加分类",
|
title: "添加分类",
|
||||||
|
|
|
@ -55,7 +55,7 @@ export default {
|
||||||
category_id: "123",
|
category_id: "123",
|
||||||
level: 1,
|
level: 1,
|
||||||
stock: "",
|
stock: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
state: 1,
|
state: 1,
|
||||||
name: "",
|
name: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
tag_ids: [],
|
tag_ids: [],
|
||||||
},
|
},
|
||||||
tags: [],
|
tags: [],
|
||||||
|
|
|
@ -137,8 +137,8 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
user_id: localStorage.getItem("user_id"),
|
user_id: sessionStorage.getItem("user_id"),
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -152,7 +152,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
name: "",
|
name: "",
|
||||||
state: "",
|
state: "",
|
||||||
site_id: localStorage.getItem("site_id"),
|
site_id: sessionStorage.getItem("site_id"),
|
||||||
},
|
},
|
||||||
form2: {
|
form2: {
|
||||||
integral: "",
|
integral: "",
|
||||||
|
|
Loading…
Reference in New Issue