wq 5 years ago
parent
commit
2048c4055c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/messageInfo/index.js

+ 2 - 2
pages/messageInfo/index.js

@@ -27,7 +27,7 @@ Page({
    */
    */
   onLoad: function (options) {
   onLoad: function (options) {
    
    
-    if (wx.getStorageSync('uid') == ""){
+    if (wx.getStorageSync('user')._id == ""){
       wx.redirectTo({
       wx.redirectTo({
       url: '/pages/login/index'
       url: '/pages/login/index'
     })
     })
@@ -49,7 +49,7 @@ Page({
       url: 'http://124.235.209.122:88/api/financial/viewnews/select', //真是接口
       url: 'http://124.235.209.122:88/api/financial/viewnews/select', //真是接口
       method: 'post',
       method: 'post',
       data: {
       data: {
-        qyid: '5e903455d72a944fd899c59c',//wx.getStorageSync('uid')
+        qyid: '5e903455d72a944fd899c59c',//wx.getStorageSync('user')._id
         skip: that.data.skip,
         skip: that.data.skip,
         limit: that.data.limit
         limit: that.data.limit
       },
       },