wy 1 년 전
부모
커밋
60e824fbd4
3개의 변경된 파일12개의 추가작업 그리고 54개의 파일을 삭제
  1. 9 9
      components/Navbar/Navbar.vue
  2. 0 3
      pages/service-recode/components/changeDrawer.vue
  3. 3 42
      pages/service-recode/components/rechargeDrawer.vue

+ 9 - 9
components/Navbar/Navbar.vue

@@ -4,7 +4,7 @@
 			<image src="/static/left/logo.png"></image>
 		</view>
 		<view class="station_box">
-			{{codeState || '-'}}
+			{{'No.'+codeState || '-'}}
 			<image class="station_box_img" :src="cloud?`/static/left/link.png`:`/static/left/close.png`">
 			</image>
 		</view>
@@ -161,7 +161,10 @@
 			this.getuserinfo()
 			this.getnum()
 			this.getState()
-			this.cloudConnState()
+			
+			setInterval(()=>{
+				this.cloudConnState()
+			},2000)
 		},
 		onShow() {
 
@@ -298,25 +301,22 @@
 
 	.station_box {
 		width: 150px;
-		background: #1C263A;
-		border: 1px solid #26334C;
+		// background: #1C263A;
+		// border: 1px solid #26334C;
 		font-size: 16px;
 		font-weight: 500;
 		color: rgba(153, 174, 197, 0.65);
 		text-shadow: 0px 0px 4px rgba(39, 69, 201, 0.5);
 		border-radius: 4px;
-		height: 36px;
-		line-height: 36px;
 		margin-top: 10px;
 		position: relative;
-		padding-left: 10px;
 
 		.station_box_img {
 			position: absolute;
 			width: 20px;
 			height: 20px;
-			right: 10px;
-			top: 8px;
+			right: 20px;
+			top: 3px;
 		}
 	}
 </style>

+ 0 - 3
pages/service-recode/components/changeDrawer.vue

@@ -46,9 +46,6 @@
 			<uni-forms-item label="车辆识别码:" name="name" label-align="right" label-width="120px">
 				<uni-easyinput type="text" v-model="infodata.vehicleVin || '-'" placeholder="请输入" disabled />
 			</uni-forms-item>
-			<uni-forms-item label="车辆里程(km):" name="name" label-align="right" label-width="120px">
-				<uni-easyinput type="text" v-model="infodata.vehicleOdo || '-'" placeholder="请输入" disabled />
-			</uni-forms-item>
 		</uni-forms>
 		<uni-forms :modelValue="infodata" v-if="batteryInfoActive == 2">
 			<uni-forms-item label="预选电池仓位:" name="name" label-align="right" label-width="120px">

+ 3 - 42
pages/service-recode/components/rechargeDrawer.vue

@@ -1,8 +1,8 @@
 <template>
 	<view class="content_main">
 		<scroll-view style="height: 100%;" scroll-y="true">
-		<view class="CarnoData" v-if="!dat"></view>
-		<view class="Carlist" v-for="(item,index) in dat" :key="index">
+		<view class="CarnoData" v-if="!infodata"></view>
+		<view class="Carlist" v-for="(item,index) in infodata" :key="index">
 			<view class="carDetail">
 				<view class="vinMa">
 					<view>开始时间段</view>
@@ -32,46 +32,7 @@
 		props: ['infodata'],
 		data() {
 			return {
-				dat:[{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				},
-				{
-					startTime:123,
-					endTime:456,
-					chargePower:789
-				}]
+				
 			}
 		},
 	}