Skip to content

Commit 166555f

Browse files
committed
add swiper-list
1 parent ee691d4 commit 166555f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

pages.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,12 +1119,12 @@
11191119
},
11201120
// #endif
11211121
// #ifdef APP-PLUS
1122-
// {
1123-
// "path": "swiper-list-nvue/swiper-list-nvue",
1124-
// "style": {
1125-
// "navigationBarTitleText": "swiper-list"
1126-
// }
1127-
// },
1122+
{
1123+
"path": "swiper-list-nvue/swiper-list-nvue",
1124+
"style": {
1125+
"navigationBarTitleText": "swiper-list"
1126+
}
1127+
},
11281128
// #endif
11291129
{
11301130
"path": "scheme/scheme",

pages/tabBar/template/template.nvue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
},
9393
// #endif
9494
// #ifdef APP-NVUE
95-
// {
96-
// name: 'swiper-list',
97-
// url: 'swiper-list-nvue'
98-
// },
95+
{
96+
name: 'swiper-list',
97+
url: 'swiper-list-nvue'
98+
},
9999
// #endif
100100
{
101101
name: 'GlobalData和vuex',

pages/template/swiper-list-nvue/swiper-list-nvue.nvue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
}
6868
},
6969
onLoad() {
70-
this.pageHeight = uni.getSystemInfoSync().windowHeight;
7170
for (var i = 0; i < 6; i++) {
7271
this.tabList.push({
7372
id: "tab" + i,
@@ -77,6 +76,7 @@
7776
}
7877
},
7978
onReady() {
79+
this.pageHeight = uni.getSystemInfoSync().windowHeight;
8080
this._lastTabIndex = 0;
8181
this.swiperWidth = 0;
8282
this.tabbarWidth = 0;

0 commit comments

Comments
 (0)