elis 1 рік тому
батько
коміт
c2ad6fb355

+ 5 - 1
nnzwminiapp/app.json

@@ -48,7 +48,11 @@
     "pages/aticle1/aticle",
     "pages/aticle2/aticle",
     "pages/nnzzd/nnzzd",
-    "pages/doings/doings"
+    "pages/doings/doings",
+    "pages/gzw/gzw",
+    "pages/zcmx/zcmx",
+    "pages/zclb/zclb",
+    "pages/zcinfo/zcinfo"
   ],
   "requiredPrivateInfos": [
     "getLocation",

+ 49 - 0
nnzwminiapp/pages/api/gzw-api.js

@@ -0,0 +1,49 @@
+import {
+	request,
+	requestNoLoginAndTest
+} from './request'
+
+function emptyAreaList(page,size,data) {
+	return requestNoLoginAndTest({
+		url: `asLeaseDispositionIndex/emptyAreaList?page=`+page+`&size=`+size,
+		method: 'POST',
+		contentType: 'application/json;charset=UTF-8',
+		data: data
+	})
+}
+
+function contactList(page,size,data) {
+	return requestNoLoginAndTest({
+		url: `asLeaseDispositionIndex/contactList?page=`+page+`&size=`+size,
+		method: 'POST',
+		contentType: 'application/json;charset=UTF-8',
+		data: data
+	})
+}
+
+function voPage(data) {
+	return requestNoLoginAndTest({
+		url: `official/asLeaseDispositionInfo/voPage`,
+		method: 'POST',
+		contentType: 'application/json;charset=UTF-8',
+		data: data
+	})
+}
+function getVo(data){
+	// http://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/getVo
+	return requestNoLoginAndTest({
+		url: `official/asLeaseDispositionInfo/getVo`,
+		method: 'POST',
+		contentType: 'application/json;charset=UTF-8',
+		data: data
+	})
+}
+
+
+
+export {
+	emptyAreaList,
+	contactList,
+	voPage,
+	getVo
+}

+ 24 - 3
nnzwminiapp/pages/api/request.js

@@ -7,8 +7,6 @@ import {
 } from "../../utils/cacheUtil"
 cacheSet('isshow',true,3600 * 24)	
 const request = (options) => {
-	
-	
 	islogin(options.url)
 	// let token = wx.getStorageSync('token')
 	let token = cacheGet('token')
@@ -71,6 +69,28 @@ const request2 = (options) => {
 		})
 	})
 }
+const requestNoLoginAndTest = (options) => {
+	return new Promise((resolve, reject) => {
+		options.url = "http://219.152.50.209:81/api/app/" + options.url
+		wx.request({
+			// 配置 "wx.request" 请求参数
+			...options,
+			header: {
+				'content-type': 'application/json;charset=UTF-8'
+			},
+			success: function (res) {
+				// console.log("network-res=>", res);
+				// 返回成功信息
+				resolve(res.data)
+			},
+			fail: function (error) {
+				// console.log("network-err=>", error);
+				// 返回错误信息
+				reject(error)
+			}
+		})
+	})
+}
 
 
 function islogin(data) {
@@ -124,5 +144,6 @@ export {
   imgUrl,
   newImgUrl,
   baseUrl,
-  request2
+  request2,
+  requestNoLoginAndTest
 }

+ 149 - 0
nnzwminiapp/pages/gzw/gzw.js

@@ -0,0 +1,149 @@
+// pages/gzw/gzw.js
+import {
+	voPage
+} from "../api/gzw-api"
+import {
+	imgUrl
+} from "../api/request"
+import{
+	js_date_time
+}from "../../utils/util"
+Page({
+
+	/**
+	 * 页面的初始数据
+	 */
+	data: {
+		gzwImgUrl:"http://219.152.50.209:81/api",
+		rentOut:[],
+		disposal:[]
+	},
+
+	/**
+	 * 生命周期函数--监听页面加载
+	 */
+	onLoad(options) {
+		this.loadRentOutInfo();
+		this.loadDisposalInfo();
+	},
+
+	/**
+	 * 生命周期函数--监听页面初次渲染完成
+	 */
+	onReady() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面显示
+	 */
+	onShow() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面隐藏
+	 */
+	onHide() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面卸载
+	 */
+	onUnload() {
+
+	},
+
+	/**
+	 * 页面相关事件处理函数--监听用户下拉动作
+	 */
+	onPullDownRefresh() {
+
+	},
+
+	/**
+	 * 页面上拉触底事件的处理函数
+	 */
+	onReachBottom() {
+
+	},
+
+	/**
+	 * 用户点击右上角分享
+	 */
+	onShareAppMessage() {
+
+	},
+	gotozczl() {
+		wx.navigateTo({
+			url: '/pages/zcmx/zcmx',
+		})
+	},
+	gotolb() {
+		wx.navigateTo({
+			url: '/pages/zclb/zclb?type=1',
+		})
+	},
+	gotolb2() {
+		wx.navigateTo({
+			url: '/pages/zclb/zclb?type=2',
+		})
+	},
+	loadRentOutInfo() {
+		let param = {
+			displayState: 2,
+			page:1,
+			size:3,
+			timeSort:1,
+			type:1
+		}
+		voPage(param).then(res => {
+			if (res.success) {
+				if(res.data.size>0){
+					let records = res.data.records
+					for (let i = 0; i < records.length; i++) {
+						const element = records[i];
+						const photoUrl = element.photoUrl.split(",")
+						records[i].photoUrl = photoUrl;
+						records[i].reviewTime =  js_date_time(element.reviewTime);
+					}
+					console.log(records);
+					this.setData({
+						rentOut:records
+					})
+					
+				}
+			}
+		})
+	},
+	loadDisposalInfo() {
+		let param = {
+			displayState: 2,
+			page:1,
+			size:3,
+			timeSort:1,
+			type:2
+		}
+		voPage(param).then(res => {
+			if (res.success) {
+				if(res.data.size>0){
+					let records =  res.data.records;
+					for (let i = 0; i < records.length; i++) {
+						const element = records[i];
+						const photoUrl = element.photoUrl.split(",")
+						records[i].photoUrl = photoUrl;
+						records[i].reviewTime =  js_date_time(element.reviewTime);
+					}
+					this.setData({
+						disposal:records
+					})
+				}
+			}
+		})
+	},
+	loadPhoto(data){
+
+	}
+
+})

+ 4 - 0
nnzwminiapp/pages/gzw/gzw.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText":"智慧国资"
+}

