按钮2事件
goindenture() {
// 关闭B弹窗
this.closebottompupup()
// 打开C弹窗
setTimeout(() => {
let tempbottom = this.$refs['reftipsbottom'] as TipsBottomComponentPublicInstance
this.showicontype = 'success'
this.showtipposition = 'bottom'
this.showtipnotes = '我是提示内容'
tempbottom.showtips()
}, 300)
},
B页面的关闭动画代码(通过transition-property', 'top'属性实现关闭动画)
this.endmaskopacity = 0
this.openclosetransition(false, 0)
setTimeout(() => {
this.isshow = false
this.isalldone = false
}, 300)
C页面的打开动画代码(通过控制opacity的值用transition-property: opacity;实现)
this.opacityvalue = 1
clearInterval(this.closetiptime)
this.showtiptime = setInterval(() => {
this.opacityvalue = 0
clearInterval(this.showtiptime)
}, 3500)
this.showtiptimelatter = setInterval(() => {
this.isshowtip = false
clearInterval(this.showtiptimelatter)
}, 3800)
1 个回复
BFC
你好, 用hbuilderX创建一个demo项目,然后将demo工程用附件的形式上传吧 。 这样比较好排查