|
@@ -53,36 +53,6 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //保存
|
|
|
- preservation: function (e) {
|
|
|
- var that = this;
|
|
|
- var id = that.data.list.id;
|
|
|
- var list = that.data.list;
|
|
|
- wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id}`, //接口地址
|
|
|
- method: "post",
|
|
|
- data: list,
|
|
|
- header: {},
|
|
|
- success: res => {
|
|
|
- if (res.data.errcode == 0) {
|
|
|
- wx.showToast({
|
|
|
- title: '保存成功',
|
|
|
- icon: 'success',
|
|
|
- duration: 4000//延迟两秒
|
|
|
- })
|
|
|
- return wx.redirectTo({ url: '/pages/me/index' })// 跳转页面
|
|
|
- } else {
|
|
|
- wx.showToast({
|
|
|
- title: '保存失败',
|
|
|
- icon: 'success',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|