6 Star 13 Fork 6

神秘博士 / JPressMessage

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

用于jpress的拓展插件主要实现了用户提交留言的功能

代码示例:提交留言

//首页提交留言
	function saveForm(){
	     console.log("ceshi");
		 var url="/msgController/doSave";
		 var data = {
		    "jpressAddonMessage.name":$("#mesname").val(),
		    "jpressAddonMessage.phone":$("#mestel").val(),
		    "jpressAddonMessage.email":$("#mesmail").val(),
		    "jpressAddonMessage.message":$("#mescontent").val()
		 }
		 $.post(url,data,function(e){
		     
		     if(e.msg=="ok"){
		         alert("提交成功");     
		     }else{
		          alert(e.msg);
		     }
		     
		 });
		 
	}

代码示例:获取用户留言的列表

#messageList()
#for(msg : messageList)
<div class="msg-list">
  <div class="msguser-img"></div>
  <div class="msguser-info">
    <div class="minfo-tp">
      <div class="minfo-name">#(msg.name ??)</div>
      <!--<div class="minfo-time">2020年2月26日</div>-->
    </div>
    <div class="minfo-msg">
      <p>#(msg.message ??)</p>
    </div>
  </div>
  <div class="clear"></div>
</div>
#end
#end

提交留言接口地址: /msgController

输入图片说明 输入图片说明

Repository Comments ( 2 )

Sign in for post a comment

About

JPress的留言拓展插件实现网页留言功能 expand collapse
Java
LGPL-3.0
Cancel

Releases

No release

JPressMessage

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/d1anjie/JpressMessage.git
git@gitee.com:d1anjie/JpressMessage.git
d1anjie
JpressMessage
JPressMessage
master

Search