const _app = getApp() Page({ data: { step: 3, toastShow: false, toastType: '', // toastType: 'oneWrite', // toastType: 'noWrite', // 用户信息未填全的提醒弹窗 toastParams: {} as any, }, onLoad() {}, handleSetData(e: WechatMiniprogram.CustomEvent) { const imgUrl = e.detail[0].imgUrl this.setData({ uploadImg: imgUrl, audit: true, }) }, handleExample(e) { wx.previewImage({ urls: [e.currentTarget.dataset.url], }) }, handleToastOk() { const { toastType } = this.data }, handleToastCancel(_e = null) { const { toastType } = this.data this.setData({ toastShow: false, toastType: '', toastParams: '', }) }, }) export {}