wq 5 years ago
parent
commit
19597d354d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/messageInfo/index.js

+ 3 - 3
pages/messageInfo/index.js

@@ -26,8 +26,8 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-   
-    if (wx.getStorageSync('user')._id == ""){
+    console.log(wx.getStorageSync('user')+"是建档立卡绝对是卢卡斯")
+    if (wx.getStorageSync('user') == ""){
       wx.redirectTo({
       url: '/pages/login/index'
     })
@@ -49,7 +49,7 @@ Page({
       url: 'http://124.235.209.122:88/api/financial/viewnews/select', //真是接口
       method: 'post',
       data: {
-        qyid: '5e903455d72a944fd899c59c',//wx.getStorageSync('user')._id
+        qyid: wx.getStorageSync('user')._id,//wx.getStorageSync('user')._id  '5e903455d72a944fd899c59c'
         skip: that.data.skip,
         limit: that.data.limit
       },