From 20b4c7ccf58191066b6a9ecf434604087d675d38 Mon Sep 17 00:00:00 2001
From: liuwh <liuwh@hugeinfo.com.cn>
Date: Fri, 28 Feb 2020 09:31:19 +0800
Subject: [PATCH] 提交

---
 SunshineLnsMinApp/pages/zhgk/zhgk.wxml               |   25 -
 SunshineLnsMinApp/pages/zhdt/zhdt.js                 |   41 +++
 SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.wxml       |   77 +++----
 SunshineLnsMinApp/pages/fzxkt/fzxkt.js               |   17 -
 SunshineLnsMinApp/pages/zhdt/zhdt.wxml               |   29 --
 SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js   |  101 +++------
 SunshineLnsMinApp/app.js                             |    6 
 SunshineLnsMinApp/pages/zhgk/zhgk.js                 |   71 ++----
 SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.js         |   96 ++------
 SunshineLnsMinApp/pages/fzxkt/fzxkt.wxml             |   60 +++---
 SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxss |   33 +++
 SunshineLnsMinApp/pages/fzxkt/fzxkt.wxss             |    2 
 SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxml |   37 +--
 13 files changed, 260 insertions(+), 335 deletions(-)

diff --git a/SunshineLnsMinApp/app.js b/SunshineLnsMinApp/app.js
index 648c686..7e3d4e0 100644
--- a/SunshineLnsMinApp/app.js
+++ b/SunshineLnsMinApp/app.js
@@ -10,10 +10,10 @@
   globalData: {
     userInfo: null,
     pageData: {},
-    url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
-    //url: 'http://192.168.0.31:8085/nsjc-charge',y
+    // url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
+    //url: 'http://192.168.0.31:8085/nsjc-charge',
     //imgUrl: 'https://hugeinfo.com.cn/nsjc-charge',
-    // url: 'http://nsjc.vaiwan.com/nsjc-charge',
+    url: 'http://nsjc.vaiwan.com/nsjc-charge',
     imgUrl: 'http://nsjc.vaiwan.com/nsjc-charge'
   },
   // 过滤数组
diff --git a/SunshineLnsMinApp/pages/fzxkt/fzxkt.js b/SunshineLnsMinApp/pages/fzxkt/fzxkt.js
index 0f5a17d..bfbd781 100644
--- a/SunshineLnsMinApp/pages/fzxkt/fzxkt.js
+++ b/SunshineLnsMinApp/pages/fzxkt/fzxkt.js
@@ -9,15 +9,7 @@
     TabCur: 0,
     scrollLeft: 0,
     tabList: ['未成年人', '公益诉讼', '其他'],
-    dataSet: [{
-      createTime: '2020/2/3 15:30',
-      readCount: 2,
-      title: '课堂名称'
-    }, {
-      createTime: '2020/2/3 15:30',
-      readCount: 2,
-      title: '课堂名称'
-    }],
+    dataSet: [],
     isHideLoadMore: true, //loading样式
     isHideMorebtn: true, //更多按钮样式
     isHideEnd: true, //有底线样式  (三者默认隐藏)
