修改前端门户common.js 中 获取cookie的方式
Showing
2 changed files
with
4 additions
and
4 deletions
... | @@ -53,8 +53,8 @@ function getCookie(){ | ... | @@ -53,8 +53,8 @@ function getCookie(){ |
53 | if(str == ''){ | 53 | if(str == ''){ |
54 | return false | 54 | return false |
55 | }else{ | 55 | }else{ |
56 | $('.PersonLogin').css('pointer-events', 'none') | 56 | var arr = str.split(';') |
57 | var arr = str.replace(/(\s)+/g,'').split('='); | 57 | var arr1 = arr[0].replace(/(\s)+/g,'').split('='); |
58 | return JSON.parse(arr[1]); | 58 | return JSON.parse(arr1[1]); |
59 | } | 59 | } |
60 | }; | 60 | }; |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -42,7 +42,7 @@ function _initData(currentPage=1) { | ... | @@ -42,7 +42,7 @@ function _initData(currentPage=1) { |
42 | li += '<h3>逾期</h3>' | 42 | li += '<h3>逾期</h3>' |
43 | li += '<a>查看<i class="layui-icon layui-icon-right"></i></a>' | 43 | li += '<a>查看<i class="layui-icon layui-icon-right"></i></a>' |
44 | li += '</div>' | 44 | li += '</div>' |
45 | }else if(records[i].state == '4') { | 45 | }else if(records[i].state == '3') { |
46 | li += '<div class="item_title cancel">' | 46 | li += '<div class="item_title cancel">' |
47 | li += '<h3>取消</h3>' | 47 | li += '<h3>取消</h3>' |
48 | li += '<a>查看<i class="layui-icon layui-icon-right"></i></a>' | 48 | li += '<a>查看<i class="layui-icon layui-icon-right"></i></a>' | ... | ... |
-
Please register or sign in to post a comment