激活留言修改
This commit is contained in:
parent
b68e227531
commit
9461c41fa7
|
@ -343,7 +343,8 @@ class WordsController < ApplicationController
|
|||
status = 1 #成功
|
||||
me = User.find(params[:user])
|
||||
if me
|
||||
@user = User.find(params[:id])
|
||||
#课程使者id=1
|
||||
@user = User.find(1)
|
||||
if params[:text].size>0 && @user
|
||||
# @user.add_jour(me, params[:text])
|
||||
#私信
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<li>如果您无法收到激活邮件,请您直接给我们管理员留言:</li>
|
||||
<div class=" mt10">
|
||||
<textarea style="resize: none;" class="email_prompt_mes" placeholder="请管理员尽快帮我解决邮箱激活问题"></textarea>
|
||||
<button class="email_sub_btn fr" onclick="leave_email_activation_message('<%= leave_email_activation_message_path(1)%>','<%= @user.id %>','<%= 1 %>');">确定</button>
|
||||
<button class="email_sub_btn fr" onclick="leave_email_activation_message('<%= leave_email_activation_message_path(1)%>','<%= @user.id %>');">确定</button>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</ul>
|
||||
|
@ -29,7 +29,7 @@
|
|||
}
|
||||
);
|
||||
}
|
||||
function leave_email_activation_message(url,user,id)
|
||||
function leave_email_activation_message(url,user)
|
||||
{
|
||||
if ($(".email_prompt_mes").val().length == 0){
|
||||
//弹框请他输入文字
|
||||
|
@ -39,7 +39,7 @@
|
|||
}
|
||||
$.get(
|
||||
url,
|
||||
{user:user,id: 1,text:$(".email_prompt_mes").val() },
|
||||
{user:user,text:$(".email_prompt_mes").val() },
|
||||
function (data) {
|
||||
console.log("2222222");
|
||||
console.log(data);
|
||||
|
|
Loading…
Reference in New Issue