Quellcode durchsuchen

调整饼图版本, 为空列表

zhengkaixin vor 3 Jahren
Ursprung
Commit
6c93238b8d

+ 3 - 2
.env.test.js

@@ -1,8 +1,8 @@
 const UNI_APP = {  
 
     // BASE_URL: 'http://192.168.77.162:8080/charging-station/' ,
-	//BASE_URL: 'https://charging.xiaoxinda.com/charging-station-test/',
-    BASE_URL: 'https://charging.xiaoxinda.com/charging-station-server/',
+	BASE_URL: 'https://charging.xiaoxinda.com/charging-station-test/',
+   // BASE_URL: 'https://charging.xiaoxinda.com/charging-station-server/',
    
 
 	NODE_ENV :"test",
@@ -13,6 +13,7 @@ const UNI_APP = {
 	VUE_APP_WXAPPID:"wx7e70eb62a8459869",
 	//zkx的测试openId
 	//openId:"oHjCawsJ5blME36lHaSpSVfEhleU",
+	//	openId:"1000",
 	openId:"oHjCawigqi8SEAwutwkQ-VEgdp3k",
 	//zq的测试openId
 	//openId:"oHjCawsxTJkxixR74OVp7aCKahj8",

+ 2 - 0
README.md

@@ -59,6 +59,8 @@ sudo pfctl -ef /etc/pf-tomcat.conf
 
 
 redirectTo
+npm install echarts@3.6.2 --save
+
 
 
 u-loadmore//加载更多

+ 1 - 1
package.json

@@ -7,7 +7,7 @@
  },
  "dependencies": {
   "compression-webpack-plugin": "^8.0.1",
-  "echarts": "^5.3.2",
+  "echarts": "^3.8.4",
   "uni-crazy-router": "0.0.31",
   "uni-simple-router": "^2.0.1",
   "uview-ui": "^1.8.4",

+ 5 - 1
pagesFinance/detailed/index.vue

@@ -94,7 +94,10 @@
 			</view>
 		</u-popup>
 		<view class="detailed">
-			
+				<view style="text-align: center;margin-top: 100px" v-if="!list.length">
+					<img src="@/assets/img/blankpage.png">
+					<view>查询为空</view>
+				</view>
 				
 				<view class="detailed-list" v-for="(item ,index) in list"
 				@click="gotoUrl('pagesFinance/detailed/details?id='+item.id)"
@@ -115,6 +118,7 @@
 						</view>
 					</view>
 				</view>
+			<u-divider v-if="list.length == recordsTotal" color="#B6BDC3" style="margin-top:20px;" bg-color="#f4f0f0">已经到底了</u-divider>
 			
 			 
 		</view>

+ 23 - 1
pagesFinance/statistics/index.vue

@@ -215,7 +215,7 @@
 				}
 				// 指定图表的配置项和数据
 				var option = {
-
+					
 					tooltip: {
 						trigger: 'item'
 					},
@@ -235,6 +235,28 @@
 								shadowOffsetX: 0,
 								shadowColor: 'rgba(0, 0, 0, 0.5)'
 							}
+						},
+						itemStyle:{
+							normal:{
+								color:function(colors){
+									
+									var list = [
+									           '#fc8251',
+									           '#5470c6',
+									           '#91cd77',
+									           '#ef6567',
+									           '#f9c956',
+									           '#75bedc',
+											   '#fc8251',
+											   '#5470c6',
+											   '#91cd77',
+											   '#ef6567',
+											   '#f9c956',
+											   '#75bedc'
+									         ]
+									return list[colors.dataIndex]
+								}
+							}
 						}
 					}]
 				};

+ 5 - 2
pagesFinance/user/chargingDetails.vue

@@ -138,7 +138,10 @@
 					</view>
 				</view>
 			</view>
-			
+			<view style="
+    text-align: center;
+    color: #999999;
+">*充电费用仅供参考,请以充电桩上的费用为准。</view>
 			
 		</view>
 
@@ -180,7 +183,7 @@
 	// 主体
 	.main{
 		width: 100%;
-		margin-top: 44px;
+		//margin-top: 44px;
 		// margin-bottom: 64px;
 		//padding-bottom: 234px;
 		.main-detail{

+ 6 - 0
pagesFinance/user/deviceList.vue

@@ -11,6 +11,10 @@
 		<view class="deviceList"
 		
 		>
+		<view style="text-align: center;margin-top: 100px" v-if="!list.length">
+			<img src="@/assets/img/blankpage.png">
+			<view>查询为空</view>
+		</view>
 			<view v-for="(item ,index) in list" :key="item.id"
 			@click="gotoUrl('pagesFinance/user/deviceDetails?id='+item.id)"
 			:class="{
@@ -30,6 +34,8 @@
 					<view class="deviceList-label">{{item.roleName}}</view>
 				</view>
 			</view>
+			<u-divider v-if="list.length == recordsTotal" color="#B6BDC3" style="margin-top:20px;" bg-color="#f4f0f0">已经到底了</u-divider>
+			
 		<!-- 	<view class="deviceList-item deviceList-bg2">
 				<view class="deviceList-head">荆鹏软件园充电站</view>
 				<view class="deviceList-main">A0001</view>

+ 5 - 1
pagesFinance/user/withdrawRecord.vue

@@ -2,7 +2,10 @@
 	<view>
 		<u-navbar title="提现记录"></u-navbar>
 		<view class="detailed">
-		
+			<view style="text-align: center;margin-top: 100px" v-if="!list.length">
+				<img src="@/assets/img/blankpage.png">
+				<view>没有提现记录</view>
+			</view>
 			<view class="detailed-list"  
 			:key="index" 
 			v-for="(item ,index) in list" >
@@ -25,6 +28,7 @@
 				</view>
 			
 			</view>
+			<u-divider v-if="list.length == recordsTotal" color="#B6BDC3" style="margin-top:20px;" bg-color="#f4f0f0">已经到底了</u-divider>
 			
 		 
 		</view>