Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
U
uni-app-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tangfh
uni-app-base
Commits
40ca9b14
Commit
40ca9b14
authored
May 25, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
f16e5cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
base-page.vue
pages/template/base-page.vue
+1
-1
base-tab.vue
pages/template/base-tab.vue
+3
-3
No files found.
pages/template/base-page.vue
View file @
40ca9b14
...
...
@@ -8,7 +8,7 @@
@
refresherrefresh=
"onRefresh"
@
scrolltolower=
"onLoadMore"
:refresher-triggered=
"refresherTriggered"
:style=
"
{'height':(scrollViewHeight+'px')}">
<view
class=
"flex-column"
v-if=
"items.length > 0"
:style=
"
{'min-height': (scrollViewHeight + 'px')}">
<view
class=
"view-tmp1 active"
v-for=
"(item, index) in
tab.data
"
:index=
"index"
:key=
"index"
<view
class=
"view-tmp1 active"
v-for=
"(item, index) in
items
"
:index=
"index"
:key=
"index"
:item=
"item"
@
onItemClick=
"onItemClick"
></view>
</view>
<c-status-view
@
onStatusClick=
"onStatusClick"
v-if=
"contentStatus.value"
></c-status-view>
...
...
pages/template/base-tab.vue
View file @
40ca9b14
...
...
@@ -230,11 +230,11 @@
this
.
switchTab
(
index
);
},
onTabChange
(
e
)
{
if
(
this
.
tabList
[
this
.
tabIndex
].
data
.
length
>
0
)
{
return
;
}
let
index
=
e
.
target
.
current
||
e
.
detail
.
current
;
this
.
switchTab
(
index
);
if
(
this
.
tabList
[
index
].
data
.
length
>
0
)
{
return
;
}
this
.
getList
(
index
);
},
switchTab
(
index
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment