From 530ffe21eac78abf12cc0ead89a827b3145b8d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 2 Mar 2023 17:01:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/project/demand/demand.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/project/demand/demand.js b/static/js/project/demand/demand.js index b37ccc1..9430b34 100644 --- a/static/js/project/demand/demand.js +++ b/static/js/project/demand/demand.js @@ -182,7 +182,13 @@ define(['jquery', "template", "Tools", "demandApi", "paging", 'swiper'], functio } } goUserDemand = function () { - tools.skip('../user/user.html?type=goDemand') + if(tools.getCookie('Admin-Token')){ + tools.skip('../user/user.html?type=goDemand') + }else{ + tools.initDialog('登陆提示', '登陆后可参与发布,是否登录?', function () { + tools.skip('../login/login.html') + }, '登录', function () { }, "取消") + } } return module; }); \ No newline at end of file