<commit_before>@section('title')
资讯
@endsection

@extends('pcview::layouts.default')

@section('extra_class')news_container @endsection

@section('styles')
<link rel="stylesheet" href="{{ asset('assets/pc/css/news.css') }}"/>
@endsection

@section('content')
<div class="news_slide">
    @include('pcview::widgets.ads', ['space' => 'pc:news:top', 'type' => 2])
</div>

<div class="news_main clearfix">
    <div class="news_body clearfix">
        <div class="news_left">
            <span class="more"></span>
            <ul class="news_cates_tab">
            <li data-cid="0" @if($cate_id == 0) class="selected" @endif>推荐</li>
            @foreach ($cates as $cate)
                <li data-cateid="{{ $cate['id'] }}" @if($cate_id == $cate['id']) class="selected" @endif>{{ $cate['name'] }}</li>
            @endforeach
            </ul>
            <div id="news_list">
            </div>
        </div>

        <div class="right_container">
            <div class="news_release_btn">
                <a href="javascript:;" id="news-release">
                    <span>
                        <svg class="icon white_color" aria-hidden="true"><use xlink:href="#icon-publish"></use></svg>投稿
                    </span>
                </a>
            </div>
            <!-- 近期热点 -->
            @include('pcview::widgets.hotnews')

            <!-- 广告位 -->
            @include('pcview::widgets.ads', ['space' => 'pc:news:right', 'type' => 1])
        </div>

    </div>
</div>
@endsection


@section('scripts')
<script src="{{ asset('assets/pc/js/module.news.js') }}"></script>
<script src="{{ asset('assets/pc/js/unslider.min.js') }}"></script>
<script type="text/javascript">
$(function(){
    //加载资讯列表
    var params = {
        isAjax: true,
        type: 'recommend'
    };
<commit_msg>fix: （#835）<commit_after>@section('title')
资讯
@endsection

@extends('pcview::layouts.default')

@section('extra_class')news_container @endsection

@section('styles')
<link rel="stylesheet" href="{{ asset('assets/pc/css/news.css') }}"/>
@endsection

@section('content')
<div class="news_slide">
    @include('pcview::widgets.ads', ['space' => 'pc:news:top', 'type' => 2])
</div>

<div class="news_main clearfix">
    <div class="news_body clearfix">
        <div class="news_left">
            <span class="more"></span>
            <ul class="news_cates_tab">
            <li data-cid="0" @if($cate_id == 0) class="selected" @endif>推荐</li>
            @foreach ($cates as $cate)
                <li data-cateid="{{ $cate['id'] }}" @if($cate_id == $cate['id']) class="selected" @endif>{{ $cate['name'] }}</li>
            @endforeach
            </ul>
            <div id="news_list">
            </div>
        </div>

        <div class="right_container">
            <div class="news_release_btn">
                <a href="javascript:;" id="news-release">
                    <span>
                        <svg class="icon white_color" aria-hidden="true"><use xlink:href="#icon-publish"></use></svg>投稿
                    </span>
                </a>
            </div>
            <!-- 近期热点 -->
            @include('pcview::widgets.hotnews')

            <!-- 广告位 -->
            @include('pcview::widgets.ads', ['space' => 'pc:news:right', 'type' => 1])
        </div>

    </div>
</div>
@endsection


@section('scripts')
<script src="{{ asset('assets/pc/js/module.news.js') }}"></script>
<script src="{{ asset('assets/pc/js/unslider.min.js') }}"></script>
<script type="text/javascript">
$(function(){
    //加载资讯列表
    if ({{ $cate_id }} == 0) {
        var params = {
            isAjax: true,
            type: 'recommend'
        };
    } else {
        var params = {
            isAjax: true,
            type: 'category',
            category: {{ $cate_id }}
        };
    }
 
{'fraction_non_alphanumeric': 0.20723336853220697, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 2.22468085106383, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1563022', 'n_tokens_mistral': 1265, 'n_tokens_neox': 1259, 'n_words': 223}