diff --git a/components/s-video/s-video.vue b/components/s-video/s-video.vue index 1ca4b61..7e0e024 100644 --- a/components/s-video/s-video.vue +++ b/components/s-video/s-video.vue @@ -170,6 +170,11 @@ this.resCheck = true; this.question = false; this.innerAudioContext.play(); + + // this.timer = setTimeout(() => { + // this.showTitle = false + // clearTimeout(this.timer) + // }, 5000) } } }, @@ -277,7 +282,7 @@ that.start = false; that.question = false; that.auto = true; - }, 300); + }, 2000); }, getBindJson() { this.start = true; diff --git a/pages/index/index.vue b/pages/index/index.vue index e095658..41440d5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -17,7 +17,9 @@ - + + + @@ -61,17 +63,24 @@ //场景入口 sceneList: [], x:0, - y:0 + showTitle:true, + y:0, + content:"" }; }, computed: { ...mapState('m_user', ['token']) }, - onLoad() { + onLoad(options) { this.checkLogin(); if (this.token != "") { this.getSwiperList(); this.getLocation(); + this.getContent(); + this.timer = setTimeout(() => { + this.showTitle = false + clearTimeout(this.timer) + }, 5000) } }, onShow() { @@ -108,6 +117,18 @@ // uni.$showMsg('数据请求成功!') }, + async getContent() { + + const { + data: res + } = await uni.$http.post('/small/project/text/listAll',{type:3}) + if (!res.success) return uni.$showMsg() + + res.data.forEach(item=>{ + this.content = item.content + + }) + }, navClickHandler(item) { uni.navigateTo({ url: '/subpkg/list/list?isOpen='+item.isOpen @@ -214,6 +235,20 @@