|
@@ -223,8 +223,8 @@ Page({
|
|
|
// 视频推荐是否为空数据
|
|
|
isVideoEmpty: false,
|
|
|
// 意见征集list
|
|
|
- yjzjDataList: [],
|
|
|
- scroll_height:"",
|
|
|
+ yjzjDataList: [],
|
|
|
+ scroll_height:"",
|
|
|
// 在线调查
|
|
|
investigatePage: 1,
|
|
|
investigateList: [],
|
|
@@ -286,61 +286,71 @@ Page({
|
|
|
id: '1',
|
|
|
name: "重庆市南岸区人民政府",
|
|
|
img: imgUrl + 'index-media-icon1.png',
|
|
|
- ewm: "index_ewm_logo_1.png"
|
|
|
+ ewm: "index_ewm_logo_1.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '2',
|
|
|
name: "南岸文旅",
|
|
|
img: imgUrl + 'index-media-icon2.png',
|
|
|
- ewm: "index_ewm_logo_2.png"
|
|
|
+ ewm: "index_ewm_logo_2.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '3',
|
|
|
name: "南岸发布",
|
|
|
img: imgUrl + 'index-media-icon3.png',
|
|
|
ewm: "index_ewm_logo_3.jpg",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '4',
|
|
|
name: "南岸国资",
|
|
|
img: imgUrl + 'index-media-icon4.png',
|
|
|
- ewm: "index_ewm_logo_4.png"
|
|
|
+ ewm: "index_ewm_logo_4.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '5',
|
|
|
name: "重庆南岸消防",
|
|
|
img: imgUrl + 'index-media-icon5.png',
|
|
|
- ewm: "index_ewm_logo_5.png"
|
|
|
+ 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"
|
|
|
+ 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"
|
|
|
+ ewm: "index_ewm_logo_7.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '8',
|
|
|
name: "南岸公安",
|
|
|
img: imgUrl + 'index-media-icon8.png',
|
|
|
- ewm: "index_ewm_logo_8.png"
|
|
|
+ ewm: "index_ewm_logo_8.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '9',
|
|
|
name: "遇见南坪",
|
|
|
img: imgUrl + 'index-media-icon9.png',
|
|
|
- ewm: "index_ewm_logo_9.png"
|
|
|
+ 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"
|
|
|
+ ewm: "index_ewm_logo_10.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
// {
|
|
|
// id: '11',
|
|
@@ -352,49 +362,57 @@ Page({
|
|
|
id: '12',
|
|
|
name: "广阳岛绿色发展公司",
|
|
|
img: imgUrl + 'index-media-icon13.png',
|
|
|
- ewm: "index_ewm_logo_13.jpg"
|
|
|
+ ewm: "index_ewm_logo_13.jpg",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '13',
|
|
|
name: "南岸人力社保",
|
|
|
img: imgUrl + 'index-media-icon14.png',
|
|
|
- ewm: "index_ewm_logo_14.png"
|
|
|
+ ewm: "index_ewm_logo_14.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '14',
|
|
|
name: "广阳湾智创生态城",
|
|
|
img: imgUrl + 'index-media-icon15.png',
|
|
|
- ewm: "index_ewm_logo_15.jpg"
|
|
|
+ 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"
|
|
|
+ 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"
|
|
|
+ ewm: "index_ewm_logo_17.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '17',
|
|
|
name: "南岸智慧城管",
|
|
|
img: imgUrl + 'index-media-icon16.png',
|
|
|
- ewm: "index_ewm_logo_16.png"
|
|
|
+ ewm: "index_ewm_logo_16.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '18',
|
|
|
name: "重庆市南岸区南坪街道",
|
|
|
img: imgUrl + 'index-media-icon19.png',
|
|
|
- ewm: "index_ewm_logo_19.png"
|
|
|
+ ewm: "index_ewm_logo_19.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
{
|
|
|
id: '19',
|
|
|
name: "南岸司法",
|
|
|
img: imgUrl + 'index-media-icon12.png',
|
|
|
- ewm: "index_ewm_logo_12.png"
|
|
|
+ ewm: "index_ewm_logo_12.png",
|
|
|
+ url: "https://mp.weixin.qq.com/s/yJXxRe_xcTEIVIrtQIulRQ"
|
|
|
},
|
|
|
],
|
|
|
// 媒体矩阵南岸发布
|
|
@@ -552,9 +570,9 @@ Page({
|
|
|
// 判断机型
|
|
|
wx.getSystemInfo({
|
|
|
success: res => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
let system = res.system.split(" ")
|
|
|
- console.log(system);
|
|
|
+ // console.log(system);
|
|
|
if (res.safeArea.top > 20 && system[0]=='iOS') { //iphonex,xr,xs
|
|
|
scroll_height = scroll_height-70
|
|
|
}
|
|
@@ -804,12 +822,12 @@ Page({
|
|
|
wx.request({
|
|
|
url: 'https://www.gov.cn/pushinfo/v150203/pushinfo.jsonp?pushInfoJsonpCallBack=pushInfoJsonpCallBack&_=1669609973471',
|
|
|
success: res => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
if (res.statusCode == 200) {
|
|
|
var s = res.data
|
|
|
s = s.substring(22, s.length - 1)
|
|
|
s = JSON.parse(s)
|
|
|
- console.log(s);
|
|
|
+ // console.log(s);
|
|
|
var d = [];
|
|
|
var size = s.length <= 5 ? s.length : 5
|
|
|
for (let i = 0; i < size; i++) {
|
|
@@ -932,12 +950,12 @@ Page({
|
|
|
wx.request({
|
|
|
url: 'https://www.gov.cn/pushinfo/v150203/pushinfo.jsonp?pushInfoJsonpCallBack=pushInfoJsonpCallBack&_=1669609973471',
|
|
|
success: res => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
if (res.statusCode == 200) {
|
|
|
var s = res.data
|
|
|
s = s.substring(22, s.length - 1)
|
|
|
s = JSON.parse(s)
|
|
|
- console.log(s);
|
|
|
+ // console.log(s);
|
|
|
var d = [];
|
|
|
var size = s.length <= 5 ? s.length : 5
|
|
|
if (size < 1) {
|
|
@@ -1081,6 +1099,7 @@ Page({
|
|
|
this.setData({
|
|
|
'yjzjDataList': list
|
|
|
})
|
|
|
+ wx.setStorageSync('yjzjDataList', list)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1138,14 +1157,14 @@ Page({
|
|
|
const id = e.target.dataset.id
|
|
|
const siteId = e.target.dataset.siteid
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/web/web?wxUrl=' + encodeURIComponent(`https://www.cqna.gov.cn/personalCenter/answerSheet/answerSheet.html?siteId=${siteId}&metadataId=${id}`),
|
|
|
+ url: '/pages/web/web?wxUrl='+siteId+'&metadataId='+id ,
|
|
|
})
|
|
|
},
|
|
|
goYjzjDetail(e) {
|
|
|
- const html = e.currentTarget.dataset.item
|
|
|
+ // const html = e.currentTarget.dataset.item
|
|
|
const title = e.currentTarget.dataset.theme
|
|
|
wx.navigateTo({
|
|
|
- url: `/pages/yjzjDetail/yjzjDetail?html=${encodeURIComponent(html)}&title=${title}`
|
|
|
+ url: `/pages/yjzjDetail/yjzjDetail?title=${title}`
|
|
|
})
|
|
|
},
|
|
|
// 日期格式化
|
|
@@ -1241,8 +1260,9 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
gotoReleaseDetail(e) {
|
|
|
+ // console.log(e.currentTarget.dataset.url);
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/web/web?wxUrl=' + encodeURIComponent(e.currentTarget.dataset.url),
|
|
|
+ url: '/pages/web/web?gzUrl='+e.currentTarget.dataset.url,
|
|
|
})
|
|
|
},
|
|
|
// 获取媒体矩阵今日头条数据
|
|
@@ -1286,7 +1306,7 @@ Page({
|
|
|
code: res.code
|
|
|
}
|
|
|
login(data).then(res => {
|
|
|
- console.log(res)
|
|
|
+ // console.log(res)
|
|
|
cacheSet('token', res.data.token, 3600 * 24)
|
|
|
// wx.setStorageSync("token", res.data.data)
|
|
|
})
|
|
@@ -1382,8 +1402,9 @@ Page({
|
|
|
ewmName: e.target.dataset.name,
|
|
|
ewmUrl: e.target.dataset.ewm
|
|
|
})
|
|
|
+ // e.target.dataset.url
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/web/web?url=https://www.cqna.gov.cn/data/newMedia/officialAccounts.html',
|
|
|
+ url: '/pages/web/web?url='+e.target.dataset.url,
|
|
|
})
|
|
|
},
|
|
|
closeDialog() {
|
|
@@ -1461,6 +1482,11 @@ Page({
|
|
|
return {
|
|
|
title: '首页'
|
|
|
}
|
|
|
+ },
|
|
|
+ onShareTimeline(){
|
|
|
+ return {
|
|
|
+ title: '首页'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
})
|