menchuang 1 år sedan
förälder
incheckning
e2adb62db9
2 ändrade filer med 11 tillägg och 164 borttagningar
  1. 11 16
      pages/statistics/index.vue
  2. 0 148
      pages/statistics/sss.vue

+ 11 - 16
pages/statistics/index.vue

@@ -114,7 +114,7 @@
 				villageIndex2: 0,
 				buildIndex: 0,
 				unitIndex: 0,
-				villageList: [{
+				villageList: /* [{
 					name: '小区001'
 				}, {
 					name: '小区002'
@@ -122,7 +122,7 @@
 					name: '小区003'
 				}, {
 					name: '小区004'
-				}],
+				}] */,
 				specificationList: [{
 					name: '规格001'
 				}, {
@@ -254,10 +254,10 @@
 			// this.getDicts("district").then(response =>{
 			// 	// this.xxx=response.data
 			// })
-			// getAreaList().then(res => {
-			// 	debugger
-			// 	console.log(res)
-			// })
+			getAreaList().then(res => {
+				villageList=res;
+				
+			})
 			// getBuildingList('100').then(res => {
 			// 	debugger
 			// 	console.log(res)
@@ -267,34 +267,29 @@
 			// 	debugger
 			// 	console.log(res)
 			// })
-			getHousesList('13631').then(res => {
-				debugger
-				console.log(res)
-			})
+			// getHousesList('13631').then(res => {
+			// 	debugger
+			// 	console.log(res)
+			// })
 		},
 		methods: {
 			bindPickerVillageChange: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
+				debugger
 				this.villageIndex = e.detail.value
 			},
 			bindPickerSpecificationChange: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
 				this.specificationIndex = e.detail.value
 			},
 			bindPickerMaterialChange: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
 				this.materialIndex = e.detail.value
 			},
 			bindPickerVillageChange2: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
 				this.villageIndex2 = e.detail.value
 			},
 			bindPickerBuildChange: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
 				this.buildIndex = e.detail.value
 			},
 			bindPickerUnitChange: function(e) {
-				console.log('picker发送选择改变,携带值为:' + e.detail.value)
 				this.unitIndex = e.detail.value
 			},
 		}

+ 0 - 148
pages/statistics/sss.vue

@@ -1,148 +0,0 @@
-<template>
-	<list :id="parentListId" class="page" :bounce="false" isSwiperList="true">
-		<refresh class="refresh" @refresh="onrefresh" @pullingdown="onpullingdown"
-			:display="refreshing ? 'show' : 'hide'">
-			<div class="refresh-view">
-				<text class="loading-text">{{refreshText}}</text>
-			</div>
-		</refresh>
-		<cell>
-			<view id="head" class="header">
-				<text class="header-title">header</text>
-			</view>
-		</cell>
-		<cell>
-			<view class="main-content" :style="'height:' + pageHeight + 'px'">
-				<view class="sticky-view">
-					<text class="sticky-title">Sticky view</text>
-				</view>
-				<list ref="sublist" class="list" :offset-accuracy="5" :bounce="false" isSwiperList="true">
-					<cell v-for="(item, index) in dataList" :key="item.id" :ref="'item'+index" @click="onclick">
-						<view class="list-item">
-							<text>{{item.name}}</text>
-						</view>
-					</cell>
-				</list>
-			</view>
-		</cell>
-	</list>
-</template>
-
-<script>
-	// #ifdef APP-PLUS
-	const dom = weex.requireModule('dom');
-	// #endif
-
-	export default {
-		data() {
-			return {
-				parentListId: "parentListId",
-				pageHeight: 300,
-				dataList: [],
-				refreshing: false,
-				refreshText: "",
-				refreshFlag: false
-			}
-		},
-		created() {
-			for (var i = 1; i <= 32; i++) {
-				this.dataList.push({
-					id: i,
-					name: i
-				});
-			}
-		},
-		onReady() {
-			this.pageHeight = uni.getSystemInfoSync().windowHeight;
-			uni.createSelectorQuery().in(this).select('#head').boundingClientRect().exec(rect => {
-				this.$refs.sublist.setSpecialEffects({
-					id: this.parentListId,
-					headerHeight: rect[0].height
-				});
-			});
-		},
-		methods: {
-			onrefresh(e) {
-				this.refreshing = true;
-				this.refreshText = "刷新中...";
-				setTimeout(() => {
-					this.refreshing = false;
-					this.refreshFlag = false;
-					this.refreshText = "已刷新";
-				}, 2000)
-			},
-			onpullingdown(e) {
-				if (this.refreshing) {
-					return;
-				}
-
-				this.pulling = false;
-				if (Math.abs(e.pullingDistance) > Math.abs(e.viewHeight)) {
-					this.refreshFlag = true;
-					this.refreshText = "释放立即刷新";
-				} else {
-					this.refreshFlag = false;
-					this.refreshText = "下拉可以刷新";
-				}
-			}
-		}
-	}
-</script>
-
-<style>
-	/* #ifndef APP-PLUS */
-	page {
-		width: 100%;
-		min-height: 100%;
-		display: flex;
-	}
-
-	/* #endif */
-
-	.page {
-		flex: 1;
-	}
-
-	.refresh-view {
-		width: 750rpx;
-		height: 80px;
-		flex-direction: row;
-		align-items: center;
-		justify-content: center;
-	}
-
-	.header {
-		height: 160px;
-		flex-direction: row;
-		align-items: center;
-		justify-content: center;
-		background-color: #f4f4f4;
-	}
-
-	.header-title {
-		font-size: 30px;
-		font-weight: bold;
-		color: #444;
-	}
-
-	.sticky-view {
-		margin-left: 12px;
-		margin-right: 12px;
-		padding: 20px;
-		background-color: #EBEBEB;
-		border-radius: 5px;
-	}
-
-	.list {
-		flex: 1;
-	}
-
-	.list-item {
-		margin-left: 12px;
-		margin-right: 12px;
-		margin-top: 12px;
-		padding: 20px;
-		background-color: #fff;
-		border-radius: 5px;
-	}
-</style>