From 50706e13d5df93ceb541d39810df5845b5af7d71 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期日, 29 十月 2023 23:29:30 +0800 Subject: [PATCH] 消息加台账导入 --- src/views/user/Login.vue | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 4caaae3..2d2d620 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -45,6 +45,8 @@ import LoginAccount from './LoginAccount' import LoginPhone from './LoginPhone' +import store from '@/store' +import { getAction } from '../../api/manage' export default { components: { @@ -52,7 +54,8 @@ TwoStepCaptcha, // ThirdLogin, LoginAccount, - LoginPhone + LoginPhone, + store }, data () { return { @@ -65,6 +68,9 @@ key:"", iv:"", }, + url:{ + getPrimaryInfo:"/sys/sysAnnouncementSend/getPrimaryInfo" + } } }, created() { @@ -113,6 +119,18 @@ message: '娆㈣繋', description: `${timeFix()}锛屾杩庡洖鏉, }); + var userId = store.getters.userInfo.id; + let that = this; + getAction(this.url.getPrimaryInfo,{userId:userId}).then(res=>{ + if(res.success){ + for(var i=0;i<res.result.length;i++){ + that.$notification.success({ + message: '鏈�鏂版湭璇绘秷鎭��'+res.result[i].msgCategory+'銆�', + description:res.result[i].msgContent, + }); + } + } + }) // this.$refs.loginSelect.show(loginResult) }, //鐧诲綍鍚庡彴澶辫触 @@ -141,6 +159,7 @@ message: '娆㈣繋', description: `${timeFix()}锛屾杩庡洖鏉, }); + }, stepCaptchaSuccess () { -- Gitblit v1.9.3