wq 5 tahun lalu
induk
melakukan
2048c4055c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      pages/messageInfo/index.js

+ 2 - 2
pages/messageInfo/index.js

@@ -27,7 +27,7 @@ Page({
    */
   onLoad: function (options) {
    
-    if (wx.getStorageSync('uid') == ""){
+    if (wx.getStorageSync('user')._id == ""){
       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('uid')
+        qyid: '5e903455d72a944fd899c59c',//wx.getStorageSync('user')._id
         skip: that.data.skip,
         limit: that.data.limit
       },