|
|
@ -29,7 +29,7 @@ |
|
|
|
<section class="bg"> |
|
|
|
<?php if ($slide_list) { ?>
|
|
|
|
<?php foreach ($slide_list as $k=>$v) { ?>
|
|
|
|
<img src="<?php echo $v['pic']; ?>" alt="<?php echo $v['title']; ?>"> |
|
|
|
<img src="<?php echo data_get($v, 'pic'); ?>" alt="<?php echo data_get($v, 'title'); ?>"> |
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
@ -67,7 +67,7 @@ |
|
|
|
<ul id="ajlist"> |
|
|
|
@if($article_list) |
|
|
|
@foreach($article_list as $row) |
|
|
|
<li><span class="group">[{{date("Y-m-d",$row['pubdate'])}}]</span> <a href="{{get_wap_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content'))}}" target="_blank">{{$row['title']}}</a></li> |
|
|
|
<li><span class="group">[{{date("Y-m-d",data_get($row, 'pubdate'))}}]</span> <a href="{{get_wap_front_url(array("id"=>data_get($row,'id'),"catid"=>data_get($row,'typeid'),"type"=>'content'))}}" target="_blank">{{data_get($row,'title')}}</a></li> |
|
|
|
@endforeach |
|
|
|
@endif |
|
|
|
</ul> |
|
|
@ -141,7 +141,7 @@ |
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> |
|
|
|
|
|
|
|
<script> |
|
|
|
var page =1; |
|
|
|
|
|
|
|
new Vue({ |
|
|
|
el: '#app', |
|
|
|
data: function () { |
|
|
@ -153,17 +153,17 @@ |
|
|
|
handleCurrentChange(e){ |
|
|
|
console.log(e,'---eeee'); |
|
|
|
$.ajax({ |
|
|
|
url: {{env('APP_API_URL')}} + "/article_list", |
|
|
|
url: "{{env('APP_API_URL')}}" + "/article_list", |
|
|
|
dataType: "json", |
|
|
|
type: "POST", |
|
|
|
type: "get", |
|
|
|
data: { |
|
|
|
'limit' : 10, |
|
|
|
'offset' : e * 10 |
|
|
|
'offset' : (e-1) * 10 |
|
|
|
}, |
|
|
|
success: function(data){ |
|
|
|
if(data.code==0) |
|
|
|
{ |
|
|
|
var json = data.data; //数组
|
|
|
|
var json = data.data.list; //数组
|
|
|
|
var str = ''; |
|
|
|
$.each(json, function (index) { |
|
|
|
//循环获取数据
|
|
|
|