+ 39 - 0
nnzwminiapp/pages/gzw/gzw.wxml

@@ -0,0 +1,39 @@
+<!--pages/gzw/gzw.wxml-->
+<view class="bg">
+	<view class="banner" style="background: 100% center/100% url('../images/102.png') no-repeat;">
+		<!-- <image class="banner_image" src=""></image> -->
+		<view class="banner_text" bind:tap="gotozczl">
+			<text class="banner_textbt">南岸区拟处置房屋资产明细...</text>
+			<text class="banner_textal">进入></text>
+		</view>
+	</view>
+	<view style="  background: no-repeat center/110% url('../images/gzw/fczlbg.png') ;" class="item" >
+		<view class="nav" bind:tap="gotolb">
+			<image class="icon" src="../images/gzw/fczl.png"></image>
+			<view class="title" >资产租赁</view>
+			<view class="item_btn">进入专区</view>
+		</view>
+		<view  class="itembanner">
+			<view wx:for="{{rentOut}}" wx:for-index="idx" wx:for-item="itemName" class="zcitem">
+				<image class="zcitem-i" src="{{gzwImgUrl}}{{itemName.photoUrl[0]}}"></image>
+				<text class="zcitem-t zcitem-title">{{itemName.name}}</text>
+				<text class="zcitem-t zcitem-time">{{itemName.reviewTime}}</text>
+			</view>
+		</view>
+	</view>
+	<view style="  background: no-repeat center/110% url('../images/gzw/fcczbg.png') ;" class="item" >
+		<view class="nav" bind:tap="gotolb2">
+			<image class="icon" src="../images/gzw/fccz.png"></image>
+			<view class="title" >资产处置</view>
+			<view class="item_btn" style="background-color: #FF842E;" >进入专区</view>
+		</view>
+		<view  class="itembanner" >
+			<view wx:for="{{disposal}}" wx:for-index="idx" wx:for-item="itemName" class="zcitem">
+				<image class="zcitem-i" src="{{gzwImgUrl}}{{itemName.photoUrl[0]}}"></image>
+				<text class="zcitem-t zcitem-title">{{itemName.name}}</text>
+				<text class="zcitem-t zcitem-time">{{itemName.reviewTime}}</text>
+			</view>
+		</view>
+	</view>
+	
+</view>

+ 111 - 0
nnzwminiapp/pages/gzw/gzw.wxss

