@Entry
@Component
struct Index {
@State num : number = 0
@State numZ : number = 100
@State twonum : number = 90
@State twonumZ : number = 90
@State treenum : number = 180
@State treenumZ : number = 90
@State formnum : number = 270
@State formnumZ : number = 270
onPageShow (): void {
console.log ( '页面触发')
animateTo ( {
duration: 2000,
iterations: -1,
curve:Curve.Linear
}, () => {
this.num = 360
this.numZ=470
this.twonum = 450
this.twonumZ = 470
this.treenum = 480
this.treenumZ = 450
this.formnum = 610
this.formnumZ =