Forráskód Böngészése

修改首页样式

杨再金 2 éve
szülő
commit
b8d4fc2800

+ 1 - 1
common/config.js

@@ -4,5 +4,5 @@ if (process.env.NODE_ENV === 'development') {
 }
 export const config = {
 	baseUrl,
-	version: '0.1.9'
+	version: '0.2.0'
 }

+ 3 - 3
pages/collectorManagement/performanceAnalysis/performanceAnalysis.vue

@@ -160,13 +160,13 @@ export default {
         let timestamp = new Date(val).valueOf();
         switch (this.params.reportType) {
           case 0:
-            this.currentDate = this.$u.timeFormat(timestamp, 'yyyy年mm月dd日');
+            this.currentDate = uni.$u.timeFormat(timestamp, 'yyyy年mm月dd日');
             break;
           case 1:
-            this.currentDate = this.$u.timeFormat(timestamp, 'yyyy年mm月');
+            this.currentDate = uni.$u.timeFormat(timestamp, 'yyyy年mm月');
             break;
           case 2:
-            this.currentDate = this.$u.timeFormat(timestamp, 'yyyy年');
+            this.currentDate = uni.$u.timeFormat(timestamp, 'yyyy年');
             break;
         }
       }

+ 10 - 3
pages/index/index.scss

@@ -56,7 +56,7 @@
 					&-name {
 						color: #787878;
 						font-size: 13px;
-						font-family: PingFangSC-Regular, PingFang SC;
+						font-family: 'PingFangSC-Regular, PingFang SC';
 					}
 				}
 			}
@@ -71,9 +71,10 @@
 					flex-wrap: wrap;
 					padding: 15px 0 0;
 					&-item {
-						width: 25%;
-						margin-bottom: 24px;
+						width: 23%;
 						text-align: center;
+						margin: 0 1%;
+						margin-bottom: 24px;
 						&-icon {
 							margin: 0 auto 9px;
 						}
@@ -81,6 +82,12 @@
 							font-size: 12px;
 							color: #787878;
 							font-family: PingFangSC-Regular, PingFang SC;
+							overflow: hidden;
+							white-space: nowrap;
+							text-overflow: ellipsis;
+							word-break: break-all;
+							margin: 0 auto;
+							width: 90%;
 						}
 					}
 					&-item:nth-child(4n) {