search async function wxcloudcallFunction name searchData data mailNumber thisdatamailNumber startDatethisdatastartDate endDatethisdataendD
search: async function () { wx.cloud.callFunction({ name: 'searchData', data: { mailNumber: this.data.mailNumber, startDate: this.data.startDate, endDate: this.data.endDate }, success: res => { const searchData = res.result; if (searchData.error) { wx.showToast({ title: '未找到相关数据', icon: 'none' }); } else { this.setData({ searchData: searchData.searchData, mailNumber: searchData.mailNumber, images: searchData.images, describe: searchData.describe, date: searchData.date }); } }, fail: err => { console.error(err); } }); }
原文地址: https://www.cveoy.top/t/topic/idZh 著作权归作者所有。请勿转载和采集!