12345678910111213141516171819202122232425262728 |
- // pages/personnel/personnel.js
- var app = getApp()
- Page({
- data: {
- workList: '',
- },
- onLoad: function(options) {
- this.getWorker();
- },
- getWorker() {
- wx.showLoading({
- title: '加载中...',
- })
- app.request('personal/workerList', '', 'POST').then(res => {
- wx.hideLoading();
- console.log(res.data)
- if (res.data) {
- this.setData({
- workList: res.data,
- })
- }else {
- this.setData({
- workList:''
- })
- }
- })
- },
- })
|