@@ -57,14 +49,15 @@
         console.log('res', res);
         if (res.data.code == 0) {
           let content = res.data.data.result.content.map(({
-            startTime,
+            createTime,
             ...i
           }) => ({
             ...i,
-            startTime: app.formatDate(startTime),
+            createTime: app.formatDate(createTime),
           }));
+          console.log(content)
           that.setData({
-            items: content
+            dataSet: content
           })
         } else {
           wx.showToast({
diff --git a/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxml b/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxml
index 9299bda..411da9d 100644
--- a/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxml
+++ b/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxml
@@ -1,47 +1,47 @@
 <!--pages/fzxkt/fzxkt.wxml-->
-<scroll-view scroll-x class="bg-white nav solid-top">
+<!-- <scroll-view scroll-x class="bg-white nav solid-top">
   <view class="flex text-center">
     <view class="cu-item flex-sub {{index==TabCur?'text-blue cur':''}}" wx:for="{{tabList}}" wx:key bindtap="tabSelect" data-id="{{index}}">
       {{item}}
     </view>
   </view>
-</scroll-view>
+</scroll-view> -->
 <view class="lawPublicity-list">
-  <!-- <view wx:for="{{dataSet}}" wx:key="{{item.id}}" data-Id="{{item.id}}" bindtap="link"> -->
-  <view class="weui-panel weui-panel_access">
-    <view class="weui-panel__bd">
-      <view class="weui-media-box weui-media-box_text" wx:for="{{ dataSet }}" wx:key="">
-        <view class="lawPublicity-item">
-          <view class="content-right">
-            <image src="{{item.coverUrl}}"></image>
-          </view>
-          <view class="content-left">
-            <view class="headLineTitle">
-              {{item.title}}
-            </view>
-            <text class="cuIcon-favorfill lg text-blue"></text>
-            <view class="headLineInfo">
-              <view class="info-source">{{item.createTime}}</view>
-              <view class="info-viewer">{{item.readCount}}人观看</view>
-            </view>
-          </view>
-        </view>
-      </view>
-    </view>
-  </view>
+	<!-- <view wx:for="{{dataSet}}" wx:key="{{item.id}}" data-Id="{{item.id}}" > -->
+	<view class="weui-panel weui-panel_access">
+		<view class="weui-panel__bd">
+			<view class="weui-media-box weui-media-box_text" wx:for="{{ dataSet }}" bindtap="link" data-Id="{{item.id}}" wx:key="">
+        <view class=" lawPublicity-item">
+				<!-- <view class="content-right">
+            <video src="{{item.attList[0].path}}" enable-danmu danmu-btn controls></video>
+          </view> -->
+				<view class="content-left">
+					<view class="headLineTitle">
+						{{item.title}}
+					</view>
+					<!-- <text class="cuIcon-favorfill lg text-blue"></text> -->
+					<view class="headLineInfo">
+						<view class="info-source">{{item.createTime}}</view>
+						<view class="info-viewer">{{item.readCount}}人观看</view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</view>
 
-  <!-- <view class="border">
+<!-- <view class="border">
     </view> -->
-  <!-- </view> -->
+<!-- </view> -->
 
 </view>
 <view class="weui-loadmore" hidden="{{isHideMorebtn}}">
-  <view class="weui-loadmore__tips" bindtap='getMore'>点击加载更多</view>
+	<view class="weui-loadmore__tips" bindtap='getMore'>点击加载更多</view>
 </view>
 <view class="weui-loadmore" hidden="{{isHideLoadMore}}">
-  <view class="weui-loading"></view>
-  <view class="weui-loadmore__tips">正在加载</view>
+	<view class="weui-loading"></view>
+	<view class="weui-loadmore__tips">正在加载</view>
 </view>
 <view class="weui-loadmore" hidden="{{isHideEnd}}">
-  <view class="weui-loadmore__tips">------------我是有底线的------------</view>
+	<view class="weui-loadmore__tips">------------我是有底线的------------</view>
 </view>
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxss b/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxss
index 2a202c7..99a7471 100644
--- a/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxss
+++ b/SunshineLnsMinApp/pages/fzxkt/fzxkt.wxss
@@ -13,7 +13,7 @@
 }
 
 .lawPublicity-item {
-  height: 148rpx;
+  height: 122rpx;
   display: flex;
   flex-direction: row;
   color: rgba(51, 51, 51, 1);
diff --git a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js
index 89d1f1a..e4cf96c 100644
--- a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js
+++ b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.js
@@ -8,83 +8,48 @@
    */
   data: {
     content: '',
-    attList: {},
-    excelSrc: app.globalData.imgUrl +'/image/fileIcon/excel.svg',
-    fileSrc: app.globalData.imgUrl +'/image/fileIcon/file.svg',
-    mp3Src: app.globalData.imgUrl +'/image/fileIcon/mp3.svg',
-    mp4Src: app.globalData.imgUrl +'/image/fileIcon/mp4.svg',
-    pdfSrc: app.globalData.imgUrl +'/image/fileIcon/pdf.svg',
-    pictureSrc: app.globalData.imgUrl +'/image/fileIcon/picture.svg',
-    pptSrc: app.globalData.imgUrl +'/image/fileIcon/ppt.svg',
-    wordSrc: app.globalData.imgUrl +'/image/fileIcon/word.svg',
-    zipSrc: app.globalData.imgUrl +'/image/fileIcon/zip.svg',
+    data: {},
+    excelSrc: app.globalData.imgUrl + '/image/fileIcon/excel.svg',
+    fileSrc: app.globalData.imgUrl + '/image/fileIcon/file.svg',
+    mp3Src: app.globalData.imgUrl + '/image/fileIcon/mp3.svg',
+    mp4Src: app.globalData.imgUrl + '/image/fileIcon/mp4.svg',
+    pdfSrc: app.globalData.imgUrl + '/image/fileIcon/pdf.svg',
+    pictureSrc: app.globalData.imgUrl + '/image/fileIcon/picture.svg',
+    pptSrc: app.globalData.imgUrl + '/image/fileIcon/ppt.svg',
+    wordSrc: app.globalData.imgUrl + '/image/fileIcon/word.svg',
+    zipSrc: app.globalData.imgUrl + '/image/fileIcon/zip.svg',
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
+    console.log(options.id)
     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/publicMsgDetails?msgId=' + options.id,
+      success: function (res) {
+        wx.hideLoading();
+        console.log(res)
+        if (res.data.code == 0) {
+          that.setData({
+            data: {
+              ...res.data.data,
+              createTime: app.formatDate(res.data.data.createTime),
+            }
+          })
+        } else {
+          wx.showModal({
+            title: '提示',
+            content: "请求失败!"
+          })
+        }
+      }
+    })
   },
 
   // 预览附件
-  open:function(e) {
+  open: function (e) {
     var path = e.currentTarget.dataset.path;
     console.log(path)
     wx.downloadFile({
@@ -99,7 +64,7 @@
         })
       }
     })
