From c12a58558dc8cb11e8613fcc41b2216173cf3f72 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 23 Dec 2022 13:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=BC=B9=E5=87=BA=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/popup.js | 9 ++-- src/components/AlertPopup.vue | 77 ++++++++++++++------------------- src/components/PortalHeader.vue | 20 +-------- 3 files changed, 41 insertions(+), 65 deletions(-) diff --git a/src/api/modules/popup.js b/src/api/modules/popup.js index 6047d17a..bfcc0571 100644 --- a/src/api/modules/popup.js +++ b/src/api/modules/popup.js @@ -1,10 +1,13 @@ import ajax from '@/utils/xajax.js' -const userList=function (){ - return ajax.get('/xboe/m/popup/user'); +/** + * @param {Object} device 不包含的平台, 1表pc, 2表移动端 + */ +const findByNoDevice=function (device){ + return ajax.get('/xboe/m/popup/user?device='+device); } export default { - userList + findByNoDevice } diff --git a/src/components/AlertPopup.vue b/src/components/AlertPopup.vue index f4ea360e..ab14d5d0 100644 --- a/src/components/AlertPopup.vue +++ b/src/components/AlertPopup.vue @@ -1,17 +1,15 @@