Commit 7f0ea379 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent b7f81418
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
.row { .row {
margin: 8rpx 15rpx; margin: 8rpx 15rpx;
marign-bottom: 0; margin-bottom: 1rpx;
} }
.row:last-child { .row:last-child {
......
...@@ -295,6 +295,13 @@ ...@@ -295,6 +295,13 @@
}; };
}, },
methods: { methods: {
loadData(){
setTimeout(() => {
if (this.$refs.paging != null) {
this.$refs.paging.reload();
}
}, 500);
},
showMaskFuc() { showMaskFuc() {
let showFollowMask = uni.getStorageSync('show-follow-mask') || ''; let showFollowMask = uni.getStorageSync('show-follow-mask') || '';
...@@ -395,8 +402,8 @@ ...@@ -395,8 +402,8 @@
} }
}, },
handleBanner(item) { handleBanner(item) {
navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)) + // navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)) +
'&tt_album_id=' + item.douyinAlbumId + '&tt_episode_id=' + item.douyinEpisodeId); // '&tt_album_id=' + item.douyinAlbumId + '&tt_episode_id=' + item.douyinEpisodeId);
}, },
handleInfo(item) { handleInfo(item) {
navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)) + navigateTo(`/pagesC/ttvideo/ttVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)) +
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
}, },
mounted() { mounted() {
// 渲染完成 初始化首页数据 // 渲染完成 初始化首页数据
this.loadComponentData(); // this.loadComponentData();
}, },
onHide() { onHide() {
try { try {
......
...@@ -405,7 +405,7 @@ ...@@ -405,7 +405,7 @@
.row { .row {
margin: 8rpx 15rpx; margin: 8rpx 15rpx;
marign-bottom: 0; margin-bottom: 0;
} }
.row:last-child { .row:last-child {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment