287168d2 by 焦小希

更换页面中的用户信息userid

1 parent 3678ee54
...@@ -5,4 +5,10 @@ layui.use('element', function () { ...@@ -5,4 +5,10 @@ layui.use('element', function () {
5 //console.log(elem) 5 //console.log(elem)
6 layer.msg(elem.text()); 6 layer.msg(elem.text());
7 }); 7 });
8 });
...\ No newline at end of file ...\ No newline at end of file
8 });
9 $(function(){
10 $('#username').text(getCookie().username)
11 $('#phone').text(getCookie().phone)
12 $('#zjhm').text(getCookie().zjhm)
13 $('#recordtime').text(getCookie().recordtime)
14 })
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -164,7 +164,7 @@ function addCreatSLSQ(jsondata) { ...@@ -164,7 +164,7 @@ function addCreatSLSQ(jsondata) {
164 "bsmQl": jsondata.bsm_ql, 164 "bsmQl": jsondata.bsm_ql,
165 "ywid": business.ywid, 165 "ywid": business.ywid,
166 "businessNo": business.businessno, 166 "businessNo": business.businessno,
167 "userid": "0026609ddc6d2afabaa3c9b0ea3b0ec3" 167 "userid": getCookie().userid
168 }; 168 };
169 $.ajax({ 169 $.ajax({
170 type: "post", //提交方式 170 type: "post", //提交方式
......
...@@ -49,6 +49,8 @@ $(function () { ...@@ -49,6 +49,8 @@ $(function () {
49 }); 49 });
50 }); 50 });
51 }) 51 })
52 $('#zjhm').text(getCookie().zjhm)
53 $('#username').text(getCookie().username )
52 }) 54 })
53 55
54 // 列表操作 56 // 列表操作
...@@ -79,7 +81,7 @@ function _applyBusinessWiat(currentPage = 1) { ...@@ -79,7 +81,7 @@ function _applyBusinessWiat(currentPage = 1) {
79 url: portal.api_url + "/portal/WorkBoxService/applyBusinessWait",//路径 81 url: portal.api_url + "/portal/WorkBoxService/applyBusinessWait",//路径
80 dataType: "json", 82 dataType: "json",
81 data: { 83 data: {
82 "userId": '0026609ddc6d2afabaa3c9b0ea3b0ec3', 84 "userId": getCookie().userid,
83 "currentPage": currentPage, 85 "currentPage": currentPage,
84 "pageSize": 10 86 "pageSize": 10
85 }, 87 },
...@@ -102,7 +104,7 @@ function _applyBusinessIn(currentPage = 1) { ...@@ -102,7 +104,7 @@ function _applyBusinessIn(currentPage = 1) {
102 url: portal.api_url + "/portal/WorkBoxService/applyBusinessIn",//路径 104 url: portal.api_url + "/portal/WorkBoxService/applyBusinessIn",//路径
103 dataType: "json", 105 dataType: "json",
104 data: { 106 data: {
105 "userId": '0026609ddc6d2afabaa3c9b0ea3b0ec3', 107 "userId": getCookie().userid,
106 "currentPage": currentPage, 108 "currentPage": currentPage,
107 "pageSize": 10 109 "pageSize": 10
108 }, 110 },
...@@ -126,7 +128,7 @@ function _applyBusinessEnd(currentPage = 1) { ...@@ -126,7 +128,7 @@ function _applyBusinessEnd(currentPage = 1) {
126 url: portal.api_url + "/portal/WorkBoxService/applyBusinessEnd",//路径 128 url: portal.api_url + "/portal/WorkBoxService/applyBusinessEnd",//路径
127 dataType: "json", 129 dataType: "json",
128 data: { 130 data: {
129 "userId": '0026609ddc6d2afabaa3c9b0ea3b0ec3', 131 "userId": getCookie().userid,
130 "currentPage": currentPage, 132 "currentPage": currentPage,
131 "pageSize": 10 133 "pageSize": 10
132 }, 134 },
...@@ -150,7 +152,7 @@ function _applyBusinessRecord(currentPage = 1) { ...@@ -150,7 +152,7 @@ function _applyBusinessRecord(currentPage = 1) {
150 url: portal.api_url + "/portal/WorkBoxService/applyBusinessRecord",//路径 152 url: portal.api_url + "/portal/WorkBoxService/applyBusinessRecord",//路径
151 dataType: "json", 153 dataType: "json",
152 data: { 154 data: {
153 "userId": '0026609ddc6d2afabaa3c9b0ea3b0ec3', 155 "userId": getCookie().userid,
154 "currentPage": currentPage, 156 "currentPage": currentPage,
155 "pageSize": 10 157 "pageSize": 10
156 }, 158 },
...@@ -256,5 +258,5 @@ function dataRendering() { ...@@ -256,5 +258,5 @@ function dataRendering() {
256 258
257 var dataList = { 259 var dataList = {
258 "list": [], 260 "list": [],
259 "userid": '0026609ddc6d2afabaa3c9b0ea3b0ec3' 261 "userid": getCookie().userid
260 }; 262 };
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,6 +8,8 @@ layui.use('element', function () { ...@@ -8,6 +8,8 @@ layui.use('element', function () {
8 }); 8 });
9 $(function () { 9 $(function () {
10 _initData() 10 _initData()
11 $('#zjhm').text(getCookie().zjhm)
12 $('#username').text(getCookie().username )
11 }) 13 })
12 // 获取列表信息 14 // 获取列表信息
13 function _initData(currentPage=1) { 15 function _initData(currentPage=1) {
...@@ -90,5 +92,5 @@ function paged(pageCount, curr) { ...@@ -90,5 +92,5 @@ function paged(pageCount, curr) {
90 }) 92 })
91 } 93 }
92 var dataList = { 94 var dataList = {
93 "userid":'0026609ddc6d2afabaa3c9b0ea3b0ec3' 95 "userid":getCookie().userid
94 }; 96 };
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -238,7 +238,7 @@ function handle(id) { ...@@ -238,7 +238,7 @@ function handle(id) {
238 input.attr("dataName") + 238 input.attr("dataName") +
239 "</div>" + 239 "</div>" +
240 '<div class="listItem"><h3>预约时间:</h3>' + 240 '<div class="listItem"><h3>预约时间:</h3>' +
241 yysj + 241 bookingDate +
242 "&nbsp;&nbsp;" + 242 "&nbsp;&nbsp;" +
243 bustime + 243 bustime +
244 "</div>" + 244 "</div>" +
......
...@@ -28,22 +28,19 @@ ...@@ -28,22 +28,19 @@
28 <ul> 28 <ul>
29 <li> 29 <li>
30 <span>姓名:</span> 30 <span>姓名:</span>
31 <p>任超</p> 31 <p id="username"></p>
32 </li> 32 </li>
33 <li> 33 <li>
34 <span>登录时间:</span> 34 <span>登录时间:</span>
35 <p>2020-120-2</p> 35 <p id="recordtime"></p>
36 </li> 36 </li>
37 <li> 37 <li>
38 <span>联系方式:</span> 38 <span>联系方式:</span>
39 <p>1852555224</p> 39 <p id="phone"></p>
40 </li>
41 <li>
42 第25次次登录此平台
43 </li> 40 </li>
44 <li> 41 <li>
45 <span>身份证号码:</span> 42 <span>身份证号码:</span>
46 <p>61012419930545464</p> 43 <p id="zjhm"></p>
47 </li> 44 </li>
48 </ul> 45 </ul>
49 </div> 46 </div>
......
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
30 <ul> 30 <ul>
31 <li> 31 <li>
32 <span>上午好:</span> 32 <span>上午好:</span>
33 <p>任超</p> 33 <p id="username"></p>
34 </li> 34 </li>
35 <li> 35 <li>
36 <span>身份证号:</span> 36 <span>身份证号:</span>
37 <p>61012216464646</p> 37 <p id="zjhm"></p>
38 </li> 38 </li>
39 </ul> 39 </ul>
40 </div> 40 </div>
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
28 <ul> 28 <ul>
29 <li> 29 <li>
30 <span>上午好:</span> 30 <span>上午好:</span>
31 <p>任超</p> 31 <p id="username"></p>
32 </li> 32 </li>
33 <li> 33 <li>
34 <span>身份证号:</span> 34 <span>身份证号:</span>
35 <p>61012216464646</p> 35 <p id="zjhm"></p>
36 </li> 36 </li>
37 </ul> 37 </ul>
38 </div> 38 </div>
......