|
@@ -15,7 +15,8 @@ Page({
|
|
|
re_reply_id:0,
|
|
re_reply_id:0,
|
|
|
reply_id: 0,
|
|
reply_id: 0,
|
|
|
reply_content: '',
|
|
reply_content: '',
|
|
|
- replys: []
|
|
|
|
|
|
|
+ replys: [],
|
|
|
|
|
+ re_flag:'',
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -230,6 +231,7 @@ Page({
|
|
|
is_reply: true,
|
|
is_reply: true,
|
|
|
re_reply_id: e.currentTarget.id,
|
|
re_reply_id: e.currentTarget.id,
|
|
|
reply_content: '回复 @' + e.currentTarget.dataset.name+':',
|
|
reply_content: '回复 @' + e.currentTarget.dataset.name+':',
|
|
|
|
|
+ re_flag: '回复 @' + e.currentTarget.dataset.name + ':',
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
reply: function(e) {
|
|
reply: function(e) {
|
|
@@ -302,7 +304,7 @@ Page({
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}else if(that.data.is_reply == true){
|
|
}else if(that.data.is_reply == true){
|
|
|
- if (text != '') {
|
|
|
|
|
|
|
+ if (text != that.data.re_flag) {
|
|
|
app.request({
|
|
app.request({
|
|
|
url: 'https://t6.9026.com/api/furniture/add_comments',
|
|
url: 'https://t6.9026.com/api/furniture/add_comments',
|
|
|
data: {
|
|
data: {
|
|
@@ -379,9 +381,10 @@ Page({
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
that.setData({
|
|
that.setData({
|
|
|
|
|
+ reply_content: '',
|
|
|
is_reply: false,
|
|
is_reply: false,
|
|
|
- reply_id: 0,
|
|
|
|
|
- placeholder: '随便说些什么...',
|
|
|
|
|
|
|
+ re_reply_id: 0,
|
|
|
|
|
+ placeholder: '说些什么...',
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|