-    
+
   }
 
 })
diff --git a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxml b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxml
index b620539..114b57a 100644
--- a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxml
+++ b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxml
@@ -1,25 +1,22 @@
 <!--lawPublicityDetail.wxml-->
 <import src="../wxParse/wxParse.wxml" />
 <view class="detail">
-  <!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
-  <!-- <view wx:for="{{attList.attList21}}" wx:key="{{key}}"> -->
-  <!-- <video id="myVideo" src="{{item.path}}"
+	<!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
+	<!-- <view wx:for="{{attList.attList21}}" wx:key="{{key}}"> -->
+	<!-- <video id="myVideo" src="{{item.path}}"
     danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video> -->
-  <view class="video-area">
-    <video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
-      danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>
-  </view>
-  <!-- </view> -->
-</view>
+	<view class="video-area">
+		<video id="myVideo" src="{{data.attList[0].path}}" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>
+	</view>
 
-<div class="index-gray"></div>
-
-<div class="detail-main">
-  <div class="detail-message">
-    <span></span>
-    <span>相关视频</span>
-  </div>
-
-
-
-</div>
\ No newline at end of file
+	<view class="content-left">
+		<view class="headLineTitle">
+			{{data.title}}
+		</view>
+		<!-- <text class="cuIcon-favorfill lg text-blue"></text> -->
+		<view class="headLineInfo">
+			<view class="info-source">{{data.createTime}}</view>
+			<view class="info-viewer">{{data.readCount}}人观看</view>
+		</view>
+	</view>
+</view>
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxss b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxss
index 7baa0fa..b59fade 100644
--- a/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxss
+++ b/SunshineLnsMinApp/pages/fzxktDetail/fzxktDetail.wxss
@@ -21,6 +21,31 @@
   margin:20rpx 0 0 20rpx;
 }
 
+.content-right {
+  flex: 1;
+  margin-right: 50rpx;
+  background: #ccc;
+  width: 100%;
+  height: 100%;
+}
+.headLineTitle {
+  /* height: 88rpx; */
+  font-size: 16px;
+  line-break: 44rpx;
+  color: rgba(51, 51, 51, 1);
+  /* margin-bottom: 26rpx; */
+}
+
+.headLineInfo {
+  display: flex;
+  font-size: 12px;
+  color: rgba(153, 153, 153, 1);
+}
+
+.info-source {
+  margin-right: 20rpx;
+}
+
 #myVideo{
   display: block;
   width: 100%;
@@ -45,6 +70,14 @@
   height: 48px;
 }
 
