12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- const app=getApp();
- Page({
-
- data: {
-
- },
-
- onLoad: function (options) {
- this.setData(options);
- },
-
- onReady: function () {
-
- },
-
- onShow: function () {
-
- },
-
- onHide: function () {
-
- },
-
- onUnload: function () {
-
- },
-
- onPullDownRefresh: function () {
-
- },
-
- onReachBottom: function () {
-
- },
-
- onShareAppMessage: function () {
-
- },
-
- redirectCtl: app.redirectCtl,
-
- navigateCtl: app.navigateCtl,
-
- textinput:function(e){
- const { value } = e.detail;
- this.setData({ reason: value})
- },
-
- changeTeacher: function () {
- const postData = { fn: this.changeTeacher, param: { ...arguments }}
- const { lessonServiceId, reason } = this.data;
-
- app.post('/api/parents/parents/applyChangeTeacher', { lessonServiceId, reason }, 0, postData).then(res => {
- wx.showToast({
- title: '提交成功',
- icon: 'success',
- duration: 1000
- })
- setTimeout((function callback() {
- wx.navigateBack({});
- }).bind(this), 2000);
- })
- }
- })
|