@@ -0,0 +1,111 @@
+/* pages/gzw/gzw.wxss */
+.bg{
+
+}
+.banner{
+	width: 90%;
+	height: 270rpx;
+	
+	border-radius: 20rpx;
+	margin: 20rpx auto 20rpx;
+	position: relative;
+}
+
+.banner_text{
+	position: absolute;
+	float: left;
+	width: 100%;
+	height: 50rpx;
+	background: rgba(0, 0, 0, 0.507);
+	color: #fff;
+	bottom: 0;
+	border-radius: 0 0 20rpx 20rpx;
+}
+.banner_textbt{
+	display: block;
+	width: 70%;
+	height: 50rpx;
+	float: left;
+	text-align: center;
+	
+}
+.banner_textal{
+	display: block;
+	width: 30%;
+	height: 50rpx;
+	float: left;
+	text-align: center;
+}
+.item{
+	width: 90%;
+	min-height:200rpx ;
+	margin: 20rpx auto 20rpx;
+	background: rgb(194, 100, 100);
+	border-radius: 20rpx;
+	
+}
+.nav{
+	width: 90%;
+	height: 110rpx;
+	margin: 0  auto 0; 
+}
+.icon {
+	width: 80rpx;
+	height: 80rpx;
+	float: left;
+	margin-top: 20rpx;
+}
+.title{
+	height: 110rpx;
+	line-height: 110rpx;
+	margin-left: 30rpx;
+	font-size: 40rpx;
+	float: left;
+}
+.item_btn{
+	width: 150rpx;
+	float: right;
+	height: 60rpx;
+	background: #4889FE;
+	color: #fff;
+	text-align: center;
+	border-radius: 40rpx;
+	line-height: 60rpx;
+	margin-top: 30rpx;
+	font-size: 23rpx;
+}
+
+.backIcon{
+	width: 30rpx;
+	height: 30rpx;
+}
+.itembanner{
+	width: 90%;
+	height: 300rpx;
+	margin-top: 20rpx;
+	margin-left: auto;
+	margin-right: auto;
+}
+.zcitem{
+	width: 33%;
+	height: 300rpx;
+	float: left;
+}
+.zcitem-i{
+	display: block;
+	width: 95%; 
+	height: 150rpx;
+	margin: 0 auto;
+}
+.zcitem-t{
+	display: block;
+	font-size: 28rpx;
+	width: 100%;
+}
+.zcitem-title{
+	font-size: 28rpx;
+}
+.zcitem-time{
+	font-size: 20rpx;
+	color: #999999;
+}

BIN
nnzwminiapp/pages/images/102.png


BIN
nnzwminiapp/pages/images/gzw/btcs.png


BIN
nnzwminiapp/pages/images/gzw/btls.png


BIN
nnzwminiapp/pages/images/gzw/fccz.png


BIN
nnzwminiapp/pages/images/gzw/fcczbg.png


BIN
nnzwminiapp/pages/images/gzw/fczl.png


BIN
nnzwminiapp/pages/images/gzw/fczlbg.png


BIN
nnzwminiapp/pages/images/gzw/ss.png


BIN
nnzwminiapp/pages/images/gzw/sx.png


+ 6 - 0
nnzwminiapp/pages/index/index.wxml

@@ -220,6 +220,12 @@
 		<view class="three" style="height:163rpx;width:100%;padding-left:15rpx;background-color: #F5F5F5; margin-top: 10rpx;">
 			
 			<image src="{{imgUrl}}index-video-recommend.png" style="height:180rpx;width:720rpx" bindtap="gotoSZRBB"></image> 
+			
+		</view>
+		<view class="three" style="height:163rpx;width:100%;padding-left:15rpx;background-color: #F5F5F5; margin-top: 30rpx;">
+			
+			<image src="{{imgUrl}}index-video-recommend.png" style="height:180rpx;width:720rpx" bindtap="gotoSZRBB"></image> 
+			
 		</view>
     <!-- <view class="content-service" style="margin-left: 20rpx;margin-right: 20rpx;">
 					<view bindtap="clickService1" data-item="{{index}}" wx:for="{{ serviceItems3 }}" wx:for-item="item" wx:for-index="index" wx:key="index" class="content-service-item2">

+ 125 - 0
nnzwminiapp/pages/zcinfo/zcinfo.js

@@ -0,0 +1,125 @@
+// pages/zcinfo/zcinfo.js
+import {
+	getVo
+} from "../api/gzw-api"
+import {
+	js_date_time
+} from "../../utils/util"
+var QQMapWX = require('../../libs/qqmap-wx-jssdk.min.js');
+let BMap = {};
+Page({
+
+	/**
+	 * 页面的初始数据
+	 */
+	data: {
+		current: 0,
+		autoplay: false,
+		duration: 500,
+		interval: 5000,
+		records: {},
+		latitude: "",
+		longitude: "",
+		markers: [],
+		gzwImgUrl:"http://219.152.50.209:81/api"
+	},
+
+	/**
+	 * 生命周期函数--监听页面加载
+	 */
+	onLoad(options) {
+		let param = {
+			id: options.id
+		}
+		this.getInfo(param);
+	},
+
+	/**
+	 * 生命周期函数--监听页面初次渲染完成
+	 */
+	onReady() {
+		BMap = new QQMapWX({
+			key: 'KN3BZ-KUDND-PGH4Y-POVRP-43KF3-RNF4K'
+		});
+	},
+
+	/**
+	 * 生命周期函数--监听页面显示
+	 */
+	onShow() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面隐藏
+	 */
+	onHide() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面卸载
+	 */
+	onUnload() {
+
+	},
+
+	/**
+	 * 页面相关事件处理函数--监听用户下拉动作
+	 */
+	onPullDownRefresh() {
+
+	},
+
+	/**
+	 * 页面上拉触底事件的处理函数
+	 */
+	onReachBottom() {
+
+	},
+
+	/**
+	 * 用户点击右上角分享
+	 */
+	onShareAppMessage() {
+
+	},
+	getInfo(data) {
+		getVo(data).then(res => {
+			if (res.success) {
+				let records = res.data
+				const photoUrl = records.photoUrl.split(",")
+				for (let i = 0; i < photoUrl.length; i++) {
+					 photoUrl[i] = this.data.gzwImgUrl+photoUrl[i];
+				}
+				records.photoUrl = photoUrl;
+				records.reviewTime = js_date_time(records.reviewTime);
+				this.setData({
+					records,
+				})
+				let that = this;
+				BMap.geocoder({
+					address: records.targetLocation,
+					success: function (data) {
+						var res = data.result
+						that.setData({
+							latitude: res.location.lat,
+							longitude: res.location.lng,
+							markers: [{
+								latitude: res.location.lat,
+								longitude: res.location.lng,
+								iconPath: "/location.png",
+								width: '30px',
+								height: '30px',
+								rotate: 0,
+								alpha: 1
+							}]
+						});
+					}
+				});
+			}
+		})
+
+
+	}
+})

