lilei 2 年 前
コミット
f4252296a9
2 ファイル変更9 行追加10 行削除
  1. 4 2
      pages/shuntBackManage/shelfList.vue
  2. 5 8
      pages/soldOut/shelfList.vue

+ 4 - 2
pages/shuntBackManage/shelfList.vue

@@ -66,13 +66,15 @@ export default {
 			pageSize: 20
 		};
 	},
-	onLoad() {
-		this.getShelfList();
+	onReady() {
 		uni.setNavigationBarColor({
 			frontColor: '#ffffff',
 			backgroundColor: this.$config('primaryColor')
 		})
 	},
+	onLoad() {
+		this.getShelfList();
+	},
 	methods: {
 		clearSearch() {
 			this.pageNo = 1;

+ 5 - 8
pages/soldOut/shelfList.vue

@@ -102,14 +102,11 @@
 				}
 			}
 		},
-		onLoad(opts) {
-			 uni.setNavigationBarColor({
-			 	frontColor: '#ffffff',
-			 	backgroundColor: this.$config('primaryColor')
-			 })
-		},
-		onUnload() {
-			uni.$off("setCustome")
+		onReady() {
+			uni.setNavigationBarColor({
+				frontColor: '#ffffff',
+				backgroundColor: this.$config('primaryColor')
+			})
 		},
 		onShow() {
 			this.search()