|
@@ -1,4 +1,3 @@
|
|
|
-// pages/messageInfo/index.js
|
|
|
const app = getApp()
|
|
|
Page({
|
|
|
|
|
@@ -26,7 +25,6 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
- console.log(wx.getStorageSync('user')+"是建档立卡绝对是卢卡斯")
|
|
|
if (wx.getStorageSync('user') == ""){
|
|
|
wx.redirectTo({
|
|
|
url: '/pages/login/index'
|
|
@@ -46,7 +44,7 @@ Page({
|
|
|
})
|
|
|
var that = this;
|
|
|
wx.request({
|
|
|
- url: 'http://124.235.209.122:88/api/financial/viewnews/select', //真是接口
|
|
|
+ url: app.globalData.publicUrl+'api/financial/viewnews/select', //真是接口
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
qyid: wx.getStorageSync('user')._id,//wx.getStorageSync('user')._id '5e903455d72a944fd899c59c'
|
|
@@ -82,7 +80,6 @@ Page({
|
|
|
},
|
|
|
complete: function () {
|
|
|
wx.hideLoading();
|
|
|
- // complete
|
|
|
wx.hideNavigationBarLoading() //完成停止加载
|
|
|
wx.stopPullDownRefresh() //停止下拉刷新
|
|
|
}
|