|
|
@ -28,6 +28,7 @@ Component({ |
|
|
|
results:[], |
|
|
|
//选择后获取的街道的I,
|
|
|
|
streetID:'', |
|
|
|
textareaValue:'' |
|
|
|
}, |
|
|
|
// lifetimes: {
|
|
|
|
// attached: function () {
|
|
|
@ -71,7 +72,6 @@ Component({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 以下为修改
|
|
|
|
bindPickerStreetsChange: function(e) { |
|
|
|
// console.log("1"+e.detail.value)
|
|
|
|
this.setData({ |
|
|
@ -83,7 +83,6 @@ Component({ |
|
|
|
}) |
|
|
|
// console.log(this.data.streetID)
|
|
|
|
}, |
|
|
|
//以上为修改
|
|
|
|
bindTextInput(e) { |
|
|
|
this.setData({ |
|
|
|
messageTitle: e.detail.value |
|
|
@ -144,6 +143,7 @@ Component({ |
|
|
|
}, |
|
|
|
|
|
|
|
submit() { |
|
|
|
let th =this; |
|
|
|
if (this.data.messageDetail.length >200){ |
|
|
|
wx.showModal({ |
|
|
|
title: '提示', |
|
|
@ -184,14 +184,13 @@ Component({ |
|
|
|
confirmText:'查看进度', |
|
|
|
success (res) { |
|
|
|
if (res.confirm) { |
|
|
|
// wx.navigateTo({
|
|
|
|
// url: `/pages/article/index?id=${id}`,
|
|
|
|
// })
|
|
|
|
wx.redirectTo({ |
|
|
|
// url: '../../user/myWhistle/whistleDetail/index?id=${id}',
|
|
|
|
url: '/pages/user/myWhistle/whistleDetail/index?id='+id, |
|
|
|
}) |
|
|
|
} else if (res.cancel) { |
|
|
|
setTimeout(function(){ th.setData({ |
|
|
|
textareaValue:'' |
|
|
|
}) }, 500); |
|
|
|
console.log('用户点击知道了') |
|
|
|
} |
|
|
|
} |
|
|
|