From bf8ce2e05649c88c552783cd552adfd1e45cbbd7 Mon Sep 17 00:00:00 2001 From: chenteng <17864191895@163.com> Date: Thu, 13 Aug 2020 17:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=205454=E5=B0=8F=E7=A8=8B=E5=BA=8F=EF=BC=8C?= =?UTF-8?q?=E4=BA=BA=E6=89=8D=E5=90=B9=E5=93=A8=E8=BE=93=E5=85=A5=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=8F=90=E4=BA=A4=E5=90=8E=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=9F=A5=E9=81=93=E4=BA=86=EF=BC=8C=E6=96=87=E6=9C=AC=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=B2=A1=E6=9C=89=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/topics/talents/index.js | 11 +++++------ pages/topics/talents/index.wxml | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/topics/talents/index.js b/pages/topics/talents/index.js index 9e59e30..7972dd0 100644 --- a/pages/topics/talents/index.js +++ b/pages/topics/talents/index.js @@ -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('用户点击知道了') } } diff --git a/pages/topics/talents/index.wxml b/pages/topics/talents/index.wxml index ebb9a15..bb2c3d4 100644 --- a/pages/topics/talents/index.wxml +++ b/pages/topics/talents/index.wxml @@ -6,7 +6,7 @@ -