+.content-left {
+  width: 416rpx;
+  display: flex;
+  flex-direction: column;
+  justify-content: space-between;
+  margin:14px 0;
+}
+
 .detail-img-bottom {
   font-size: 12px;
   color: #333;
diff --git a/SunshineLnsMinApp/pages/zhdt/zhdt.js b/SunshineLnsMinApp/pages/zhdt/zhdt.js
index a8fcc04..e81fff8 100644
--- a/SunshineLnsMinApp/pages/zhdt/zhdt.js
+++ b/SunshineLnsMinApp/pages/zhdt/zhdt.js
@@ -11,13 +11,44 @@
     dongtai3_1: app.globalData.imgUrl + '/image/dongtai3-1.jpg',
     inputShowed: false,
     inputVal: "",
+    dataSet:[]
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
-  onLoad: function(options) {
-
+  onLoad: function (options) {
+    var that = this;
+    wx.showLoading();
+    wx.request({
+      url: app.globalData.url + '/api/article/publicMsgQuery',
+      data: {
+        page: 1,
+        size: 1000,
+        flag: '未检动态',
+      },
+      success: function (res) {
+        wx.hideLoading();
+        console.log('res', res);
+        if (res.data.code == 0) {
+          let content = res.data.data.result.content.map(({
+            createTime,
+            ...i
+          }) => ({
+            ...i,
+            createTime: app.formatDate(createTime),
+          }));
+          console.log(content)
+          that.setData({
+            dataSet: content
+          })
+        } else {
+          wx.showToast({
+            title: res.data.msg,
+          })
+        }
+      }
+    })
   },
 
   linkFunction: function (event) {
@@ -28,19 +59,19 @@
     })
   },
 
