|
@@ -158,22 +158,37 @@ Page({
|
|
|
content: this.data.content,
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- wx.showToast({
|
|
|
- title: '反馈意见提交成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 1500
|
|
|
- });
|
|
|
- wx.switchTab({
|
|
|
- url: "../personal/personal"
|
|
|
- })
|
|
|
+ this.getModal()
|
|
|
}
|
|
|
- this.data.lock = false
|
|
|
}).catch(_ => {
|
|
|
console.log(_)
|
|
|
- this.data.lock = false
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ getModal() {
|
|
|
+ wx.showModal({
|
|
|
+ title: '非常感谢您的反馈',
|
|
|
+ content: '沪上阿姨有您更优秀 研发团队正在拼命优化中',
|
|
|
+ showCancel: false,//是否显示取消按钮
|
|
|
+ cancelText:"否",//默认是“取消”
|
|
|
+ cancelColor:'skyblue',//取消文字的颜色
|
|
|
+ confirmText:"我知道了",//默认是“确定”
|
|
|
+ confirmColor: 'black',//确定文字的颜色
|
|
|
+ success: res => {if (res.cancel) {
|
|
|
+ wx.switchTab({
|
|
|
+ url: "../personal/personal"
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ //点击确定
|
|
|
+ wx.switchTab({
|
|
|
+ url: "../personal/personal"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: function (res) { },//接口调用失败的回调函数
|
|
|
+ })
|
|
|
+},
|
|
|
+
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|