var app=getApp(); var utils=require("../../utils/http") var stoptime=0; Page({ /** * 页面的初始数据 */ data: { webUrl:'', share_user_id:'', clientype: app.globalData.clientype, }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var that=this; wx.hideHomeButton(); wx.showLoading({ title: '加载中', }) this.setData({ clientype: app.globalData.clientype, share_user_id:options.sid, webUrl:app.globalData.webUrl+'applet.html#/oldhouserenovation'+'?token='+app.globalData.token+'&client_type=' + app.globalData.clientype+"&share_user_id="+options.sid+'&type=1', }) if(!options.sid){ that.setData({ share_user_id:app.globalData.personMsg.id }) } wx.hideLoading() }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { // if(app.globalData.use_id!=this.data.share_user_id){ // wx.hideHomeButton(); // } stoptime=0; setTimeout(function(){ stoptime=stoptime*1+1; },1000) }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { var timearr=app.globalData.timearr,flag=false; for(var i=0;i