flat: 性能优化
This commit is contained in:
@@ -298,6 +298,7 @@ function nextDetail(job) {
|
|||||||
function openFilter() {
|
function openFilter() {
|
||||||
showFilter.value = true;
|
showFilter.value = true;
|
||||||
emits('onShowTabbar', false);
|
emits('onShowTabbar', false);
|
||||||
|
uni.hideTabBar();
|
||||||
selectFilterModel.value?.open({
|
selectFilterModel.value?.open({
|
||||||
title: '筛选',
|
title: '筛选',
|
||||||
maskClick: true,
|
maskClick: true,
|
||||||
@@ -310,10 +311,12 @@ function openFilter() {
|
|||||||
}
|
}
|
||||||
showFilter.value = false;
|
showFilter.value = false;
|
||||||
getJobList('refresh');
|
getJobList('refresh');
|
||||||
|
uni.showTabBar();
|
||||||
},
|
},
|
||||||
cancel: () => {
|
cancel: () => {
|
||||||
showFilter.value = false;
|
showFilter.value = false;
|
||||||
emits('onShowTabbar', true);
|
emits('onShowTabbar', true);
|
||||||
|
uni.showTabBar();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<text class="text1">左滑查看视频</text>
|
<text class="text1">左滑查看视频</text>
|
||||||
<text class="text2">快去体验吧~</text>
|
<text class="text2">快去体验吧~</text>
|
||||||
<view class="goExperience" @click="goExperience">去体验</view>
|
<view class="goExperience" @click="goExperience">去体验</view>
|
||||||
<view class="maskFristEntry-Close" @click="closeFristEntry">1</view>
|
<view class="maskFristEntry-Close" @click="closeFristEntry"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -80,7 +80,9 @@ onLoad(() => {
|
|||||||
// 判断浏览器是否有 fristEntry 第一次进入
|
// 判断浏览器是否有 fristEntry 第一次进入
|
||||||
let fristEntry = uni.getStorageSync('fristEntry') === false ? false : true; // 默认未读
|
let fristEntry = uni.getStorageSync('fristEntry') === false ? false : true; // 默认未读
|
||||||
maskFristEntry.value = fristEntry;
|
maskFristEntry.value = fristEntry;
|
||||||
// maskFristEntry.value = true;
|
if (fristEntry) {
|
||||||
|
uni.hideTabBar();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
@@ -187,10 +189,12 @@ function changeSwiperMsgType(e) {
|
|||||||
function closeFristEntry() {
|
function closeFristEntry() {
|
||||||
uni.setStorageSync('fristEntry', false);
|
uni.setStorageSync('fristEntry', false);
|
||||||
maskFristEntry.value = false;
|
maskFristEntry.value = false;
|
||||||
|
uni.showTabBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
function goExperience() {
|
function goExperience() {
|
||||||
closeFristEntry();
|
closeFristEntry();
|
||||||
|
uni.showTabBar();
|
||||||
state.current = 1;
|
state.current = 1;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user