소스 검색

对已入场且已经录入车牌的欠费车辆进行欠费标识,配置打包环境

gcz 2 년 전
부모
커밋
70f8c25f4a
4개의 변경된 파일44개의 추가작업 그리고 13개의 파일을 삭제
  1. 11 11
      common/config.js
  2. 24 0
      package.json
  3. 9 2
      pages/deviceList/deviceListType1/deviceListType1.vue
  4. BIN
      static/img/arrearage.png

+ 11 - 11
common/config.js

@@ -1,3 +1,12 @@
+const node_dev = process.env.H_NODE_ENV;
+//运行到浏览器用的
+let baseUrl='https://wx.hw.hongweisoft.com/parking/inspection';
+let upFileUrl='https://wx.hw.hongweisoft.com/ycpharmacy/file/upload/single/minio';
+//打包用的
+if (node_dev) {
+ baseUrl = process.env.H_BASE_URL;
+ upFileUrl = process.env.H_UP_FILE_URL
+}
 const config = {
 	// wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid 
 	
@@ -9,17 +18,8 @@ const config = {
 	platform:'h5',
 	//#endif
 	
-	//64
-	baseUrl:'https://wx.hw.hongweisoft.com/parking/inspection',// 64服务器
-	upFileUrl:'https://wx.hw.hongweisoft.com/ycpharmacy/file/upload/single/minio',
-	
-	// 正式
-	// baseUrl:'',// 64服务器
-	// upFileUrl:'',
-	
-	
-	
-	
+	baseUrl:baseUrl,
+	upFileUrl:upFileUrl,
 	
 	// 设备类型
 	deviceTypeList:[

+ 24 - 0
package.json

@@ -0,0 +1,24 @@
+{
+  "uni-app": {
+    "scripts": {
+      "build:build64": {
+        "title": "xj:build64",
+        "env": {
+          "UNI_PLATFORM": "h5",
+          "H_NODE_ENV": "development",
+          "H_BASE_URL": "https://wx.hw.hongweisoft.com/parking/inspection",
+          "H_UP_FILE_URL": "https://wx.hw.hongweisoft.com/ycpharmacy/file/upload/single/minio"
+        }
+      },
+      "build:buildOnline": {
+        "title": "xj:online",
+        "env": {
+          "UNI_PLATFORM": "h5",
+          "H_NODE_ENV": "production",
+          "H_BASE_URL": "",
+          "H_UP_FILE_URL": ""
+        }
+      }
+    }
+  }
+}

+ 9 - 2
pages/deviceList/deviceListType1/deviceListType1.vue

@@ -12,7 +12,7 @@
 		<!-- <u-gap height="20" bg-color="#F6F6F6"></u-gap> -->
 		<mescroll-uni ref="mescrollRef01" @init="mescrollInit" :top="config.platform=='h5'?220:300" :down="downOption" @down="downCallback" :up="upOption" @up="upCallback" @emptyclick="emptyClick">
 			<view class="device-list u-flex u-flex-wrap u-row-start">
-				<view class="device-list-item u-m-b-24" v-for="item in dataList" :key="item.id"
+				<view class="device-list-item u-m-b-24" :class="{'arrearage':item.vehicleNoStatus}" v-for="item in dataList" :key="item.id"
 				@click="goDetails(item.id)">
 					<view class="top u-flex u-flex-wrap u-row-between">
 						<view class="space-name">{{item.spaceName}}</view>
@@ -24,7 +24,10 @@
 							<image v-else class="img" src="../../../static/img/electricity-g.png" mode="heightFix"></image>
 						</view>
 					</view>
-					<view class="vehicleNo">{{item.vehicleNo}}</view>
+					<view class="vehicleNo">
+						{{item.vehicleNo}}
+						<image v-if="item.vehicleNoStatus" class="arrearage-img" src="../../../static/img/arrearage.png" mode="heightFix"></image>
+					</view>
 					<image v-if="item.placeStatus!= 1" class="carImg" src="../../../static/img/qiche-g.png" mode="heightFix"></image>
 					<image v-else class="carImg" src="../../../static/img/qiche.png" mode="heightFix"></image>
 					<view class="parkingTime">{{item.parkingTime}}</view>
@@ -219,6 +222,10 @@
 			color: #212121;
 			line-height: 42rpx;
 			text-align: center;
+			.arrearage-img{
+				width: 35rpx;
+				height: 35rpx;
+			}
 		}
 		.carImg{
 			height: 118rpx;

BIN
static/img/arrearage.png