zxy 1 年間 前
コミット
8fcbf7ef8a

+ 122 - 95
nnzwminiapp/pages/index/index.js

@@ -896,100 +896,100 @@ Page({
 			naItem: e.currentTarget.dataset.item,
 			naContentList: []
 		})
-		if (e.currentTarget.dataset.item == 1) {
-			// wx.showToast({title: '加载中',icon: 'loading',duration: 1000})
-			this.setData({
-				isNaLoading: true
-			})
-			wx.request({
-				url: 'https://www.cq.gov.cn/ywdt/jrzq/index.json?cqjrcq=cqjrcq&_=1669609973472',
-				success: res => {
-					if (res.statusCode == 200) {
-						var s = res.data
-						s = s.substring(7, s.length - 1)
-						s = JSON.parse(s)
-						var d = [];
-						var size = s.datas.length <= 5 ? s.datas.length : 5
-						if (size < 1) {
-							this.setData({
-								isNaEmpty: true
-							})
-						} else {
-							this.setData({
-								isNaEmpty: false
-							})
-						}
-						for (let i = 0; i < size; i++) {
-							d.push({
-								"DOCTITLE": s.datas[i].title,
-								"url": s.datas[i].url
-							})
-						}
-						// wx.showToast({title: '加载完成',icon: 'success',duration: 500})
-						this.setData({
-							isNaLoading: false
-						})
-						this.setData({
-							naContentList: d
-						})
-					} else {
-						this.setData({
-							isNaLoading: false,
-							isNaEmpty: true
-						})
-					}
-				}
-			})
+		// if (e.currentTarget.dataset.item == 1) {
+		// 	// wx.showToast({title: '加载中',icon: 'loading',duration: 1000})
+		// 	this.setData({
+		// 		isNaLoading: true
+		// 	})
+		// 	wx.request({
+		// 		url: 'https://www.cq.gov.cn/ywdt/jrzq/index.json?cqjrcq=cqjrcq&_=1669609973472',
+		// 		success: res => {
+		// 			if (res.statusCode == 200) {
+		// 				var s = res.data
+		// 				s = s.substring(7, s.length - 1)
+		// 				s = JSON.parse(s)
+		// 				var d = [];
+		// 				var size = s.datas.length <= 5 ? s.datas.length : 5
+		// 				if (size < 1) {
+		// 					this.setData({
+		// 						isNaEmpty: true
+		// 					})
+		// 				} else {
+		// 					this.setData({
+		// 						isNaEmpty: false
+		// 					})
+		// 				}
+		// 				for (let i = 0; i < size; i++) {
+		// 					d.push({
+		// 						"DOCTITLE": s.datas[i].title,
+		// 						"url": s.datas[i].url
+		// 					})
+		// 				}
+		// 				// wx.showToast({title: '加载完成',icon: 'success',duration: 500})
+		// 				this.setData({
+		// 					isNaLoading: false
+		// 				})
+		// 				this.setData({
+		// 					naContentList: d
+		// 				})
+		// 			} else {
+		// 				this.setData({
+		// 					isNaLoading: false,
+		// 					isNaEmpty: true
+		// 				})
+		// 			}
+		// 		}
+		// 	})
 
-		}
-		if (e.currentTarget.dataset.item == 2) {
-			// wx.showToast({title: '加载中',icon: 'loading',duration: 1000})
-			this.setData({
-				isNaLoading: true
-			})
-			wx.request({
-				url: 'https://www.gov.cn/pushinfo/v150203/pushinfo.jsonp?pushInfoJsonpCallBack=pushInfoJsonpCallBack&_=1669609973471',
-				success: 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);
-						var d = [];
-						var size = s.length <= 5 ? s.length : 5
-						if (size < 1) {
-							this.setData({
-								isNaEmpty: true
-							})
-						} else {
-							this.setData({
-								isNaEmpty: false
-							})
-						}
-						for (let i = 0; i < size; i++) {
-							d.push({
-								"DOCTITLE": s[i].description,
-								"url": s[i].link
-							})
-						}
-						this.setData({
-							isNaLoading: false
-						})
-						// wx.showToast({title: '加载完成',icon: 'success',duration: 500})
-						this.setData({
-							naContentList: d
-						})
-					} else {
-						this.setData({
-							isNaLoading: false,
-							isNaEmpty: true
-						})
-					}
-				}
-			})
+		// }
+		// if (e.currentTarget.dataset.item == 2) {
+		// 	// wx.showToast({title: '加载中',icon: 'loading',duration: 1000})
+		// 	this.setData({
+		// 		isNaLoading: true
+		// 	})
+		// 	wx.request({
+		// 		url: 'https://www.gov.cn/pushinfo/v150203/pushinfo.jsonp?pushInfoJsonpCallBack=pushInfoJsonpCallBack&_=1669609973471',
+		// 		success: 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);
+		// 				var d = [];
+		// 				var size = s.length <= 5 ? s.length : 5
+		// 				if (size < 1) {
+		// 					this.setData({
+		// 						isNaEmpty: true
+		// 					})
+		// 				} else {
+		// 					this.setData({
+		// 						isNaEmpty: false
+		// 					})
+		// 				}
+		// 				for (let i = 0; i < size; i++) {
+		// 					d.push({
+		// 						"DOCTITLE": s[i].description,
+		// 						"url": s[i].link
+		// 					})
+		// 				}
+		// 				this.setData({
+		// 					isNaLoading: false
+		// 				})
+		// 				// wx.showToast({title: '加载完成',icon: 'success',duration: 500})
+		// 				this.setData({
+		// 					naContentList: d
+		// 				})
+		// 			} else {
+		// 				this.setData({
+		// 					isNaLoading: false,
+		// 					isNaEmpty: true
+		// 				})
+		// 			}
+		// 		}
+		// 	})
 
