wkyy 1 سال پیش
والد
کامیت
093937694e

+ 136 - 116
pages/equipmentDataMonitoring/electronicMonitoring.vue

@@ -6,6 +6,8 @@
 			<!-- <u-picker  title="设备选择" v-model="equipmentShow" 
 			mode="multiSelector"   :default-selector='[0, 1]' :range="multiSelector">
 			</u-picker> -->
+			<u-picker v-model="tabsFrom.show1" mode="selector" :range="tabsFrom.selector1" range-key="label"
+				@confirm="selector1confirm"></u-picker>
 			<u-select v-model="equipmentShow" mode="mutil-column-auto" :list="equipmentList" @confirm="confirm">
 
 			</u-select>
@@ -24,7 +26,9 @@
 					<u-icon name="arrow-left" color="#fff" size="36"></u-icon>
 				</view>
 				<view class="title">
-					{{title}}<u-icon v-if="false" name="arrow-down" color="#fff" size="24" @click="equipmentShow=true"></u-icon>
+					{{tabsFrom.title}}
+					<!-- <u-icon name="arrow-down" color="#fff" size="24" @click="equipmentShow=true"></u-icon> -->
+					<u-icon name="arrow-down" color="#fff" size="24" @click="tabsFrom.show1=true"></u-icon>
 				</view>
 				<!-- <view class="right" @click="tabsFrom.show2=true">
 					<image class="img" src="@/assets/img/riLine-calendar-todo-line 1.svg" mode=""></image>
@@ -162,14 +166,14 @@
 		<!-- 各时段用电量 -->
 		<view class="electricity-chart">
 			<view class="title">
-				
+
 				<view class="text">
 					<view class="icon">
-					
-					</view>	各时段用电量 (度)
-			
+
+					</view> 各时段用电量 (度)
+
 				</view>
-				<view @click="tabsFrom.show2=true,params.day=true" >
+				<view @click="tabsFrom.show2=true,params.day=true">
 					{{queryDay}}<u-icon name="arrow-down"></u-icon>
 				</view>
 			</view>
@@ -331,8 +335,7 @@
 		data() {
 			return {
 				kWhList: [],
-				title: '',
-				queryDay:'',
+				queryDay: '',
 				showTop: [0, 0, 0, 0, 0, 0, 0, 0],
 				FormData: {
 					queryDate: '',
@@ -356,17 +359,14 @@
 						children: [{
 								value: 2,
 								label: '荆鹏集团01',
-
 							},
 							{
 								value: 3,
 								label: '荆鹏集团02',
-
 							},
 							{
 								value: 4,
 								label: '荆鹏集团03',
-
 							}
 						]
 					},
@@ -386,7 +386,6 @@
 							{
 								value: 8,
 								label: '荆州院子03',
-
 							}
 						]
 					}
