const _app = getApp() Page({ data: { popupShow: false, popupType: 'casesAddComplete', popupParams: { close: true, content: '', }, currentFinish: true, current: 0, parts: [ { top: '94', left: '-14', }, { top: '78', left: '28', }, { top: '88', left: '72', }, { top: '78', left: '126', }, { top: '78', left: '184', }, { top: '88', left: '238', }, { top: '78', left: '284', }, { top: '94', left: '324', }, { top: '194', left: '122', }, { top: '194', left: '190', }, { top: '296', left: '122', }, { top: '296', left: '190', }, { top: '364', left: '122', }, { top: '364', left: '190', }, ], }, onLoad() {}, handleFinish() { this.setData({ currentFinish: true, }) }, handlePrev() { if (!this.data.currentFinish) return this.setData({ currentFinish: false, current: this.data.current - 1, }) }, handleNext() { if (!this.data.currentFinish) return this.setData({ currentFinish: false, current: this.data.current + 1, }) }, }) export {}