|
@@ -1,5 +1,6 @@
|
|
|
// index.js
|
|
|
import {
|
|
|
+ baseUrl,
|
|
|
login
|
|
|
} from "../api/request";
|
|
|
|
|
@@ -301,7 +302,7 @@ Page({
|
|
|
name: "南岸发布",
|
|
|
img: imgUrl + 'index-media-icon3.png',
|
|
|
ewm: "index_ewm_logo_3.jpg",
|
|
|
- url: "https://mp.weixin.qq.com/s/Sm2AFbQsMgld1ey0_tiDwA"
|
|
|
+ url: "https://mp.weixin.qq.com/s/OzsayBZ6119Hz95PS8639w"
|
|
|
},
|
|
|
// {
|
|
|
// id: '4',
|
|
@@ -317,20 +318,20 @@ Page({
|
|
|
// ewm: "index_ewm_logo_5.png",
|
|
|
// url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
// },
|
|
|
- // {
|
|
|
- // id: '6',
|
|
|
- // name: "南岸生态环境",
|
|
|
- // img: imgUrl + 'index-media-icon6.png',
|
|
|
- // ewm: "index_ewm_logo_6.png",
|
|
|
- // url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: '7',
|
|
|
- // name: "南岸健康卫士",
|
|
|
- // img: imgUrl + 'index-media-icon7.png',
|
|
|
- // ewm: "index_ewm_logo_7.png",
|
|
|
- // url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: '6',
|
|
|
+ name: "南岸生态环境",
|
|
|
+ img: imgUrl + 'index-media-icon6.png',
|
|
|
+ ewm: "index_ewm_logo_6.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/8CwAWCtnln_cZnR_Tu86Zw"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '7',
|
|
|
+ name: "南岸健康卫士",
|
|
|
+ img: imgUrl + 'index-media-icon7.png',
|
|
|
+ ewm: "index_ewm_logo_7.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/ROeHlQixd_i1rQbNOPxEtQ"
|
|
|
+ },
|
|
|
// {
|
|
|
// id: '8',
|
|
|
// name: "南岸公安",
|
|
@@ -345,13 +346,13 @@ Page({
|
|
|
// ewm: "index_ewm_logo_9.png",
|
|
|
// url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
// },
|
|
|
- // {
|
|
|
- // id: '10',
|
|
|
- // name: "书香南岸",
|
|
|
- // img: imgUrl + 'index-media-icon10.png',
|
|
|
- // ewm: "index_ewm_logo_10.png",
|
|
|
- // url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: '10',
|
|
|
+ name: "书香南岸",
|
|
|
+ img: imgUrl + 'index-media-icon10.png',
|
|
|
+ ewm: "index_ewm_logo_10.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/_NrIUpj6evRJWrBjkcMrKw"
|
|
|
+ },
|
|
|
// // {
|
|
|
// // id: '11',
|
|
|
// // name: "南岸卫生健康监督",
|
|
@@ -379,20 +380,20 @@ Page({
|
|
|
// ewm: "index_ewm_logo_15.jpg",
|
|
|
// url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
// },
|
|
|
- // {
|
|
|
- // id: '15',
|
|
|
- // name: "南岸健康",
|
|
|
- // img: imgUrl + 'index-media-icon18.png',
|
|
|
- // ewm: "index_ewm_logo_18.jpg",
|
|
|
- // url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: '16',
|
|
|
- // name: "重庆市南岸区天文街道",
|
|
|
- // img: imgUrl + 'index-media-icon17.png',
|
|
|
- // ewm: "index_ewm_logo_17.png",
|
|
|
- // url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: '15',
|
|
|
+ name: "南岸健康",
|
|
|
+ img: imgUrl + 'index-media-icon18.png',
|
|
|
+ ewm: "index_ewm_logo_18.jpg",
|
|
|
+ url: "https://mp.weixin.qq.com/s/w_qy31i6eIEqTgQu96hHhg"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '16',
|
|
|
+ name: "重庆市南岸区天文街道",
|
|
|
+ img: imgUrl + 'index-media-icon17.png',
|
|
|
+ ewm: "index_ewm_logo_17.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/vh9mq-nZ0llbA82-_DqaTA"
|
|
|
+ },
|
|
|
// {
|
|
|
// id: '17',
|
|
|
// name: "南岸智慧城管",
|
|
@@ -418,7 +419,8 @@ Page({
|
|
|
// 媒体矩阵南岸发布
|
|
|
mediaReleaseList: [],
|
|
|
// 媒体矩阵今日头条
|
|
|
- mediaHeadlineList: []
|
|
|
+ mediaHeadlineList: [],
|
|
|
+ swiperList: []
|
|
|
},
|
|
|
onReady() {},
|
|
|
onShow() {
|
|
@@ -635,6 +637,7 @@ Page({
|
|
|
// }
|
|
|
// }
|
|
|
// })
|
|
|
+ this.loadyxna()
|
|
|
},
|
|
|
|
|
|
// canvas转图片
|
|
@@ -1542,15 +1545,37 @@ Page({
|
|
|
*/
|
|
|
onShareAppMessage() {
|
|
|
return {
|
|
|
- title: '',
|
|
|
- path:"/pages/index/index",
|
|
|
- imageUrl:"./images/WechatIMG18.jpg"
|
|
|
+ title: ' ',
|
|
|
+ path: "/pages/index/index",
|
|
|
+ imageUrl: imgUrl + "/index_share.jpg"
|
|
|
}
|
|
|
},
|
|
|
- onShareTimeline(){
|
|
|
+ onShareTimeline() {
|
|
|
return {
|
|
|
- title: '首页'
|
|
|
+ title: ' ',
|
|
|
+ path: "/pages/index/index",
|
|
|
+ imageUrl: imgUrl + "/index_share.jpg"
|
|
|
}
|
|
|
+ },
|
|
|
+ loadyxna(){
|
|
|
+ wx.request({
|
|
|
+ url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=4&channelId=370523',
|
|
|
+ method: 'GET',
|
|
|
+ success: res => {
|
|
|
+
|
|
|
+ let iamges = []
|
|
|
+ for (let i = 0; i < res.data.data.DATA.length; i++) {
|
|
|
+ // 截取logo图片
|
|
|
+ let url = res.data.data.DATA[i].DOCPUBURL.substring(0, res.data.data.DATA[i].DOCPUBURL.lastIndexOf("/") + 1)
|
|
|
+ let logo = res.data.data.DATA[i].LOGOURL.substring(res.data.data.DATA[i].LOGOURL.lastIndexOf("FileName=") + "fileName=".length)
|
|
|
+
|
|
|
+ iamges.push({url:url + logo,title:res.data.data.DATA[i].DOCTITLE,docpuburl:res.data.data.DATA[i].DOCPUBURL})
|
|
|
+ }
|
|
|
+ this.setData({
|
|
|
+ swiperList:iamges
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
})
|