|
@@ -14,6 +14,7 @@ Page({
|
|
|
chooseViewShowBanner: true,
|
|
|
content: '',
|
|
|
basePath: '',
|
|
|
+ hideWindowValue: false,
|
|
|
},
|
|
|
|
|
|
bindText: function (e) {
|
|
@@ -158,42 +159,33 @@ Page({
|
|
|
content: this.data.content,
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.getModal()
|
|
|
+ this.hideWindow()
|
|
|
}
|
|
|
}).catch(_ => {
|
|
|
console.log(_)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- 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) { },//接口调用失败的回调函数
|
|
|
+ /**
|
|
|
+ * 弹框
|
|
|
+ */
|
|
|
+ hideWindow(){
|
|
|
+ this.setData({
|
|
|
+ hideWindowValue:true
|
|
|
})
|
|
|
-},
|
|
|
+ },
|
|
|
+
|
|
|
+ goPerson(){
|
|
|
+ wx.switchTab({
|
|
|
+ url: '../personal/personal'
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|