Commit b368623b authored by 黄奎's avatar 黄奎

页面修改

parent 1e9c03ed
......@@ -200,7 +200,8 @@
<img alt class="logo" />
<div class="register_box">
<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>
......@@ -218,6 +219,7 @@
Account: '', //账号
Password: '', //密码
ValidataCode: '', //验证码
MallBaseId: 0, //小程序Id
},
rules: {
Account: [{
......@@ -239,7 +241,9 @@
};
},
created() {
if (this.$route.query.mall_id) {
this.msg.MallBaseId = this.$route.query.mall_id;
}
},
methods: {
//登录
......@@ -261,9 +265,7 @@
this.$router.push({
path: "/index"
});
}
else
{
} else {
this.Info(res.data.message);
}
})
......@@ -287,5 +289,4 @@
}
}
};
</script>
</script>
\ No newline at end of file
......@@ -11,7 +11,7 @@
<div class="content">
<div>
<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-alert>
<div class="searchInput">
......@@ -142,19 +142,31 @@
trigger: "blur"
}]
},
LoginUrl:"",//登录地址
};
},
created() {
},
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() {
this.apipost("/api/Employee/SetEmployeePwd", this.pwdMsg, res => {
if (res.data.resultCode == 1) {
this.getList();;
this.upPwddialog = false;
this.Success(res.data.message);
this.pwdMsg.EmpPwd='';
this.pwdMsg.EmpPwd = '';
} else {
this.Info(res.data.message);
}
......@@ -274,6 +286,7 @@
}
},
mounted() {
this.GetLoginUrl();
this.getRoleList();
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