Commit 21fd77a3 by 刘泽奇

123

parent 17b260bd
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="keywords" content="PAAS 开放平台">
<meta name="baidu-site-verification" content="lATAxZAm8y" />
<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1">
<title id="idtitle"><%=app.name%></title>
<link rel="stylesheet" href="/css/ele/index_2.5.4.css">
<link rel="stylesheet" href="/css/pagecom.css">
<link rel="stylesheet" href="http://p.apps.com:3001/css/pagecom.css">
<link rel="stylesheet" href="/css/fontface-timely.css">
<script src="/js/vue/vue.min_2.6.10.js"></script>
<script src="/js/vue/vue-router.min.js"></script>
<script src="/js/vue/vuex.min.js"></script>
<script src="/js/ele/index_2.5.4.js"></script>
<script src="/js/vue/axios.min.js"></script>
<script>
//缓存当前域名对应的公司信息,公司、页脚、银行账号---全局变量
var appinfo = JSON.parse(unescape('<%=appinfo%>'));
console.log(appinfo);
//缓存当前的基础组件列表
var basecomp=JSON.parse(unescape('<%=basecomp%>'));
//缓存当前的菜单配置
var global_rsconfig=JSON.parse(unescape('<%=rsconfig%>'));
console.log(JSON.stringify(global_rsconfig));
</script>
<style>
body{
margin: 0px;
padding: 0px;
font-size: 14px;
box-sizing: border-box;
height: 100%;
}
.app-main{
width:100%;
height:100%;
background:url("<%=app.bkimageUrl?app.bkimageUrl:'/imgs/pt3.jpg'%>") no-repeat;background-size: cover;
box-sizing: border-box;
}
.app-header{
display: flex;
justify-content:space-between;
color: white;
padding: 15px;
box-sizing: border-box;
cursor: pointer;
}
.app-stage{
display: flex;
width: 100%;
padding: 5px;
box-sizing: border-box;
}
.app-stage .leftnav{
background-color:green;
max-width: 250px;
min-width: 250px;
flex-grow:1;
box-sizing: border-box;
}
.app-stage .leftnav .el-card__body {
height: 85%;
}
.app-stage .rightcontent{
flex-grow:2;
margin-left: 5px;
margin-right: 15px;
box-sizing: border-box;
}
.app-stage .rightcontent >.el-card{
border-radius: 0px;
height: 100%;
box-shadow:unset;
box-sizing: border-box;
}
.app-stage .is-always-shadow{
box-shadow: unset;
}
.app-stage .leftnav > .el-card{
border-radius: 0px;
height: 100%;
box-sizing: border-box;
}
#appName{
font-size: 30px;
font-family:MicrosoftYaHei;
}
.el-button--text{
color: white
}
.activeColor{
color:deepskyblue;
}
</style>
</head>
<body>
<div id="app" v-loading="loading" class="app-main" style="visibility:hidden">
<div id="app-header" class="app-header">
<div id="appName" @click="clkapp"><%=app.name%>后台管理</div>
<div id="login">
<span v-if="currentUser">欢迎您,{{currentUser.nickName}}<el-button @click="exitclick" type="text" icon="el-icon-setting">退出</el-button></span>
</div>
</div>
<div id="app-stage" class="app-stage">
<div class="leftnav">
<el-card id="leftnav">
<gsb-leftmenu bkcolor="white" ref="leftmenu" key="leftmenu" formatprop="formatItem" @menuselect="onMenuSelect"></gsb-leftmenu>
</el-card>
</div>
<div class="rightcontent">
<transition name="slide-fade">
<router-view>
</router-view>
</transition>
</div>
</div>
</div>
<script src="/js/vue/jquery.min.js"></script>
<script src="/js/common.js"></script>
<script src="/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -63,7 +63,7 @@
<div class="jc_hd"></div>
</div>
<!-- 启服通公共头 -->
<div class="commonchannel" v-if="channelName == 'bw'">
<div class="commonchannel" v-if="channelName == 'bw' && !isLogin">
<div>
<div>
<img src="/imgs/pt.jpg" alt="">
......
......@@ -35,7 +35,7 @@ const store = new Vuex.Store({
currentUser: null,
curSelRow: {},
reqUrl: "",
channelName:"",
channelName: "",
},
});
Vue.mixin({
......@@ -171,6 +171,7 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
commonFooter: true,
user_Name: "",
channelMessage: "",
isLogin: false,
};
},
created() {
......@@ -277,11 +278,24 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
});
break;
case "bw":
var userPin = this.$root.copyParams({ "userpin": $.cookie('userpin') }, "logout", "/auth/accessAuth/springBoard");
this.$root.loading = true;
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", userPin).then((d) => {
this.$root.loading = false;
if (d.status == 0) {
$.removeCookie("userpin");
$.removeCookie("userName");
$.removeCookie("channelUserId");
this.user_Name = "";
this.channelUserId = '';
this.$root.user_Name = "";
this.$root.channelUserId = '';
this.$message("您已退出");
} else {
this.$message("请重试");
}
});
break;
default:
break;
......
.admin{
color:black;
width: 100%;
height: 100%;
box-sizing: border-box;
}
\ No newline at end of file
<div class="admin">
xxxxxxxxxxxxxxxxx
</div>
{
template:'${tmpl}',
data:function(){
return {
}
},
mounted:function(){
},
created:function(){
},
methods:{
},
vname:"gsb-admin"
}
......@@ -36,8 +36,8 @@
<div style="font-size:12px;color:#B2B2B2;margin-top: -4px;
margin-left: 85px;">
<span style="color:#108EE9;cursor:pointer" @click="register()">没有账号?去注册</span>
<!-- <span style="margin:0 4px;">|</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span> -->
<span style="margin:0 4px;">|</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span>
</div>
<el-form-item style="margin-bottom:8px;">
<el-button type="primary" class="login-content-button" @click="checklogin1" style="margin-top: 50px;">登录</el-button>
......@@ -59,8 +59,8 @@
<div style="font-size:12px;color:#B2B2B2;margin-top: -4px;
margin-left: 85px;">
<span style="color:#108EE9;cursor:pointer" @click="register()">没有账号?去注册</span>
<!-- <span style="margin:0 4px;">|</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span> -->
<span style="margin:0 4px;">|</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span>
</div>
<el-form-item style="margin-bottom:8px;">
<el-button type="primary" key="xxcccc" class="login-content-button" @click="checklogin2" style="margin-top: 50px;">登录</el-button>
......
......@@ -3,7 +3,7 @@
data: function() {
var that = this;
var validateMethod = function (rule, value, callback) {
console.log(rule);
console.log(rule, value);
if (rule.field == "mobile") {
if (/^1[23456789]\d{9}$/.test(value) == false) {
return callback(new Error("请输入正确格式的手机号"));
......@@ -12,7 +12,7 @@
}
}
if (rule.field == "code") {
if (that.form1.code.length != 6) {
if (value.length != 6) {
return callback(new Error("输入验证码有误,请重新输入"));
}
}
......@@ -101,7 +101,8 @@
mounted: function() {
if (this.$route.query.reqUrl != "") {
this.reqUrl = this.$route.query.reqUrl;
}
};
this.$root.isLogin = true;
},
created: function() {
......@@ -111,7 +112,9 @@
} else {
this.loginUrl = "https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png";
}
},
destroyed() {
this.$root.isLogin = false;
},
methods: {
handleSelect(key, keyPath) {
......@@ -190,37 +193,28 @@
});
return;
};
that.$root.postReq("/web/userCtl/getUserByMobile", { mobile: that.form3.mobile }).then(function (d) {
if (d.code == 0) {
var timer = setInterval(function () {
console.log("----------getNumber-----------");
$("#resetCode").attr("disabled", "disabled");
$("#resetCode").css("cursor", "not-allowed");
$("#resetCode").text(that.Num2 + "秒后重新获取");
console.log(that.Num2);
if (that.Num2 > 0) {
console.log(that.Num2);
that.Num2--;
} else {
$("#resetCode").attr("disabled", false);
$("#resetCode").text("获取验证码");
that.Num2 = 60;
let obj = this.$root.copyParams({ mobile: this.form3.mobile }, "getVerifyCode", "/auth/accessAuth/springBoard");
this.$root.loading = true;
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
this.$root.loading = false;
if (d.status == 0) {
let date = 60;
this.vCodeClick = true;
let timer = setInterval(() => {
$('.resetCode').text(date--);
if (date < 1) {
clearInterval(timer);
this.vCodeClick = false;
$('#loginCode').text('获取验证码');
}
}, 1000);
that.$root.postReq("/web/userCtl/fetchVcode", { mobile: that.form3.mobile }).then(function (d) {
console.log(d);
if (d.status == 0) {
that.rcode = d.data.vcodestr;
}
})
console.log("返回信息", d);
} else {
that.$message({
type: 'error',
message: '用户尚未注册'
});
console.log(d.msg);
}
})
});
},
obtaincode3(){
var that = this;
......@@ -376,14 +370,44 @@
};
that.$refs.form3.validate(valid => {
if (valid) {
that.$root.postReq("/web/userCtl/resetPassword", obj).then(function (d) {
if (d.status == 0) {
that.$message({
type: 'success',
message: '密码重置成功'
});
var resetObj = {
"mobile": this.form3.mobile,
"vcode": this.form3.code,
"newPwd": this.form3.password,
"userpin": $.cookie('userpin')
};
var resetObj = that.$root.copyParams(resetObj, "putUserPwdByMobile", "/auth/accessAuth/springBoard");
this.$root.loading = true;
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", resetObj).then((d) => {
this.$root.loading = false;
console.log(d);
let userpin = $.cookie('userpin');
switch (d.status) {
case 0:
if (userpin && userpin != "") {
$.removeCookie("userpin");
$.removeCookie("userName");
$.removeCookie("channelUserId");
this.$root.user_Name = "";
this.$root.channelUserId = '';
this.$message({ type: 'wraing', message: "修改成功,请重新登陆" });
} else {
this.a = true;
this.b = false;
this.c = false;
this.activeIndex = 2;
this.$message({ type: 'wraing', message: "修改成功,请登陆" });
}
})
break;
case 2030:
this.$message({ type: 'wraing', message: "验证码错误,请重试" });
break;
default:
this.$message({ type: 'wraing', message: "修改失败,请重试" });
break;
}
});
}
})
},
......
......@@ -104,7 +104,7 @@
}
},
mounted: function() {
this.$root.isLogin = true;
},
created: function() {
console.log(this.pfooterinfo);
......@@ -114,6 +114,9 @@
this.loginUrl = "https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png";
}
},
destroyed() {
this.$root.isLogin = false;
},
methods: {
handleSelect(key, keyPath) {
console.log(key, keyPath);
......
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