|
|
@@ -1,24 +1,32 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<!-- <CXBBasePage :show="true" title="">-->
|
|
|
3
|
+ <div
|
|
|
4
|
+ class="overflow-hidden fixed w-full z-10 f-nav-bar-base"
|
|
|
5
|
+ :style="navBarStyle"
|
|
|
6
|
+ :class="headerClass"
|
|
|
7
|
+ >
|
|
|
8
|
+ <div class="flex items-center f-nav-bar-content-base">
|
|
|
9
|
+ <div class="f-nav-bar-icon mr-1 i-tabler-chevron-left" @tap="clickLeftHandler"/>
|
|
|
10
|
+
|
|
|
11
|
+ <nut-searchbar
|
|
|
12
|
+ v-model="state.keyword" @search="loadList('reload')" @clear="loadList('reload')">
|
|
|
13
|
+ <!-- <template v-slot:leftout>-->
|
|
|
14
|
+ <!-- <div @tap="navBack">-->
|
|
|
15
|
+ <!-- <nut-icon name="left"></nut-icon>-->
|
|
|
16
|
+ <!-- </div>-->
|
|
|
17
|
+ <!-- </template>-->
|
|
|
18
|
+ <template v-slot:rightin>
|
|
|
19
|
+ <div @tap="loadList('reload')"
|
|
|
20
|
+ class="bg-[#D71608] text-white text-xs w-11 rounded-full text-center py-1 my-0.5 ">
|
|
|
21
|
+ 搜索
|
|
|
22
|
+ </div>
|
|
|
23
|
+ </template>
|
|
|
24
|
+ </nut-searchbar>
|
|
|
25
|
+ </div>
|
|
|
26
|
+
|
|
|
27
|
+ </div>
|
|
3
|
28
|
|
|
4
|
29
|
<div class="flex flex-col gap-3 ">
|
|
5
|
|
- <div
|
|
6
|
|
- class="overflow-hidden fixed top-0 w-full z-10"
|
|
7
|
|
- >
|
|
8
|
|
- <nut-searchbar
|
|
9
|
|
- v-model="state.keyword" @search="loadList('reload')" @clear="loadList('reload')">
|
|
10
|
|
- <!-- <template v-slot:leftout>-->
|
|
11
|
|
- <!-- <div @tap="navBack">-->
|
|
12
|
|
- <!-- <nut-icon name="left"></nut-icon>-->
|
|
13
|
|
- <!-- </div>-->
|
|
14
|
|
- <!-- </template>-->
|
|
15
|
|
- <template v-slot:rightout>
|
|
16
|
|
- <div @tap="loadList('reload')">
|
|
17
|
|
- 搜索
|
|
18
|
|
- </div>
|
|
19
|
|
- </template>
|
|
20
|
|
- </nut-searchbar>
|
|
21
|
|
- </div>
|
|
22
|
30
|
<!-- <image :src="homeBanner" mode="widthFix" class="h-10 w-full "></image>-->
|
|
23
|
31
|
|
|
24
|
32
|
<div class="w-screen h-65">
|
|
|
@@ -129,7 +137,7 @@ const statusBarHeight = systemInfo.statusBarHeight ?? 0
|
|
129
|
137
|
const userStore = useUserStore()
|
|
130
|
138
|
const navBarStyle = computed(() => {
|
|
131
|
139
|
return {
|
|
132
|
|
- paddingTop: `${statusBarHeight}px`,
|
|
|
140
|
+ paddingTop: `${statusBarHeight - 4}px`,
|
|
133
|
141
|
}
|
|
134
|
142
|
})
|
|
135
|
143
|
|
|
|
@@ -194,6 +202,17 @@ onShareTimeline(() => {
|
|
194
|
202
|
}
|
|
195
|
203
|
})
|
|
196
|
204
|
|
|
|
205
|
+const headerClass = ref('')
|
|
|
206
|
+
|
|
|
207
|
+onPageScroll((page) => {
|
|
|
208
|
+ // page.scrollTop
|
|
|
209
|
+ if (page.scrollTop >= 76 ) {
|
|
|
210
|
+ headerClass.value = '!bg-primary !text-white'
|
|
|
211
|
+ } else {
|
|
|
212
|
+ headerClass.value = ''
|
|
|
213
|
+ }
|
|
|
214
|
+})
|
|
|
215
|
+
|
|
197
|
216
|
|
|
198
|
217
|
|
|
199
|
218
|
function loadList(action: 'page' | 'reload', callback?: (items) => void) {
|
|
|
@@ -251,18 +270,37 @@ onPullDownRefresh(() => {
|
|
251
|
270
|
}, 300)
|
|
252
|
271
|
})
|
|
253
|
272
|
})
|
|
|
273
|
+
|
|
|
274
|
+function clickLeftHandler() {
|
|
|
275
|
+ uni.navigateBack()
|
|
|
276
|
+}
|
|
254
|
277
|
</script>
|
|
255
|
278
|
|
|
256
|
279
|
<route lang="yaml">
|
|
257
|
280
|
style:
|
|
|
281
|
+ navigationStyle: custom
|
|
258
|
282
|
navigationBarTitleText: 储蓄保会员
|
|
259
|
283
|
enablePullDownRefresh: true
|
|
260
|
284
|
</route>
|
|
261
|
|
-<style>
|
|
|
285
|
+<style lang="scss">
|
|
262
|
286
|
page {
|
|
263
|
287
|
background: #f8f8f8;
|
|
264
|
|
- --nut-searchbar-background: #fff;
|
|
265
|
|
- --nut-searchbar-input-background: #f8f8f8;
|
|
|
288
|
+ //--nut-searchbar-background: #fff;
|
|
|
289
|
+ //--nut-searchbar-input-background: #f8f8f8;
|
|
|
290
|
+ //--nut-searchbar-input-width: 60%;
|
|
|
291
|
+ --nut-searchbar-width: 65%;
|
|
|
292
|
+ //--nut-searchbar-padding: 0;
|
|
|
293
|
+//var(--nut-searchbar-width, 100%)
|
|
266
|
294
|
--nut-searchbar-input-box-shadow: none;
|
|
267
|
295
|
}
|
|
|
296
|
+.nut-searchbar {
|
|
|
297
|
+ background: transparent !important;
|
|
|
298
|
+
|
|
|
299
|
+}
|
|
|
300
|
+.nut-searchbar__search-input {
|
|
|
301
|
+ width: 60% !important;
|
|
|
302
|
+}
|
|
|
303
|
+.f-nav-bar-icon {
|
|
|
304
|
+ --at-apply: 'text-lg'
|
|
|
305
|
+}
|
|
268
|
306
|
</style>
|