no message

This commit is contained in:
A1300399510 2025-01-15 11:27:27 +08:00
parent d08a1595e3
commit 21ea09d6fe
3 changed files with 10 additions and 8 deletions

View File

@ -15,6 +15,10 @@ Component({
if (res) this.getAdmissionsOfficer()
}
},
isShow: {
type: Boolean,
value: false,
},
},
/**
@ -148,6 +152,7 @@ Component({
startCountdown(date) {
clearTimeout(this.data.countdownInterval);
if (!this.data.isShow) return
const newTime = new Date().getTime()
const dateTime = new Date(date).getTime()
let timer = dateTime - newTime

View File

@ -29,7 +29,7 @@ Page({
isloginBtnState: false,
isInitFinish: false,
user: {},
swiperState: false,
isShow: false,
banner: [],
@ -739,7 +739,7 @@ Page({
this.setData({
swiperState: true,
isShow: true,
})
},
@ -748,11 +748,8 @@ Page({
*/
onHide() {
this.setData({
swiperState: false,
isShow: false,
})
const admissionBox = this.selectComponent('#admission-box')
clearTimeout(admissionBox.data.countdownInterval)
},
/**

View File

@ -3,7 +3,7 @@
<block wx:if="{{ banner.length != 0 }}">
<header-nav bgcolor="{{ isFirstPattern ? 'transparent' : '#f5f5f5' }}" user="{{ user }}" isIndexPage="{{ true }}">港校项目库</header-nav>
<view class="slideshow-box">
<swiper wx:if="{{ swiperState }}" class="swiper" autoplay="{{ true }}" circular style="height: {{(swiperHeightList[swiperCurrent] + 5) || 124 }}px;" current="{{ swiperCurrent || 0 }}" bindchange="bindchangeSwiper">
<swiper wx:if="{{ isShow }}" class="swiper" autoplay="{{ true }}" circular style="height: {{(swiperHeightList[swiperCurrent] + 5) || 124 }}px;" current="{{ swiperCurrent || 0 }}" bindchange="bindchangeSwiper">
<swiper-item class="swiper-item" wx:for="{{ banner }}" wx:key="index">
<image class="slideshow-img" src="{{ item.imageurl }}" mode="widthFix" bindload="loadHeadSwiper" bind:tap="handleSwiper" data-index="{{ index }}" show-menu-by-longpress="{{ true }}"></image>
</swiper-item>
@ -62,7 +62,7 @@
</view>
</view>
<admission-box id="admission-box" initFinish="{{ isInitFinish }}"></admission-box>
<admission-box initFinish="{{ isInitFinish }}" isShow="{{ isShow }}"></admission-box>
<view wx:if="{{ fateProject.length != 0 }}" class="fate">
<view class="head flexacenter">