Showing
4 changed files
with
11 additions
and
10 deletions
@@ -12,9 +12,10 @@ var grayroute = require("./mid/grayrouter"); | @@ -12,9 +12,10 @@ var grayroute = require("./mid/grayrouter"); | ||
12 | /*session 配置*/ | 12 | /*session 配置*/ |
13 | var options = { | 13 | var options = { |
14 | secret: 'yohobuy.portal', //session配置 | 14 | secret: 'yohobuy.portal', //session配置 |
15 | - cookie: {secure: false, maxAge: 3600000}, | 15 | + cookie: {secure: false, maxAge: 7200000}, |
16 | resave: false, | 16 | resave: false, |
17 | - saveUninitialized: true | 17 | + saveUninitialized: true, |
18 | + rolling: true | ||
18 | }; | 19 | }; |
19 | 20 | ||
20 | /*老平台接口 配置*/ | 21 | /*老平台接口 配置*/ |
@@ -227,7 +227,7 @@ var g = new common.grid({ | @@ -227,7 +227,7 @@ var g = new common.grid({ | ||
227 | display: "SKN", | 227 | display: "SKN", |
228 | render: function(item) { | 228 | render: function(item) { |
229 | var html = []; | 229 | var html = []; |
230 | - html.push('<a data-index="' + item.__index + '" href="/base/goods/info/' + item.productSkn + '/' + item.isAuditing + '" class="btn btn-info btn-xs edit-class-btn">' + item.productSkn + '</a>'); | 230 | + html.push('<a target="_blank" data-index="' + item.__index + '" href="/base/goods/info/' + item.productSkn + '/' + item.isAuditing + '" class="btn btn-info btn-xs edit-class-btn">' + item.productSkn + '</a>'); |
231 | 231 | ||
232 | return html.join(''); | 232 | return html.join(''); |
233 | } | 233 | } |
@@ -445,7 +445,7 @@ var g = new common.grid({ | @@ -445,7 +445,7 @@ var g = new common.grid({ | ||
445 | render: function(item) { | 445 | render: function(item) { |
446 | var html = []; | 446 | var html = []; |
447 | if (item.isAuditing != 100) { | 447 | if (item.isAuditing != 100) { |
448 | - html.push('<a data-index="' + item.__index + '" class="btn btn-info btn-xs edit-class-btn" href="/base/goods/update/' + item.productSkn + '/' + item.isAuditing + '">修改</a>'); | 448 | + html.push('<a target="_blank" data-index="' + item.__index + '" class="btn btn-info btn-xs edit-class-btn" href="/base/goods/update/' + item.productSkn + '/' + item.isAuditing + '">修改</a>'); |
449 | } | 449 | } |
450 | if (item.isAuditing == 100) { | 450 | if (item.isAuditing == 100) { |
451 | html.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn operation btn-success btn-xs edit-class-btn apply-success">通过</a>'); | 451 | html.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn operation btn-success btn-xs edit-class-btn apply-success">通过</a>'); |
@@ -144,7 +144,7 @@ var g = new common.grid({ | @@ -144,7 +144,7 @@ var g = new common.grid({ | ||
144 | display: 'skn', | 144 | display: 'skn', |
145 | name: 'productSkn', | 145 | name: 'productSkn', |
146 | render: function (item) { | 146 | render: function (item) { |
147 | - return '<a href="/goods/netsale/info/' + item.productSkn + editPostion + '">' + item.productSkn + '</a>' | 147 | + return '<a target="_blank" href="/goods/netsale/info/' + item.productSkn + editPostion + '">' + item.productSkn + '</a>' |
148 | } | 148 | } |
149 | }, { | 149 | }, { |
150 | display: '图片', | 150 | display: '图片', |
@@ -292,7 +292,7 @@ var g = new common.grid({ | @@ -292,7 +292,7 @@ var g = new common.grid({ | ||
292 | for (var i in arr) { | 292 | for (var i in arr) { |
293 | var item1 = $.trim(arr[i]); | 293 | var item1 = $.trim(arr[i]); |
294 | if (item) { | 294 | if (item) { |
295 | - html.push('<a href="/goods/netsale/edit/' + item.productSkn + editPostion + '#' + item1 + '">' + item1 + '</a>'); | 295 | + html.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '#' + item1 + '">' + item1 + '</a>'); |
296 | } | 296 | } |
297 | } | 297 | } |
298 | html.push('</p>'); | 298 | html.push('</p>'); |
@@ -304,13 +304,13 @@ var g = new common.grid({ | @@ -304,13 +304,13 @@ var g = new common.grid({ | ||
304 | var HtmArr = []; | 304 | var HtmArr = []; |
305 | var intValue ; | 305 | var intValue ; |
306 | if (item.status == 4 || item.status == 1 || item.status == 5 || item.status == 6) { | 306 | if (item.status == 4 || item.status == 1 || item.status == 5 || item.status == 6) { |
307 | - HtmArr.push('<a href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); | 307 | + HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); |
308 | HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs shelve-btn" data-index="' + item.__index + '">下架</a>'); | 308 | HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs shelve-btn" data-index="' + item.__index + '">下架</a>'); |
309 | } else if (item.status == 3 || item.status == 8 || item.status == 2 || item.status == 0) { | 309 | } else if (item.status == 3 || item.status == 8 || item.status == 2 || item.status == 0) { |
310 | - HtmArr.push('<a href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); | 310 | + HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); |
311 | HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上架</a>'); | 311 | HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上架</a>'); |
312 | } | 312 | } |
313 | - HtmArr.push('<a href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>'); | 313 | + HtmArr.push('<a target="_blank" href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>'); |
314 | HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>'); | 314 | HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>'); |
315 | if(typeof(item.productSearch) == "undefined"){ | 315 | if(typeof(item.productSearch) == "undefined"){ |
316 | intValue = 0; | 316 | intValue = 0; |
@@ -52,7 +52,7 @@ var g = new common.grid({ | @@ -52,7 +52,7 @@ var g = new common.grid({ | ||
52 | }}, | 52 | }}, |
53 | {display: "操作", name: "",render: function(item) { | 53 | {display: "操作", name: "",render: function(item) { |
54 | var arr = []; | 54 | var arr = []; |
55 | - arr.push('<a class="btn btn-xs btn-info contentManage" data-index="' + item.__index + '" href="/resource/content/index/' + item.id + '">内容管理</a>'); | 55 | + arr.push('<a target="_blank" class="btn btn-xs btn-info contentManage" data-index="' + item.__index + '" href="/resource/content/index/' + item.id + '">内容管理</a>'); |
56 | arr.push('<a class="btn btn-xs btn-primary add2" data-index="' + item.__index + '">编辑</a>'); | 56 | arr.push('<a class="btn btn-xs btn-primary add2" data-index="' + item.__index + '">编辑</a>'); |
57 | arr.push('<a class="btn btn-xs btn-danger delbtn" data-index="' + item.__index + '">删除</a>'); | 57 | arr.push('<a class="btn btn-xs btn-danger delbtn" data-index="' + item.__index + '">删除</a>'); |
58 | return arr.join(""); | 58 | return arr.join(""); |
-
Please register or login to post a comment