فهرست منبع

improve: 回跳页面不更新

From-wh 2 سال پیش
والد
کامیت
b1f1b8c110
1فایلهای تغییر یافته به همراه10 افزوده شده و 6 حذف شده
  1. 10 6
      template/uni-app/pages/admin/orderList/index.vue

+ 10 - 6
template/uni-app/pages/admin/orderList/index.vue

@@ -161,6 +161,8 @@
 		onLoad(option) {
 		onLoad(option) {
 			let type = option.types;
 			let type = option.types;
 			this.where.status = type;
 			this.where.status = type;
+		},
+		onShow() {
 			this.init();
 			this.init();
 		},
 		},
 		methods: {
 		methods: {
@@ -369,16 +371,18 @@
 </script>
 </script>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
-	.pos-order-list {
+	.pos-order-list {
 		padding-top: 96rpx;
 		padding-top: 96rpx;
+
 		.search {
 		.search {
 			padding-left: 30rpx;
 			padding-left: 30rpx;
 			padding-top: 30rpx;
 			padding-top: 30rpx;
 			background-color: #fff;
 			background-color: #fff;
-			position: fixed;
-			top: 0;
-			left: 0;
+			position: fixed;
+			top: 0;
+			left: 0;
 			z-index: 99;
 			z-index: 99;
+
 			.input {
 			.input {
 				width: 598rpx;
 				width: 598rpx;
 				background-color: #f7f7f7;
 				background-color: #f7f7f7;
@@ -476,8 +480,8 @@
 
 
 	.pos-order-list .list .item .operation {
 	.pos-order-list .list .item .operation {
 		padding: 20upx 30upx;
 		padding: 20upx 30upx;
-		margin-top: 3upx;
-		display: flex;
+		margin-top: 3upx;
+		display: flex;
 		justify-content: right;
 		justify-content: right;
 	}
 	}