-		}
+		// }
 		if (e.currentTarget.dataset.item == 0) {
 			let column = ["20430", "59482", "59481"]
 			// wx.showToast({title: '加载中',icon: 'loading',duration: 1000})
@@ -1021,8 +1021,31 @@ Page({
 					})
 				}
 			})
-		}
-
+        }
+        if(e.currentTarget.dataset.item == 1){
+            let data = [{
+                DOCTITLE: '重庆市南岸区科学技术局重庆经济技术开发区创新创业服务中心关于申报2022年度南岸区、重庆经开区科技创新政策补助(第一批)的通知',
+                url: 'https://www.cqna.gov.cn/zwxx_254/gsgg/202307/t20230711_12140231.html'
+            },{
+                DOCTITLE: '南岸区2023年第二季度城市供水水质抽样检测公示',
+                url: 'https://www.cqna.gov.cn/zwxx_254/gsgg/202307/t20230711_12139233.html'
+            },
+            {
+                DOCTITLE: '重庆市南岸区住房和城乡建设委员会关于公布核准重庆金盾装饰设计工程有限公司等4家企业资质结果的通知',
+                url: 'https://www.cqna.gov.cn/zwxx_254/gsgg/202307/t20230711_12138835.html'
+            },
+            {
+                DOCTITLE: '重庆市南岸区档案馆2023年第二季度向社会开放部分馆藏档案的公告',
+                url: 'https://www.cqna.gov.cn/zwxx_254/gsgg/202307/t20230710_12137703.html'
+            },
+            {
+                DOCTITLE: '重庆市南岸区2023年公开招录社区工作者拟录用公示',
+                url: 'https://www.cqna.gov.cn/zwxx_254/gsgg/202307/t20230710_12134786.html'
+            }]
+            this.setData({
+                naContentList: data
+            })
+        }
 	},
 
 	// 南岸咨询内容点击
@@ -1038,7 +1061,11 @@ Page({
 			case 2:
 				wx.navigateTo({
 					url: '/pages/web/web?url=' + item.url,
-				})
+                })
+            case 3:
+                wx.navigateTo({
+					url: '/pages/web/web?url=' + item.url,
+                })
 				break
 		}
 

+ 13 - 3
nnzwminiapp/pages/index/index.wxml

@@ -161,10 +161,10 @@
 						</view>
 						<view style="height:50rpx;padding-left:10rpx;">南岸动态</view>
 					</view>
-          <view class="tab-item {{naTab==0?'active':''}}" bindtap="clickNaTilteTab" data-item="0">
+                    <view class="tab-item {{naTab==1?'active':''}}" bindtap="clickNaTilteTab" data-item="1">
 						<view style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
 						<view style="height:26rpx;width:50rpx;display: flex;justify-content:center;align-items:center;">
-							<image wx:if="{{ naTab==0 }}" style="width:48rpx;height:48rpx;" src="{{imgUrl}}na-title-1.png"></image>
+							<image wx:if="{{ naTab==1 }}" style="width:48rpx;height:48rpx;" src="{{imgUrl}}na-title-1.png"></image>
 						</view>
 						<view style="height:50rpx;padding-left:10rpx;">公示公告</view>
 					</view>
