|
@@ -12,7 +12,7 @@ Page({
|
|
|
imgUrl: imgUrl,
|
|
|
interpretationList: [{
|
|
|
title: '文字解读',
|
|
|
- channelId: '222894'
|
|
|
+ channelId: '158048'
|
|
|
},
|
|
|
{
|
|
|
title: '图文解读',
|
|
@@ -71,22 +71,22 @@ Page({
|
|
|
url: 'https://data.cqna.gov.cn/mini/hlw/send?page=' + this.data.page + '&limit=20&channelId=' + this.data.interpretationList[this.data.currentTab].channelId,
|
|
|
method: 'GET',
|
|
|
success: res => {
|
|
|
-
|
|
|
+
|
|
|
if (res.data.data.DATA.length > 0) {
|
|
|
let temp = res.data.data.DATA;
|
|
|
- if (this.data.currentTab == 1||this.data.currentTab == 2) {
|
|
|
+ if (this.data.currentTab == 1 || this.data.currentTab == 2) {
|
|
|
// 图文解读
|
|
|
- for (let i=0;i<temp.length;i++) {
|
|
|
+ for (let i = 0; i < temp.length; i++) {
|
|
|
// 截取logo图片
|
|
|
- let url = temp[i].DOCPUBURL.substring(0, temp[i].DOCPUBURL.lastIndexOf("/") + 1)
|
|
|
- // console.log(url);
|
|
|
- let logo = temp[i].LOGOURL.substring(temp[i].LOGOURL.lastIndexOf("FileName=") + "fileName=".length)
|
|
|
- // console.log(logo);
|
|
|
- if (logo==''||logo==null) {
|
|
|
- temp[i].logoImg = '../../images/zw.jpg'
|
|
|
- }else{
|
|
|
- temp[i].logoImg = url + logo
|
|
|
- }
|
|
|
+ let url = temp[i].DOCPUBURL.substring(0, temp[i].DOCPUBURL.lastIndexOf("/") + 1)
|
|
|
+ // console.log(url);
|
|
|
+ let logo = temp[i].LOGOURL.substring(temp[i].LOGOURL.lastIndexOf("FileName=") + "fileName=".length)
|
|
|
+ // console.log(logo);
|
|
|
+ if (logo == '' || logo == null) {
|
|
|
+ temp[i].logoImg = '../../images/zw.jpg'
|
|
|
+ } else {
|
|
|
+ temp[i].logoImg = url + logo
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
temp = this.data.interpretationListInfo.concat(temp);
|