detail qcode add

This commit is contained in:
toogee 2020-04-27 18:16:12 +08:00
parent d5ce1b5cbf
commit fe56b51ffc
6 changed files with 3280 additions and 3 deletions

3249
public/qrcode/index.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -480,10 +480,16 @@ body .layui-edit-face .layui-layer-content{padding:0; background-color:#fff; co
.detail-body ul>li{margin-top: 0;} .detail-body ul>li{margin-top: 0;}
.detail-body .layui-elem-quote{margin: 10px 0; font-size: 14px; line-height: 26px;} .detail-body .layui-elem-quote{margin: 10px 0; font-size: 14px; line-height: 26px;}
/*标题颜色展示方式*/
.layui-colorpicker.layui-colorpicker-xs {width: 30px;height: 20px;line-height: 16px;border: 0px solid #e6e6e6;padding: 0;vertical-align: top;border-radius: 0;}
.layui-colorpicker-trigger-span {display: block;height: 100%;box-sizing: border-box;border: 1px solid rgba(2, 0, 0, 0.24);border-radius: 2px;text-align: center;}
.layui-icon-down:before {font-size: 12px;content: "高亮";}
/*扫码阅读*/
.detail_qrcode{position: absolute;top: 7px;right: 7px;width: 30px;height: 30px;background: url(/static/res/images/detail_qrcode.png) no-repeat;background-size: 30px 30px;}
/* 发帖 */ /* 发帖 */
.layui-form-item.layui-col-space15{margin-bottom: 7.5px;} .layui-form-item.layui-col-space15{margin-bottom: 7.5px;}
/* 求解管理 */ /* 求解管理 */
.jie-admin{cursor: pointer;} .jie-admin{cursor: pointer;}
.detail-hits .jie-admin{color: #fff; padding: 0 10px; } .detail-hits .jie-admin{color: #fff; padding: 0 10px; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

View File

@ -9,7 +9,7 @@
<div class="layui-col-md8 content detail"> <div class="layui-col-md8 content detail">
<div class="fly-panel detail-box"> <div class="fly-panel detail-box">
<h1 style="color:{$article.title_color};font-weight:bold">{$article.title} <h1 style="color:{$article.title_color};font-weight:bold">{$article.title}
{if ($user.auth == 1)}<span style="float:right;" id="color"></span>{/if} <span><div onclick="PhoneDown();" style="" class="detail_qrcode" id="mobile"></div></span>
</h1> </h1>
<div class="fly-detail-info"> <div class="fly-detail-info">
@ -39,6 +39,7 @@
{else /} {else /}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">取消加精</span> <span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">取消加精</span>
{/if} {/if}
<span id="color">高亮</span>
{/if} {/if}
</div> </div>
@ -266,6 +267,7 @@ layui.config({
}); });
} }
}); });
//评论需要登陆 //评论需要登陆
$('#recomment').click(function (){ $('#recomment').click(function (){
var uid = "{:session('user_id')}"; var uid = "{:session('user_id')}";
@ -312,6 +314,26 @@ layui.config({
}); });
</script> </script>
<script> <script>
$("#rdown").hover(function(){
$("#phonedl").show().stop();
},function(){
$("#phonedl").hide().stop();
});
$("#phonedl").hover(function(){
$("#phonedl").show().stop();
},function(){
$("#phonedl").hide().stop();
});
function PhoneDown(){
layer.open({
title: "扫码查阅",
skin: 'layui-layer',
content: "<img src='/qrcode/?text={$Request.domain}{:url('article/detail',['id' => $article.id])}&size=230'>"
});
}
(function(){ (function(){
var bp = document.createElement('script'); var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0]; var curProtocol = window.location.protocol.split(':')[0];