|
|
|
@ -36,7 +36,8 @@ Page({ |
|
|
|
|
|
|
|
startX: 0, //开始坐标
|
|
|
|
startY: 0, |
|
|
|
total:0 |
|
|
|
total:0, |
|
|
|
confirmTag:true |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -229,7 +230,10 @@ Page({ |
|
|
|
}, |
|
|
|
// 弹出框 确认
|
|
|
|
confirm: function () { |
|
|
|
|
|
|
|
if(this.data.confirmTag){ |
|
|
|
this.setData({ |
|
|
|
confirmTag:false |
|
|
|
}) |
|
|
|
if (!this.data.currentComment){ |
|
|
|
wx.showToast({ |
|
|
|
title: '请输入评论', |
|
|
|
@ -245,7 +249,12 @@ Page({ |
|
|
|
}) |
|
|
|
this.fetchDetailComment() |
|
|
|
} |
|
|
|
this.setData({ |
|
|
|
confirmTag:true |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 评论输入框
|
|
|
|
|