123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- @extends('module.layouts.person')
- @push('meta')
- @endpush
- @push('css')
- <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
- <link href="{{ theme_asset('app/css/person/personal_user.css') }}" rel="stylesheet">
- {{-- <link href="{{ theme_asset('app/css/person/personal_job.css') }}" rel="stylesheet">--}}
- <link href="{{ theme_asset('app/css/person/personal_ajax_dialog.css') }}" rel="stylesheet">
- @endpush
- @section('content')
- <div class="user_main">
- @include('module.section.person_left')
- <form id="form1" action="" method="get" class="J_allListBox">
- <div class="mainbox">
- <!--切换卡 -->
- <div class="tab">
- <a class="li J_hoverbut" href="{{ route('person.pms') }}">消息提醒</a>
- <a class="li select" >咨询反馈</a>
- <div class="clear"></div>
- </div>
- <!--切换卡结束 -->
- @if($content->total())
- <div class="feedback">
- @foreach($content as $key => $val)
- <div class="leftimg">
- <img border="0" src="{{ upload_asset($val->images) }}" />
- </div>
- <div class="righttxt link_blue J_realyList">
- <span>{{ $val->created_at }}</span>
- <br />
- <?php
- $info = explode(',',$val->result);
- $res = explode(':',$info[0]);
- if($res[1]==auth('web-member')->user()->id && $res[0]==auth('web-member')->user()->utype){
- ?>
- 我对 <a href="{{ route('jobs.company',['id'=>$res[2]]) }}">{{ $val->companyName or '未定义' }}</a> 说:
- {{ $res[3] }}
- <?php
- }else{
- ?>
- <a href="{{ route('jobs.company',['id'=>$res[1]]) }}">{{ $val->companyName or '未定义' }}</a>对我 说:
- {{ $res[3] }}
- <?php
- }
- ?>
- <br />
- <?php
- $info = explode(',',$val->result);
- foreach ($info as $key1 => $val1 ){
- if($key1==0){
- continue;
- }
- $res = explode(':',$val1);
- if($res[1]==auth('web-member')->user()->id && $res[0]==auth('web-member')->user()->utype){
- ?>
- <div class="reply">
- 我 回复 <a href="{{ route('jobs.company',['id'=>$res[2]]) }}">{{ $val->companyName or '未定义' }}</a> :
- {{ $res[3] }}
- </div>
- <?php
- }else{
- ?>
- <div class="reply">
- <a href="{{ route('jobs.company',['id'=>$res[1]]) }}">{{ $val->companyName or '未定义' }}</a> 回复 我 :
- {{ $res[3] }}
- </div>
- <?php
- }
- }
- ?>
- </div>
- <div class="clear"></div>
- <div class="bottomdel link_gray6 J_realyWrap">
- <div class="fbtn">
- <a class="J_realy" href="javascript:;">回复</a>
- {{-- <a class="J_realy" href="javascript:;">回复</a>|<a class="J_delrealy" mid="{{ $val->parent_id }}" href="javascript:;">删除</a>--}}
- </div>
- <div class="feedback_reply">
- <div class="textareadiv J_focus">
- <textarea name="" cols="" rows="" class="textarea_638_80" style="height: 150px;"></textarea>
- </div>
- <div class="rbtn">
- <div class="rlt">不能超过200个字。</div>
- <div class="rrt">
- <div class="btn_blue J_hoverbut btn_inline_small J_realyBth" touid="@if($res[1]==auth('web-member')->user()->id && $res[0]==auth('web-member')->user()->utype){{ $res[2] }}@else{{ $res[1] }}@endif" pid="{{ $val->parent_id }}"> 回复 </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- </div>
- @endforeach
- {{ $content->links('module.widgets.pagination') }}
- @else
- <div class="res_empty">
- 暂时还没有咨询反馈信息!<br />
- </div>
- @endif
- </div>
- <div class="clear"></div>
- </div>
- </form>
- </div>
- @endsection
- @section('script')
- <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('jquery/jquery.common.js') }}"></script>
- <script>
- $('.J_realy').click(function(){
- var f = $(this).closest('.J_realyWrap').find('.feedback_reply');
- f.show();
- f.find('textarea').val('');
- });
- $('.J_realyBth').click(function(){
- var u = $(this),
- f = u.closest('.feedback_reply'),
- t = $.trim(f.find('textarea').val()),
- pid = u.attr('pid'),
- touid = u.attr('touid');
- if(t == '' || t==null){
- disapperTooltip("remind", "回复内容不能为空!");
- return false;
- }
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- type: "POST",
- url: "{{ route('person.msgSend') }}",
- data: {
- parent_id:pid,
- to_uid:touid,
- message:t,
- },
- dataType: "json",
- success: function(result){
- html = '<div class="reply">我 回复 <a href="/content/company?id='+result.data.to_uid+'">'+result.data.companyName+'</a> :'+result.data.message+'</div>';
- u.closest('.feedback').find('.J_realyList').append(html);
- disapperTooltip('success','回复成功!');
- f.hide();
- f.find('textarea').val('');
- },
- error: function (errorData) {
- if(errorData.status==400) {//业务错误
- disapperTooltip("remind", errorData.responseJSON.message);
- }
- }
- });
- });
- $('.J_delrealy').click(function(){
- var url = '{{ route('person.msgDelete') }}';
- var f = $(this),
- id = f.attr('mid');
- if (id) {
- var qsDialog = $(this).dialog({
- title: '删除咨询消息',
- loading: true,
- border: false,
- yes: function () {
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- type: "POST",
- url: url,
- data: {
- parent_id:id,
- },
- dataType: "json",
- success: function(result){
- f.closest('.feedback').remove();
- disapperTooltip('success',result.data);
- },
- error: function (errorData) {
- if(errorData.status==400) {//业务错误
- disapperTooltip("remind", errorData.responseJSON.message);
- }
- }
- });
- }
- });
- $.get(url, function (result) {
- qsDialog.setContent(result);
- });
- } else {
- disapperTooltip("remind", "请选择要删除的咨询消息!");
- }
- });
- </script>
- @endsection
|