@@ -424,71 +423,87 @@
 					backgroundColor: '#1677FF',
 				},
 				list: [{
-						id:0,
-						name: '总用电量',
-						disabled: false
-					},
-					{
-						id:4,
-						name: '当日用电量',
-						disabled: false
-					},
-					{
-						id:1,
-						name: '当月用电量',
-						disabled: false
-					}, {
-						id:3,
-						name: '当年用电量',
-						disabled: false
-					}, {
-						id:5,
-						name: '去年用电量',
-						disabled: false
-					}, {
-						id:10,
-						name: '指定月份',
-						disabled: false
-					}
-				],
-				value: '0',
+					id: 4,
+					name: '当日用电量',
+					disabled: false
+				}, {
+					id: 1,
+					name: '当月用电量',
+					disabled: false
+				}, {
+					id: 2,
+					name: '上月用电量',
+					disabled: false
+				}, {
+					id: 3,
+					name: '当年用电量',
+					disabled: false
+				}, {
+					id: 0,
+					name: '总用电量',
+					disabled: false
+				}, {
+					id: 10,
+					name: '指定月份',
+					disabled: false
+				}],
+				value: '2',
 			};
 		},
 		onLoad(op) {
-			if(op.id) {
+			if (op.id) {
 				this.FormData.meterId = op.id;
 				this.FormData2.meterId = op.id;
+				this.tabsFrom.title = op.name;
 			}
 			this.endYear = new Date().getFullYear();
 			this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
 			this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
-			this.FormData.type = 0;
-			
-			this.getTimeSlotStatistics();
+			this.FormData.type = 2;
+
 			this.getElectricityStatistics();
+			this.getTimeSlotStatistics();
 			this.getList();
 		},
+		onReady() {
+			this.getBarCharts(false);
+		},
 		methods: {
-			queryDate(queryTime,day){
-				
-				if(day){
-					this.FormData2.queryDate=queryTime;
+			selector1confirm(e) {
+
+				var index = e[0];
+				this.tabsFrom.show1Index = index;
+				this.tabsFrom.show1Text = this.tabsFrom.selector1[index].label;
+				this.tabsFrom.title = this.tabsFrom.selector1[index].label;
+
+				this.FormData.meterId = this.tabsFrom.selector1[index].value;
+				this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
+				this.FormData2.meterId = this.tabsFrom.selector1[index].value;
+				this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
+
+				this.FormData.type = 2;
+				this.value = '2';
+
+				this.getTimeSlotStatistics();
+				this.getElectricityStatistics();
+			},
+			queryDate(queryTime, day) {
+
+				if (day) {
+					this.FormData2.queryDate = queryTime;
 					//this.FormData2.type =day?"9":"10"
 					//this.value="-1"
-					
-					this.getTimeSlotStatistics()
-					
-				}else{
-					
-					this.FormData.queryDate=queryTime+"-01";
-					this.FormData.type ="10"
+
+					this.getTimeSlotStatistics();
+
+				} else {
+
+					this.FormData.queryDate = queryTime + "-01";
+					this.FormData.type = "10";
 					//this.value="-1"
-					
-					this.getElectricityStatistics()
-					
+
+					this.getElectricityStatistics();
 				}
-				
-				
 			},
 			getList() {
 				uni.showLoading({
@@ -502,11 +517,13 @@
 				API.homePageKwh(data).then((res) => {
 					uni.hideLoading()
 					this.kWhList = res.data.data;
-					for (var i = 0; i < this.kWhList.length; i++) {
-						if(this.kWhList[i].id == this.FormData.meterId) {
-							this.title = this.kWhList[i].name;
+					this.tabsFrom.selector1 = [];
+					this.tabsFrom.selector1 = this.kWhList.map(item => {
+						return {
+							label: item.name,
+							value: item.id
 						}
-					}
+					})
 				}).catch(error => {
 					uni.showToast({
 						title: error,
@@ -514,13 +531,13 @@
 					})
 				})
 			},
-			getTimeSlotStatistics(){
+			getTimeSlotStatistics() {
 				uni.showLoading({
 					title: "加载中",
 					mask: true,
 				})
-				
-				this.queryDay=parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
+
+				this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
 				API.timeSlotStatistics(this.FormData2).then((response) => {
 					uni.hideLoading();
 					this.hourMap = response.data.hourMap;
@@ -532,22 +549,22 @@
 					})
 				})
 			},
-			getElectricityStatistics(){
+			getElectricityStatistics() {
 				uni.showLoading({
 					title: "加载中",
 					mask: true,
 				})
-				var obj={
+				var obj = {
 					...this.FormData
-				}		
+				}
 				// if(obj.type==10){
 				// 	obj.queryDate+="-01"
 				// }
 				API.electricityStatistics(obj).then((response) => {
 					uni.hideLoading();
 					this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
-					var electricity = response.data.kwhMap.kwh+"";
-					
+					var electricity = response.data.kwhMap.kwh + "";
+
 					if (electricity) {
 						var sz = electricity.split(".")
 						var str1 = sz[0];
@@ -575,19 +592,25 @@
 			},
 			getBarCharts(list) {
 				if (!this.myChart) {
-					this.myChart = echarts.init(document.getElementById('barEcharts'),null,{
-						width:uni.upx2px(700),height:uni.upx2px(480)
+					this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
+						width: uni.upx2px(700),
+						height: uni.upx2px(480)
 					});
 				}
 				this.myChart.clear();
-				var data1=[];
-				var data2=[];
-				for(var i in list){
-					data1.push(i)
-					data2.push(list[i])
+				var data1 = ['0-2点', '3-4点', '5-6点', '7-8点', '9-10点', '11-12点', '13-14点', '15-16点',
+					'17-18点', '19-20点', '21-22点', '23-24点'];
+				var data2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
+				if(list) {
+					data1 = [];
+					data2 = [];
+					for (var i in list) {
+						data1.push(i)
+						data2.push(list[i])
+					}
 				}
-							
-				var headitemby=""
+
+				var headitemby = ""
 				var showkey = "";
 				var option = {
 					tooltip: {
@@ -603,44 +626,41 @@
 						bottom: '8%',
 						containLabel: true
 					},
-					  xAxis: {
-					    type: 'category',
-					    data: data1,
-						
+					xAxis: {
+						type: 'category',
+						data: data1,
+
 						axisLabel: {
-							rotate:40,
-							interval:0,
+							rotate: 40,
+							interval: 0,
 							textStyle: {
 								color: "#333"
 							}
 						},
-					  },
-					  yAxis: {
-					    type: 'value',
-						
-					  },
-					  series: [
-					    {
-						  name: '合计',
-					      data: data2,
-					      type: 'bar'
-					    }
-					  ]
+					},
+					yAxis: {
+						type: 'value',
+					},
+					series: [{
+						name: '合计',
+						data: data2,
+						type: 'bar'
+					}]
 				}
 				console.log(option)
 				this.myChart.setOption(option);
 			},
 			selector2confirm(e) {
-				this.tabsFrom.show2Text=e.year+"年"+e.month+"月"
-				
-				this.tabsFrom.show2Index=e.year+"-"+e.month
-				if(e.day){
-					this.tabsFrom.show2Text+=e.day+"日"
-					this.tabsFrom.show2Index+='-'+e.day	
-					
-					this.queryDate(this.tabsFrom.show2Index,true)
-				}else{
-					this.queryDate(this.tabsFrom.show2Index,false)
+				this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
+
+				this.tabsFrom.show2Index = e.year + "-" + e.month
+				if (e.day) {
+					this.tabsFrom.show2Text += e.day + "日"
+					this.tabsFrom.show2Index += '-' + e.day
+
+					this.queryDate(this.tabsFrom.show2Index, true)
+				} else {
+					this.queryDate(this.tabsFrom.show2Index, false)
 				}
 			},
 			selector2reset(e) {
@@ -656,10 +676,10 @@
 			radioGroupChange(e) {
 				console.log(e)
 				this.FormData.type = e;
-				if(e==10) {
+				if (e == 10) {
 					this.tabsFrom.show2 = true;
 					this.params.day = false;
-				}else{
+				} else {
 					this.getElectricityStatistics();
 				}
 			},
@@ -929,14 +949,14 @@
 		padding: 40rpx 0rpx;
 		background-color: #fff;
 		border-radius: 8px;
-	
+
 		.title {
 			display: flex;
 			align-items: center;
 			justify-content: space-between;
 			padding: 0 12rpx;
 			margin-bottom: 40rpx;
-	
+
 			.icon {
 				width: 36rpx;
 				height: 36rpx;
@@ -944,7 +964,7 @@
 				border: 6px solid rgba(182, 212, 255, 1);
 				border-radius: 100px;
 			}
-	
+
 			.text {
 				display: flex;
 				align-items: center;
@@ -953,11 +973,11 @@
 				margin-left: 16rpx;
 			}
 		}
-	
+
 		.chart {
 			width: 100%;
 			height: 440rpx;
-	
+
 			.img {
 				width: 100%;
 				height: 440rpx;

+ 6 - 6
pages/equipmentDataMonitoring/equipmentElectricity.vue

@@ -44,18 +44,18 @@
 					</view>
 					<view class="electricity-item">
 						<view class="number">
-							{{item.thisMonthKwh}}
+							{{item.thisDayKwh}}
 						</view>
 						<view class="date">
-							本月
+							今日
 						</view>
 					</view>
 					<view class="electricity-item">
 						<view class="number">
-							{{item.lastMonthKwh}}
+							{{item.thisMonthKwh}}
 						</view>
 						<view class="date">
-							
+							
 						</view>
 					</view>
 				</view>
@@ -90,7 +90,7 @@
 				current: 0
 			}
 		},
-		onReady() {
+		onLoad() {
 			this.getList();
 			this.getCompanyInfoList();
 		},
@@ -166,7 +166,7 @@
 			},
 			toElectronicMonitoring(item) {
 				uni.navigateTo({
-					url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id
+					url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id + '&name=' + item.name
 				})
 			}
 		}

+ 125 - 95
pages/mine/contactService.vue

@@ -1,33 +1,40 @@
 <template>
-	<view>
-		<u-navbar title="联系客服"  title-color="#101010" ></u-navbar>
-		<view class="background">
-			<view class="common-problem">
-				<view class="headline">
-					常见问题
-				</view>
-				<!-- 标签 -->
-				<view class="tabs">
-					<u-tabs :list="list"  font-size="28" :is-scroll="false" :current="current" @change="change"></u-tabs>
-				</view>
-				<!-- 问题 -->
-				<view class="problems">
-					<u-collapse accordion="false">
-							<u-collapse-item :title="item.head" v-for="(item, index) in itemList" :open="item.open" :key="index">
-								{{item.body}}
-							</u-collapse-item>
-						</u-collapse>
-				</view>
-			</view>
+	<view>
+		<u-navbar title="联系客服" title-color="#101010"></u-navbar>
+		<u-divider :isnone="queryList.length==0"   nonetext="没有找到相关内容"
+			border-color="#CFD2D5">已经到底了</u-divider>
+		<view class="background" v-if="false">
+			<view class="common-problem">
+				<view class="headline">
+					常见问题
+				</view>
+				<!-- 标签 -->
+				<view class="tabs">
+					<u-tabs :list="list" font-size="28" :is-scroll="false" :current="current" @change="change"></u-tabs>
+				</view>
+				<!-- 问题 -->
+				<view class="problems">
+					<u-collapse accordion="false">
+						<u-collapse-item :title="item.head" v-for="(item, index) in itemList" :open="item.open" :key="index">
+							{{item.body}}
+						</u-collapse-item>
+					</u-collapse>
+				</view>
+			</view>
 		</view>
-		<!-- 底部 -->
-		<view class="bottom">
-			<button class="service">
-				<view>
-					<image class="img" src="@/assets/img/riFill-customer-service-2-fill 1.svg" mode=""></image>
-				</view>
-				客服电话(7:00-24:00)
-			</button>
+		
+		<u-modal v-model="openModalBl" @confirm="confirmPhone" confirm-text="拨打电话" confirm-color="#606266"
+			:show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="content"
+			:content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
+		
+		<!-- 底部 -->
+		<view class="bottom">
+			<button class="service" @click="openModalBl=true">
+				<view>
+					<image class="img" src="@/assets/img/riFill-customer-service-2-fill 1.svg" mode=""></image>
+				</view>
+				客服电话(7:00-24:00)
+			</button>
 		</view>
 	</view>
 </template>
@@ -36,32 +43,41 @@
 	export default {
 		data() {
 			return {
+				content: "400-8899-619",
+				queryList: [],
+				openModalBl: false,
 				list: [{
 					name: '软件使用'
 				}, {
 					name: '设备状态及参数'
 				}, {
 					name: '工单相关',
-					
-				}],
-				itemList: [{
-									head: "常见问题1",
-									body: "只要我们正确择取一个合适的参照物乃至稍降一格去看待他人,值得赏识的东西便会扑面而来",
-									open: true,
-									
-								},{
-									head: "常见问题2",
-									body: "学会欣赏,实际是一种积极生活的态度,是生活的调味品,会在欣赏中发现生活的美",
-									open: false,
-								},{
-									head: "常见问题3",
-									body: "但是据说雕刻大卫像所用的这块大理石,曾被多位雕刻家批评得一无是处,有些人认为这块大理石采凿得不好,有些人嫌它的纹路不够美",
-									open: false,
-								}],
+
+				}],
+				itemList: [{
+					head: "常见问题1",
+					body: "只要我们正确择取一个合适的参照物乃至稍降一格去看待他人,值得赏识的东西便会扑面而来",
+					open: true,
+
+				}, {
+					head: "常见问题2",
+					body: "学会欣赏,实际是一种积极生活的态度,是生活的调味品,会在欣赏中发现生活的美",
+					open: false,
+				}, {
+					head: "常见问题3",
+					body: "但是据说雕刻大卫像所用的这块大理石,曾被多位雕刻家批评得一无是处,有些人认为这块大理石采凿得不好,有些人嫌它的纹路不够美",
+					open: false,
+				}],
 				current: 0
 			}
 		},
 		methods: {
+			confirmPhone() {
+				this.openModalBl = false;
+				uni.makePhoneCall({
+					phoneNumber: this.content //仅为示例
+				});
+			},
 			change(index) {
 				this.current = index;
 			}
@@ -69,55 +85,69 @@
 	}
 </script>
 
-<style lang="scss" scoped>
-	.background{
-		position: relative;
-		height: 200px;
-		background: linear-gradient(180deg, rgba(203,234,255,1) 0%,rgba(203,234,255,0) 100%);
-		.common-problem{
-			position: absolute;
			top: 24rpx;
			left: 32rpx;
			right: 32rpx;
			background-color: #fff;
			border-radius: 8px;
			padding: 40rpx 32rpx;
			.headline{
-				color: rgba(16,16,16,1);
-				font-size: 36rpx;
-			}
-			// 标签
-			.tabs{
-				border-top: 1px solid rgba(232,232,232,1);
-				margin-top: 28rpx;
-				width: 522rpx;
-				/deep/.u-tab-item{
-					
-					font-size: 24rpx !important;
-				}
-			}
-			.problems{
-				margin-top: 8rpx;
-			}
-		}
+<style lang="scss" scoped>
+	.background {
+		position: relative;
+		height: 200px;
+		background: linear-gradient(180deg, rgba(203, 234, 255, 1) 0%, rgba(203, 234, 255, 0) 100%);
+
+		.common-problem {
+			position: absolute;
+			top: 24rpx;
+			left: 32rpx;
+			right: 32rpx;
+			background-color: #fff;
+			border-radius: 8px;
+			padding: 40rpx 32rpx;
+
+			.headline {
+				color: rgba(16, 16, 16, 1);
+				font-size: 36rpx;
+			}
+
+			// 标签
+			.tabs {
+				border-top: 1px solid rgba(232, 232, 232, 1);
+				margin-top: 28rpx;
+				width: 522rpx;
+
+				/deep/.u-tab-item {
+
+					font-size: 24rpx !important;
+				}
+			}
+
+			.problems {
+				margin-top: 8rpx;
+			}
+		}
+	}
+
+	// 底部
+	.bottom {
+		background-color: #fff;
+		position: fixed;
+		bottom: 0;
+		left: 0;
+		right: 0;
+		padding: 24rpx 32rpx;
+
+		.service {
+			display: flex;
+			justify-content: center;
+			align-items: center;
+
+			color: rgba(255, 255, 255, 1);
+			font-size: 32rpx;
+			border-radius: 50px;
+			background: linear-gradient(-88.46deg, rgba(34, 109, 198, 1) 2.59%, rgba(9, 158, 237, 1) 97.02%);
+		}
+
+		.img {
+			width: 40rpx;
+			height: 40rpx;
+			vertical-align: middle;
+			margin-right: 16rpx;
+		}
 	}
-  // 底部
-  .bottom{
-	  background-color: #fff;
-	  position: fixed;
-	  bottom: 0;
-	  left: 0;
-	  right: 0;
-	  padding: 24rpx 32rpx;
-	  
-	  .service{
-		  display: flex;
-		  justify-content: center;
-		  align-items: center;	
-		  
-		  color: rgba(255,255,255,1);
-		  font-size: 32rpx;
-		  border-radius: 50px;
-		  background: linear-gradient(-88.46deg, rgba(34,109,198,1) 2.59%,rgba(9,158,237,1) 97.02%);
-	  }
-	  .img{
-		  width: 40rpx;
-		  height: 40rpx;
-		  vertical-align: middle;
-		  margin-right: 16rpx;
-	  }
-  }
-</style>
+</style>

+ 66 - 56
pages/mine/message.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<view class="navbar-c">
-			<view class="back">
+			<view class="back" @click="backMine">
 				<u-icon name="arrow-left" color="#101010" size="36"></u-icon>
 			</view>
 			<view class="title">
@@ -12,27 +12,27 @@
 			</view>
 
 		</view>
-	
-	<view class="message-item" v-for="item in 2">
-		<view class="item-icon">
-			<image class="img" src="@/assets/img/riFill-clipboard-fill.svg" mode=""></image>
-		</view>
-		<view class="message-infos">
-			<view class="infos-top">
-				<view class="title">
-					工单提醒
+
+		<view class="message-item" v-for="item in 2">
+			<view class="item-icon">
+				<image class="img" src="@/assets/img/riFill-clipboard-fill.svg" mode=""></image>
+			</view>
+			<view class="message-infos">
+				<view class="infos-top">
+					<view class="title">
+						工单提醒
+					</view>
+					<view class="date">
+						01-02 12:00
+					</view>
 				</view>
-				<view class="date">
-					01-02 12:00
+				<view class="details">
+					[编号No123456]荆鹏软件园01设备温度异常,请尽快处理,处理人郭群...
 				</view>
 			</view>
-			<view class="details">
-				[编号No123456]荆鹏软件园01设备温度异常,请尽快处理,处理人郭群...
-			</view>
 		</view>
-	</view>
-	
-	
+
+
 	</view>
 </template>
 
@@ -44,57 +44,67 @@
 			}
 		},
 		methods: {
-
+			backMine() {
+				uni.navigateBack()
+			}
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
-.message-item{
-	border-radius: 8px;
-	background-color: rgba(255,255,255,1);
-	margin: 20rpx 32rpx;
-	padding: 24rpx 32rpx;
-	display: flex;
-	align-items: center;	
-	.item-icon{
+	.back {
+		z-index: 999;
+		width: 200rpx;
+	}
+	
+	.message-item {
+		border-radius: 8px;
+		background-color: rgba(255, 255, 255, 1);
+		margin: 20rpx 32rpx;
+		padding: 24rpx 32rpx;
 		display: flex;
 		align-items: center;
-		justify-content: center;
-		width: 96rpx;
-		height: 96rpx;
-		border-radius: 12px;
-		background: linear-gradient(180.29deg, rgba(255,214,125,1) 0.9%,rgba(255,150,0,1) 100.4%);
-		.img{
-			width: 56rpx;
-			height: 56rpx;
-		}
-	}
-	.message-infos{
-		flex: 1;
-		margin-left: 24rpx;
-		.infos-top{
+
+		.item-icon {
 			display: flex;
 			align-items: center;
-			justify-content: space-between;
-			.title{
-				color: rgba(16,16,16,1);
-				font-size: 32rpx;
-			}
-			.date{
-				color: rgb(140,140,140);
-				font-size: 24rpx;
+			justify-content: center;
+			width: 96rpx;
+			height: 96rpx;
+			border-radius: 12px;
+			background: linear-gradient(180.29deg, rgba(255, 214, 125, 1) 0.9%, rgba(255, 150, 0, 1) 100.4%);
+
+			.img {
+				width: 56rpx;
+				height: 56rpx;
 			}
 		}
-		.details{
-			color: rgba(119,119,119,1);
-			font-size: 24rpx;
-			margin-top: 16rpx;
-		}
-	}
-}
 
+		.message-infos {
+			flex: 1;
+			margin-left: 24rpx;
+
+			.infos-top {
+				display: flex;
+				align-items: center;
+				justify-content: space-between;
 
+				.title {
+					color: rgba(16, 16, 16, 1);
+					font-size: 32rpx;
+				}
 
+				.date {
+					color: rgb(140, 140, 140);
+					font-size: 24rpx;
+				}
+			}
 
+			.details {
+				color: rgba(119, 119, 119, 1);
+				font-size: 24rpx;
+				margin-top: 16rpx;
+			}
+		}
+	}
 </style>

+ 22 - 44
pages/mine/mine.vue

@@ -2,7 +2,8 @@
 	<view>
 		<view class="background">
 			<!-- 个人信息 -->
-			<view class="person-infos" @click="toPersonInfos">
+			<!-- <view class="person-infos" @click="gotoUrl('/pages/mine/personInfos')"> -->
+			<view class="person-infos">
 				<view class="photo">
 					<!-- <u-avatar class="avatar"
 						src="@/assets/img/photo@x1.png" size="112">
@@ -11,7 +12,7 @@
 				</view>
 				<view class="else">
 					<view class="name">
-						{{info.name}}
+						{{personInfo.name}}
 					</view>
 					<view class="company">
 						运维专员
@@ -23,11 +24,11 @@
 			<view class="address-box">
 				<view class="address">
 					<view class="address-title">
-						{{companyInfo.fullName}}
+						湖北荆鹏软件集团
 					</view>
-					<!-- <view class="address-value">
+					<view class="address-value">
 						<u-icon name="map"></u-icon>荆州市沙市区江津东路附155号
-					</view> -->
+					</view>
 				</view>
 
 				<view class="image">
@@ -37,7 +38,7 @@
 		</view>
 		<!-- 功能 -->
 		<view class="function-group">
-			<view class="function-item">
+			<view class="function-item" @click="gotoUrl('/pages/mine/filialeList')" v-if="false">
 				<view class="icon">
 					<image class="img" src="@/assets/img/riLine-function-line.svg" mode=""></image>
 				</view>
@@ -48,7 +49,7 @@
 					<u-icon name="arrow-right" color="#b2b2b2"></u-icon>
 				</view>
 			</view>
-<view class="function-item">
+			<view class="function-item" @click="gotoUrl('/pages/mine/message')" v-if="false">
 				<view class="icon">
 					<image class="img" src="@/assets/img/riLine-message-2-line.svg" mode=""></image>
 				</view>
@@ -62,7 +63,7 @@
 
 
 
-			<view class="function-item">
+			<view class="function-item" @click="gotoUrl('/pages/mine/feedbackRecord')" v-if="false">
 				<view class="icon">
 					<image class="img" src="@/assets/img/riLine-feedback-line.svg" mode=""></image>
 				</view>
@@ -74,7 +75,7 @@
 				</view>
 			</view>
 
-			<view class="function-item">
+			<view class="function-item" @click="gotoUrl('/pages/mine/contactService')">
 				<view class="icon">
 					<image class="img" src="@/assets/img/riLine-customer-service-2-line.svg" mode=""></image>
 				</view>
@@ -91,7 +92,7 @@
 
 
 		<view class="function-group">
-			<view class="function-item" @click="toSetting">
+			<view class="function-item" @click="gotoUrl('/pages/mine/setting')">
 				<view class="icon">
 					<image class="img" src="@/assets/img/riLine-settings-2-line.svg" mode=""></image>
 				</view>
@@ -110,54 +111,31 @@
 </template>
 
 <script>
-	import  energyCenterTabbar from '@/components/energyCenterTabbar.vue'
+	import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
 	import * as API from '@/apis/pagejs/energy/index.js'
-	
+
 	export default {
 		components: {
 			energyCenterTabbar
 		},
 		data() {
 			return {
-				info: {},
+				personInfo: {},
 				companyInfo: {}
 			}
 		},
 		onLoad() {
-			
+
 		},
-		onReady() {
-			this.getfindByOpenId();
+		onShow() {
+			if(this.carhelp.getPersonInfoPlus()) {
+				var data = this.carhelp.getPersonInfoPlus();
+				this.personInfo = data.regUser;
+				this.companyInfo = data.companyInfo;
+			}
 		},
 		methods: {
-			getfindByOpenId() {
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				API.findByOpenId({
-					openId: this.carhelp.getOpenId()
-				}).then((response) => {
-					uni.hideLoading();
-					this.info = response.data.regUser;
-					this.companyInfo = response.data.companyInfo;
-				}).catch(error => {
-					uni.showToast({
-						title: error,
-						icon: "none"
-					})
-				})
-			},
-			toSetting() {
-				uni.navigateTo({
-					url: '/pages/mine/setting'
-				})
-			},
-			toPersonInfos() {
-				uni.navigateTo({
-					url: '/pages/mine/personInfos'
-				})
-			}
+			
 		}
 	}
 </script>

+ 27 - 44
pages/mine/personInfos.vue

@@ -1,19 +1,19 @@
 <template>
 	<view>
-		<u-navbar title="个人信息"  title-color="#101010" ></u-navbar>
+		<u-navbar title="个人信息" title-color="#101010"></u-navbar>
 		<view class="infos-group">
 			<view class="infos-item">
 				<view class="item-title">
 					头像
 				</view>
 				<view class="item-value value-img">
-					<image class="img" src="@/assets/img/photo@x1.png" mode=""></image>
-				    <u-icon color="#b2b2b2" name="arrow-right"></u-icon>
+					<image class="img" src="@/assets/img/默认头像.png" mode=""></image>
+					<u-icon color="#b2b2b2" name="arrow-right"></u-icon>
 				</view>
 			</view>
-			
+
 		</view>
-		
+
 		<view class="infos-group">
 			<view class="infos-item">
 				<view class="item-title">
@@ -21,7 +21,7 @@
 				</view>
 				<view class="item-value">
 					周琼
-				    <u-icon color="#b2b2b2" name="arrow-right"></u-icon>
+					<u-icon color="#b2b2b2" name="arrow-right"></u-icon>
 				</view>
 			</view>
 			<view class="infos-item">
@@ -30,7 +30,7 @@
 				</view>
 				<view class="item-value">
-				    <u-icon color="#b2b2b2" name="arrow-right"></u-icon>
+					<u-icon color="#b2b2b2" name="arrow-right"></u-icon>
 				</view>
 			</view>
 			<view class="infos-item">
@@ -47,79 +47,62 @@
 				</view>
 				<view class="item-value">
 					运维专员
-				    
+
 				</view>
 			</view>
-			
+
 		</view>
 	</view>
 </template>
 
 <script>
 	import * as API from '@/apis/pagejs/energy/index.js'
-	
+
 	export default {
 		data() {
 			return {
-				info: {},
+				personInfo: {},
 				companyInfo: {}
 			}
 		},
-		onReady() {
-			this.getfindByOpenId();
-		},
 		methods: {
-			getfindByOpenId() {
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				API.findByOpenId({
-					openId: this.carhelp.getOpenId()
-				}).then((response) => {
-					uni.hideLoading();
-					this.info = response.data.regUser;
-					this.companyInfo = response.data.companyInfo;
-				}).catch(error => {
-					uni.showToast({
-						title: error,
-						icon: "none"
-					})
-				})
-			},
+
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
-	.infos-group{
+	.infos-group {
 		margin: 24rpx 32rpx;
 		background-color: #fff;
 		border-radius: 8px;
-		.infos-item{
+
+		.infos-item {
 			display: flex;
 			align-items: center;
 			justify-content: space-between;
 			padding: 36rpx 32rpx;
-			.item-title{
-				color: rgba(51,51,51,1);
+
+			.item-title {
+				color: rgba(51, 51, 51, 1);
 				font-size: 32rpx;
 			}
-			.item-value{
-				
-				color:#777777;
-				
-				.img{
+
+			.item-value {
+
+				color: #777777;
+
+				.img {
 					width: 80rpx;
 					height: 80rpx;
 					border-radius: 50px;
 				}
 			}
-			.value-img{
+
+			.value-img {
 				display: flex;
 				align-items: center;
 			}
 		}
 	}
-
-</style>
+</style>

+ 41 - 47
pages/mine/setting.vue

@@ -1,37 +1,46 @@
 <template>
 	<view>
-		<u-navbar title="设置"  title-color="#101010" ></u-navbar>
+		<u-navbar title="设置" title-color="#101010"></u-navbar>
 		<u-cell-group>
-				<u-cell-item  title="个人信息" @click="gotoUrl('/pages/mine/personInfos')" ></u-cell-item>
-				<u-cell-item  title="修改密码"  @click="gotoUrl('/pages/mine/changePassword')"  ></u-cell-item>
-				<u-cell-item  title="修改手机号" :value="personInfo.phone"  @click="gotoUrl('/pages/mine/changePhone')" ></u-cell-item>
-				<u-cell-item  title="注销账号"   @click="gotoUrl('/pages/mine/cancelAccount')" ></u-cell-item>
-			</u-cell-group>
-			
-			<view class="exit" @click="signOut" >
-				退出账号
-			</view>
-			
-			<u-modal v-model="show1" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true" ref="uModal" :asyncClose="true" title="退出账号"
-				content="是否退出当前账号?" :content-style="{color: '#333333'}"></u-modal>
-				
+			<u-cell-item title="个人信息" @click="gotoUrl('/pages/mine/personInfos')"></u-cell-item>
+			<u-cell-item title="修改密码" @click="gotoUrl('/pages/mine/changePassword')"></u-cell-item>
+			<u-cell-item title="修改手机号" :value="personInfo.phone" @click="gotoUrl('/pages/mine/changePhone')"></u-cell-item>
+			<u-cell-item title="注销账号" @click="gotoUrl('/pages/mine/cancelAccount')"></u-cell-item>
+		</u-cell-group>
+
+		<view class="exit" @click="signOut">
+			退出账号
+		</view>
+
+		<u-modal v-model="show1" @confirm="confirm" confirm-color="#FF3D00" :show-cancel-button="true" ref="uModal"
+			:asyncClose="true" title="退出账号" content="是否退出当前账号?" :content-style="{color: '#333333'}"></u-modal>
+
 	</view>
-	
-	
+
+
 </template>
 
 <script>
 	import * as userApi from '@/apis/pagejs/user.js'
 	// import * as API from '@/apis/pagejs/index.js'
-	
+
 	export default {
 		data() {
 			return {
-					personInfo:{},
-					show1:false,
+				personInfo: {},
+				show1: false,
 			}
 		},
 		onLoad() {
+			if(this.carhelp.getPersonInfoPlus()) {
+				var data = this.carhelp.getPersonInfoPlus();
+				this.personInfo = data.regUser;
+				if(this.personInfo.phone != null) {
+					var phone = this.personInfo.phone;
+					phone = phone.slice(0,3) + '****' + phone.slice(-4);
+					this.personInfo.phone = phone;
+				}
+			}
 			//this.homePage()
 		},
 		methods: {
@@ -42,7 +51,7 @@
 				uni.showLoading({
 					title: "加载中",
 					mask: true,
-				})		
+				})
 				userApi.logout().then((res) => {
 					uni.hideLoading();
 					this.show1 = false;
@@ -56,43 +65,28 @@
 						icon: "none"
 					})
 				})
-			},
-			homePage(){
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				
-				API.homePage({
-					
-				}).then((response) => {
-					uni.hideLoading();
-					
-					this.personInfo=response.data.regUser;
-				}).catch(error => {
-					uni.hideLoading();
-					
-				})
 			}
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
-	/deep/.u-cell_title{
-		color: rgba(51,51,51,1);
+	/deep/.u-cell_title {
+		color: rgba(51, 51, 51, 1);
 	}
-	/deep/.u-cell__value{
+
+	/deep/.u-cell__value {
 		color: #777777;
-	};
-	
-	.exit{
+	}
+
+	;
+
+	.exit {
 		background-color: #fff;
-		margin: 24rpx 0 0 0 ;
+		margin: 24rpx 0 0 0;
 		text-align: center;
 		line-height: 96rpx;
-		color: rgba(238,49,56,1);
+		color: rgba(238, 49, 56, 1);
 		font-size: 32rpx;
 	}
-
-</style>
+</style>

+ 2 - 2
pages/statistics/statistics.vue

@@ -267,7 +267,7 @@
 			</view>
 		</view>
 
-		<energyCenterTabbar :current="0" v-if="0"></energyCenterTabbar>
+		<energyCenterTabbar :current="0"></energyCenterTabbar>
 	</view>
 </template>
 
@@ -473,7 +473,7 @@
 			},
 			toElectronicMonitoring(item) {
 				uni.navigateTo({
-					url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id
+					url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id + '&name=' + item.name
 				})
 			}
 		}