You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
572 B
30 lines
572 B
// pages/selectuserss/index.js
|
|
Page({
|
|
searchDataNameFn:function(){
|
|
wx.cloud.callFunction({
|
|
name: 'useroption',
|
|
data: {
|
|
option: 'getusers',
|
|
},
|
|
success: res => {
|
|
this.setData({
|
|
array: res.result.data
|
|
})
|
|
wx.showToast({
|
|
title: '用户查询成功',
|
|
})
|
|
console.log(res.result.data)
|
|
},
|
|
fail: err => {
|
|
wx.showToast({
|
|
title: '用户查询失败',
|
|
})
|
|
}
|
|
})
|
|
},
|
|
getback:function(){
|
|
wx.navigateBack({
|
|
delta:2,
|
|
})
|
|
}
|
|
}) |