This commit is contained in:
haozq 2025-12-16 09:58:39 +08:00
parent a98ec6292a
commit bdda481010
10 changed files with 16 additions and 14 deletions

View File

@ -216,6 +216,7 @@
const path = url.pathname; // 输出: "/page"
const token = urlParam.get('token'); // 输出: "value1"
let username=localStorage.getItem("public_username");
username='bnsAdmin'
if(token){
const params = {
"username": encrypt(username),

View File

@ -99,7 +99,7 @@
<span class="absolute top-0 right-0 h-4 w-4 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">3</span>
</button> -->
<div class="flex items-center cursor-pointer hover:text-primary">
<img src="https://picsum.photos/id/1005/40/40" alt="用户头像" class="h-8 w-8 rounded-full object-cover border-2 border-primary/20">
<img src="public/image/userphoto.jpg" alt="用户头像" class="h-8 w-8 rounded-full object-cover border-2 border-primary/20">
<span class="ml-2 hidden md:block">管理员</span>
<!-- <i class="fa fa-angle-down ml-1 text-xs icon-angle-down"></i> -->
</div>

View File

@ -5,7 +5,7 @@ VUE_APP_TITLE = 领导履职管理系统
ENV = 'development'
# 领导履职管理系统/开发环境
VUE_APP_BASE_API = '/bnscloud'
VUE_APP_BASE_API = '/bnsapi'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -5,4 +5,4 @@ VUE_APP_TITLE = 领导履职管理系统
ENV = 'production'
# 领导履职管理系统/生产环境
VUE_APP_BASE_API = '/bnscloud'
VUE_APP_BASE_API = '/bnsapi'

View File

@ -253,8 +253,9 @@ export default {
username=this.$route.query.username;
console.log(tokens);
console.log(username)
username='bnsAdmin'
//
if (tokens) {
if (username) {
debugger
//
this.loading = true;
@ -268,12 +269,12 @@ export default {
this.$store.dispatch("DefaultLogin", loginForm).then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(() => { });
}).catch(() => {
window.location.href = 'http://127.0.0.1:8848/hn_cloud_web/login.html';
window.location.href = 'http://20.56.230.91:10080/bonus_cloud_web/login.html';
});
// this.$message.error("token");
} else {
//
window.location.href = 'http://127.0.0.1:8848/hn_cloud_web/login.html';
window.location.href = 'http://20.56.230.91:10080/bonus_cloud_web/login.html';
// console.log("tick..")
}
},

View File

@ -81,7 +81,6 @@
obj.style.cursor = "pointer";
}
function login(obj) {
var username = $.trim($('#username').val());
var password = $.trim($('#pwd').val());

View File

@ -4,9 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.8/chart.umd.min.js"></script>
<script src="../js/index_2.js"></script>
<link rel="stylesheet" href="../css/index.css">
<style type="text/tailwindcss">
@layer utilities {
@ -124,7 +123,7 @@
}else if(id==='2'){
window.open(url+'/smz-screen/lodingIndex.html?token='+username,'smz_web_html');
}else if(id==='3'){
window.open('http://127.0.0.1:80/ldlz/ywgllogin?username='+username+"&token="+token,'ldlz_html');
window.open('http://20.56.230.91:10080/ldlz/ywgllogin?username='+username+"&token="+token,'ldlz_html');
}else if(id==='4'){
window.open(url+'/czl-web/lodingIndex.html?token='+username,'czl_html');
}else if(id==='5'){

View File

@ -1,7 +1,7 @@
let web_url="http://20.26.230.91:10080"
let web_url="http://20.56.230.91:10080"
let contentPath="/hn_cloud_web";
let request_url="http://20.26.230.91:10080/bnscloud"
let contentPath="/bonus_cloud_web";
let request_url="http://20.56.230.91:10080/bnscloud"
//承载力大屏
let czl_url= request_url+"/czldp";
//承载力后台

View File

@ -217,6 +217,7 @@
const path = url.pathname; // 输出: "/page"
const token = urlParam.get('token'); // 输出: "value1"
let username=localStorage.getItem("public_username");
username='bnsAdmin'
if(username){
const params = {
"username": encryptCBC(username),

View File

@ -217,6 +217,7 @@
const path = url.pathname; // 输出: "/page"
const token = urlParam.get('token'); // 输出: "value1"
let username=localStorage.getItem("public_username");
username='bnsAdmin'
if(username){
const params = {
"username": encryptCBC(username),