@@ -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;
@@ -102,14 +102,11 @@
}
- onLoad(opts) {
- uni.setNavigationBarColor({
- frontColor: '#ffffff',
- backgroundColor: this.$config('primaryColor')
- })
- },
- onUnload() {
- uni.$off("setCustome")
+ uni.setNavigationBarColor({
+ frontColor: '#ffffff',
+ backgroundColor: this.$config('primaryColor')
+ })
onShow() {
this.search()