空白格 %!s(int64=3) %!d(string=hai) anos
pai
achega
0c742e796e

+ 6 - 0
.gitignore

@@ -0,0 +1,6 @@
+.hbuilderx
+unpackage
+.idea
+.vscode
+.project
+.DS_Store

+ 1 - 1
pages.json

@@ -6,7 +6,7 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "智慧停车运营数据系统",
+				"navigationBarTitleText": "停车运营端",
 				"navigationStyle": "custom"
 			}
 		}, {

+ 72 - 49
pages/index/index.vue

@@ -6,19 +6,19 @@
 		<view class="content-main">
 			<view class="content-main-item" @click="jumpPage('pages/orderRecords/orderRecords')">
 				<view class="t1">
-					<u-icon name="file-text-fill" color="#fff" size="33"></u-icon>
+					<u-icon name="./../../static/images/order-icon.png" color="#fff" size="65"></u-icon>
 				</view>
 				<view class="name">订单记录</view>
 			</view>
 			<view class="content-main-item" @click="jumpPage('pages/operationOverview/operationOverview')">
 				<view class="t2">
-					<u-icon name="file-text-fill" color="#fff" size="33"></u-icon>
+					<u-icon name="./../../static/images/running-icon.png" color="#fff" size="65"></u-icon>
 				</view>
 				<view class="name">运营概况</view>
 			</view>
 			<view class="content-main-item" @click="jumpPage('pages/patrolManagement/patrolManagement')">
 				<view class="t3">
-					<u-icon name="file-text-fill" color="#fff" size="33"></u-icon>
+					<u-icon name="./../../static/images/mana-icon.png" color="#fff" size="65"></u-icon>
 				</view>
 				<view class="name">巡检管理</view>
 			</view>
@@ -31,8 +31,26 @@
 		data() {
 			return {}
 		},
-		onLoad() {
-
+		onShow() {
+			uni.getStorage({
+				key: 'Token',
+				success: function(res) {
+					console.log(res.data);
+				},
+				error: function(err) {
+					console.log(err)
+				},
+				complete: (e) => {
+					console.log(e)
+					if (e.data) {
+						
+					} else {
+						uni.$u.route({
+							url: 'pages/login/login'
+						})
+					}
+				}
+			});
 		},
 		methods: {
 			jumpPage(url) {
@@ -45,54 +63,59 @@
 </script>
 
 <style lang="scss" scoped>
-.content {
-	&-header {
-		height: 400rpx;
-		display: flex;
-		align-items: center;
-		justify-content: center;
-		color: #fff;
-		font-size: 64rpx;
-		background: url('../../static/images/parking-info-bg.png') no-repeat center center;
-		background-repeat: no-repeat;
-		background-position: center center;
-		background-size: cover;
-	}
-	&-main {
-		padding: 0 54rpx;
-		margin-top: -60rpx;
-		&-item {
-			padding: 50rpx 40rpx;
-			border-radius: 20rpx;
-			box-shadow: 0px 1px 30rpx 0px rgba(0, 0, 0, 0.1);
-			background-color: #fff;
-			margin-bottom: 30rpx;
+	.content {
+		&-header {
+			height: 400rpx;
 			display: flex;
 			align-items: center;
-			view {
-				&:first-child {
-					width: 130rpx;
-					height: 130rpx;
-					border-radius: 50%;
-					text-align: center;
-					display: flex;
-					justify-content: center;
-					align-items: center;
+			justify-content: center;
+			color: #fff;
+			font-size: 64rpx;
+			background: url('../../static/images/parking-info-bg.png') no-repeat center center;
+			background-repeat: no-repeat;
+			background-position: center center;
+			background-size: cover;
+		}
+
+		&-main {
+			padding: 0 54rpx;
+			margin-top: -60rpx;
+
+			&-item {
+				padding: 50rpx 40rpx;
+				border-radius: 20rpx;
+				box-shadow: 0px 1px 30rpx 0px rgba(0, 0, 0, 0.1);
+				background-color: #fff;
+				margin-bottom: 30rpx;
+				display: flex;
+				align-items: center;
+
+				view {
+					&:first-child {
+						width: 130rpx;
+						height: 130rpx;
+						border-radius: 50%;
+						text-align: center;
+						display: flex;
+						justify-content: center;
+						align-items: center;
+					}
 				}
-			}
-			.name {
-				margin-left: 30rpx;
-			}
-			.t1 {
-				background-color: #436EFD;
-			}
-			.t2 {
-				background-color: #62D4A6;
-			}
-			.t3 {
-				background-color: #9376F5;
+
+				.name {
+					margin-left: 30rpx;
+				}
+
+				// .t1 {
+				// 	background-color: #436EFD;
+				// }
+				// .t2 {
+				// 	background-color: #62D4A6;
+				// }
+				// .t3 {
+				// 	background-color: #9376F5;
+				// }
 			}
 		}
 	}
-}
 </style>

+ 16 - 29
pages/login/login.vue

@@ -5,38 +5,19 @@
 		<view class="login-form">
 			<view class="login-form-title">账号密码登录</view>
 			<view class="login-form-box">
-				<u--form
-					:model="loginForm"
-					:rules="loginRules"
-					ref="loginForm">
+				<u--form :model="loginForm" :rules="loginRules" ref="loginForm">
 					<u-form-item prop="phoneNumber">
-						<u--input
-							v-model="loginForm.phoneNumber"
-							border="surround"
-							placeholder="请输入手机号码"
-							shape="square"
-							fontSize="30rpx"
-							maxlength="11"
-							type="number"
-							color="#B7B7B7"></u--input>
+						<u--input v-model="loginForm.phoneNumber" border="surround" placeholder="请输入手机号码" shape="square"
+							fontSize="30rpx" maxlength="11" type="number" color="#B7B7B7"></u--input>
 					</u-form-item>
 					<u-form-item prop="password">
-						<u--input
-							v-model="loginForm.password"
-							border="surround"
-							:password="true"
-							placeholder="请输入密码"
-							shape="square"
-							fontSize="30rpx"
-							color="#B7B7B7">
+						<u--input v-model="loginForm.password" border="surround" :password="true" placeholder="请输入密码"
+							shape="square" fontSize="30rpx" color="#B7B7B7">
 						</u--input>
 					</u-form-item>
 					<u-form-item>
-						<u-button
-							class="login-form-box-button"
-							type="primary"
-							text="登录"
-							@click="handleLogin"></u-button>
+						<u-button class="login-form-box-button" type="primary" text="登录" @click="handleLogin">
+						</u-button>
 					</u-form-item>
 					<u-form-item>
 						<view class="login-form-box-forget">忘记密码?</view>
@@ -57,9 +38,8 @@
 					password: '123456'
 				},
 				loginRules: {
-					phoneNumber: [
-						{
-							required: true, 
+					phoneNumber: [{
+							required: true,
 							message: '请输入手机号码',
 							trigger: ['blur']
 						},
@@ -83,6 +63,13 @@
 		methods: {
 			handleLogin() {
 				this.$refs.loginForm.validate().then(res => {
+					uni.setStorage({
+						key: 'Token',
+						data: '456123',
+						success: function() {
+							console.log('success');
+						}
+					});
 					uni.$u.route({
 						url: 'pages/index/index'
 					})

+ 21 - 25
pages/operationOverview/operationOverviewModel/operationOverviewModel.vue

@@ -4,7 +4,7 @@
 			<view class="model-content-1">
 				<view class="title">今日营收</view>
 				<view class="total">
-					<view class="total-title">23890.02元</view>
+					<view class="total-title">936.67元</view>
 					<view>
 						<u-icon label="" size="53" name="./../../../static/images/1.png"></u-icon>
 					</view>
@@ -12,22 +12,22 @@
 			</view>
 			<view class="model-content-2">
 				<view class="model-content-2-item">
-					<view>2342 <text>元</text> </view>
+					<view>393 <text>元</text> </view>
 					<view>今日欠费</view>
 				</view>
 				<view class="model-content-2-item">
-					<view>324 <text>次</text> </view>
+					<view>1485 <text>次</text> </view>
 					<view>今日停车</view>
 				</view>
 				<view class="model-content-2-item">
-					<view>203 <text>次</text> </view>
+					<view>85 <text>次</text> </view>
 					<view>今日扫码</view>
 				</view>
 			</view>
 			<view class="model-content-1">
 				<view class="title">路段总数</view>
 				<view class="total">
-					<view class="total-title red">23个</view>
+					<view class="total-title red">25个</view>
 					<view>
 						<u-icon label="" size="53" name="./../../../static/images/2.png"></u-icon>
 					</view>
@@ -36,7 +36,7 @@
 			<view class="model-content-1">
 				<view class="title">泊位总数</view>
 				<view class="total">
-					<view class="total-title orange">1296个</view>
+					<view class="total-title orange">1247个</view>
 					<view>
 						<u-icon label="" size="53" name="./../../../static/images/3.png"></u-icon>
 					</view>
@@ -73,18 +73,18 @@
 					categories: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
 					series: [{
 						name: '收益',
-						data: [100,
-							140,
-							230,
-							100,
-							130,
-							100,
-							100,
-							100,
-							100,
-							100,
-							100,
-							100
+						data: [0,
+							0,
+							0,
+							0,
+							0,
+							0,
+							0,
+							0,
+							227834.88,
+							279992.99,
+							284646.33,
+							182900.91
 						]
 					}],
 				},
@@ -92,10 +92,10 @@
 					xAxis: {},
 					yAxis: {
 						showTitle: true,
-						splitNumber: 5,
+						splitNumber: 6,
 						data: [{
 							title: '收益(元)',
-							max: 250,
+							max: 300000,
 							min: 0
 						}]
 					},
@@ -103,11 +103,7 @@
 						show: false
 					},
 					padding: [10, 0, 10, 0],
-					extra: {
-						column: {
-							width: 20
-						}
-					}
+					dataLabel: false
 				}
 			}
 		},

+ 36 - 25
pages/operationOverview/statisticalReport/statisticalReport.vue

@@ -17,8 +17,8 @@
 			</view>
 		</view>
 		<view class="report-total">
-			<view>应收金额 <text>447437.00</text>元,实收金额 <text>301719.00</text>元,现金收入
-				<text>285.00</text>元,非现金收<text>301434.00</text>元
+			<view>应收金额 <text>813013.00</text>元,实收金额 <text>572793.00</text>元,现金收入
+				<text>318.00</text>元,非现金收<text>572475.00</text>元
 			</view>
 		</view>
 		<view class="report-table">
@@ -68,57 +68,68 @@
 					list: [{
 							workNo: '00001',
 							name: '张政林',
-							roadName: '丰林路',
+							roadName: '',
 							shouldMoney: '0.00',
 							realMoney: '0.00',
-							arrearsMoney: '2.00',
-							h5Money: '3.00',
-							pdaMoney: '6.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
 							cashMoney: '0.00'
 						},
 						{
 							workNo: '00008',
 							name: '运维人员',
-							roadName: '玉兔山路',
+							roadName: '书香府邸,文明路,桂花路',
 							shouldMoney: '0.00',
 							realMoney: '0.00',
-							arrearsMoney: '2.00',
-							h5Money: '3.00',
-							pdaMoney: '6.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
 							cashMoney: '0.00'
 						},
 						{
 							workNo: '00012',
-							name: '陈静',
-							roadName: '教育路',
+							name: '园丁路巡查员',
+							roadName: '园丁路',
 							shouldMoney: '0.00',
 							realMoney: '0.00',
-							arrearsMoney: '2.00',
-							h5Money: '3.00',
-							pdaMoney: '6.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
 							cashMoney: '0.00'
 						},
 						{
 							workNo: '00013',
-							name: '孟大顺',
-							roadName: '党固路三段',
+							name: '物资路巡查员',
+							roadName: '物资路',
 							shouldMoney: '0.00',
 							realMoney: '0.00',
-							arrearsMoney: '2.00',
-							h5Money: '3.00',
-							pdaMoney: '6.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
 							cashMoney: '0.00'
 						},
 						{
 							workNo: '00014',
-							name: '田志英',
-							roadName: '本杰路',
+							name: '丰林路巡查员',
+							roadName: '丰林路',
 							shouldMoney: '0.00',
 							realMoney: '0.00',
-							arrearsMoney: '2.00',
-							h5Money: '3.00',
-							pdaMoney: '6.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
 							cashMoney: '0.00'
+						},
+						{
+							workNo: '00015',
+							name: '可处路巡查员',
+							roadName: '可处路二段',
+							shouldMoney: '3.00',
+							realMoney: '0.00',
+							arrearsMoney: '0.00',
+							h5Money: '0.00',
+							pdaMoney: '0.00',
+							cashMoney: '3.00'
 						}
 					]
 				}

+ 2 - 5
pages/patrolManagement/patrolManagement.vue

@@ -16,15 +16,12 @@
 					}, {
 						name: '设备异常记录',
 						url: 'pages/patrolManagement/abnormalRecords/abnormalRecords'
-					}, {
-						name: '巡检记录',
-						url: 'pages/patrolManagement/patrolRecords/patrolRecords'
 					}, {
 						name: '巡检处置记录',
-						url: 'pages/patrolManagement/patrolRecords/patrolRecords'
+						url: ''
 					}, {
 						name: '应急处置记录',
-						url: 'pages/patrolManagement/patrolRecords/patrolRecords'
+						url: ''
 					}]
 			}
 		},

BIN=BIN
static/images/mana-icon.png


BIN=BIN
static/images/order-icon.png


BIN=BIN
static/images/running-icon.png