Commit 56dbf155 by libai

测试

parent 40e6831a
......@@ -45,6 +45,7 @@
<div class="video-input-box">
<input placeholder="輸入你想說的內容" class="video-input" type="text">
<div class="video-input-btn">評論</div>
<input style="width: 0;height:0" type="text">
</div>
<div class="video-msg-list-box">
<!-- <div class="video-msg-list">
......
......@@ -55,6 +55,7 @@
<div class="video-input-box">
<input placeholder="輸入你想說的內容" class="video-input" type="text">
<div class="video-input-btn">評論</div>
<input style="width: 0;height:0" type="text">
</div>
<div class="video-msg-list-box">
<!-- <div class="video-msg-list">
......@@ -399,7 +400,10 @@ $(function(){
var _self=$(this)
_self.parent().parent().parent().parent().append('<div class="reply-input-box"><input placeholder="回复'+_self.parent().siblings(".reply-box-p1").children().text()+' : " class="reply2-input" type="text"><span data-type="'+_self.attr("data-type")+'" data-type2="'+_self.attr("data-type2")+'">回復</span></div>')
$(".reply-input-box span").unbind("click").on("click",function(){
if(localStorage.token==undefined)
if(localStorage.token==undefined){
loginLayer()
return;
}
if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
layer.msg("請輸入你想說的內容")
return;
......@@ -506,6 +510,10 @@ $(function(){
layer.msg("請輸入你想說的內容")
return;
}
if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
layer.msg("請輸入你想說的內容")
return;
}
commentSend(_self.attr("data-type"),_self.attr("data-type2"))
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment