style:新闻
Showing
4 changed files
with
10 additions
and
5 deletions
... | @@ -20,6 +20,10 @@ function login() { | ... | @@ -20,6 +20,10 @@ function login() { |
20 | }); | 20 | }); |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | // $(document).ready(function() { | ||
24 | |||
25 | // }) | ||
26 | |||
23 | $(document).on('click', '.PersonLogin', function () { | 27 | $(document).on('click', '.PersonLogin', function () { |
24 | login(); | 28 | login(); |
25 | window.onbeforeunload = function () { | 29 | window.onbeforeunload = function () { |
... | @@ -74,7 +78,7 @@ $(function () { | ... | @@ -74,7 +78,7 @@ $(function () { |
74 | }) | 78 | }) |
75 | // 点击注册的时候 | 79 | // 点击注册的时候 |
76 | $(document).on('click', '#registerButton', function () { | 80 | $(document).on('click', '#registerButton', function () { |
77 | window.open(`${localhostPaht}/staticViews/register.html`, '_self') | 81 | window.open(''+localhostPaht+'/staticViews/register.html', '_self') |
78 | }); | 82 | }); |
79 | function clicklogin(data) { | 83 | function clicklogin(data) { |
80 | $.ajax({ | 84 | $.ajax({ | ... | ... |
... | @@ -8,7 +8,8 @@ $(function () { | ... | @@ -8,7 +8,8 @@ $(function () { |
8 | addTabs('#news'); | 8 | addTabs('#news'); |
9 | }); | 9 | }); |
10 | //加载新闻列表数据 | 10 | //加载新闻列表数据 |
11 | function LoadNewsData(currentPage = 1) { | 11 | function LoadNewsData(currentPage) { |
12 | var currentPage = currentPage || 1; | ||
12 | $.ajax({ | 13 | $.ajax({ |
13 | type: "get", //提交方式 | 14 | type: "get", //提交方式 |
14 | url: portal.api_url + "/portal/MhNews/getNewsArticleList",//路径 | 15 | url: portal.api_url + "/portal/MhNews/getNewsArticleList",//路径 |
... | @@ -19,7 +20,7 @@ function LoadNewsData(currentPage = 1) { | ... | @@ -19,7 +20,7 @@ function LoadNewsData(currentPage = 1) { |
19 | async: false, | 20 | async: false, |
20 | dataType: "json", | 21 | dataType: "json", |
21 | //数据,这里使用的是Json格式进行传输 | 22 | //数据,这里使用的是Json格式进行传输 |
22 | success: function (result) {//返回数据根据结果进行相应的处理 | 23 | success: function (result) { |
23 | data.total = result.data.total; | 24 | data.total = result.data.total; |
24 | if (result.code == 200 && result.data != null) { | 25 | if (result.code == 200 && result.data != null) { |
25 | data.list = result.data.records; | 26 | data.list = result.data.records; |
... | @@ -30,8 +31,8 @@ function LoadNewsData(currentPage = 1) { | ... | @@ -30,8 +31,8 @@ function LoadNewsData(currentPage = 1) { |
30 | , view = document.getElementById('ulNews'); | 31 | , view = document.getElementById('ulNews'); |
31 | laytpl(getTpl).render(data, function (html) { | 32 | laytpl(getTpl).render(data, function (html) { |
32 | view.innerHTML = html; | 33 | view.innerHTML = html; |
33 | }); | 34 | }) |
34 | }); | 35 | }) |
35 | } | 36 | } |
36 | }) | 37 | }) |
37 | } | 38 | } | ... | ... |
staticLib/jquery/DEVONtech_storage
deleted
100644 → 0
No preview for this file type
staticLib/jquery/jquery.slim.min.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment