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

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

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