-  showInput: function() {
+  showInput: function () {
     this.setData({
       inputShowed: true
     });
   },
 
-  hideInput: function() {
+  hideInput: function () {
     this.setData({
       inputVal: "",
       inputShowed: false
     });
   },
-  clearInput: function() {
+  clearInput: function () {
     this.setData({
       inputVal: ""
     }, () => {});
diff --git a/SunshineLnsMinApp/pages/zhdt/zhdt.wxml b/SunshineLnsMinApp/pages/zhdt/zhdt.wxml
index 6f665c6..8e183bc 100644
--- a/SunshineLnsMinApp/pages/zhdt/zhdt.wxml
+++ b/SunshineLnsMinApp/pages/zhdt/zhdt.wxml
@@ -24,34 +24,13 @@
   </view>
 <!-- <view class="index-gray "></view> -->
 <view class="zhwj-b">
-  <view class="zhwj-b-main" data-str="zhdtInfo" data-id="1" bindtap='linkFunction'>
+  <view class="zhwj-b-main" wx:for="{{ dataSet }}" data-str="zhdtInfo" data-Id="{{item.id}}" bindtap='linkFunction'>
     <view class="zhwj-b-head-l">
-      <view class="zhwj-b-head-l-title text-black">南沙区院召开2019“沙鸥”法治宣讲团年度总结暨课件评选会</view>
-      <view class="text-grey">检察宣传部 60阅读</view>
+      <view class="zhwj-b-head-l-title text-black">{{item.title}}</view>
+      <view class="text-grey">{{item.createTime}}<span>  </span>{{item.readCount}}阅读</view>
     </view>
     <view class="zhwj-b-head-r">
-      <image mode='widthFix' src="{{dongtai1_1}}"></image>
+      <image mode='widthFix' src="{{item.attList[0].path}}"></image>
     </view>
   </view>
-
-  <view class="zhwj-b-main" data-str="zhdtInfo" data-id="2" bindtap='linkFunction'>
-    <view class="zhwj-b-head-l">
-      <view class="zhwj-b-head-l-title text-black">“沙鸥”法治宣讲团进校园开展假前安全教育</view>
-      <view class="text-grey">检察宣传部 225阅读</view>
-    </view>
-    <view class="zhwj-b-head-r">
-      <image mode='widthFix' src="{{dongtai2_1}}"></image>
-    </view>
-  </view>
-
-  <view class="zhwj-b-main" data-str="zhdtInfo" data-id="3" bindtap='linkFunction'>
-    <view class="zhwj-b-head-l">
-      <view class="zhwj-b-head-l-title text-black">我院与华尔心理咨询中心开展反家暴普法宣传</view>
-      <view class="text-grey">检察宣传部 361阅读</view>
-    </view>
-    <view class="zhwj-b-head-r">
-      <image mode='widthFix' src="{{dongtai3_1}}"></image>
-    </view>
-  </view>
-
 </view>
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.js b/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.js
index 30ea5b2..39ad0a6 100644
--- a/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.js
+++ b/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.js
@@ -8,121 +8,83 @@
   data: {
     id: '',
     swiperList: [],
+    data:{},
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
-  onLoad: function(options) {
+  onLoad: function (options) {
     console.log(options.id)
-    this.setData({
-      id: options.id,
+    var that = this;
+    wx.request({
+      url: app.globalData.url + '/api/article/publicMsgDetails?msgId=' + options.id,
+      success: function (res) {
+        wx.hideLoading();
+        console.log(res)
+        if (res.data.code == 0) {
+          that.setData({
+            data: {
+              ...res.data.data,
+              createTime: app.formatDate(res.data.data.createTime),
+            }
+          })
+        } else {
+          wx.showModal({
+            title: '提示',
+            content: "请求失败!"
+          })
+        }
+      }
     })
-    if (options.id == '1') {
-      this.setData({
-        swiperList: [{
-          id: 0,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai1-1.jpg',
-        }, {
-          id: 1,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai1-2.jpg',
-        }, {
-          id: 2,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai1-3.jpg',
-        }],
-      })
-    } else if (options.id == '2') {
-      this.setData({
-        swiperList: [{
-          id: 0,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai2-1.jpg',
-        }, {
-          id: 1,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai2-2.jpg',
-        }, {
-          id: 4,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai2-5.jpg',
-        }, {
-          id: 5,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai2-6.jpg',
-        }, {
-          id: 6,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai2-7.jpg',
-        }],
-      })
-    }else{
-      this.setData({
-        swiperList: [{
-          id: 0,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai3-1.jpg',
-        }, {
-          id: 1,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai3-2.jpg',
-        }, {
-          id: 2,
-          type: 'image',
-          url: app.globalData.imgUrl + '/image/dongtai3-3.jpg',
-        }],
-      })
-    }
   },
 
   /**
    * 生命周期函数--监听页面初次渲染完成
    */
-  onReady: function() {
+  onReady: function () {
 
   },
 
   /**
    * 生命周期函数--监听页面显示
    */
-  onShow: function() {
+  onShow: function () {
 
   },
 
   /**
    * 生命周期函数--监听页面隐藏
    */
-  onHide: function() {
+  onHide: function () {
 
   },
 
   /**
    * 生命周期函数--监听页面卸载
    */
-  onUnload: function() {
+  onUnload: function () {
 
   },
 
   /**
    * 页面相关事件处理函数--监听用户下拉动作
    */
-  onPullDownRefresh: function() {
+  onPullDownRefresh: function () {
 
   },
 
   /**
    * 页面上拉触底事件的处理函数
    */
-  onReachBottom: function() {
+  onReachBottom: function () {
 
   },
 
   /**
    * 用户点击右上角分享
    */
-  onShareAppMessage: function() {
+  onShareAppMessage: function () {
 
   }
 })
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.wxml b/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.wxml
index 1579c7c..36111c3 100644
--- a/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.wxml
+++ b/SunshineLnsMinApp/pages/zhdtInfo/zhdtInfo.wxml
@@ -1,49 +1,46 @@
 <!--pages/zhdtInfo/zhdtInfo.wxml-->
 
 <swiper class="screen-swiper square-dot" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
-  <swiper-item wx:for="{{swiperList}}" wx:key>
-    <image src="{{item.url}}" mode="aspectFill"></image>
-    <!-- <video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video> -->
-  </swiper-item>
+	<swiper-item wx:for="{{data.attList}}" wx:key>
+		<image src="{{item.url}}" mode="aspectFill"></image>
+		<!-- <video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video> -->
+	</swiper-item>
 </swiper>
 
 <view class="zhgk-Info-main">
-  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
-    <text class="zhgk-Info-main-title text-black">总体介绍</text>
-  </view>
-  <view class=' text-df padding' wx:if="{{id=='1'}}"> 2020年1月14日,我院召开2019“沙鸥”法治宣讲团年度总结暨课件评选会。广东省人民检察院第九检察部主任王霞、广州市人民检察院第七检察部主任王银梅、团市委权益与社会工作部副科长陈鹏君、团区委副书记徐千秋、区法宣办、区教育局等部门负责人应邀出席会议并对9个普法课件进行评选。会上,我院以视频花絮与大家回顾了“沙鸥”宣讲团2019年的工作点滴。9名宣讲员以饱满的热情、清晰的脉络分别介绍了自己的课件特色。省检第九检察部主任王霞、市检第七检察部主任王银梅分别对9个课件进行精彩点评。最后,我院党组成员、副检察长李东蓊从“全、新、精”三个方面总结2019年“沙鸥”宣讲团工作,并提出2020年的工作展望。经过评选,吴美玉、吴堃、姜玥、颜淑娜等四名干警荣获年度普法课件优胜奖。
-  </view>
-  <view class=' text-df padding' wx:if="{{id=='2'}}"> 2020年1月15日至17日,我院“沙鸥”法治宣讲团先后来到华南师范大学附属南沙中学、广州外国语学校附属学校、黄阁小学、麒麟中学开展假前安全教育,受众师生3000余人。宣讲员围绕交通安全、防性侵、网络安全等主题,通过生动活泼、喜闻乐见的方式开展精准化法治教育。
-  </view>
-  <view class=' text-df padding' wx:if="{{id=='3'}}"> 家庭暴力无小事。近日,我院应南沙区妇联、广州市华尔心理健康咨询中心的邀请,到广东岭东技工职业学校开展以“一起向家庭暴力说不”为主题的反家暴法律知识讲座。检察官结合新闻热点、司法判例,解读《中华人民共和国反家暴法》,重点讲解《反家暴法》中的强制报告制度、公安告诫书、人身安全保护令等,讲授如何应对家暴保护自己和家人的合法权益。
-  </view>
+	<view class=" text-lg" style="padding:30rpx 30rpx 0;">
+		<text class="zhgk-Info-main-title text-black">{{data.title}}</text>
+	</view>
+	<view class=' text-df padding'>
+		<rich-text nodes="{{data.content}}"></rich-text>
+	</view>
+</view>
+
+<!-- <view class="zhgk-Info-main">
+	<view class=" text-lg" style="padding:30rpx 30rpx 0;">
+		<text class="zhgk-Info-main-title text-black">指导文件</text>
+	</view>
+	<view class="padding">
+		<view class=' text-df'>最高人民检察院《中华人民共和国最高人民检察院检察建议书》</view>
+		<view class=' text-df'>最高人民检察院《2018-2022年检察改革工作规划》</view>
+		<view class=' text-df'>最高人民检察院《最高人民检察院关于全面加强未成年人国家司法救助工作的意见》</view>
+	</view>
 </view>
 
 <view class="zhgk-Info-main">
-  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
-    <text class="zhgk-Info-main-title text-black">指导文件</text>
-  </view>
-  <view class="padding">
-    <view class=' text-df'>最高人民检察院《中华人民共和国最高人民检察院检察建议书》</view>
-    <view class=' text-df'>最高人民检察院《2018-2022年检察改革工作规划》</view>
-    <view class=' text-df'>最高人民检察院《最高人民检察院关于全面加强未成年人国家司法救助工作的意见》</view>
-  </view>
-</view>
-
-<view class="zhgk-Info-main">
-  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
-    <text class="zhgk-Info-main-title text-black">未检职能</text>
-  </view>
-  <view class="padding">
-    <view class=' text-df'> 广州市南沙区人民检察院是国家法律监督机关,负责辖区各项检察工作,接受广州市人民检察院的领导,对区人民代表大会及其常委会负责并报告工作,接受其监督,执行其决议。主要职责是:</view>
-    <view class=' text-df'>1.制定辖区检察工作计划,落实检察工作任务。</view>
-    <view class=' text-df'>2.依法对公安机关和检察机关直接受理的犯罪案件进行审查批准逮捕、决定逮捕、提起公诉、出庭支持公诉。</view>
-    <view class=' text-df'>4.依法对执行机关执行刑罚的活动以及监狱、看守所的活动是否合法实行监督。</view>
-    <view class=' text-df'>5.对同级人民法院已经发生法律效力,确有错误的判决和裁定,依法提请上一级人民检察院向同级人民法院提出抗诉。</view>
-    <view class=' text-df'> 6.受理单位和个人的报案、控告、申诉、举报以及犯罪嫌疑人的自首。</view>
-    <view class=' text-df'>7.开展检察环节的综合治理工作。</view>
-    <view class=' text-df'> 8.负责本院队伍建设和思想政治工作,协助上级检察机关和区有关主管部门管理本院的机构编制,实施相关人员的管理办法;协助区委有关部门对本院的领导班子成员的管理和考核;提请区人大常委会对本院检察员、检察委员会委员、副检察长的任免;负责管理本院直属机构;管理本院的教育培训工作。</view>
-    <view class=' text-df'> 9.组织领导本院的纪检监察和宣传工作。</view>
-    <view class=' text-df'>10.承办其他应由本院负责的事项。</view>
-  </view>
-</view>
\ No newline at end of file
+	<view class=" text-lg" style="padding:30rpx 30rpx 0;">
+		<text class="zhgk-Info-main-title text-black">未检职能</text>
+	</view>
+	<view class="padding">
+		<view class=' text-df'> 广州市南沙区人民检察院是国家法律监督机关,负责辖区各项检察工作,接受广州市人民检察院的领导,对区人民代表大会及其常委会负责并报告工作,接受其监督,执行其决议。主要职责是:</view>
+		<view class=' text-df'>1.制定辖区检察工作计划,落实检察工作任务。</view>
+		<view class=' text-df'>2.依法对公安机关和检察机关直接受理的犯罪案件进行审查批准逮捕、决定逮捕、提起公诉、出庭支持公诉。</view>
+		<view class=' text-df'>4.依法对执行机关执行刑罚的活动以及监狱、看守所的活动是否合法实行监督。</view>
+		<view class=' text-df'>5.对同级人民法院已经发生法律效力,确有错误的判决和裁定,依法提请上一级人民检察院向同级人民法院提出抗诉。</view>
+		<view class=' text-df'> 6.受理单位和个人的报案、控告、申诉、举报以及犯罪嫌疑人的自首。</view>
+		<view class=' text-df'>7.开展检察环节的综合治理工作。</view>
+		<view class=' text-df'> 8.负责本院队伍建设和思想政治工作,协助上级检察机关和区有关主管部门管理本院的机构编制,实施相关人员的管理办法;协助区委有关部门对本院的领导班子成员的管理和考核;提请区人大常委会对本院检察员、检察委员会委员、副检察长的任免;负责管理本院直属机构;管理本院的教育培训工作。</view>
+		<view class=' text-df'> 9.组织领导本院的纪检监察和宣传工作。</view>
+		<view class=' text-df'>10.承办其他应由本院负责的事项。</view>
+	</view>
+</view> -->
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/zhgk/zhgk.js b/SunshineLnsMinApp/pages/zhgk/zhgk.js
index 6ca6509..cf9dc44 100644
--- a/SunshineLnsMinApp/pages/zhgk/zhgk.js
+++ b/SunshineLnsMinApp/pages/zhgk/zhgk.js
@@ -1,4 +1,5 @@
 // pages/zhgk/zhgk.js
+var app = getApp()
 Page({
 
   /**
@@ -6,61 +7,35 @@
    */
   data: {
     wjgk: './../../images/wjgk.jpg',
+    data:{},
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    var that = this;
+    wx.request({
+      url: app.globalData.url + '/api/article/findByName',
+      data: {
+        typeName:'未检概况',
+      },
+      success: function (res) {
+        wx.hideLoading();
+        console.log(res)
+        if (res.data.code == 0) {
+          that.setData({
+            data: res.data.data
+          })
+        } else {
+          wx.showModal({
+            title: '提示',
+            content: "请求失败!"
+          })
+        }
+      }
+    })
   },
 
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
 
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-
-  }
 })
\ No newline at end of file
diff --git a/SunshineLnsMinApp/pages/zhgk/zhgk.wxml b/SunshineLnsMinApp/pages/zhgk/zhgk.wxml
index 9174d80..5f561d6 100644
--- a/SunshineLnsMinApp/pages/zhgk/zhgk.wxml
+++ b/SunshineLnsMinApp/pages/zhgk/zhgk.wxml
@@ -2,13 +2,16 @@
 <view class="bg-img padding-tb-xl" style="background-image: url({{wjgk}});background-size:100% auto;height:200px"></view>
 
 <view class="zhgk-main">
-  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
-    <text class="zhgk-main-title text-black">总体介绍</text>
-  </view>
-  <view class=' text-df padding'> 2016年4月,南沙检察成立了未成年人检察工作办公室。2019年1月,我院成立“许淑妍命名检察官办公室”,适用“捕诉监防助”一体化工作模式,负责办理未成年人犯罪和侵害未成年人犯罪案件,开展未成年人司法保护和预防未成年人犯罪等工作。南沙检察以专业化办案为依托,以规范化建设为抓手,认真贯彻“教育、感化、挽救”方针,坚持“教育为主、惩罚为辅”原则,全面落实未成年人指定辩护、社会调查、心理评估、合适成年人等特别程序,不断打造未检新品牌。以社会化服务为路径,以多元化平台为支点,组建心理咨询师团队和社工团队,通过法治宣传大平台、两微一端、“沙鸥”法治宣讲团开展普法宣传,构建多维度的未成年人维权、犯罪预防网络。近年来,南沙检察先后获评全国青少年维权岗、全国检察机关未成年人检察工作联系点。队伍中涌现出全国检察机关未成年人检察业务竞赛能手和全市检察机关未成年人检察业务标兵。</view>
+	<view class=" text-lg" style="padding:30rpx 30rpx 0;">
+		<text class="zhgk-main-title text-black">{{data.title}}</text>
+	</view>
+	<!-- <view class=' text-df padding'> 2016年4月,南沙检察成立了未成年人检察工作办公室。2019年1月,我院成立“许淑妍命名检察官办公室”,适用“捕诉监防助”一体化工作模式,负责办理未成年人犯罪和侵害未成年人犯罪案件,开展未成年人司法保护和预防未成年人犯罪等工作。南沙检察以专业化办案为依托,以规范化建设为抓手,认真贯彻“教育、感化、挽救”方针,坚持“教育为主、惩罚为辅”原则,全面落实未成年人指定辩护、社会调查、心理评估、合适成年人等特别程序,不断打造未检新品牌。以社会化服务为路径,以多元化平台为支点,组建心理咨询师团队和社工团队,通过法治宣传大平台、两微一端、“沙鸥”法治宣讲团开展普法宣传,构建多维度的未成年人维权、犯罪预防网络。近年来,南沙检察先后获评全国青少年维权岗、全国检察机关未成年人检察工作联系点。队伍中涌现出全国检察机关未成年人检察业务竞赛能手和全市检察机关未成年人检察业务标兵。</view> -->
+	<view class=' text-df padding'>
+		<rich-text nodes="{{data.content}}"></rich-text>
+	</view>
 </view>
 
-<view class="zhgk-main">
+<!-- <view class="zhgk-main">
   <view class=" text-lg" style="padding:30rpx 30rpx 0;">
     <text class="zhgk-main-title text-black">指导文件</text>
   </view>
@@ -25,15 +28,5 @@
   </view>
   <view class="padding">
   <view class=' text-df'> 负责未成年人犯罪和侵害未成年人犯罪案件的审查批捕、审查起诉、出庭公诉、诉讼监督、犯罪预防、教育挽救工作,实现专人审查、全程办理,“一竿子捅到底”,为涉罪未成年人提供全面高效、协调一致的检察保护。</view>
-    <!-- <view class=' text-df'> 广州市南沙区人民检察院是国家法律监督机关,负责辖区各项检察工作,接受广州市人民检察院的领导,对区人民代表大会及其常委会负责并报告工作,接受其监督,执行其决议。主要职责是:</view>
-    <view class=' text-df'>1.制定辖区检察工作计划,落实检察工作任务。</view>
-    <view class=' text-df'>2.依法对公安机关和检察机关直接受理的犯罪案件进行审查批准逮捕、决定逮捕、提起公诉、出庭支持公诉。</view>
-    <view class=' text-df'>4.依法对执行机关执行刑罚的活动以及监狱、看守所的活动是否合法实行监督。</view>
-    <view class=' text-df'>5.对同级人民法院已经发生法律效力,确有错误的判决和裁定,依法提请上一级人民检察院向同级人民法院提出抗诉。</view>
-    <view class=' text-df'> 6.受理单位和个人的报案、控告、申诉、举报以及犯罪嫌疑人的自首。</view>
-    <view class=' text-df'>7.开展检察环节的综合治理工作。</view>
-    <view class=' text-df'> 8.负责本院队伍建设和思想政治工作,协助上级检察机关和区有关主管部门管理本院的机构编制,实施相关人员的管理办法;协助区委有关部门对本院的领导班子成员的管理和考核;提请区人大常委会对本院检察员、检察委员会委员、副检察长的任免;负责管理本院直属机构;管理本院的教育培训工作。</view>
-    <view class=' text-df'> 9.组织领导本院的纪检监察和宣传工作。</view>
-    <view class=' text-df'>10.承办其他应由本院负责的事项。</view> -->
   </view>
-</view>
\ No newline at end of file
+</view> -->
\ No newline at end of file

--
Gitblit v1.8.0