...
|
...
|
@@ -19,10 +19,17 @@ |
|
|
</div>
|
|
|
<!--弹窗-->
|
|
|
<div class="public_popup_box">
|
|
|
<text>您已签到成功!</text>
|
|
|
<text>恭喜您获得10个积分</text>
|
|
|
<text>评论成功!</text>
|
|
|
<text>内容稍后展示出来</text>
|
|
|
</div>
|
|
|
|
|
|
<div class="public_popup_box fial">
|
|
|
<text>评论失败!</text>
|
|
|
<text>请稍后重试</text>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/area.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/select.js"></script>
|
...
|
...
|
@@ -32,10 +39,31 @@ |
|
|
*/
|
|
|
$('.public_popup_box').hide()
|
|
|
$('.submit_btn').click(function () {
|
|
|
var textArea=$('#textArea');
|
|
|
console.log(textArea.val());
|
|
|
var textArea=$('#textArea').val();
|
|
|
console.log(textArea)
|
|
|
var postData=new Object();
|
|
|
postData['object_id']={$object_id};
|
|
|
postData['table_name']='{$table_name}';
|
|
|
postData['content']=textArea;
|
|
|
console.log(postData);
|
|
|
console.log(JSON.stringify(postData));
|
|
|
$.ajax({
|
|
|
type:'POST',
|
|
|
dataType: "json",
|
|
|
url:"{:cmf_plugin_url('TcComment://Index/index')}",
|
|
|
data:{
|
|
|
post:postData,
|
|
|
},
|
|
|
success:function(res) {
|
|
|
|
|
|
if (res.code==1){
|
|
|
$('.public_popup_box').show().delay(2000).hide(2)
|
|
|
}else {
|
|
|
$('.fial').show().delay(2000).hide(2)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
|
|
|
$('.public_popup_box').show().delay(2000).hide(2)
|
|
|
})
|
|
|
</script>
|
|
|
<hr>
|
...
|
...
|
@@ -54,7 +82,6 @@ |
|
|
<div class="content_time">{:date('Y.m.d',$vo.create_time)}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</foreach>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
|