+ 7 - 0
nnzwminiapp/pages/zcinfo/zcinfo.json

@@ -0,0 +1,7 @@
+{
+	"usingComponents": {
+		"t-swiper": "tdesign-miniprogram/swiper/swiper",
+		"t-swiper-nav": "tdesign-miniprogram/swiper/swiper-nav"
+    },
+  "navigationBarTitleText":"资产租赁详情"
+}

+ 102 - 0
nnzwminiapp/pages/zcinfo/zcinfo.wxml

@@ -0,0 +1,102 @@
+<!--pages/zcinfo/zcinfo.wxml-->
+<view style="background:#F0F2F5;">
+	<view class="banner_bigImage">
+		<t-swiper current="{{current}}" autoplay="{{autoplay}}" duration="{{duration}}" 
+		interval="{{interval}}" navigation="{{ { type: 'dots' } }}" list="{{records.photoUrl}}" >
+		</t-swiper>
+	</view>
+	<view class="box">
+		<view class="box_t_l">
+			<view class="square"></view>
+			<view class="box_t">基本信息</view>
+		</view>
+		<view class="box_t_l">
+			<view class="tag_name">资产名称:</view>
+			<view class="tag_value">{{records.name}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">资产类别:</view>
+			<view class="tag_value">{{records.dicInfo.dicName}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">租赁状态:</view>
+			<view class="tag_value">招租中</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">日期:</view>
+			<view class="tag_value">{{records.reviewTime}}</view>
+		</view>
+		<view class="line"></view>
+	</view>
+	<view class="box">
+		<view class="box_t_l">
+			<view class="square"></view>
+			<view class="box_t">详细信息</view>
+		</view>
+		<view class="box_t_l">
+			<view class="tag_name">标的坐落:</view>
+			<view class="tag_value">{{records.address==null?"":records.address}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">建筑面积:</view>
+			<view class="tag_value">{{records.area}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">产权证号:</view>
+			<view class="tag_value">{{records.propertyNum}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">产权单位:</view>
+			<view class="tag_value">{{records.propertyUnit}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">联系人:</view>
+			<view class="tag_value">{{records.contacts}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">联系方式:</view>
+			<view class="tag_value">{{records.contactsPhone}}</view>
+		</view>
+		<view class="line"></view>
+		<view class="box_t_l">
+			<view class="tag_name">经营范围:</view>
+			<rich-text nodes="{{records.description}}"></rich-text>
+			<!-- <view class="tag_value">{{records.description}}</view> -->
+		</view>
+		<view class="line"></view>
+	</view>
+	<view class="box" style="padding-bottom: 30rpx;">
+		<view class="box_t_l">
+			<view class="square"></view>
+			<view class="box_t">标的介绍</view>
+		</view>
+
+		<rich-text nodes="{{records.targetInfo}}" style="width: 90%; line-height: 50rpx; margin: 30rpx auto">
+
+		</rich-text>
+	</view>
+	<view class="box">
+		<view class="box_t_l">
+			<view class="square"></view>
+			<view class="box_t">附件</view>
+		</view>
+	</view>
+	<view class="box" style="padding-bottom: 30rpx;">
+		<view class="box_t_l">
+			<view class="square"></view>
+			<view class="box_t">位置</view>
+		</view>
+		<view style="width: 90%;  margin: 30rpx auto">
+			<map id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="18" bindmarkertap="markClick" markers="{{markers}}" class="map"></map>
+		</view>
+	</view>
+	<view style="height: 100rpx;"></view>
+</view>

+ 72 - 0
nnzwminiapp/pages/zcinfo/zcinfo.wxss

@@ -0,0 +1,72 @@
+/* pages/zcinfo/zcinfo.wxss */
+
+.banner_bigImage {
+	width: 100%;
+	height: 360rpx;
+	background: rgb(117, 117, 117);
+	border-radius: 20rpx;
+	margin-bottom: 30rpx;
+}
+
+.box {
+	width: 100%;
+	min-height: 400rpx;
+	background: #fff;
+	margin-bottom: 30rpx;
+}
+
+.box_t_l {
+	width: 90%;
+	min-height: 100rpx;
+	margin: 0 auto;
+}
+
+
+.square {
+	margin-top: 30rpx;
+	width: 10rpx;
+	height: 40rpx;
+	border-radius: 10rpx;
+	background: #3689FF;
+	float: left;
+	margin-right: 20rpx;
+}
+
+.box_t {
+	float: left;
+	height: 100rpx;
+	line-height: 100rpx;
+	color: #3689FF;
+	font-weight: bold;
+}
+
+.line {
+	width: 90%;
+	margin: 0 auto;
+	height: 1rpx;
+	background: #EEEEEE;
+}
+.tag_name{
+	width: 200rpx;
+	height: 100rpx;
+	line-height: 100rpx;
+	/* font-size: 40rpx; */
+	text-align: right;
+	font-weight: bold;
+	margin-right: 20rpx;
+	float: left;
+	color: #666666;
+}
+.tag_value{
+	height: 100rpx;
+	line-height: 100rpx;
+	/* font-size: 40rpx; */
+	text-align: left;
+	
+}
+ .map {
+	
+	height: 360px;
+	overflow: hidden;
+	width: 100%;
+  }

+ 180 - 0
nnzwminiapp/pages/zclb/zclb.js

@@ -0,0 +1,180 @@
+// pages/zclb/zclb.js
+import {
+	voPage
+} from "../api/gzw-api"
+import {
+	js_date_time
+} from "../../utils/util"
+Page({
+
+	/**
+	 * 页面的初始数据
+	 */
+	data: {
+		index: 1,
+		totalPage: 0,
+		visible: false,
+		rentOut: [],
+		gzwImgUrl: "http://219.152.50.209:81/api",
+		type: 1,
+		date: new Date().getTime(), // 支持时间戳传入
+		dateText: '',
+		start: '2017-01-01 00:00:00',
+		end: '2047-12-30 00:00:00',
+		// dateVisible:
+	},
+
+	/**
+	 * 生命周期函数--监听页面加载
+	 */
+	onLoad(options) {
+		let type = options.type
+		if (type == 1) {
+			wx.setNavigationBarTitle({
+				title: '资产租赁'
+			})
+		} else {
+			wx.setNavigationBarTitle({
+				title: '资产处置'
+			})
+		}
+		this.setData({
+			type
+		})
+		let param = {
+			displayState: 2,
+			page: 1,
+			size: 10,
+			publishTimeSort: 1,
+			type: this.data.type
+		}
+		this.loadData(param);
+	},
+
+	/**
+	 * 生命周期函数--监听页面初次渲染完成
+	 */
+	onReady() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面显示
+	 */
+	onShow() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面隐藏
+	 */
+	onHide() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面卸载
+	 */
+	onUnload() {
+
+	},
+
+	/**
+	 * 页面相关事件处理函数--监听用户下拉动作
+	 */
+	onPullDownRefresh() {
+
+	},
+
+	/**
+	 * 页面上拉触底事件的处理函数
+	 */
+	onReachBottom() {
+
+	},
+
+	/**
+	 * 用户点击右上角分享
+	 */
+	onShareAppMessage() {
+
+	},
+	show() {
+		this.setData({
+			visible: !this.data.visible
+		})
+	},
+	onVisibleChange(e) {
+		this.setData({
+			visible: e.detail.visible,
+		});
+	},
+	gotoInfo(e) {
+		console.log(e);
+
+		wx.navigateTo({
+			url: '/pages/zcinfo/zcinfo?id=' + e.currentTarget.dataset.id,
+		})
+	},
+	loadData(param) {
+
+		voPage(param).then(res => {
+			if (res.success) {
+				if (res.data.size > 0) {
+					let records = res.data.records
+					for (let i = 0; i < records.length; i++) {
+						const element = records[i];
+						const photoUrl = element.photoUrl.split(",")
+						records[i].photoUrl = photoUrl;
+						records[i].reviewTime = js_date_time(element.reviewTime);
+					}
+					console.log(records);
+					let a = this.data.rentOut
+
+					let b = [].concat(a, records)
+					console.log(res.data.pages);
+					this.setData({
+						rentOut: [].concat(a, records),
+						totalPage: res.data.pages
+					})
+
+				}
+			}
+		})
+	},
+	more() {
+		this.setData({
+			index: this.data.index + 1
+		})
+		let param = {
+			displayState: 2,
+			page: this.data.index,
+			size: 10,
+			publishTimeSort: 1,
+			type: this.data.type
+		}
+		this.loadData(param)
+	},
+	onConfirm(e) {
+		const { value } = e.detail;
+	
+		// console.log('confirm', value);
+		// let a = new Date(value).getTime()
+		// console.log(a);
+		this.setData({
+			index: 1,
+			totalPage:0,
+			rentOut:[]
+		})
+		let param = {
+			displayState: 2,
+			page: this.data.index,
+			size: 10,
+			publishTime:value,
+			publishTimeSort: 1,
+			type: this.data.type
+		}
+		this.loadData(param)
+		this.show();
+	  }
+})

+ 7 - 0
nnzwminiapp/pages/zclb/zclb.json

@@ -0,0 +1,7 @@
+{
+  "usingComponents": {
+	"t-popup": "tdesign-miniprogram/popup/popup",
+	"t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker"
+  },
+  "navigationBarTitleText": "资产租赁"
+}

+ 64 - 0
nnzwminiapp/pages/zclb/zclb.wxml

@@ -0,0 +1,64 @@
+<!--pages/zclb/zclb.wxml-->
+<view>
+<view class="searchbar">
+      <!-- <view class="input-icon">
+        <image src="../images/gzw/ss.png" class="inp-icon1" bindtap="searchTap"></image>
+        <input type="text" enterkeyhint="search" confirm-type="search" bindconfirm="searchTap"   bindinput="getSearchVal" class="inp" placeholder="请输入资产名称" />
+      </view> -->
+	  <view class="filter" bindtap="show">
+		<image class="filter-icon" src="../images/gzw/sx.png"></image>
+		<view class="filter-text">筛选</view>
+	  </view>
+</view>
+<view class="list">
+	<view wx:for="{{rentOut}}" wx:for-index="idx" wx:for-item="item" class="item" bind:tap="gotoInfo" data-id="{{item.id}}">
+		<image class="item_i" src="{{gzwImgUrl}}{{item.photoUrl[0]}}"></image>
+		<view class="item_l">
+			<text class="item_tile">{{item.name}}</text>
+			<view class="item_time">{{item.reviewTime}}</view>
+			<view class="item_tags">
+				<view class="item_tag green">房屋</view>
+				<view class="item_tag bule">招租中</view>
+			</view>
+		</view>
+		
+	</view>
+	<view style="width: 100%; height: 1rpx; background-color: #F6F6F6; margin: 30rpx 0 30rpx; "></view>
+	<view wx:if="{{index!=totalPage}}" class="more" bind:tap="more">更多资产</view>
+	<view style="height: 100rpx;"></view>
+</view>
+
+</view>
+
+
+
+<!-- 年月日 -->
+<t-date-time-picker
+  title="选择日期"
+  visible="{{visible}}"
+  mode="date"
+  defaultValue="{{date}}"
+  format="YYYY-MM-DD"
+  bindchange="onConfirm"
+  bindpick="onColumnChange"
+  bindcancel="hidePicker"
+  start="{{start}}"
+  end="{{end}}"
+/>
+
+<!-- <t-popup visible="{{visible}}" bind:visible-change="onVisibleChange" placement="bottom">
+  <view class="block">
+	<view class="block_title">
+		<view style="text-align: center; line-height: 100rpx; font-weight: bold;">资产筛选</view>
+	</view>
+	<view style="margin: 0 auto; width: 95%; height: 80rpx; line-height: 80rpx; text-align: left;">资产类别</view>
+	<view style="width: 95%; margin: 0 auto; height: 120rpx;">
+		<view class="item_tag bule">土地</view>
+		<view class="item_tag grey">房屋</view>
+		<view class="item_tag grey">招租</view>
+		<view class="item_tag grey">不限</view>
+	</view>
+	<view style=" width: 95%; margin: 200rpx auto 200rpx; height: 100rpx; text-align: center; line-height: 100rpx; font-weight: bold; background-color: #138DF7; color: #fff; border-radius: 20rpx;">确认</view>
+  </view>
+</t-popup> -->
+

+ 150 - 0
nnzwminiapp/pages/zclb/zclb.wxss

@@ -0,0 +1,150 @@
+/* pages/zclb/zclb.wxss */
+
+.searchbar {
+	width: 90%;
+	height: 60rpx;
+	margin: 30rpx auto;
+
+}
+
+.input-icon {
+	background: #ECECEC;
+	width: 76%;
+	height: 60rpx;
+	float: left;
+	border-radius: 5rpx;
+}
+
+.inp-icon1 {
+	width: 40rpx;
+	height: 40rpx;
+	float: left;
+	/* background: #000; */
+	margin-top: 10rpx;
+	margin-left: 20rpx;
+	margin-right: 20rpx;
+}
+
+.inp {
+	width: 80%;
+	height: 60rpx;
+	line-height: 60rpx;
+	float: left;
+}
+
+.filter {
+	width: 24%;
+	height: 60rpx;
+	/* background: #000; */
+	float: left;
+}
+
+.filter-icon {
+	width: 40rpx;
+	height: 40rpx;
+	margin-top: 10rpx;
+	margin-left: 10rpx;
+	margin-right: 10rpx;
+	float: left;
+	/* background: #000; */
+}
+
+.filter-text {
+	display: block;
+	margin-left: 10rpx;
+	height: 60rpx;
+	line-height: 60rpx;
+}
+
+.list {
+	width: 90%;
+	margin: 0 auto;
+}
+
+.item {
+	width: 100%;
+	height: 240rpx;
+}
+
+.item_i {
+	background: #000;
+	width: 230rpx;
+	height: 200rpx;
+	float: left;
+	margin-top: 20rpx;
+}
+
+.item_l {
+	margin-left: 20rpx;
+	float: left;
+	max-width: 400rpx;
+	height: 200rpx;
+	margin-top: 20rpx;
+}
+
+.item_tile {
+	width: 100%;
+	color: #333333;
+	line-height: 60rpx;
+	overflow:hidden;   
+    text-overflow:ellipsis;   
+    white-space:nowrap;
+}
+
+.item_time {
+	font-size: 28rpx;
+	color: #999999;
+	line-height: 40rpx;
+}
+
+.item_tag {
+	width: 120rpx;
+	height: 50rpx;
+	text-align: center;
+	line-height: 50rpx;
+	border-radius: 5rpx;
+	background: rgb(114, 87, 87);
+	float: left;
+	margin: 10rpx;
+}
+
+.green {
+	color: #31BD95;
+	background: #E6F8ED;
+}
+
+.bule {
+	color: #399CFC;
+	background: #DDF0FF;
+}
+
+.grey {
+	color: #666666;
+	background: #ECECEC;
+}
+
+.more {
+	width: 90%;
+	height: 100rpx;
+	line-height: 100rpx;
+	text-align: center;
+	font-size: 32rpx;
+	font-weight: bold;
+	color: #399CFC;
+	background: #DDF0FF;
+	margin: 0 auto;
+}
+
+.block {
+	/*background: #fff;*/
+	color: #333;
+	background: #fff;
+	
+	width: 100%;
+	height: 680rpx;
+	border-radius: 20rpx;
+}
+.block_title{
+	width: 100%;
+	height: 100rpx;
+}

+ 137 - 0
nnzwminiapp/pages/zcmx/zcmx.js

@@ -0,0 +1,137 @@
+// pages/zcmx/zcmx.js
+import {
+	emptyAreaList,
+	contactList
+} from "../api/gzw-api"
+import {
+	imgUrl
+} from "../api/request"
+import{
+	js_date_time
+}from "../../utils/util"
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+	contactList:[],
+	emptyAreaList:[],
+	emptyAreaIndex:1,
+	emptyAreaTotalPage:0,
+	contactIndex:1,
+	contactTotalPage:0
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+	this.loadHotline(1,10);
+	this.loadDetail(1,10);
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  },
+  prevLoadDetail(){
+	let a =  this.data.emptyAreaIndex - 1
+	this.setData({
+		emptyAreaIndex: a
+	})
+	this.loadDetail(a,10);
+  },
+  nextLoadDetail(){
+	let a =  this.data.emptyAreaIndex + 1
+	this.setData({
+		emptyAreaIndex: a
+	})
+	this.loadDetail(a,10);
+  },
+  loadDetail(page,size){
+	emptyAreaList(page,size,{}).then(res=>{
+		if (res.success) {
+			if(res.data.size>0){
+				let emptyAreaList = res.data.records
+				this.setData({
+					emptyAreaList,
+					emptyAreaTotalPage: res.data.pages
+				})
+			}
+		}
+	})
+	
+  },
+  prevLoadHotline(){
+	let a =  this.data.contactIndex - 1
+	this.setData({
+		contactIndex: a
+	})
+	this.loadHotline(a,10);
+  },
+  nextLoadHotline(){
+	let a =  this.data.contactIndex + 1
+	this.setData({
+		contactIndex: a
+	})
+	this.loadHotline(a,10);
+  },
+  loadHotline(page,size){
+	contactList(page,size,{}).then(res=>{
+		if (res.success) {
+			if(res.data.size>0){
+				let contactList = res.data.records
+				this.setData({
+					contactList,
+					contactTotalPage: res.data.pages
+				})
+			}
+		}
+	})
+  }
+})

+ 5 - 0
nnzwminiapp/pages/zcmx/zcmx.json

@@ -0,0 +1,5 @@
+{
+  "usingComponents": {
+  },
+  "navigationBarTitleText": "资产明细"
+}

+ 55 - 0
nnzwminiapp/pages/zcmx/zcmx.wxml

@@ -0,0 +1,55 @@
+<!--pages/zcmx/zcmx.wxml-->
+<view>
+	<view class="table one">
+		<view class="table_title" style="background: no-repeat center/100% url('../images/gzw/btls.png');">南岸区拟处置房屋资产明细</view>
+		<view class="table_item">
+			<view class="col col_t">
+				<view class="row row_t" style="width: 10%;">序号</view>
+				<view class="row row_t" style="width: 25%;">产权单位</view>
+				<view class="row row_t" style="width: 18.6%;">楼顶名称</view>
+				<view class="row row_t" style="width: 25%;">楼栋位置</view>
+				<view class="row row_t" style="width: 20%;">空置面积</view>
+			</view>
+			<view>
+				<view class="col" wx:for="{{emptyAreaList}}" wx:for-index="idx" wx:for-item="item">
+					<view class="row" style="width: 10%;">{{idx+1}}</view>
+					<view class="row" style="width: 25%;">{{item.propertyUnitName}}</view>
+					<view class="row" style="width: 18.6%;">{{item.buildingName}}</view>
+					<view class="row" style="width: 25%;overflow:hidden;">{{item.buildingAddress}}</view>
+					<view class="row" style="width: 20%;">{{item.emptyArea}}</view>
+				</view>
+			</view>
+		</view>
+		<view class="page">
+			<view wx:if="{{emptyAreaIndex>1}}" class="turning " bind:tap="prevLoadDetail" style="background: #3B77E6;">上一页</view>
+			<view class="pagenum">{{emptyAreaIndex}}</view>
+			<view wx:if="{{emptyAreaIndex<emptyAreaTotalPage}}" class="turning" bind:tap="nextLoadDetail" style="background: #3B77E6;">下一页</view>
+		</view>
+	</view>
+
+	<view class="table two" >
+		<view class="table_title" style="background: no-repeat center/100% url('../images/gzw/btcs.png');">咨询热线</view>
+		<view class="table_item">
+			<view class="col col_t orange">
+				<view class="row row_t" style="width: 10%;">序号</view>
+				<view class="row row_t" style="width: 68.6%;">单位名称</view>
+				<view class="row row_t" style="width: 20%;">联系方式</view>
+			</view>
+			<view>
+				<view class="col orange_d" wx:for="{{contactList}}" wx:for-index="idx" wx:for-item="item">
+					<view class="row" style="width: 10%;">{{idx+1}}</view>
+					<view class="row" style="width: 68.6%;">{{item.propertyUnitName}}</view>
+					<view class="row" style="width: 20%;">{{item.contactPhone==null?"无":item.contactPhone}}</view>
+				</view>
+			</view>
+			<view class="page">
+			<!-- contactIndex:1,
+	contactTotalPage:0 -->
+				<view wx:if="{{contactIndex>1}}" bind:tap="prevLoadHotline" class="turning" style="background: #FC8433;">上一页</view>
+				<view class="pagenum">{{contactIndex}}</view>
+				<view wx:if="{{contactIndex<contactTotalPage}}" bind:tap="nextLoadHotline" class="turning" style="background: #FC8433;">下一页</view>
+			</view>
+		</view>
+	</view>
+		<view style="height: 100rpx;"></view>
+	</view>

+ 92 - 0
nnzwminiapp/pages/zcmx/zcmx.wxss

@@ -0,0 +1,92 @@
+/* pages/zcmx/zcmx.wxss */
+.table_title {
+	width: 70%;
+	height: 100rpx;
+	margin: 30rpx auto;
+	text-align: center;
+	line-height: 100rpx;
+	color: #fff;
+	/* background: rgb(182, 55, 55); */
+}
+
+.table_item {
+	width: 95%;
+	margin: 0 auto;
+}
+
+.col {
+	width: 100%;
+	height: 100rpx;
+	/* text-align: center; */
+	color: #666666;
+	font-size: 20rpx;
+	font-weight: bold;
+	background: #DCF0FF;
+}
+
+.col_t {
+	background: #2877E7;
+	color: #fff;
+
+}
+
+.row_t {
+	line-height: 100rpx;
+}
+
+.row {
+	min-height: 80rpx;
+	text-align: center;
+	float: left;
+	display:flex; 
+	text-align:center;
+    align-items:center;
+	 justify-content:center;
+	border-right: 1rpx #fff solid;
+	display: -webkit-box;
+	overflow: hidden;
+	text-overflow: ellipsis;
+	word-wrap: break-word;
+	white-space: normal !important;
+	-webkit-line-clamp: 3;
+	-webkit-box-orient: vertical;
+}
+
+.orange {
+	background-color: #FF842E;
+}
+
+.orange_d {
+	background-color: #FFF4EB;
+}
+
+.page {
+	width: 70%;
+	height: 80rpx;
+	margin: 25rpx auto;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+}
+
+.turning {
+	width: 120rpx;
+	height: 60rpx;
+	line-height: 60rpx;
+	/* background: #3B77E6; */
+	color: #fff;
+	text-align: center;
+	float: left;
+	border-radius: 20rpx;
+
+}
+
+.pagenum {
+	margin: 0 40rpx;
+	min-width: 50rpx;
+	height: 60rpx;
+	border: 1px #c9c9c9 solid;
+	float: left;
+	text-align: center;
+	line-height: 60rpx;
+}

+ 18 - 1
nnzwminiapp/utils/util.js

@@ -18,7 +18,24 @@ const formatNumber = n => {
 const baseUrl = 'http://192.168.0.13:8157/';
 
 
+function js_date_time(unixtime) {
+	var dateTime = new Date(parseInt(unixtime))
+	var year = dateTime.getFullYear();
+	var month = dateTime.getMonth() + 1;
+	var day = dateTime.getDate();
+	var hour = dateTime.getHours();
+	var minute = dateTime.getMinutes();
+	var second = dateTime.getSeconds();
+	var now = new Date();
+	var now_new = Date.parse(now.toDateString());  //typescript转换写法
+	var milliseconds = now_new - dateTime;
+	var timeSpanStr = year + '-' + month + '-' + day + ' ' + hour + ':' + minute;
+	return timeSpanStr;
+  }
+
+
 module.exports = {
   formatTime,
-  baseUrl
+  baseUrl,
+  js_date_time
 }