Ver Fonte

背景颜色修改

李天标 há 6 anos atrás
pai
commit
160e0275fc
2 ficheiros alterados com 26 adições e 18 exclusões
  1. 20 14
      pages/Charts/mainStatistics.vue
  2. 6 4
      pages/User/user.vue

+ 20 - 14
pages/Charts/mainStatistics.vue

@@ -1,10 +1,10 @@
 <template>
 	<view>
-		<view class="qiun-title-bar">
-			<view class="qiun-title-dot-light">今日收入总额: {{dayTotalMoney}}</view>
-			<view class="qiun-title-dot-light">本周收入总额: {{weekTotalMoney}}</view>
-			<view class="qiun-title-dot-light">本月收入总额: {{monthTotalMoney}}</view>
-			<view class="qiun-title-dot-light">本年度收入总额: {{yearTotalMoney}}</view>
+		<view class="qiun-title-bar color">
+			<view class="qiun-title-dot-light"><font style="color: #FFFFFF;">今日收入总额: {{dayTotalMoney}}</font></view>
+			<view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本周收入总额: {{weekTotalMoney}}</font></view>
+			<view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本月收入总额: {{monthTotalMoney}}</font></view>
+			<view class="qiun-title-dot-light"><font style="color: #FFFFFF;">本年度收入总额: {{yearTotalMoney}}</font></view>
 		</view>
 		<view class="qiun-columns">
 			<view class="qiun-bg-white qiun-title-bar qiun-common-mt">
@@ -107,6 +107,7 @@
 		// },
 		onShow() {
 			var test = uni.getStorageSync('test');
+			//判断是不是初次登陆
 			if(test == 2){
 				this.init();
 			}
@@ -130,6 +131,7 @@
 				await this.initDateRang(new Date(),'week');
 				await this.initDateRang(new Date(),'month');
 				await this.initDateRang(new Date(),'year');
+				//初次登陆跳转后,把test变成2
 				uni.setStorageSync('test', '2');
 			},
 			initDateRang(day,chartType) {
@@ -439,7 +441,7 @@
 	}
 	
 	.qiun-common-mt {
-		margin-top: 10upx;
+		margin-top: 0upx;
 	}
 	
 	.qiun-bg-white {
@@ -447,14 +449,18 @@
 	}
 	
 	.qiun-title-bar {
-		width: 96%;
-		padding: 10upx 2%;
+		width: 100%;
+		/* padding: 10upx 2%; */
 		flex-wrap: nowrap;
 	}
-	
+	.color{
+		background:#56de9e;
+	}
 	.qiun-title-dot-light {
-		border-left: 10upx solid #0ea391;
-		padding-left: 10upx;
+		/* border-left: 10upx solid #0ea391; */
+		padding-top: 10upx;
+		border-left: 20upx;
+		padding-left: 20upx;
 		font-family: "宋体";
 		font-size: 50upx;
 		color: #000000;
@@ -462,14 +468,14 @@
 	
 	.qiun-charts {
 		width: 750upx;
-		height: 500upx;
+		height: 430upx;
 		background-color: #FFFFFF;
 		margin: auto;
 	}
 	
 	.charts {
-		width: 750upx;
-		height: 500upx;
+		width: 600upx;
+		height: 430upx;
 		background-color: #FFFFFF;
 		margin: auto;
 	}

+ 6 - 4
pages/User/user.vue

@@ -62,15 +62,17 @@
 			}, 800);
 		},
 		onShow() {
-			uni.startPullDownRefresh();
+			// uni.startPullDownRefresh();
 			var me = this;
 			var name = uni.getStorageSync("name");
 			me.name = name;
 			var listName = uni.getStorageSync("listName");
 			me.listName = listName;
-			var adminId = listName[0].adminId;
-			if (adminId != '1' && adminId != null) {
-				me.show = true;
+			if (listName != '' && listName != null) {
+				var adminId = listName[0].adminId;
+				if (adminId != '1' && adminId != null) {
+					me.show = true;
+				}
 			}
 		},
 		onLoad() {