评论列表 评论
黑衣人 简单就是美 八级站长 VIP 4#

这个代码可用【支持只能会员才可以 快捷回复】:  放到你使用模版的 read-1.hst里



<div  class="pk-row" style="margin-bottom:30px;left:0;bottom:0;width:100%;padding:0.25rem 0;background-color:white;z-index:97;">
	<form style="margin-left:10px;" method="post" action="index.php?c=post&type=reply&return=#">
		<input type="hidden" name="rid" value="{$readdata['id']}" />
		<div style="margin-bottom:7px" class="pk-w-sm-9 aui-padded-l-15 aui-padded-r-15">
			<input type="text" name="content" autocomplete="off" class="search-input aui-font-size-14 pk-width-all" placeholder="   评论~" style="border:solid 2px #E7E7E7 ;border-radius:5px ;margin-left:20px;color:#333;height:2.4rem;" />
		</div>
		<div style="margin-top:7px" class="pk-w-sm-3"> 
			<button id="postreplysubmitbtn冲突暂时去掉" >回复</button>
			
		</div>
		<div style="width:135px"class=" verifycodediv">{loadVerifycode('postreply','')}</div>
	</form>
</div>
效果


Image

共0条回复,点击查看回复
黑衣人 简单就是美 八级站长 VIP 5#
Image
共0条回复,点击查看回复
黑衣人 简单就是美 八级站长 VIP 3#

那手机版的回复代码改的,点击回复按钮 出现这提示  不知道哪有问题


Image

Image



<div  class="pk-row" style="left:0;bottom:0;width:100%;padding:0.25rem 0;background-color:white;z-index:97;">
	<form style="margin-left:10px;" name="form_post" method="post" action="index.php?c=post&type=reply&return=json">
		<input type="hidden" name="rid" value="{$readdata['id']}" />
		<div  class="pk-w-sm-9 aui-padded-l-15 aui-padded-r-15">
			<input type="text" name="content" autocomplete="off" class="search-input aui-font-size-14 pk-width-all" placeholder="评论" style="color:#333;height:2.0rem;" />
		</div>
		<div style="margin-top:7px" class="pk-w-sm-3">
			<button id="postreplysubmitbtn" >发布</button>
			
		</div>
		<div class=" verifycodediv">{loadVerifycode('postreply','')}</div>
	</form>
</div>

共0条回复,点击查看回复
puyuetian 乐天 九级站长 创始人 2#
php端调用post函数发帖及回复,前端需要自己写布局然后提交


直接的回复方法:

回复内容提交到index.php?c=post&type=reply&return=json,必要参数:rid回复文章的id,content回复的内容

黑衣人:
乐天 这看着像是手机模版回复代码参数啊 ,我拿着放到pc版貌似 有问题!上边我有放代码

黑衣人:
居然这样子 有的可以回复 有的不可以。。。。{"state":"ok","msg":"\u53d1\u8868\u6210\u529f","rid":"9"}

黑衣人:
乐天 完全可以恢复了 就3F的代码 就是出错啊 。。。。出来这个 {"state":"ok","msg":"\u53d1\u8868\u6210\u529f","rid":"9"}

共0条回复,点击查看回复
发布评论

评论: 乐天 怎么才可以发帖 快捷回复

已有0次打赏
(25) 分享
分享

请保存二维码或复制链接进行分享

取消