var app=getApp(); var stoptime=0; Page({ /** * 页面的初始数据 */ data: { wurl:'', share_user_id:'', clientype: app.globalData.clientype, }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { this.setData({ share_user_id:options.share_user_id, clientype: app.globalData.clientype, wurl:app.globalData.webUrl+'applet.html#/networktool?share_user_id='+options.share_user_id+'&client_type=' + app.globalData.clientype+'&token='+app.globalData.token }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { stoptime=0; setTimeout(function(){ stoptime=stoptime*1+1; },1000) }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { var timearr=app.globalData.timearr,flag=false; for(var i=0;i