| | |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options) |
| | | |
| | | if (options && options.link) { |
| | | this.setData({ |
| | | src: decodeURIComponent(options.link), |
| | |
| | | } |
| | | } |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) { |
| | | this.getProgress(options) |
| | | } else { |
| | | this.getProgress(options) |
| | | } |
| | | }) |
| | | if (token) { |
| | | this.getProgress(options) |
| | | } else { |
| | | this.setWebViewSrc(options); |
| | | } |
| | | |
| | | }, |
| | | |
| | | onLoadWeb(e) { |
| | |
| | | } |
| | | |
| | | }, |
| | | |
| | | |
| | | // 获取UserKey |
| | | getProgress: function (dataObj) { |
| | |
| | | app.MG.job.newJobWithApiNewEvent(data).then((res) => {}) |
| | | }, |
| | | |
| | | //预览图片,放大预览 |
| | | preview(event) { |
| | | let urls = [event.currentTarget.dataset.src] |
| | | wx.previewImage({ |
| | | urls: urls // 需要预览的图片http链接列表 |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() {}, |
| | | onShareTimeline() {}, |
| | | }) |