|
@@ -1,35 +1,42 @@
|
|
|
import "../css/eventPlanning.css"
|
|
|
+import 'bootstrap/dist/js/bootstrap.js';
|
|
|
+import '../css/newMenu/public.css';
|
|
|
+import '../css/newMenu/header.css'
|
|
|
+import '../css/newMenu/patent.css';
|
|
|
+import '../js/public.js';
|
|
|
|
|
|
-window.onload = function () {
|
|
|
- let value = ''
|
|
|
- let totalCount = '' // 总数据条数
|
|
|
- let pageNo = 1 // 页码
|
|
|
- let pageSize = 10 // 一页多少条数据
|
|
|
- let selected = 1 // 当前选中按钮的序号
|
|
|
- let pagenum = '' // 有多少页数据
|
|
|
- let btnstart = 3 // 可移动按钮组开始序号
|
|
|
- let btnend = btnstart + 6 // 可移动按钮组结束序号
|
|
|
- let buer = null
|
|
|
- $.ajax({
|
|
|
- method: "get",
|
|
|
- dataType: "json",
|
|
|
- url: "/open/getEventPlanningList",
|
|
|
- data: {
|
|
|
- pageSize: 10,
|
|
|
- pageNo: 1
|
|
|
- },
|
|
|
- success: function (data) {
|
|
|
- // console.log(data);
|
|
|
- if (data.error && data.error.length) {
|
|
|
- alert("数据加载失败,请刷新页面");
|
|
|
- } else {
|
|
|
- totalCount = data.data.totalCount
|
|
|
- pagenum = Math.ceil(totalCount / pageSize)
|
|
|
+// window.onload =
|
|
|
+$(
|
|
|
+ function () {
|
|
|
+ let value = ''
|
|
|
+ let totalCount = '' // 总数据条数
|
|
|
+ let pageNo = 1 // 页码
|
|
|
+ let pageSize = 10 // 一页多少条数据
|
|
|
+ let selected = 1 // 当前选中按钮的序号
|
|
|
+ let pagenum = '' // 有多少页数据
|
|
|
+ let btnstart = 3 // 可移动按钮组开始序号
|
|
|
+ let btnend = btnstart + 6 // 可移动按钮组结束序号
|
|
|
+ let buer = null
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ url: "/open/getEventPlanningList",
|
|
|
+ data: {
|
|
|
+ pageSize: 10,
|
|
|
+ pageNo: 1
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ // console.log(data);
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ alert("数据加载失败,请刷新页面");
|
|
|
+ } else {
|
|
|
+ totalCount = data.data.totalCount
|
|
|
+ pagenum = Math.ceil(totalCount / pageSize)
|
|
|
|
|
|
- // 渲染新闻列表
|
|
|
- $.each(data.data.list, function (index, item) {
|
|
|
- // 新闻列表
|
|
|
- let part = `<li id="${item.id}">
|
|
|
+ // 渲染新闻列表
|
|
|
+ $.each(data.data.list, function (index, item) {
|
|
|
+ // 新闻列表
|
|
|
+ let part = `<li id="${item.id}">
|
|
|
<div class="newslist_img"><img src="${globalConfig.avatarUploadHost + item.pictureUrl}" alt=""></div>
|
|
|
<div class="newslist_content">
|
|
|
<h6 class="title">${item.title}</h6>
|
|
@@ -37,10 +44,10 @@ window.onload = function () {
|
|
|
<p class="content">${item.content}</p>
|
|
|
</div>
|
|
|
</li>`
|
|
|
- $(".app .newslist").append(part)
|
|
|
- })
|
|
|
+ $(".app .newslist").append(part)
|
|
|
+ })
|
|
|
|
|
|
- let paging = ` <div class="page_ctrl">
|
|
|
+ let paging = ` <div class="page_ctrl">
|
|
|
<span class="page_total">共 ${pagenum} 页</span>
|
|
|
<button class="prev_page"><</button>
|
|
|
<div class="btns"></div>
|
|
@@ -50,212 +57,212 @@ window.onload = function () {
|
|
|
<span class="page_total">页</span>
|
|
|
<button class="determine">确定</button>
|
|
|
</div>`
|
|
|
- $(".app .page_1").html(paging) // 插入html片段
|
|
|
- pagebtns() // 生成可移动按钮
|
|
|
- select() // 给按钮添加点击事件
|
|
|
- $(".determine").click(function () {
|
|
|
- if ($(".input_page_num").val() < 1 || $(".input_page_num").val() > pagenum) return
|
|
|
- selected = $(".input_page_num").val()
|
|
|
- $(".input_page_num").val("")
|
|
|
- jump()
|
|
|
- })
|
|
|
- // 点击左边按钮
|
|
|
- $(".prev_page").click(function () {
|
|
|
- if (selected == 1) return
|
|
|
- selected--
|
|
|
- if (selected > 4 && pagenum > 9 && selected < pagenum - 4) {
|
|
|
- if ($(".more").length < 1) {
|
|
|
- $(".btns").after('<span class="more">...</span>')
|
|
|
+ $(".app .page_1").html(paging) // 插入html片段
|
|
|
+ pagebtns() // 生成可移动按钮
|
|
|
+ select() // 给按钮添加点击事件
|
|
|
+ $(".determine").click(function () {
|
|
|
+ if ($(".input_page_num").val() < 1 || $(".input_page_num").val() > pagenum) return
|
|
|
+ selected = $(".input_page_num").val()
|
|
|
+ $(".input_page_num").val("")
|
|
|
+ jump()
|
|
|
+ })
|
|
|
+ // 点击左边按钮
|
|
|
+ $(".prev_page").click(function () {
|
|
|
+ if (selected == 1) return
|
|
|
+ selected--
|
|
|
+ if (selected > 4 && pagenum > 9 && selected < pagenum - 4) {
|
|
|
+ if ($(".more").length < 1) {
|
|
|
+ $(".btns").after('<span class="more">...</span>')
|
|
|
+ }
|
|
|
+ $(".btn").remove()
|
|
|
+ if (buer) {
|
|
|
+ btnstart--
|
|
|
+ btnend--
|
|
|
+ buer = false
|
|
|
+ }
|
|
|
+ for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
+ $(".btns").append(pagebtn)
|
|
|
+ }
|
|
|
}
|
|
|
- $(".btn").remove()
|
|
|
- if (buer) {
|
|
|
- btnstart--
|
|
|
- btnend--
|
|
|
- buer = false
|
|
|
+ if (selected > 5 && selected < pagenum - 3) {
|
|
|
+ --btnstart
|
|
|
+ --btnend
|
|
|
}
|
|
|
- for (let i = btnstart; i <= btnend; i++) {
|
|
|
- let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
- $(".btns").append(pagebtn)
|
|
|
+ if (selected == 4) {
|
|
|
+ btnstart = 3
|
|
|
+ btnend = btnstart + 6
|
|
|
}
|
|
|
- }
|
|
|
- if (selected > 5 && selected < pagenum - 3) {
|
|
|
- --btnstart
|
|
|
- --btnend
|
|
|
- }
|
|
|
- if (selected == 4) {
|
|
|
- btnstart = 3
|
|
|
- btnend = btnstart + 6
|
|
|
- }
|
|
|
- if (selected == 5) {
|
|
|
- $(".beforemore").remove()
|
|
|
- }
|
|
|
- select()
|
|
|
- request()
|
|
|
- bidden()
|
|
|
- $(".pagebtn").css({
|
|
|
- "background": "#fff",
|
|
|
- "color": "#999"
|
|
|
- })
|
|
|
- $(`.pagebtn[index="${selected}"]`).css({
|
|
|
- "background": "#1296DB",
|
|
|
- "color": "#fff"
|
|
|
+ if (selected == 5) {
|
|
|
+ $(".beforemore").remove()
|
|
|
+ }
|
|
|
+ select()
|
|
|
+ request()
|
|
|
+ bidden()
|
|
|
+ $(".pagebtn").css({
|
|
|
+ "background": "#fff",
|
|
|
+ "color": "#999"
|
|
|
+ })
|
|
|
+ $(`.pagebtn[index="${selected}"]`).css({
|
|
|
+ "background": "#1296DB",
|
|
|
+ "color": "#fff"
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- // 点击右边按钮
|
|
|
- $(".next_page").click(function () {
|
|
|
- if (selected == pagenum) return
|
|
|
- selected++
|
|
|
- if (selected > 5 && pagenum > 9 && selected < pagenum - 3) {
|
|
|
- if ($(".beforemore").length < 1) {
|
|
|
- $(".btns").before('<span class="beforemore">...</span>')
|
|
|
+ // 点击右边按钮
|
|
|
+ $(".next_page").click(function () {
|
|
|
+ if (selected == pagenum) return
|
|
|
+ selected++
|
|
|
+ if (selected > 5 && pagenum > 9 && selected < pagenum - 3) {
|
|
|
+ if ($(".beforemore").length < 1) {
|
|
|
+ $(".btns").before('<span class="beforemore">...</span>')
|
|
|
+ }
|
|
|
+ $(".btn").remove()
|
|
|
+ if (buer) {
|
|
|
+ // console.log(123);
|
|
|
+ btnstart++
|
|
|
+ btnend++
|
|
|
+ buer = false
|
|
|
+ }
|
|
|
+ for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
+ $(".btns").append(pagebtn)
|
|
|
+ }
|
|
|
}
|
|
|
- $(".btn").remove()
|
|
|
- if (buer) {
|
|
|
- // console.log(123);
|
|
|
+ if (selected > 5 && selected < pagenum - 4) {
|
|
|
btnstart++
|
|
|
btnend++
|
|
|
- buer = false
|
|
|
}
|
|
|
- for (let i = btnstart; i <= btnend; i++) {
|
|
|
- let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
- $(".btns").append(pagebtn)
|
|
|
+ if (selected == pagenum - 4) {
|
|
|
+ $(".more").remove()
|
|
|
}
|
|
|
- }
|
|
|
- if (selected > 5 && selected < pagenum - 4) {
|
|
|
- btnstart++
|
|
|
- btnend++
|
|
|
- }
|
|
|
- if (selected == pagenum - 4) {
|
|
|
- $(".more").remove()
|
|
|
- }
|
|
|
- select()
|
|
|
- request()
|
|
|
- bidden()
|
|
|
- $(".pagebtn").css({
|
|
|
- "background": "#fff",
|
|
|
- "color": "#999"
|
|
|
- })
|
|
|
- $(`.pagebtn[index="${selected}"]`).css({
|
|
|
- "background": "#1296DB",
|
|
|
- "color": "#fff"
|
|
|
- })
|
|
|
- })
|
|
|
- // 生成按钮组
|
|
|
- function pagebtns() {
|
|
|
- if (pagenum <= 9) {
|
|
|
- $(".prev_page").after(`<button class="pagebtn" index="1">1</button>`)
|
|
|
- pagebtn(pagenum)
|
|
|
- } else {
|
|
|
- $(".prev_page").after(`<button class="pagebtn" index="1">1</button>`)
|
|
|
- pagebtn(8)
|
|
|
- $(".next_page:last").before(`<span class="more">...<span>`)
|
|
|
- $(".next_page").before(`<button class="pagebtn" index="${pagenum}">${pagenum}</button>`)
|
|
|
- }
|
|
|
- }
|
|
|
- // 生成按钮组
|
|
|
- function pagebtn(pagenum) {
|
|
|
- for (let i = 2; i <= pagenum; i++) {
|
|
|
- let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
- $(".btns").append(pagebtn)
|
|
|
- $(".pagebtn:first").css({
|
|
|
- "background": "#1296DB",
|
|
|
- "color": "white"
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- // 点击按钮组
|
|
|
- function select() {
|
|
|
- $(".pagebtn").click(function () {
|
|
|
- selected = $(this).attr("index")
|
|
|
- jump()
|
|
|
+ select()
|
|
|
+ request()
|
|
|
+ bidden()
|
|
|
$(".pagebtn").css({
|
|
|
"background": "#fff",
|
|
|
"color": "#999"
|
|
|
})
|
|
|
- $(this).css({
|
|
|
+ $(`.pagebtn[index="${selected}"]`).css({
|
|
|
"background": "#1296DB",
|
|
|
- "color": "white"
|
|
|
+ "color": "#fff"
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
- function jump() {
|
|
|
- if (selected > 5 && pagenum > 9 && selected < pagenum - 4) {
|
|
|
- if ($(".more").length < 1) {
|
|
|
- $(".btns").after('<span class="more">...</span>')
|
|
|
- }
|
|
|
- if ($(".beforemore").length < 1) {
|
|
|
- $(".btns").before('<span class="beforemore">...</span>')
|
|
|
- }
|
|
|
- $(".btn").remove()
|
|
|
- for (let i = selected - 3; i <= Number(selected) + 3; i++) {
|
|
|
- let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
- $(".btns").append(pagebtn)
|
|
|
+ // 生成按钮组
|
|
|
+ function pagebtns() {
|
|
|
+ if (pagenum <= 9) {
|
|
|
+ $(".prev_page").after(`<button class="pagebtn" index="1">1</button>`)
|
|
|
+ pagebtn(pagenum)
|
|
|
+ } else {
|
|
|
+ $(".prev_page").after(`<button class="pagebtn" index="1">1</button>`)
|
|
|
+ pagebtn(8)
|
|
|
+ $(".next_page:last").before(`<span class="more">...<span>`)
|
|
|
+ $(".next_page").before(`<button class="pagebtn" index="${pagenum}">${pagenum}</button>`)
|
|
|
}
|
|
|
- btnstart = Number(selected) - 3
|
|
|
- btnend = Number(selected) + 3
|
|
|
- buer = true
|
|
|
- select()
|
|
|
- } else if (pagenum < 8) {
|
|
|
- $(".more").remove()
|
|
|
- $(".btn").remove()
|
|
|
+ }
|
|
|
+ // 生成按钮组
|
|
|
+ function pagebtn(pagenum) {
|
|
|
for (let i = 2; i <= pagenum; i++) {
|
|
|
let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
$(".btns").append(pagebtn)
|
|
|
+ $(".pagebtn:first").css({
|
|
|
+ "background": "#1296DB",
|
|
|
+ "color": "white"
|
|
|
+ })
|
|
|
}
|
|
|
- select()
|
|
|
- } else if (pagenum >= 8) {
|
|
|
- if (selected < 6) {
|
|
|
- $(".beforemore").remove()
|
|
|
- btnstart = 2
|
|
|
- btnend = btnstart + 6
|
|
|
+ }
|
|
|
+ // 点击按钮组
|
|
|
+ function select() {
|
|
|
+ $(".pagebtn").click(function () {
|
|
|
+ selected = $(this).attr("index")
|
|
|
+ jump()
|
|
|
+ $(".pagebtn").css({
|
|
|
+ "background": "#fff",
|
|
|
+ "color": "#999"
|
|
|
+ })
|
|
|
+ $(this).css({
|
|
|
+ "background": "#1296DB",
|
|
|
+ "color": "white"
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function jump() {
|
|
|
+ if (selected > 5 && pagenum > 9 && selected < pagenum - 4) {
|
|
|
+ if ($(".more").length < 1) {
|
|
|
+ $(".btns").after('<span class="more">...</span>')
|
|
|
+ }
|
|
|
+ if ($(".beforemore").length < 1) {
|
|
|
+ $(".btns").before('<span class="beforemore">...</span>')
|
|
|
+ }
|
|
|
$(".btn").remove()
|
|
|
- for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ for (let i = selected - 3; i <= Number(selected) + 3; i++) {
|
|
|
let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
$(".btns").append(pagebtn)
|
|
|
}
|
|
|
+ btnstart = Number(selected) - 3
|
|
|
+ btnend = Number(selected) + 3
|
|
|
+ buer = true
|
|
|
select()
|
|
|
- } else if (selected > pagenum - 5) {
|
|
|
+ } else if (pagenum < 8) {
|
|
|
$(".more").remove()
|
|
|
- btnend = pagenum - 1
|
|
|
- btnstart = btnend - 6
|
|
|
$(".btn").remove()
|
|
|
- for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ for (let i = 2; i <= pagenum; i++) {
|
|
|
let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
$(".btns").append(pagebtn)
|
|
|
}
|
|
|
select()
|
|
|
+ } else if (pagenum >= 8) {
|
|
|
+ if (selected < 6) {
|
|
|
+ $(".beforemore").remove()
|
|
|
+ btnstart = 2
|
|
|
+ btnend = btnstart + 6
|
|
|
+ $(".btn").remove()
|
|
|
+ for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
+ $(".btns").append(pagebtn)
|
|
|
+ }
|
|
|
+ select()
|
|
|
+ } else if (selected > pagenum - 5) {
|
|
|
+ $(".more").remove()
|
|
|
+ btnend = pagenum - 1
|
|
|
+ btnstart = btnend - 6
|
|
|
+ $(".btn").remove()
|
|
|
+ for (let i = btnstart; i <= btnend; i++) {
|
|
|
+ let pagebtn = `<button class="pagebtn btn" index="${i}">${i}</button>`
|
|
|
+ $(".btns").append(pagebtn)
|
|
|
+ }
|
|
|
+ select()
|
|
|
+ }
|
|
|
}
|
|
|
+ // console.log(btnend, btnstart);
|
|
|
+ request()
|
|
|
+ select()
|
|
|
+ bidden()
|
|
|
+ $(".pagebtn").css({
|
|
|
+ "background": "#fff",
|
|
|
+ "color": "#999"
|
|
|
+ })
|
|
|
+ $(`.pagebtn[index="${selected}"]`).css({
|
|
|
+ "background": "#1296DB",
|
|
|
+ "color": "#fff"
|
|
|
+ })
|
|
|
}
|
|
|
- // console.log(btnend, btnstart);
|
|
|
- request()
|
|
|
- select()
|
|
|
- bidden()
|
|
|
- $(".pagebtn").css({
|
|
|
- "background": "#fff",
|
|
|
- "color": "#999"
|
|
|
- })
|
|
|
- $(`.pagebtn[index="${selected}"]`).css({
|
|
|
- "background": "#1296DB",
|
|
|
- "color": "#fff"
|
|
|
- })
|
|
|
- }
|
|
|
|
|
|
- function request() {
|
|
|
- $.ajax({
|
|
|
- method: "get",
|
|
|
- dataType: "json",
|
|
|
- url: "/open/getEventPlanningList",
|
|
|
- data: {
|
|
|
- pageSize: 10,
|
|
|
- pageNo: selected
|
|
|
- },
|
|
|
- success: function (data) {
|
|
|
- $(".newslist").empty()
|
|
|
- // 渲染新闻列表
|
|
|
- $.each(data.data.list, function (index, item) {
|
|
|
- // 新闻列表
|
|
|
- let part = `<li id="${item.id}">
|
|
|
+ function request() {
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ url: "/open/getEventPlanningList",
|
|
|
+ data: {
|
|
|
+ pageSize: 10,
|
|
|
+ pageNo: selected
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ $(".newslist").empty()
|
|
|
+ // 渲染新闻列表
|
|
|
+ $.each(data.data.list, function (index, item) {
|
|
|
+ // 新闻列表
|
|
|
+ let part = `<li id="${item.id}">
|
|
|
<div class="newslist_img"><img src="${globalConfig.avatarUploadHost + item.pictureUrl}" alt=""></div>
|
|
|
<div class="newslist_content">
|
|
|
<h6 class="title">${item.title}</h6>
|
|
@@ -263,84 +270,61 @@ window.onload = function () {
|
|
|
<p class="content">${item.content}</p>
|
|
|
</div>
|
|
|
</li>`
|
|
|
- $(".app .newslist").append(part)
|
|
|
- $(`.pagebtn[index="${selected}"]`).css({
|
|
|
- "background": "#1296DB",
|
|
|
- "color": "#fff"
|
|
|
+ $(".app .newslist").append(part)
|
|
|
+ $(`.pagebtn[index="${selected}"]`).css({
|
|
|
+ "background": "#1296DB",
|
|
|
+ "color": "#fff"
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- $(".newslist li").click(function () {
|
|
|
- let id = $(this).attr("id")
|
|
|
- window.location.pathname = `/eventPlanning/${id}`
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- $(".newslist li").click(function () {
|
|
|
- let id = $(this).attr("id")
|
|
|
- window.location.pathname = `/eventPlanning/${id}`
|
|
|
- })
|
|
|
-
|
|
|
- function bidden() {
|
|
|
- if (selected == 1) {
|
|
|
- $(".prev_page").css({
|
|
|
- "cursor": "default",
|
|
|
- "opacity": ".7",
|
|
|
- "background-color": "#eee",
|
|
|
- "color": "#616161",
|
|
|
- "border": "1px solid #999999"
|
|
|
- })
|
|
|
- } else {
|
|
|
- $(".prev_page").css({
|
|
|
- "background-color": "#fff",
|
|
|
- "color": "#999",
|
|
|
- "cursor": "pointer",
|
|
|
- "border": "0"
|
|
|
- })
|
|
|
- }
|
|
|
- if (selected == pagenum) {
|
|
|
- $(".next_page").css({
|
|
|
- "cursor": "default",
|
|
|
- "opacity": ".7",
|
|
|
- "background-color": "#eee",
|
|
|
- "color": "#616161",
|
|
|
- "border": "1px solid #999999"
|
|
|
- })
|
|
|
- } else {
|
|
|
- $(".next_page").css({
|
|
|
- "background-color": "#fff",
|
|
|
- "color": "#999",
|
|
|
- "cursor": "pointer",
|
|
|
- "border": "0"
|
|
|
+ $(".newslist li").click(function () {
|
|
|
+ let id = $(this).attr("id")
|
|
|
+ window.location.pathname = `/eventPlanning/${id}`
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- $(".technology_login").click(function () {
|
|
|
- let loginTxt = $('.head_login')[0];
|
|
|
- if (loginTxt && ($(loginTxt).text()) == '登录') {
|
|
|
- $('.head_login').click();
|
|
|
- window.location.hash = 'jump';
|
|
|
- $(".login").css({
|
|
|
- "display": "block"
|
|
|
- })
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- if (window.adminData && window.adminData.mobile) {
|
|
|
- msg('账号不正确,请退出重新登入。')
|
|
|
- return;
|
|
|
+ $(".newslist li").click(function () {
|
|
|
+ let id = $(this).attr("id")
|
|
|
+ window.location.pathname = `/eventPlanning/${id}`
|
|
|
+ })
|
|
|
+
|
|
|
+ function bidden() {
|
|
|
+ if (selected == 1) {
|
|
|
+ $(".prev_page").css({
|
|
|
+ "cursor": "default",
|
|
|
+ "opacity": ".7",
|
|
|
+ "background-color": "#eee",
|
|
|
+ "color": "#616161",
|
|
|
+ "border": "1px solid #999999"
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ $(".prev_page").css({
|
|
|
+ "background-color": "#fff",
|
|
|
+ "color": "#999",
|
|
|
+ "cursor": "pointer",
|
|
|
+ "border": "0"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (selected == pagenum) {
|
|
|
+ $(".next_page").css({
|
|
|
+ "cursor": "default",
|
|
|
+ "opacity": ".7",
|
|
|
+ "background-color": "#eee",
|
|
|
+ "color": "#616161",
|
|
|
+ "border": "1px solid #999999"
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ $(".next_page").css({
|
|
|
+ "background-color": "#fff",
|
|
|
+ "color": "#999",
|
|
|
+ "cursor": "pointer",
|
|
|
+ "border": "0"
|
|
|
+ })
|
|
|
}
|
|
|
- window.location.href = globalConfig.context + '/user/account/index.html#/demand';
|
|
|
}
|
|
|
- })
|
|
|
-
|
|
|
- $(".login_close").click(function () {
|
|
|
- $(".login").css({
|
|
|
- "display": "none"
|
|
|
- })
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
+ })
|
|
|
+ }
|
|
|
+)
|