@@ -199,6 +199,16 @@
 							</view>
 							<include wx:else src="naTitleTab.wxml" />
 						</swiper-item>
+                        <!-- 公示公告 -->
+                        <swiper-item>
+							<view wx:if="{{isNaLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
+								<t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
+							</view>
+							<view wx:elif="{{isNaEmpty}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
+								<t-empty icon="info-circle-filled" description="暂无数据" />
+							</view>
+							<include wx:else src="naTitleTab.wxml" />
+						</swiper-item>
 						<!-- 今日重庆 -->
 						<!-- <swiper-item>
 							<view wx:if="{{isNaLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
@@ -233,7 +243,7 @@
 
         <!-- 公示公告 -->
 		<!-- gotoNewsPaper -->
-		<view style="width: 100%;position:relative;margin-top: 22rpx;" bindtap="gotoGSGG">
+		<view style="width: 100%;position:relative;margin-top: 22rpx;display: none;" bindtap="gotoGSGG">
 			<view style="margin-left: 20rpx;border-radius: 20rpx;background-color: #ffffff;padding: 25rpx 30rpx;width: 651rpx;height: 100%;">
 				<!-- 标题 -->
 				<view style="  display: flex;justify-content: left;align-items: center;height: 60rpx;">

+ 58 - 0
nnzwminiapp/pages/publics/index/index.wxml

@@ -199,6 +199,64 @@
 				</swiper>
 			</view>
 		</view>
+        <!-- 机构指南 -->
+		<view style="height: 570rpx;">
+			<view style="display:flex" class="content-top">
+				<view class="content-line"></view>
+				<view class="content-title">机构指南</view>
+				<view class="content-more" bindtap="gotoInterpretation">查看更多 >></view>
+			</view>
+            <view style="margin-top: 5rpx;width: 690rpx;margin-left: 30rpx;box-shadow: 0px -2px 5px 0px rgba(153,153,153,0.17);">
+				<view style="height: 66rpx;display: flex;background-color: #ffffff;">
+					<!-- 机构指南 -->
+					<view style="position: relative;margin-left: 57rpx;" class="tab-item {{fileTab==0?'active':''}}" bindtap="clickFileTab" data-item="0">
+						<view wx:if="{{ fileTab==0 }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
+						<view style="height:50rpx;color: #333333;">机构指南</view>
+					</view>
+				</view>
+				<view style="height: 420rpx;">
+					<swiper duration="200" current="{{fileItem}}" bindchange="changeFileTab" style="height: 100%">
+						<swiper-item>
+							<scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
+								<view wx:if="{{isZCWJLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
+									<t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
+								</view>
+								<include wx:else src="file.wxml" />
+							</scroll-view>
+						</swiper-item>
+                    </swiper>
+				</view>
+			</view>
+		</view>
+        <!-- 政策问答库 -->
+		<view style="height: 570rpx;">
+			<view style="display:flex" class="content-top">
+				<view class="content-line"></view>
+				<view class="content-title">政策问答库</view>
+				<view class="content-more" bindtap="gotoInterpretation">查看更多 >></view>
+			</view>
+            <view style="margin-top: 5rpx;width: 690rpx;margin-left: 30rpx;box-shadow: 0px -2px 5px 0px rgba(153,153,153,0.17);">
+				<view style="height: 66rpx;display: flex;background-color: #ffffff;">
+					<!-- 机构指南 -->
+					<view style="position: relative;margin-left: 57rpx;" class="tab-item {{fileTab==0?'active':''}}" bindtap="clickFileTab" data-item="0">
+						<view wx:if="{{ fileTab==0 }}" style="position: absolute;width: 0;height: 0;border-left: 10rpx solid transparent;border-right: 10rpx solid transparent;border-top: 10rpx solid #508FF4;bottom: -13rpx;" />
+						<view style="height:50rpx;color: #333333;">政策问答库</view>
+					</view>
+				</view>
+				<view style="height: 420rpx;">
+					<swiper duration="200" current="{{fileItem}}" bindchange="changeFileTab" style="height: 100%">
+						<swiper-item>
+							<scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
+								<view wx:if="{{isZCWJLoading}}" style="display: flex;justify-content: center;align-items: center;height: 100%;">
+									<t-loading theme="spinner" size="64rpx" text="加载中..." inheritColor></t-loading>
+								</view>
+								<include wx:else src="file.wxml" />
+							</scroll-view>
+						</swiper-item>
+                    </swiper>
+				</view>
+			</view>
+		</view>
 		<!-- 政务专题 -->
 		<view>
 			<view style="display:flex" class="content-top">