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.
39 lines
677 B
39 lines
677 B
import { |
|
updateEvaluate |
|
} from '../../api/mail' |
|
Page({ |
|
data: { |
|
title: '', |
|
time: '', |
|
id: '', |
|
satisfaction: '' |
|
}, |
|
onLoad(options) { |
|
this.setData({ |
|
title: options.title, |
|
time: options.time, |
|
id: options.id |
|
}) |
|
}, |
|
sumbit() { |
|
if (!this.data.satisfaction) { |
|
return |
|
} |
|
updateEvaluate({ |
|
mailId: this.data.id, |
|
satisfaction: this.data.satisfaction |
|
}).then(() => { |
|
wx.showToast({ |
|
title: '操作成功', |
|
icon: 'success', |
|
duration: 2000 |
|
}); |
|
setTimeout(() => { |
|
wx.redirectTo({ |
|
url: '/pages/myMail/index', |
|
}) |
|
}, 1000) |
|
}) |
|
} |
|
|
|
}); |