2020-01-01 13:17:19 +08:00
|
|
|
|
{extend name="public/base" /}
|
2021-05-20 11:52:40 +08:00
|
|
|
|
|
2020-03-15 18:38:56 +08:00
|
|
|
|
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
|
|
|
|
|
{block name="keywords"}{$article.title},{$article.tags}{/block}
|
|
|
|
|
{block name="description"}{$article.title},{:getArtContent($article.content)}{/block}
|
2021-05-24 15:05:30 +08:00
|
|
|
|
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/block}
|
2020-04-06 18:01:17 +08:00
|
|
|
|
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{block name="content"}
|
|
|
|
|
<div class="layui-container">
|
|
|
|
|
<div class="layui-row layui-col-space15">
|
|
|
|
|
<div class="layui-col-md8 content detail">
|
|
|
|
|
<div class="fly-panel detail-box">
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<h1 style="color:{$article.title_color};">{$article.title}
|
|
|
|
|
<span class="layui-hide-xs"><div onclick="PhoneDown();" style="" class="detail_qrcode" id="mobile"></div></span>
|
2020-04-19 14:29:34 +08:00
|
|
|
|
</h1>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<span class="fly-list-nums">
|
|
|
|
|
<a href="#comment"><i class="iconfont" title="{:lang('reply')}"></i> {$comments->count()} </a>
|
|
|
|
|
<i class="iconfont" title="浏览"></i> {$pv}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<div class="detail-about">
|
|
|
|
|
<a class="fly-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
|
|
|
|
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
|
|
|
|
<i class="iconfont icon-renzheng" title="认证信息"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="fly-detail-user">
|
|
|
|
|
<a href="{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
|
|
|
|
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($article.user.area_id) ?: '无'}</i>{/if}
|
|
|
|
|
<cite>{$article.user.nickname ?: $article.user.name}</cite>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fly-detail-info">
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<div class="fly-admin-box" data-id="{$article.id}">
|
2020-07-10 16:39:21 +08:00
|
|
|
|
{if ($user.auth ?? '')}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="del"><i class="layui-icon layui-icon-delete"></i></span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{if($article.is_top == 0)}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1"><i class="layui-icon layui-icon-top"></i></span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{else /}
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" style="background-color:#ccc;">{:lang('cancel topping')}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/if}
|
|
|
|
|
{if($article.is_hot == 0)}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1"><i class="layui-icon layui-icon-fire"></i></span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{else /}
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">{:lang('cancel hoting')}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/if}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
{if($article.is_reply == 1)}
|
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="0"><i class="layui-icon layui-icon-face-cry"></i></span>
|
|
|
|
|
{else /}
|
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="1" style="background-color:#ccc;">{:lang('enable reply')}</span>
|
|
|
|
|
{/if}
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span id="color">{:lang('title color')}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/if}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
|
|
|
|
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
|
|
|
|
{/if}
|
|
|
|
|
<div id="LAY_jieAdmin" data-id="{$article['id']}"></div>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
|
|
|
|
|
<div class="detail-hits">
|
|
|
|
|
<!--span style="padding-right: 10px; color: #FF7200">悬赏:60飞吻</span-->
|
|
|
|
|
<span class="post-time" data="{$article.create_time}" style="padding-top: 5px;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="detail-body photos">{$article.content|raw}</div>
|
2020-06-19 16:30:27 +08:00
|
|
|
|
{notempty name="$article.upzip"}
|
|
|
|
|
<div class="layui-inline">
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<label ">{:lang('enclosure')}:</label>
|
2020-12-14 14:53:33 +08:00
|
|
|
|
<button type="button" class="layui-btn" id="zip-download"><i class="layui-icon layui-icon-download-circle"></i>{:lang('download files')}: {$article.downloads}次</button>
|
2020-06-19 16:30:27 +08:00
|
|
|
|
</div>
|
|
|
|
|
{/notempty}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<!--评论-->
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<div class="fly-panel detail-box" id="flyReply">
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<span style="font-size:18px;">评论 {$comments->count()}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<ul class="jieda" id="jieda">
|
2020-11-04 12:24:54 +08:00
|
|
|
|
{volist name="comments" id="vo" empty= ""}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<li data-id="{$vo.id}" class="jieda-daan">
|
|
|
|
|
<a name="item-1111111111"></a>
|
|
|
|
|
<div class="detail-about detail-about-reply">
|
|
|
|
|
<a class="fly-avatar" href="{:url('user/home',['id'=>$vo.user.id])}">
|
|
|
|
|
<img src="{$vo.user.user_img}" alt=" ">
|
|
|
|
|
</a>
|
|
|
|
|
<div class="fly-detail-user">
|
|
|
|
|
<a href="{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
2021-07-23 17:05:43 +08:00
|
|
|
|
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($vo.user.area_id) ?: '无'}</i>{/if}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<cite>{$vo.user.nickname ?: $vo.user.name}</cite>
|
2020-02-12 15:08:52 +08:00
|
|
|
|
<!--i class="iconfont icon-renzheng" title="认证信息:XXX"></i>
|
|
|
|
|
<i class="layui-badge fly-badge-vip">VIP3</i-->
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</a>
|
|
|
|
|
{if condition="$article.user.id eq $vo.user.id"}
|
2020-11-04 12:24:54 +08:00
|
|
|
|
<span>({:lang('poster')})</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/if}
|
|
|
|
|
<!--
|
|
|
|
|
<span style="color:#5FB878">(管理员)</span>
|
|
|
|
|
<span style="color:#FF9E3F">(社区之光)</span>
|
|
|
|
|
<span style="color:#999">(该号已被封)</span>
|
|
|
|
|
-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="detail-hits">
|
2021-06-07 17:53:24 +08:00
|
|
|
|
<span class="post-time" data="{$vo.create_time}"></span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
{if $vo.cai == 1}
|
|
|
|
|
<i class="iconfont icon-caina" title="最佳答案"></i>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="detail-body jieda-body photos">{$vo.content|raw}</div>
|
|
|
|
|
|
|
|
|
|
<div class="jieda-reply">
|
|
|
|
|
<span class="jieda-zan {if($vo.zan != 0)}zanok{/if}" type="zan">
|
2020-03-15 18:38:56 +08:00
|
|
|
|
<i class="iconfont icon-zan"></i><em>{$vo.zan}</em>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</span>
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span type="reply"><i class="iconfont icon-svgmoban53"></i>{:lang('reply')}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
|
|
|
|
|
<div class="jieda-admin">
|
2020-07-10 16:39:21 +08:00
|
|
|
|
{if (session('user_id') == $vo.user.id) && (getLimtTime($vo.create_time) < 2) OR ($user.auth ?? '')}
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span type="edit">{:lang('edit')}</span>
|
|
|
|
|
<span type="del">{:lang('delete')}</span>
|
2021-07-07 17:17:58 +08:00
|
|
|
|
{if $vo.cai == 0 && (session('user_id') == $article.user_id) OR ($user.auth ?? '') /}
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<span class="jieda-accept" type="accept">{:lang('accept')}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/if}
|
2020-03-15 18:38:56 +08:00
|
|
|
|
{/if}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
{/volist}
|
|
|
|
|
</ul>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
<div style="text-align: center">{$comments|raw}</div>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{if condition="$article.is_reply == 1"}
|
|
|
|
|
<div class="layui-form layui-form-pane">
|
2020-03-28 21:48:35 +08:00
|
|
|
|
<form >
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<div class="layui-form-item layui-form-text">
|
|
|
|
|
<a name="comment"></a>
|
|
|
|
|
<div class="layui-input-block">
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<textarea id="L_content" name="content" required lay-verify="required" placeholder="{:lang('please input the content')}" class="layui-textarea fly-editor" style="height: 150px;"></textarea>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
<input type="hidden" name="article_id" value="{$article.id}">
|
|
|
|
|
<input type="hidden" name="user_id" value="{:session('user_id')}">
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<button type="button" class="layui-btn" lay-filter="*" lay-submit id="recomment">{:lang('submit comments')}</button>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{else /}
|
|
|
|
|
<blockquote class="layui-elem-quote layui-quote-nm layui-disabled" style="margin: 100px 0 20px; padding: 50px 20px; text-align: center; color: #999!important;">本帖已设置禁止回复</blockquote>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-col-md4">
|
2021-07-22 10:43:48 +08:00
|
|
|
|
<div class="fly-panel">
|
|
|
|
|
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
|
|
|
|
<a href="" class="fly-link fly-joinad">{:lang('i want to join')}</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fly-panel-main">
|
|
|
|
|
{volist name="ad_comm" id="vo"}
|
|
|
|
|
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
|
|
|
|
{/volist}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<dl class="fly-panel fly-list-one">
|
2020-11-02 15:41:31 +08:00
|
|
|
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{volist name="artHot" id="vo"}
|
2021-07-22 10:43:48 +08:00
|
|
|
|
<dd>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
2020-05-17 18:03:08 +08:00
|
|
|
|
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</dd>
|
2021-07-22 10:43:48 +08:00
|
|
|
|
{/volist}
|
|
|
|
|
</dl>
|
|
|
|
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
|
|
|
|
{volist name="ad_art" id="vo"}
|
|
|
|
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
|
|
|
|
{/volist}
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-07-23 17:05:43 +08:00
|
|
|
|
{include file="public/menu" /}
|
|
|
|
|
<!--底部栏-->
|
|
|
|
|
<div class="site-tree-mobile-detail-bottom layui-hide-md">
|
|
|
|
|
<div id="LAY_jieAdmin" data-id="{$article['id']}"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-01-01 13:17:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
{/block}
|
|
|
|
|
{block name="script"}
|
|
|
|
|
<script>
|
2021-05-20 11:52:40 +08:00
|
|
|
|
var collectionFind = "{:url('Collection/find')}",
|
|
|
|
|
articleJieset = "{:url('Article/jieset')}",
|
|
|
|
|
articleDelete = "{:url('Article/delete')}",
|
|
|
|
|
commentJiedaZan = "{:url('Comment/jiedaZan')}",
|
|
|
|
|
commentJiedaCai = "{:url('Comment/jiedaCai')}",
|
|
|
|
|
commentGetDa = "{:url('Comment/getDa')}",
|
|
|
|
|
commentUpdateDa = "{:url('Comment/updateDa')}",
|
|
|
|
|
commentJiedaDelete = "{:url('Comment/jiedaDelete')}",
|
2020-11-04 12:24:54 +08:00
|
|
|
|
langCollection = "{:lang('collection')}",
|
|
|
|
|
langCancelCollection = "{:lang('cancel collection')}";
|
2021-06-07 17:53:24 +08:00
|
|
|
|
var collection = "{:url('collection/')}";
|
2021-05-24 15:05:30 +08:00
|
|
|
|
|
|
|
|
|
layui.use(['fly', 'face','colorpicker','plyr'], function(){
|
2020-01-01 13:17:19 +08:00
|
|
|
|
var $ = layui.$
|
2020-04-19 14:29:34 +08:00
|
|
|
|
,fly = layui.fly
|
2021-05-24 15:05:30 +08:00
|
|
|
|
,colorpicker = layui.colorpicker
|
|
|
|
|
,plyr = layui.plyr;
|
2021-06-07 17:53:24 +08:00
|
|
|
|
var laytpl = layui.laytpl;
|
2020-01-01 13:17:19 +08:00
|
|
|
|
|
2021-06-07 17:53:24 +08:00
|
|
|
|
//tpl模板给发布时间赋值
|
|
|
|
|
$('div.detail-hits').children('span.post-time').each(function(){
|
|
|
|
|
var othis = $(this), html = othis.html();
|
|
|
|
|
var string = laytpl('{{ d.time }}').render({
|
|
|
|
|
//time: html
|
|
|
|
|
time: othis.attr('data')
|
|
|
|
|
});
|
|
|
|
|
var posttime = layui.util.timeAgo(string, 1);
|
|
|
|
|
|
|
|
|
|
othis.text(posttime);
|
|
|
|
|
//console.log(othis.attr('data'));
|
2021-07-23 17:05:43 +08:00
|
|
|
|
});
|
2021-06-07 17:53:24 +08:00
|
|
|
|
|
|
|
|
|
|
2020-04-27 18:16:12 +08:00
|
|
|
|
//预定义颜色项
|
2020-04-19 14:29:34 +08:00
|
|
|
|
colorpicker.render({
|
|
|
|
|
elem: '#color'
|
|
|
|
|
,color: '#393d49'
|
|
|
|
|
,predefine: true // 开启预定义颜色
|
|
|
|
|
,size: 'xs'
|
|
|
|
|
,done: function(color){
|
|
|
|
|
//改变标题颜色
|
|
|
|
|
$('h1').css("color", color);
|
|
|
|
|
var id = {$article.id};
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:'post',
|
|
|
|
|
url:"{:url('Article/titleColor')}",
|
|
|
|
|
data:{id: id,title_color: color},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.code == 0){
|
2021-07-23 17:05:43 +08:00
|
|
|
|
layer.msg(data.msg,{icon:6,time:2000
|
2020-04-19 14:29:34 +08:00
|
|
|
|
});
|
|
|
|
|
} else {
|
2021-07-23 17:05:43 +08:00
|
|
|
|
layer.open({content:data.msg,icon:5,adim:6});
|
2020-04-19 14:29:34 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
2020-04-27 18:16:12 +08:00
|
|
|
|
|
2020-04-24 15:07:26 +08:00
|
|
|
|
//评论需要登陆
|
|
|
|
|
$('#recomment').click(function (){
|
|
|
|
|
var uid = "{:session('user_id')}";
|
|
|
|
|
if (uid != '') {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:"post",
|
|
|
|
|
url:"{:url('article/comment')}",
|
|
|
|
|
data:$('form').serialize(),
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function (data) {
|
|
|
|
|
if (data.code == 0) {
|
2021-07-23 17:05:43 +08:00
|
|
|
|
layer.msg(data.msg,{icon:6,time:2000},function () {
|
2020-04-24 15:07:26 +08:00
|
|
|
|
location.reload(true);
|
|
|
|
|
});
|
|
|
|
|
}else {
|
2021-07-23 17:05:43 +08:00
|
|
|
|
layer.open({title:'评论失败',content:data.msg,icon:5,anim:6});
|
2020-04-24 15:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
2021-07-23 17:05:43 +08:00
|
|
|
|
layer.msg('请先登陆',{icon:5,time:2000},function(){
|
2020-04-24 15:07:26 +08:00
|
|
|
|
location.href = "{:url('login/index')}";
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
});
|
2020-06-19 16:30:27 +08:00
|
|
|
|
|
|
|
|
|
//下载
|
|
|
|
|
$('#zip-download').click(function (){
|
|
|
|
|
var id = "{$article.id}";
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:"post",
|
|
|
|
|
url:"{:url('article/download')}",
|
|
|
|
|
data:{id:id},
|
|
|
|
|
success:function (data) {
|
|
|
|
|
location.href = "{:url('article/download',['id'=>$article.id])}";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
2020-07-10 16:39:21 +08:00
|
|
|
|
|
|
|
|
|
//如果你是采用模版自带的编辑器,你需要开启以下语句来解析。
|
2020-01-01 13:17:19 +08:00
|
|
|
|
$('.detail-body').each(function(){
|
|
|
|
|
var othis = $(this), html = othis.html();
|
|
|
|
|
othis.html(fly.content(html));
|
2021-07-23 17:05:43 +08:00
|
|
|
|
});
|
2021-05-24 15:05:30 +08:00
|
|
|
|
//加载播放器
|
|
|
|
|
plyr.setup();
|
2020-07-10 16:39:21 +08:00
|
|
|
|
|
2020-01-01 13:17:19 +08:00
|
|
|
|
});
|
2020-07-10 16:39:21 +08:00
|
|
|
|
|
2020-11-30 17:13:55 +08:00
|
|
|
|
//扫码阅读
|
2020-04-27 18:16:12 +08:00
|
|
|
|
$("#rdown").hover(function(){
|
|
|
|
|
$("#phonedl").show().stop();
|
|
|
|
|
},function(){
|
|
|
|
|
$("#phonedl").hide().stop();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#phonedl").hover(function(){
|
|
|
|
|
$("#phonedl").show().stop();
|
|
|
|
|
},function(){
|
|
|
|
|
$("#phonedl").hide().stop();
|
|
|
|
|
});
|
2021-07-07 17:17:58 +08:00
|
|
|
|
|
2020-04-27 18:16:12 +08:00
|
|
|
|
function PhoneDown(){
|
|
|
|
|
layer.open({
|
|
|
|
|
title: "扫码查阅",
|
|
|
|
|
skin: 'layui-layer',
|
|
|
|
|
content: "<img src='/qrcode/?text={$Request.domain}{:url('article/detail',['id' => $article.id])}&size=230'>"
|
|
|
|
|
});
|
|
|
|
|
}
|
2021-07-23 17:05:43 +08:00
|
|
|
|
//推送百度收录服务
|
2020-02-27 20:27:55 +08:00
|
|
|
|
(function(){
|
|
|
|
|
var bp = document.createElement('script');
|
|
|
|
|
var curProtocol = window.location.protocol.split(':')[0];
|
|
|
|
|
if (curProtocol === 'https') {
|
|
|
|
|
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
|
|
|
|
}
|
|
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
|
|
s.parentNode.insertBefore(bp, s);
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
2020-01-01 13:17:19 +08:00
|
|
|
|
{/block}
|