|
|
@@ -30,26 +30,22 @@ Page({ |
|
|
|
id:options.id, |
|
|
|
token: app.globalData.token |
|
|
|
}) |
|
|
|
wx.request({ |
|
|
|
url: configUrls + config.api.printHtmlById, |
|
|
|
data: { |
|
|
|
token: app.globalData.token, |
|
|
|
id: options.id, |
|
|
|
date: new Date() |
|
|
|
}, |
|
|
|
header: { |
|
|
|
'content-type': 'application/html' |
|
|
|
}, |
|
|
|
success: function (res) { |
|
|
|
var temp = WxParse.wxParse('article', 'html',res.data, that, 5); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面初次渲染完成 |
|
|
|
*/ |
|
|
|
onReady: function () { |
|
|
|
|
|
|
|
if (options&&options.id){ |
|
|
|
wx.request({ |
|
|
|
url: configUrls + config.api.printHtmlById, |
|
|
|
data: { |
|
|
|
token: app.globalData.token, |
|
|
|
id: options.id, |
|
|
|
date: new Date() |
|
|
|
}, |
|
|
|
header: { |
|
|
|
'content-type': 'application/html' |
|
|
|
}, |
|
|
|
success: function (res) { |
|
|
|
var temp = WxParse.wxParse('article', 'html', res.data, that, 5); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
@@ -58,34 +54,5 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
date:new Date() |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面隐藏 |
|
|
|
*/ |
|
|
|
onHide: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面卸载 |
|
|
|
*/ |
|
|
|
onUnload: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面相关事件处理函数--监听用户下拉动作 |
|
|
|
*/ |
|
|
|
onPullDownRefresh: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 页面上拉触底事件的处理函数 |
|
|
|
*/ |
|
|
|
onReachBottom: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
}) |