Bladeren bron

小程序对接文字解读,优化区政府领导

wrh 2 jaren geleden
bovenliggende
commit
87a4535e78

+ 73 - 29
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/index/index.js

@@ -14,36 +14,27 @@ Page({
     imgUrl: imgUrl,
     // 屏幕高度
     navHeight: '',
-    background: ['1', '2', '3', '4', '5'],
     // 区政府领导列表
     leaderList: [{
       id: '145044',
       name: '王茂春',
       pic: '图层 1298.png',
-      description: '区委副书记,区政府党组书记、区政府区长,重庆经开区党工委副书记(兼)',
-      Introduction: '王茂春,男,汉族,1970年1月生,研究生,高级管理人员工商管理硕士,中共党员。现任区委副书记,区政府党组书记、区政府区长,重庆经开区党工委副书记(兼)。',
-      work: '主持区政府全面工作。主管审计工作。联系人大、政协、民主党派有关工作。'
+      description: '区委副书记,区政府党组书记、区政府区长,重庆经开区党工委副书记(兼)'
     }, {
       id: '341997',
       name: '唐昕',
       pic: '图层 1298.png',
-      description: '区委常委,区政府党组副书记、常务副区长',
-      Introduction: '唐昕,男,汉族,1967年8月生,研究生,农业推广硕士,中共党员。现任区委常委,区政府党组副书记、常务副区长。',
-      work: '负责区政府常务工作。分管的工作:发展改革、财政、税务、国资监管、政府债务防控、统计、保密、督查、行政审批、政务服务、政务公开、“放管服”改革、筹融资、机关事务、公务接待、国防动员、粮食、能源、政府采购、公共资源交易监管、对口支援、重点建设、重大项目包装推介、生产要素市场建设、管网建设。协助负责审计工作。统筹负责金融、企业上市、应急管理工作。分管的部门(单位):区政府办公室、区发展改革委(区公共资源交易监管局)、区财政局、区审计局、区统计局、区机关事务局、区国资委、区政务办、区税务局、区行政学校、区城建集团、区正联公司。联系人才、考核、巡察、党校、老干部、人武工作,区监委,经开区办公室、生态城指挥部办公室、经开区改革发展科技局、经开区行政服务中心、经开区税务局、市税务局第五稽查局,中邮南岸分公司。'
+      description: '区委常委,区政府党组副书记、常务副区长'
     }, {
       id: '341998',
       name: '张进',
       pic: '图层 1298.png',
-      description: '区委常委,区政府党组成员、副区长',
-      Introduction: '张进,男,汉族,1969年10月生,研究生,理学学士,中共党员。现任区委常委,区政府党组成员、副区长。',
-      work: '分管的工作:商务、现代服务业、外经外贸、外事、招商引资、大健康产业发展、供销、商贸流通、口岸物流、港澳事务、台湾事务、侨务、自贸区、中新示范项目、市场监管、工商管理、中小企业、微型企业、非公有制经济、质量技术监督、检验检疫、食品药品监督管理、知识产权保护、烟草专卖、南坪现代服务业集聚区开发建设,协同做好迎龙商务区开发建设工作。分管的部门(单位):区商务委、区政府外办(区招商投资局、区服务业发展办)、区供销社、区市场监管局(区知识产权局)、区大健康产业发展促进中心、南坪现代服务业集聚区发展中心。联系台湾事务、侨务工作,市药品监管局检查三局,区烟草专卖局,区工商联、区侨联,迎龙商务区发展中心,经开区经贸合作局、经开区市场监管局、经开区招商公司,重庆软件园,区域内中央和市属商贸流通企业。'
+      description: '区委常委,区政府党组成员、副区长'
     }, {
       id: '341999',
       name: '蒋文新',
       pic: '图层 1298.png',
-      description: '民盟重庆市南岸区委主委,区政府副区长',
-      Introduction: '蒋文新,男,汉族,1967年1月生,大学。现任民盟重庆市南岸区委主委,区政府副区长。',
-      work: '分管的工作:教育、民政、文化广电、旅游、民族宗教工作、体育、老龄、妇女儿童、残疾人工作。分管的部门(单位):区教委、区民政局、区文化旅游委(区体育局)、区民族宗教委、区体育发展中心、重庆抗博、重马公司。联系档案、地方志、关心下一代工作,区总工会、团区委、区妇联、区残联,区域内高等院校。'
+      description: '民盟重庆市南岸区委主委,区政府副区长'
     }],
     // 政府信息公开
     governmentInfoList: [{
@@ -117,14 +108,14 @@ Page({
     }, {
       name: '媒体解读'
     }],
-    // 政策解读数据
-    policyInterpretationContent: [{
-      url: '图层 3261.png',
-      title: '重庆市南岸区集体土地征收补偿安置 实施办法政策解读(视频解读)'
-    }, {
-      url: '图层 3262.png',
-      title: '关于印发支持科技创新若干财政金融 政策的通知(视频解读)'
-    }],
+    // 文字解读
+    textInterpretationList: [],
+    // 图片解读
+    pictureInterpretationList: [],
+    // 视频解读
+    videoInterpretationList: [],
+    // 媒体解读
+    mediaInterpretationList: [],
     // 政策解读默认项
     currentTab: 0,
     // 政务专题
@@ -153,7 +144,9 @@ Page({
   // 事件处理函数
   onLoad() {
     // 政策文件
-    this.getFileListById(161753)
+    this.getFileListById(161753);
+    // 政策解读
+    this.getInterpretation();
     this.setData({
       navHeight: app.globalData.navHeight + app.globalData.menuHeight / 2
     })
@@ -185,6 +178,49 @@ Page({
       }
     })
   },
+  // 获取政策解读列表
+  getInterpretation() {
+    // 文字解读
+    wx.request({
+      url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
+      method: 'GET',
+      success: res => {
+        this.setData({
+          textInterpretationList: res.data.data.DATA
+        })
+      }
+    })
+    // 图片解读
+    wx.request({
+      url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
+      method: 'GET',
+      success: res => {
+        this.setData({
+          pictureInterpretationList: res.data.data.DATA
+        })
+      }
+    })
+    // 视频解读
+    wx.request({
+      url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
+      method: 'GET',
+      success: res => {
+        this.setData({
+          videoInterpretationList: res.data.data.DATA
+        })
+      }
+    })
+    // 媒体解读
+    wx.request({
+      url: 'https://data.cqna.gov.cn/mini/hlw/send?page=1&limit=3&channelId=222894',
+      method: 'GET',
+      success: res => {
+        this.setData({
+          mediaInterpretationList: res.data.data.DATA
+        })
+      }
+    })
+  },
   // 跳转更多界面
   goToMore() {
     console.log("跳转到详细界面");
@@ -296,8 +332,8 @@ Page({
   },
   goToFileList() {
     wx.navigateTo({
-			url: '/pages/publics/fileList/fileList',
-		})
+      url: '/pages/publics/fileList/fileList',
+    })
   },
   goTOFileDetail(e) {
     var url = e.target.dataset.url
@@ -307,11 +343,19 @@ Page({
       docId = e.target.dataset.item
     }
     var chennelId = 0;
-    switch(this.data.fileTab) {
-      case 0: chennelId = 161753;break;
-      case 1: chennelId = 20442;break;
-      case 2: chennelId = 69336;break;
-      default: chennelId = 0;break;
+    switch (this.data.fileTab) {
+      case 0:
+        chennelId = 161753;
+        break;
+      case 1:
+        chennelId = 20442;
+        break;
+      case 2:
+        chennelId = 69336;
+        break;
+      default:
+        chennelId = 0;
+        break;
     }
     if (chennelId != 0 && docId != 0) {
       wx.navigateTo({

+ 20 - 10
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/index/index.wxml

@@ -129,27 +129,37 @@
         <swiper current="{{currentTab}}" bindchange="handleSwiper" autoplay="{{false}}" style="padding: 0 10px;margin-top: 15rpx;height: 320rpx;">
           <!-- 文字解读 -->
           <swiper-item>
-            <view style="display: flex;justify-content: space-between;" >
+            <view wx:for-item="item" wx:for-index="index" wx:key="index" wx:for="{{textInterpretationList}}" style="display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;height: 107rpx;font-size: 28rpx;color: #666666;width: 639rpx;margin-left: 23rpx;border-bottom: 2rpx solid #CCCCCC;">
+              <view class="limit-text-1" style="width: 500rpx">{{item.DOCTITLE}}</view>
+              <view>{{filter.formateDate(item.DOCPUBTIME)}}</view>
+              <view style="color: #c0d1e5;border: 1rpx solid #c0d1e5;border-radius: 10rpx;padding: 10rpx;">政策原文</view>
+            </view>
+          </swiper-item>
+          <!-- 图片解读 -->
+          <swiper-item>
+            <view style="display: flex;justify-content: space-between;">
               <view style="width: 327rpx;" wx:for="{{2}}">
                 <image src="{{imgUrl}}图层 3261.png" style="width: 327rpx;height: 227rpx;"></image>
                 <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">重庆市南岸区集体士地征收补偿安置实腌办法政策解读(视频解读)</view>
               </view>
             </view>
           </swiper-item>
-          <!-- 图片解读 -->
-          <swiper-item>
-            <image src="{{imgUrl}}图层 3261.png" style="width: 327rpx;height: 227rpx;"></image>
-            <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">重庆市南岸区集体士地征收补偿安置实腌办法政策解读(视频解读)</view>
-          </swiper-item>
           <!-- 视频解读 -->
           <swiper-item>
-            <image src="{{imgUrl}}图层 3261.png" style="width: 327rpx;height: 227rpx;"></image>
-            <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">重庆市南岸区集体士地征收补偿安置实腌办法政策解读(视频解读)</view>
+            <view style="display: flex;justify-content: space-between;">
+              <view style="width: 327rpx;" wx:for="{{2}}">
+                <image src="{{imgUrl}}图层 3261.png" style="width: 327rpx;height: 227rpx;"></image>
+                <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">重庆市南岸区集体士地征收补偿安置实腌办法政策解读(视频解读)</view>
+              </view>
+            </view>
           </swiper-item>
           <!-- 媒体解读 -->
           <swiper-item>
-            <image src="{{imgUrl}}图层 3261.png" style="width: 327rpx;height: 227rpx;"></image>
-            <view style="font-size: 20rpx;font-family: PingFang SC;color: #666666;">重庆市南岸区集体士地征收补偿安置实腌办法政策解读(视频解读)</view>
+            <view wx:for-item="item" wx:for-index="index" wx:key="index" wx:for="{{mediaInterpretationList}}" style="display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;height: 107rpx;font-size: 28rpx;color: #666666;width: 639rpx;margin-left: 23rpx;border-bottom: 2rpx solid #CCCCCC;">
+              <view class="limit-text-1" style="width: 500rpx">{{item.DOCTITLE}}</view>
+              <view>{{filter.formateDate(item.DOCPUBTIME)}}</view>
+              <view style="color: #c0d1e5;border: 1rpx solid #c0d1e5;border-radius: 10rpx;padding: 10rpx;">政策原文</view>
+            </view>
           </swiper-item>
         </swiper>
       </view>

+ 0 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/leaderInfo/leaderInfo.js

@@ -24,7 +24,6 @@ Page({
       success: res => {
         item.LDLL = res.data.data.LDLL.replace(/\<span/gi, '<span class="fontSize"');
         item.LDFG = res.data.data.LDFG.replace(/\<span/gi, '<span class="fontSize"');
-        console.log(res);
         this.setData({
           leaderInfo: item
         })

+ 27 - 14
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/publicLeaderDetail/publicLeaderDetail.js

@@ -1,6 +1,6 @@
 // pages/publicLeaderDetail/publicLeaderDetail.js
 import {
-	imgUrl
+  imgUrl
 } from "../../api/request"
 
 Page({
@@ -21,72 +21,85 @@ Page({
       docId: '10298243',
       name: '唐昕',
       pic: '图层 1298.png',
-			description: '区委常委,区政府党组副书记、常务副区长'
+      description: '区委常委,区政府党组副书记、常务副区长'
     }, {
       channelId: '341998',
       docId: '10298370',
       name: '张进',
       pic: '图层 1298.png',
-			description: '区委常委,区政府党组成员、副区长'
+      description: '区委常委,区政府党组成员、副区长'
     }, {
       channelId: '341999',
       docId: '10298390',
       name: '蒋文新',
       pic: '图层 1298.png',
-			description: '民盟重庆市南岸区委主委,区政府副区长'
+      description: '民盟重庆市南岸区委主委,区政府副区长'
     }, {
       channelId: '342000',
       docId: '10298402',
       name: '游泳',
       docId: '10298402',
       pic: '图层 1298.png',
-			description: '区政府党组成员、副区长'
+      description: '区政府党组成员、副区长'
     }, {
       channelId: '342002',
       docId: '10298423',
       name: '刘露',
       pic: '图层 1298.png',
-			description: '区政府党组成员、副区长'
+      description: '区政府党组成员、副区长'
     }, {
       channelId: '342003',
       docId: '10298429',
       name: '张超林',
       pic: '图层 1298.png',
-			description: '区政府党组成员、副区长'
+      description: '区政府党组成员、副区长'
     }, {
       channelId: '342004',
       docId: '10298447',
       name: '杨建',
       pic: '图层 1298.png',
-			description: '区政府党组成员、副区长,区公安分局党委书记、局长、督察长(兼)'
+      description: '区政府党组成员、副区长,区公安分局党委书记、局长、督察长(兼)'
     }, {
       channelId: '342005',
       docId: '10298487',
       name: '石少林',
       pic: '图层 1298.png',
-			description: '区政府党组成员、副区长'
+      description: '区政府党组成员、副区长'
     }, {
       channelId: '344559',
       docId: '10381074',
       name: '张炎',
       pic: '图层 1298.png',
-			description: '区政府党组成员,中国信息通信研究院西部分院(重庆信息通信研究院)院长'
+      description: '区政府党组成员,中国信息通信研究院西部分院(重庆信息通信研究院)院长'
     }, {
       channelId: '145052',
       docId: '10298498',
       name: '陈炯',
       pic: '图层 1298.png',
-			description: '区政府一级巡视员'
+      description: '区政府一级巡视员'
     }, {
       channelId: '145046',
-      docId: '10298402',
+      docId: '10298513',
       name: '莫裕全',
       pic: '图层 1298.png',
-			description: '民进重庆市委副主委,区政府一级巡视员'
+      description: '民进重庆市委副主委,区政府一级巡视员'
     }],
   },
 
-  onLoad(options) {},
+  onLoad(options) {
+    for (let i = 0; i < this.data.leaderList.length; i++) {
+      const element = this.data.leaderList[i];
+      setTimeout(function () {
+        wx.request({
+          url: 'https://data.cqna.gov.cn/mini/hlw/info?channelId=' + element.channelId + '&docId=' + element.docId,
+          method: 'GET',
+          success: res => {
+            console.log(res);
+          }
+        })
+      }, i * 500)
+    }
+  },
 
   onReady() {