From e7e9f3d7e83a7eb4ced6166b29f1f5cd8d0a3e19 Mon Sep 17 00:00:00 2001 From: LAPTOP-RI7D261L\Mr Ke <545800322@qq.com> Date: Thu, 20 Feb 2020 09:07:53 +0800 Subject: [PATCH] 小程序新增 --- SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js | 112 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 56 insertions(+), 56 deletions(-) diff --git a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js index 068d7d2..89d1f1a 100644 --- a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js +++ b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js @@ -25,62 +25,62 @@ */ onLoad: function (options) { var that = this; - wx.request({ - url: app.globalData.url + '/api/article/legalServiceInfo?articleId=' + options.id, - success: function(res) { - if (res.data.code == 0){ - var article = res.data.data.content; - WxParse.wxParse('article', 'html', article, that, 5); - var attList = res.data.data.attList; - var attList21 = app.where(attList, { type: 21 }) || []; - attList21.forEach(e => { - e.iconSrc = that.data.mp4Src - }) - var attList22 = app.where(attList, { type: 22 }) || []; - attList22.forEach(e => { - e.iconSrc = that.data.pictureSrc - }) - var attList23 = app.where(attList, { type: 23 }) || []; - attList23.forEach(e => { - e.iconSrc = that.data.wordSrc - }) - var attList24 = app.where(attList, { type: 24 }) || []; - attList24.forEach(e => { - e.iconSrc = that.data.excelSrc - }) - var attList25 = app.where(attList, { type: 25 }) || []; - attList25.forEach(e => { - e.iconSrc = that.data.pptSrc - }) - var attList26 = app.where(attList, { type: 26 }) || []; - attList26.forEach(e => { - e.iconSrc = that.data.pdfSrc - }) - var attList27 = app.where(attList, { type: 27 }) || []; - attList27.forEach(e => { - e.iconSrc = that.data.zipSrc - }) - var attList28 = app.where(attList, { type: 28 }) || []; - attList28.forEach(e => { - e.iconSrc = that.data.fileSrc - }) - var attList99 = app.where(attList, { type: 99 }) || []; - attList99.forEach(e => { - e.iconSrc = that.data.fileSrc - }) - var attList = { attList21, attList22, attList23, attList24, attList25, attList26, attList27, attList28, attList99 }; - console.log(attList) - that.setData({ - attList - }) - } else{ - wx.showModal({ - title: '提示', - content: "请求失败!" - }) - } - } - }) + // wx.request({ + // url: app.globalData.url + '/api/article/legalServiceInfo?articleId=' + options.id, + // success: function(res) { + // if (res.data.code == 0){ + // var article = res.data.data.content; + // WxParse.wxParse('article', 'html', article, that, 5); + // var attList = res.data.data.attList; + // var attList21 = app.where(attList, { type: 21 }) || []; + // attList21.forEach(e => { + // e.iconSrc = that.data.mp4Src + // }) + // var attList22 = app.where(attList, { type: 22 }) || []; + // attList22.forEach(e => { + // e.iconSrc = that.data.pictureSrc + // }) + // var attList23 = app.where(attList, { type: 23 }) || []; + // attList23.forEach(e => { + // e.iconSrc = that.data.wordSrc + // }) + // var attList24 = app.where(attList, { type: 24 }) || []; + // attList24.forEach(e => { + // e.iconSrc = that.data.excelSrc + // }) + // var attList25 = app.where(attList, { type: 25 }) || []; + // attList25.forEach(e => { + // e.iconSrc = that.data.pptSrc + // }) + // var attList26 = app.where(attList, { type: 26 }) || []; + // attList26.forEach(e => { + // e.iconSrc = that.data.pdfSrc + // }) + // var attList27 = app.where(attList, { type: 27 }) || []; + // attList27.forEach(e => { + // e.iconSrc = that.data.zipSrc + // }) + // var attList28 = app.where(attList, { type: 28 }) || []; + // attList28.forEach(e => { + // e.iconSrc = that.data.fileSrc + // }) + // var attList99 = app.where(attList, { type: 99 }) || []; + // attList99.forEach(e => { + // e.iconSrc = that.data.fileSrc + // }) + // var attList = { attList21, attList22, attList23, attList24, attList25, attList26, attList27, attList28, attList99 }; + // console.log(attList) + // that.setData({ + // attList + // }) + // } else{ + // wx.showModal({ + // title: '提示', + // content: "请求失败!" + // }) + // } + // } + // }) }, // 预览附件 -- Gitblit v1.8.0