Ver código fonte

1.待办事项 加空白页

guo 3 anos atrás
pai
commit
82c98e90ec

+ 24 - 3
operatingCompany/pages/upcoming/upcoming.vue

@@ -31,6 +31,12 @@
 			</view>
 		</view>
 
+		<!-- 无数据空白页 -->
+		<view class="nodataBox" v-if="data.length == 0">
+			<image src="../../static/img/pic_empty_def.png" mode="widthFix" class="nodataImg"></image>
+			<view class="noTxt">暂无数据</view>
+		</view>
+
 	</view>
 </template>
 
@@ -40,9 +46,9 @@
 			return {
 				data: [],
 			}
-		},
-		onShow() {
-			this.getData()
+		},
+		onShow() {
+			this.getData()
 		},
 		methods: {
 			goAppraise(v) {
@@ -114,5 +120,20 @@
 	.time {
 		font-size: 24rpx;
 		color: #666666;
+	}
+	/* 空白页css */
+	.nodataBox {
+		text-align: center;
+	}
+	
+	.nodataImg {
+		width: 400rpx;
+		padding-top: 300rpx;
+	}
+	
+	.noTxt {
+		font-size: 30rpx;
+		color: #999999;
+		padding-top: 50rpx;
 	}
 </style>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
operatingCompany/unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
operatingCompany/unpackage/dist/dev/.sourcemap/mp-weixin/pages/upcoming/upcoming.js.map


+ 6 - 0
operatingCompany/unpackage/dist/dev/mp-weixin/pages/upcoming/upcoming.js

@@ -166,6 +166,12 @@ __webpack_require__.r(__webpack_exports__);
 //
 //
 //
+//
+//
+//
+//
+//
+//
 var _default =
 {
   data: function data() {

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
operatingCompany/unpackage/dist/dev/mp-weixin/pages/upcoming/upcoming.wxml


+ 14 - 0
operatingCompany/unpackage/dist/dev/mp-weixin/pages/upcoming/upcoming.wxss

@@ -48,3 +48,17 @@
 	color: #666666;
 }
 
+/* 空白页css */
+.nodataBox {
+	text-align: center;
+}
+.nodataImg {
+	width: 400rpx;
+	padding-top: 300rpx;
+}
+.noTxt {
+	font-size: 30rpx;
+	color: #999999;
+	padding-top: 50rpx;
+}
+