Commit b368623b authored by 黄奎's avatar 黄奎

页面修改

parent 1e9c03ed
...@@ -200,7 +200,8 @@ ...@@ -200,7 +200,8 @@
<img alt class="logo" /> <img alt class="logo" />
<div class="register_box"> <div class="register_box">
<span class="register" @click="CommonJump('Forgetpassword',{blank:'y'})">忘记密码?</span> <span class="register" @click="CommonJump('Forgetpassword',{blank:'y'})">忘记密码?</span>
<span class="register" @click="CommonJump('Register',{blank:'y'})" style="border-left: 1px solid rgb(169, 169, 169);">注册账号</span> <span class="register" @click="CommonJump('Register',{blank:'y'})"
style="border-left: 1px solid rgb(169, 169, 169);">注册账号</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -218,6 +219,7 @@ ...@@ -218,6 +219,7 @@
Account: '', //账号 Account: '', //账号
Password: '', //密码 Password: '', //密码
ValidataCode: '', //验证码 ValidataCode: '', //验证码
MallBaseId: 0, //小程序Id
}, },
rules: { rules: {
Account: [{ Account: [{
...@@ -239,7 +241,9 @@ ...@@ -239,7 +241,9 @@
}; };
}, },
created() { created() {
if (this.$route.query.mall_id) {
this.msg.MallBaseId = this.$route.query.mall_id;
}
}, },
methods: { methods: {
//登录 //登录
...@@ -261,9 +265,7 @@ ...@@ -261,9 +265,7 @@
this.$router.push({ this.$router.push({
path: "/index" path: "/index"
}); });
} } else {
else
{
this.Info(res.data.message); this.Info(res.data.message);
} }
}) })
...@@ -287,5 +289,4 @@ ...@@ -287,5 +289,4 @@
} }
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="content"> <div class="content">
<div> <div>
<el-alert title="员工登录入口链接:" :closable='false' type="info" style="margin-bottom:20px;"> <el-alert title="员工登录入口链接:" :closable='false' type="info" style="margin-bottom:20px;">
<span id="my_Link">http://wx.weibaoge.cn/web/index.php?r=admin/passport/login&mall_id=MTI4NQ==</span> <span id="my_Link">{{LoginUrl}}</span>
<el-button size="mini" style="margin-left:20px;" @click="copyCode()">复制链接</el-button> <el-button size="mini" style="margin-left:20px;" @click="copyCode()">复制链接</el-button>
</el-alert> </el-alert>
<div class="searchInput"> <div class="searchInput">
...@@ -142,19 +142,31 @@ ...@@ -142,19 +142,31 @@
trigger: "blur" trigger: "blur"
}] }]
}, },
LoginUrl:"",//登录地址
}; };
}, },
created() { created() {
}, },
methods: { methods: {
GetLoginUrl() {
var port = window.location.port;
var hostUrl = "http://";
if (port == 80) {
hostUrl += window.location.hostname;
} else {
hostUrl += window.location.host;
}
hostUrl += "/#/login?mall_id=" + this.getLocalStorage().MallBaseId;
this.LoginUrl=hostUrl;
},
UpdatePwd() { UpdatePwd() {
this.apipost("/api/Employee/SetEmployeePwd", this.pwdMsg, res => { this.apipost("/api/Employee/SetEmployeePwd", this.pwdMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getList();; this.getList();;
this.upPwddialog = false; this.upPwddialog = false;
this.Success(res.data.message); this.Success(res.data.message);
this.pwdMsg.EmpPwd=''; this.pwdMsg.EmpPwd = '';
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
...@@ -274,6 +286,7 @@ ...@@ -274,6 +286,7 @@
} }
}, },
mounted() { mounted() {
this.GetLoginUrl();
this.getRoleList(); this.getRoleList();
this.getList(); this.getList();
} }
......
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