From 563fbb061c5f461fe4a2f3f6678d37e971c77ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Wed, 28 Apr 2021 11:03:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/project/index.js | 20 ++++- static/js/project/user/index.js | 36 ++++++++ view/user/user.html | 141 ++++++++++++++++++++++++++++++++ 3 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 static/js/project/user/index.js create mode 100644 view/user/user.html diff --git a/static/js/project/index.js b/static/js/project/index.js index 482958f..8b91c5b 100644 --- a/static/js/project/index.js +++ b/static/js/project/index.js @@ -137,13 +137,15 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa //查询挂牌项目浏览总次数 tools.doGet(announcementList + '/0/4', {}, module.announcementList); - //查询挂牌项目浏览总次数 tools.doGet(biddingHallList + '/0/10', {}, module.biddingHallList); //竞价大厅-滚动 module.hallRolling(); + //用户资料鼠标悬浮 + module.userHover(); + // 柱状图绘制 var chartDom = document.getElementById('chart'); var myChart = echarts.init(chartDom); @@ -173,6 +175,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa } } + //新闻资讯数据 module.NewsInformation = function (data) { if (data.code == 200) { @@ -371,5 +374,20 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa document.getElementById(type).style.display = 'inline-table'; } + //用户资料鼠标悬浮 + module.userHover = function () { + document.getElementById('userName').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('headHover').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('userName').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + document.getElementById('headHover').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + } return module; }); \ No newline at end of file diff --git a/static/js/project/user/index.js b/static/js/project/user/index.js new file mode 100644 index 0000000..db31379 --- /dev/null +++ b/static/js/project/user/index.js @@ -0,0 +1,36 @@ +/** + * Created by Administrator on 2021/4/5. + */ +define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { + //数据存储 + var module = { + data: { + + }, + }; + var tools = new Tools(); + + module.init = function (page) { + + //用户资料鼠标悬浮 + module.userHover(); + + }; + + //用户资料鼠标悬浮 + module.userHover = function () { + document.getElementById('userName').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('headHover').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('userName').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + document.getElementById('headHover').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + } + return module; +}); \ No newline at end of file diff --git a/view/user/user.html b/view/user/user.html new file mode 100644 index 0000000..6ceac4b --- /dev/null +++ b/view/user/user.html @@ -0,0 +1,141 @@ + + + + + + 农燊高科-新闻列表 + + + + + + + + + + + + +
+ +
+
+

Hi,欢迎来到农村产权交易中心

+
+ + + + + + +

返回主站

+
+
+
+ +
+
+ 左云县农村产权交易网 +

左云县农村产权交易网

+
+
+
+
+ + +
+
+ + +

Sherry

+
+
+ + + + + +
+
+
+
+ + +
+ +
+
+ +
+ + +
+ + + \ No newline at end of file