Commit c3d18110 authored by 姬鋆屾's avatar 姬鋆屾

推,通过接口获取门户口号

parent 59b8cb94
......@@ -16,6 +16,10 @@ export function LogoutInterface(params) {
export function changePassword(params) {
return http.post(`${baseURL}/zwfw/user/change/password`, params);
}
// 1.2.5. 查询门户口号
export function getSlogan(params) {
return http.post(`${baseURL}/base/param/key?key=title`);
}
// 管理员修改密码
export function editPassword(params) {
return http.post(`${baseURL}/zwfw/user/reset/password`, params);
......
......@@ -2,7 +2,7 @@
<div class="login h-full w-full">
<div class="main h-full w-full flex items-center justify-between">
<div class="slogan">
<p class="slogan-text slogan-text-1 mb-12">若诗·若画·若尔盖</p>
<p class="slogan-text slogan-text-1 mb-12">{{ sloganTitle }}</p>
<!-- <p class="slogan-text slogan-text-2">似烟·似梦·似天堂</p> -->
</div>
<div class="w-[490px] h-[660px]">
......@@ -245,7 +245,7 @@
<script>
import Swiper from "swiper";
import { LoginInterface, changeForgotPassword } from "@/api/user.js";
import { LoginInterface, changeForgotPassword, getSlogan } from "@/api/user.js";
import { mapMutations, mapState } from "vuex";
import { changeAccount, changePassWord } from "@/utils/js/validate";
import { encrypt } from "@/utils";
......@@ -262,6 +262,7 @@ export default {
}
};
return {
sloganTitle: "",
sysName: process.env.VUE_APP_systemName,
labelCol: { span: 0 },
wrapperCol: { span: 24 },
......@@ -320,6 +321,7 @@ export default {
if (this.token) {
this.$router.push("/home");
}
this.getTitle();
this.createCode();
},
mounted() {
......@@ -327,6 +329,14 @@ export default {
},
methods: {
...mapMutations("user", ["set_token", "SET_USERDATA", "set_siteList"]),
getTitle() {
getSlogan().then((res) => {
if (res.code == 1) {
this.sloganTitle = res.data;
localStorage.setItem("sloganTitle", res.data);
}
});
},
initSwiper() {
this.mySwiper = new Swiper(".mySwiper", {
effect: "cube", // 方块动画
......
......@@ -19,7 +19,7 @@
class="img-title mb-[42px]"
src="@/assets/images/siteArrange/title.png"
/> -->
<h1 class="slogan_title">若诗 · 若画 · 若尔盖</h1>
<h1 class="slogan_title">{{ sloganTitle }}</h1>
<div class="slogan">建设高效便民、智慧泛在的智慧政务大厅</div>
</div>
<!-- 站点 -->
......@@ -118,6 +118,7 @@ import { mapState } from "vuex";
export default {
data() {
return {
sloganTitle: "",
api: process.env.VUE_APP_API_IMG_URL,
siteId: Storage.get(2, "siteId"),
arr: [],
......@@ -136,6 +137,7 @@ export default {
},
created() {
this.sloganTitle = localStorage.getItem("sloganTitle");
this.getCollect();
this.appsListInterface();
},
......
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