wesley 6 anni fa
parent
commit
508ff4b64c

+ 4 - 4
resources/views/admin/user/threads/edit.blade.php

xqd
@@ -55,16 +55,16 @@
 
 @section('js')
     <script type="text/javascript">
-        function addProgress(){
+        function addProgress() {
             data = $("#form-validation").serialize()
-            if(!$('#remark').val()){
+            if (!$('#remark').val()) {
                 layer.alert('请填写跟进内容')
-            }else {
+            } else {
                 $.ajax({
                     type: 'post',
                     data: data,
                     dataType: "json",
-                    success:function (data) {
+                    success: function (data) {
                         $('#remark').val('')
                         $('#progress_list').html(data.html)
                     }

+ 3 - 3
resources/views/admin/user/threads/index.blade.php

xqd xqd xqd
@@ -98,7 +98,7 @@
 @section('js')
     <script type="text/javascript">
         /*电话全选功能*/
-        $('body').on('click','#checkAll',function () {
+        $('body').on('click', '#checkAll', function () {
             items = $('.contacts');
             isChecked = $(this).prop('checked');
             items.prop('checked', isChecked);
@@ -111,7 +111,7 @@
             }
         });
 
-        $('body').on('click','.contacts',function () {
+        $('body').on('click', '.contacts', function () {
             items = $('.contacts');
             checkedLength = $('.contacts:checked').length
             if (checkedLength) {
@@ -165,7 +165,7 @@
             $.ajax({
                 type: 'post',
                 url: '{{ U('User/Threads/export_threads') }}',
-                data: {threads_ids: threads_ids,type:1, _token: csrf_token},
+                data: {threads_ids: threads_ids, type: 1, _token: csrf_token},
                 success: function (data) {
                     $.fileDownload("{{ U('User/Threads/export_threads') }}", {
                         data: {threads_ids: threads_ids, _token: csrf_token},

+ 10 - 10
resources/views/admin/user/threads/progress.blade.php

xqd
@@ -1,16 +1,16 @@
 <div class="ibox-content inspinia-timeline">
-        @foreach($progress as $item)
+    @foreach($progress as $item)
         <div class="timeline-item">
-                <div class="row">
-                        <div class="col-xs-2 date">
-                                <i class="fa fa-file-text"></i>
-                                {{$item->created_at}}
-                        </div>
-                        <div class="col-xs-7 content">
-                                <p> {{$item->remark}}</p>
-                        </div>
+            <div class="row">
+                <div class="col-xs-2 date">
+                    <i class="fa fa-file-text"></i>
+                    {{$item->created_at}}
                 </div>
+                <div class="col-xs-7 content">
+                    <p> {{$item->remark}}</p>
+                </div>
+            </div>
         </div>
-        @endforeach
+    @endforeach
 </div>
 

+ 20 - 29
resources/views/admin/user/threads/view.blade.php

xqd
@@ -4,35 +4,26 @@
     <div class="row">
         <div class="ibox-content">
             <div class="list-group">
-                                     
-               <div class="list-group-item">
-                                                  
-                   <h3 class="list-group-item-heading">线索拥有者</h3>
-                                                   
-                   <p class="list-group-item-text"> {{ $data['ower_id'] or ''}}</p>
-                                                 
-               </div>                     
-               <div class="list-group-item">
-                                                  
-                   <h3 class="list-group-item-heading">企业ID</h3>
-                                                   
-                   <p class="list-group-item-text"> {{ $data['company_id'] or ''}}</p>
-                                                 
-               </div>                     
-               <div class="list-group-item">
-                                                  
-                   <h3 class="list-group-item-heading">线索状态</h3>
-                                                   
-                   <p class="list-group-item-text"> {{ $data['status'] or ''}}</p>
-                                                 
-               </div>                     
-               <div class="list-group-item">
-                                                  
-                   <h3 class="list-group-item-heading">备注</h3>
-                                                   
-                   <p class="list-group-item-text"> {{ $data['remark'] or ''}}</p>
-                                                 
-               </div>
+
+                <div class="list-group-item">
+                    <h3 class="list-group-item-heading">线索拥有者</h3>
+                    <p class="list-group-item-text"> {{ $data['ower_id'] or ''}}</p>
+                </div>
+
+                <div class="list-group-item">
+                    <h3 class="list-group-item-heading">企业ID</h3>
+                    <p class="list-group-item-text"> {{ $data['company_id'] or ''}}</p>
+                </div>
+
+                <div class="list-group-item">
+                    <h3 class="list-group-item-heading">线索状态</h3>
+                    <p class="list-group-item-text"> {{ $data['status'] or ''}}</p>
+                </div>
+                
+                <div class="list-group-item">
+                    <h3 class="list-group-item-heading">备注</h3>
+                    <p class="list-group-item-text"> {{ $data['remark'] or ''}}</p>
+                </div>
             </div>
         </div>
     </div>

+ 6 - 6
resources/views/vendor/geetest/geetest.blade.php

xqd xqd xqd xqd
@@ -4,9 +4,9 @@
 <p id="wait-{{ $captchaid }}" class="show">正在加载验证码...</p>
 @define use Illuminate\Support\Facades\Config
 <script>
-    var geetest = function(url) {
-        var handlerEmbed = function(captchaObj) {
-            $("#{{ $captchaid }}").closest('form').submit(function(e) {
+    var geetest = function (url) {
+        var handlerEmbed = function (captchaObj) {
+            $("#{{ $captchaid }}").closest('form').submit(function (e) {
                 var validate = captchaObj.getValidate();
                 if (!validate) {
                     alert('{{ Config::get('geetest.client_fail_alert')}}');
@@ -14,7 +14,7 @@
                 }
             });
             captchaObj.appendTo("#{{ $captchaid }}");
-            captchaObj.onReady(function() {
+            captchaObj.onReady(function () {
                 $("#wait-{{ $captchaid }}")[0].className = "hide";
             });
             if ('{{ $product }}' == 'popup') {
@@ -26,7 +26,7 @@
             url: url + "?t=" + (new Date()).getTime(),
             type: "get",
             dataType: "json",
-            success: function(data) {
+            success: function (data) {
                 initGeetest({
                     gt: data.gt,
                     challenge: data.challenge,
@@ -39,7 +39,7 @@
             }
         });
     };
-    (function() {
+    (function () {
         geetest('{{ $url?$url:Config::get('geetest.url', 'geetest') }}');
     })();
 </script>