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.
guoxinyu_project/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master.../miniprogram/pages/deleteuser/index.js

34 lines
645 B

// pages/deleteuser/index.js
Page({
inputdelID:function(e){
this.setData({
delUser_ID:e.detail.value
})
},
removeDataFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'deleteuser',
//要删除的数据
delUser_ID:this.data.delUser_ID
},
success: res => {
wx.showToast({
title: '用户删除成功',
})
console.log(res)
},
fail: err => {
wx.showToast({
title: '用户删除失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})