正在显示
7 个修改的文件
包含
62 行增加
和
14 行删除
| @@ -25,10 +25,6 @@ class LoginController extends Controller | @@ -25,10 +25,6 @@ class LoginController extends Controller | ||
| 25 | $email = $request->input('email',''); | 25 | $email = $request->input('email',''); |
| 26 | $password = $request->input('password',''); | 26 | $password = $request->input('password',''); |
| 27 | 27 | ||
| 28 | - var_dump($email); | ||
| 29 | - var_dump($password); | ||
| 30 | - exit; | ||
| 31 | - | ||
| 32 | // 判断表单值是否为空 | 28 | // 判断表单值是否为空 |
| 33 | if ( empty($email) ) { | 29 | if ( empty($email) ) { |
| 34 | echo json_encode(['msg'=>'err','info'=>'用户名或密码错误']); | 30 | echo json_encode(['msg'=>'err','info'=>'用户名或密码错误']); |
public/admin/static/jqmd5.js
0 → 100644
| 1 | +string(91) "http://images.xjyili.cn//uploads/admin/default/20190918/854417f8a76e1fd31b24eea0c6ad0cfc.js" |
| @@ -42,9 +42,23 @@ | @@ -42,9 +42,23 @@ | ||
| 42 | <div class="row cl"> | 42 | <div class="row cl"> |
| 43 | <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>帖子内容:</label> | 43 | <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>帖子内容:</label> |
| 44 | <div class="formControls col-xs-6 col-sm-7"> | 44 | <div class="formControls col-xs-6 col-sm-7"> |
| 45 | - <textarea rows="4" readonly="readonly" cols="97">{{$data->content}}</textarea> | 45 | + <textarea rows="10" readonly="readonly" cols="97">{{$data->content}}</textarea> |
| 46 | </div> | 46 | </div> |
| 47 | </div> | 47 | </div> |
| 48 | + <div style="height:20px;"></div> | ||
| 49 | + <div style="margin-left: 210px;"> | ||
| 50 | + @if ($data->is_audit == 0) | ||
| 51 | + <a onClick="submitTiJiao({{$data->id}})" class="btn btn-secondary radius">审核通过</a> | ||
| 52 | + @else | ||
| 53 | + <a href="/" class="btn btn-default radius disabled">审核通过</a> | ||
| 54 | + @endif | ||
| 55 | + | ||
| 56 | + @if ($data->is_audit == 0) | ||
| 57 | + <a href="javascript:;" onclick="invitation_show('查看帖子','<?php echo '/admin/invitation/dels/'.$data->id ?>','','1000')" class="btn btn-danger radius">审核不通过</a> | ||
| 58 | + @else | ||
| 59 | + <a href="/" class="btn btn-default radius disabled">审核不通过</a> | ||
| 60 | + @endif | ||
| 61 | + </div> | ||
| 48 | </form> | 62 | </form> |
| 49 | </article> | 63 | </article> |
| 50 | 64 | ||
| @@ -58,9 +72,44 @@ | @@ -58,9 +72,44 @@ | ||
| 58 | <script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> | 72 | <script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> |
| 59 | <script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script> | 73 | <script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script> |
| 60 | <script type="text/javascript"> | 74 | <script type="text/javascript"> |
| 61 | -$(function(){ | 75 | + /*帖子-查看*/ |
| 76 | + function invitation_show(title,url,id,w,h){ | ||
| 77 | + // layer_show(title,url,w,h); | ||
| 78 | + | ||
| 79 | + // setTimeout('parent.window.close()', 5000) | ||
| 80 | + // parent.window.close(); | ||
| 81 | + | ||
| 82 | + layer_show(title,url,w,h); | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + function submitTiJiao(id) { | ||
| 86 | + //ajax提交 | ||
| 87 | + $.ajax({ | ||
| 88 | + type: 'get', | ||
| 89 | + url: '{{url("admin/invitation/check/")}}'+'/'+id, | ||
| 90 | + dataType: 'json', | ||
| 91 | + success:function(msg){ | ||
| 92 | + //msg服务器返回json格式数据 | ||
| 93 | + if(msg.info == 1){ | ||
| 94 | + // $("#modal-demo").modal("show") | ||
| 95 | + $("body").Huimodalalert({ | ||
| 96 | + content: '提交成功', | ||
| 97 | + speed: 300 | ||
| 98 | + }) | ||
| 62 | 99 | ||
| 63 | -}); | 100 | + setTimeout (function(){ |
| 101 | + //插入成功 | ||
| 102 | + parent.window.location.href = parent.window.location.href; | ||
| 103 | + layer_close(); | ||
| 104 | + },800); | ||
| 105 | + } | ||
| 106 | + else{ | ||
| 107 | + //插入失败 | ||
| 108 | + layer.msg('提交失败'+msg.error,{icon:5,time:2000}); | ||
| 109 | + } | ||
| 110 | + } | ||
| 111 | + }); | ||
| 112 | + } | ||
| 64 | </script> | 113 | </script> |
| 65 | <!--/请在上方写此页面业务相关的脚本--> | 114 | <!--/请在上方写此页面业务相关的脚本--> |
| 66 | </body> | 115 | </body> |
| @@ -40,9 +40,9 @@ | @@ -40,9 +40,9 @@ | ||
| 40 | <th width="150">帖子标题</th> | 40 | <th width="150">帖子标题</th> |
| 41 | <th width="90">帖子标签</th> | 41 | <th width="90">帖子标签</th> |
| 42 | <th width="100">帖子内容</th> | 42 | <th width="100">帖子内容</th> |
| 43 | - <th width="200">创建/审核时间</th> | 43 | + <th width="250">创建/审核时间</th> |
| 44 | <th width="60">审核状态</th> | 44 | <th width="60">审核状态</th> |
| 45 | - <th width="260">操作</th> | 45 | + <th width="300">操作</th> |
| 46 | </tr> | 46 | </tr> |
| 47 | </thead> | 47 | </thead> |
| 48 | <tbody> | 48 | <tbody> |
| @@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
| 54 | <td>{{ $v->email }}</td> | 54 | <td>{{ $v->email }}</td> |
| 55 | <td>{{ $v->title }}</td> | 55 | <td>{{ $v->title }}</td> |
| 56 | <td>{{ $v->name }}</td> | 56 | <td>{{ $v->name }}</td> |
| 57 | - <td style="overflow: hidden;text-overflow: ellipsis;">{{ $v->content }}</td> | 57 | + <td><p style="width:400px;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;">{{ $v->content }}</p></td> |
| 58 | <td>{{ $v->gmt_create }} / {{ $v->gmt_modified }}</td> | 58 | <td>{{ $v->gmt_create }} / {{ $v->gmt_modified }}</td> |
| 59 | <td class="td-status"> | 59 | <td class="td-status"> |
| 60 | @if($v->is_audit == 1) | 60 | @if($v->is_audit == 1) |
| @@ -59,19 +59,22 @@ | @@ -59,19 +59,22 @@ | ||
| 59 | <link rel="stylesheet" href="/layui-v2.4.5/layui/css/layui.css"> | 59 | <link rel="stylesheet" href="/layui-v2.4.5/layui/css/layui.css"> |
| 60 | <!-- 引入layerui文件 js --> | 60 | <!-- 引入layerui文件 js --> |
| 61 | <script src="/layui-v2.4.5/layui/layui.js"></script> | 61 | <script src="/layui-v2.4.5/layui/layui.js"></script> |
| 62 | - | 62 | +<script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script> |
| 63 | <!-- AJAX提交脚本 --> | 63 | <!-- AJAX提交脚本 --> |
| 64 | <script> | 64 | <script> |
| 65 | $(function(){ | 65 | $(function(){ |
| 66 | //给登录按钮添加点击事件 | 66 | //给登录按钮添加点击事件 |
| 67 | $("#login").on('click',function(event){ | 67 | $("#login").on('click',function(event){ |
| 68 | + let passwords = $("#password").val() | ||
| 69 | + let password = md5(passwords) | ||
| 70 | + | ||
| 68 | $.ajax({ | 71 | $.ajax({ |
| 69 | type:"post", //提交方式为POST | 72 | type:"post", //提交方式为POST |
| 70 | url:"http://8.129.173.151:89/api/user/login", //设计提交数据处理的脚本文件的地址 | 73 | url:"http://8.129.173.151:89/api/user/login", //设计提交数据处理的脚本文件的地址 |
| 71 | data: JSON.stringify | 74 | data: JSON.stringify |
| 72 | ({ | 75 | ({ |
| 73 | email: $(" input[name='email'] ").val(), | 76 | email: $(" input[name='email'] ").val(), |
| 74 | - password: $(" input[name='password'] ").val(), | 77 | + password: password, |
| 75 | flag: 1 | 78 | flag: 1 |
| 76 | }), | 79 | }), |
| 77 | dataType:'json', //设置提交数据的类型为json | 80 | dataType:'json', //设置提交数据的类型为json |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | <td>{{ $v->company }}</td> | 52 | <td>{{ $v->company }}</td> |
| 53 | <td class="text-l">{{ $v->work_area }}</td> | 53 | <td class="text-l">{{ $v->work_area }}</td> |
| 54 | <td>{{ $v->gmt_create }}</td> | 54 | <td>{{ $v->gmt_create }}</td> |
| 55 | - <td class="td-manage"><a href="javascript:;" onclick="member_show('用户详情','<?php echo '/admin/member/detail/'.$v->id; ?>','','1000')" class="btn btn-secondary radius">用户详情</a></td> | 55 | + <td class="td-manage"><a href="javascript:;" onclick="member_show('用户详情','<?php echo '/admin/member/detail/'.$v->id; ?>','','1000')" class="btn btn-secondary radius">详情</a></td> |
| 56 | </tr> | 56 | </tr> |
| 57 | <?php $n++; ?> | 57 | <?php $n++; ?> |
| 58 | @endforeach | 58 | @endforeach |
-
请 注册 或 登录 后发表评论