diff --git a/pages.json b/pages.json index d9bf482..6c14a7a 100644 --- a/pages.json +++ b/pages.json @@ -13,7 +13,8 @@ "style": { "navigationBarTitleText": "分类", "navigationBarBackgroundColor": "#f2f5f7", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "navigationStyle": "custom" } }, { diff --git a/pages/classify/classify.vue b/pages/classify/classify.vue index 06a29c0..c23a7ab 100644 --- a/pages/classify/classify.vue +++ b/pages/classify/classify.vue @@ -1,6 +1,177 @@ @@ -11,9 +182,12 @@ import { storeToRefs } from 'pinia';//实现解构付值 import { onLoad,onShow,onPullDownRefresh,onReachBottom } from "@dcloudio/uni-app" const counterStore = useCounterStore(); // 使用 Store //使用pinia:storeToRefs方法包裹(保持响应式更新,不使用视图无法更新) -// const { count,doubleCount } = storeToRefs(counterStore); +//const { count,doubleCount } = storeToRefs(counterStore); +const statusHeight = ref(uni.getMenuButtonBoundingClientRect()['height']) +const headerHeight = ref(uni.getSystemInfoSync()['statusBarHeight']) +const ScrollLeft = ref(0); -// 使用 uni.onLoad 监听页面加载 +//使用 uni.onLoad 监听页面加载 onLoad((options) => { }); @@ -21,11 +195,11 @@ onShow(() => { }); onPullDownRefresh(()=>{ - -}) + uni.stopPullDownRefresh(); +}); onReachBottom(()=>{ -}) +});