import request from '../../../util/http' import apiUrl from '../../../util/apiUrl1' import util from '../../../util/util' import moment from 'moment' var app = getApp(); Page({ data: {}, onLoad() { this.loadpage(); }, loadpage(){ let params = {} request.httpServiceGet(apiUrl.getEmployerSubjectWhenEdit, params).then(data => { if (data.length > 0) { //添加选中的状态列 let servantlist = data; this.setData({ servantlist: servantlist }); } else { this.setData({ servantlist: [] }); } }).catch(e => { console.log(e); }) }, toEditPage(e){ let subtypeNo=e.target.dataset.id; my.navigateTo({ url: '../servantedit/servantedit?subtypeNo='+subtypeNo }); }, });