Explorar el Código

二维码功能优化调整

tags/6.0.0
tianya hace 3 años
padre
commit
1565e85444
Se han modificado 30 ficheros con 323 adiciones y 263 borrados
  1. +2
    -3
      src/include/taglib/qrcode.lib.php
  2. +17
    -22
      src/plus/qrcode.php
  3. +1
    -1
      src/static/img/qrcode.js
  4. +2
    -0
      src/templets/default/article_article.htm
  5. +2
    -0
      src/templets/default/article_default.htm
  6. +2
    -0
      src/templets/default/article_default_sg.htm
  7. +2
    -0
      src/templets/default/article_image.htm
  8. +2
    -0
      src/templets/default/article_infos.htm
  9. +2
    -0
      src/templets/default/article_shop.htm
  10. +2
    -0
      src/templets/default/article_soft.htm
  11. +2
    -0
      src/templets/default/article_spec.htm
  12. +2
    -0
      src/templets/default/index.htm
  13. +3
    -1
      src/templets/default/index_article.htm
  14. +3
    -1
      src/templets/default/index_default.htm
  15. +3
    -1
      src/templets/default/index_default_sg.htm
  16. +68
    -66
      src/templets/default/index_image.htm
  17. +2
    -0
      src/templets/default/index_infos.htm
  18. +62
    -61
      src/templets/default/index_shop.htm
  19. +62
    -61
      src/templets/default/index_soft.htm
  20. +2
    -0
      src/templets/default/list_article.htm
  21. +2
    -0
      src/templets/default/list_default.htm
  22. +2
    -0
      src/templets/default/list_default_sg.htm
  23. +2
    -0
      src/templets/default/list_free.htm
  24. +2
    -0
      src/templets/default/list_image.htm
  25. +2
    -0
      src/templets/default/list_infos.htm
  26. +2
    -0
      src/templets/default/list_shop.htm
  27. +2
    -0
      src/templets/default/list_soft.htm
  28. +2
    -0
      src/templets/default/list_spec.htm
  29. +11
    -0
      src/templets/default/widget_qrcode.htm
  30. +53
    -46
      src/templets/plus/qrcode.htm

+ 2
- 3
src/include/taglib/qrcode.lib.php Ver fichero

@@ -1,6 +1,6 @@
<?php if(!defined('DEDEINC')) exit('Request Error!');
/**
* 自定义宏标记调用标签
* QRCode
*
* @version $Id: qrcode.lib.php 1 9:29 2020年9月14日 tianya $
* @package DedeCMS.Taglib
@@ -13,7 +13,6 @@
$GLOBALS['qrcode_id'] = isset($GLOBALS['qrcode_id'])? $GLOBALS['qrcode_id'] : 1;
function lib_qrcode(&$ctag,&$refObj)
{
global $dsql, $envs;
//属性处理
$attlist="type|,id|";
FillAttsDefault($ctag->CAttribute->Items,$attlist);
@@ -43,7 +42,7 @@ function lib_qrcode(&$ctag,&$refObj)
}
$reval=<<<EOT
<a href='http://2v.dedecms.com/' id='__dedeqrcode_{$GLOBALS['qrcode_id']}'>织梦二维码生成器</a>
<a href='https://www.dedebiz.com/' id='__dedeqrcode_{$GLOBALS['qrcode_id']}'>二维码、二维码生成</a>
<script type="text/javascript">
var __dedeqrcode_id={$GLOBALS['qrcode_id']};
var __dedeqrcode_aid={$id};


+ 17
- 22
src/plus/qrcode.php Ver fichero

@@ -9,30 +9,27 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
$cfg_NotPrintHead='Y';
$cfg_NotPrintHead = 'Y';
require_once(dirname(__FILE__).'/../include/common.inc.php');
require_once(DEDEINC.'/qrcode.class.php');
require_once(dirname(__FILE__) . '/../include/common.inc.php');
require_once(DEDEINC . '/qrcode.class.php');
$action = isset($action)? $action : '';
$type = isset($type)? RemoveXSS(HtmlReplace($type,3)) : '';
$action = isset($action) ? $action : '';
$type = isset($type) ? RemoveXSS(HtmlReplace($type, 3)) : '';
$id = (isset($id) && is_numeric($id)) ? $id : 0;
if ( !in_array($type,array('list','arc','index')) ) $url = "http://2v.dedecms.com";
if (!in_array($type, array('list', 'arc', 'index'))) $url = "https://www.dedebiz.com";
if ( $action=='get_qrcode' )
{
if ( $type=='arc' )
{
$url = $cfg_basehost.$cfg_plus_dir.'/view.php?aid='.$id;
} elseif ( $type=='list' )
{
$url = $cfg_basehost.$cfg_plus_dir.'/list.php?tid='.$id;
if ($action == 'get_qrcode') {
if ($type == 'arc') {
$url = $cfg_basehost . $cfg_plus_dir . '/view.php?aid=' . $id;
} elseif ($type == 'list') {
$url = $cfg_basehost . $cfg_plus_dir . '/list.php?tid=' . $id;
}
if($id==0) $url = "http://2v.dedecms.com";
if ( $type=='index' ) $url = $cfg_basehost.$cfg_plus_dir.'/index.php';
if ($id == 0) $url = "https://www.dedebiz.com";
if ($type == 'index') $url = $cfg_basehost . $cfg_plus_dir . '/index.php';
header("Content-Type: image/png");
$params=array();
$params = array();
$params['data'] = $url;
$params['size'] = 6;
$qrcode = new DedeQrcode;
@@ -41,12 +38,10 @@ if ( $action=='get_qrcode' )
} else {
header("Content-Type: text/html; charset={$cfg_soft_lang}");
$dtp = new DedeTemplate();
$tplfile = DEDETEMPLATE.'/plus/qrcode.htm';
$tplfile = DEDETEMPLATE . '/plus/qrcode.htm';
$dtp->LoadTemplate($tplfile);
$dtp->SetVar('id',$id);
$dtp->SetVar('type',$type);
$dtp->SetVar('id', $id);
$dtp->SetVar('type', $type);
$dtp->Display();
exit();
}

+ 1
- 1
src/static/img/qrcode.js Ver fichero

@@ -6,6 +6,6 @@ var __dedeqrcode_src = "\""+__dedeqrcode_dir+"/qrcode.php?id="+__dedeqrcode_aid+
document.writeln("<ins style=\"display:inline-table;border:none;margin:0;padding:0;position:relative;visibility:visible;width:100%\">");
document.writeln(" <ins id=\"__bfzInc_"+randNum+"\" style=\"display:block;border:none;margin:0;padding:0;position:relative;visibility:visible;width:100%\">");
document.writeln("<iframe id=\"dede_qrcode_frame\" name=\"dede_qrcode_frame\" width=\"260\" height=\"280\" frameborder=\"0\" src="+__dedeqrcode_src+" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" allowfullscreen=\"true\"></iframe>");
document.writeln("<iframe id=\"dede_qrcode_frame\" name=\"dede_qrcode_frame\" width=\"260\" height=\"300\" style='display:block;margin:0 auto;' frameborder=\"0\" src="+__dedeqrcode_src+" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" allowfullscreen=\"true\"></iframe>");
document.writeln(" </ins>");
document.writeln("</ins>");

+ 2
- 0
src/templets/default/article_article.htm Ver fichero

@@ -96,6 +96,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_default.htm Ver fichero

@@ -116,6 +116,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_default_sg.htm Ver fichero

@@ -116,6 +116,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_image.htm Ver fichero

@@ -192,6 +192,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_infos.htm Ver fichero

@@ -97,6 +97,8 @@
{dede:include comment='热点内容' filename="widget_hot_sg.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_shop.htm Ver fichero

@@ -101,6 +101,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_soft.htm Ver fichero

@@ -106,6 +106,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/article_spec.htm Ver fichero

@@ -68,6 +68,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/index.htm Ver fichero

@@ -164,6 +164,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='投票' filename="widget_vote.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>


+ 3
- 1
src/templets/default/index_article.htm Ver fichero

@@ -34,7 +34,7 @@
<!-- /.position -->
</div>
<main class="container mt-3">
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
@@ -68,6 +68,8 @@
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>


+ 3
- 1
src/templets/default/index_default.htm Ver fichero

@@ -34,7 +34,7 @@
<!-- /.position -->
</div>
<main class="container mt-3">
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
@@ -69,6 +69,8 @@
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>


+ 3
- 1
src/templets/default/index_default_sg.htm Ver fichero

@@ -34,7 +34,7 @@
<!-- /.position -->
</div>
<main class="container mt-3">
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
@@ -68,6 +68,8 @@
{dede:include comment='推荐内容' filename="widget_recommend_sg.htm"/}
{dede:include comment='热点内容' filename="widget_hot_sg.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>


+ 68
- 66
src/templets/default/index_image.htm Ver fichero

@@ -2,85 +2,87 @@
<html lang="zh-CN">
<head>
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
</head>
<body>
{dede:include filename="top.htm"/}
{dede:include filename="header.htm"/}
{dede:include filename="top.htm"/}
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
{dede:include filename="header.htm"/}
<main class="container">
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
{dede:channelartlist}
<div class="col-md-12 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
{dede:channelartlist}
<div class="col-md-12 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field
name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
</div>
<div class="row row-cols-2 row-cols-md-4 pt-3">
{dede:arclist row=4}
<div class="col">
<div class="card border-0 image-item">
<a href="[field:arcurl/]" title="[field:fulltitle/]" class="text-body stretched-link"><img
src="[field:litpic/]" class="card-img-top" alt="[field:fulltitle/]">
<div class="card-body">
<h6 class="card-title">[field:title/]</h6>
</div>
<div class="row row-cols-2 row-cols-md-4 pt-3">
{dede:arclist row=4}
<div class="col">
<div class="card border-0 image-item">
<a href="[field:arcurl/]" title="[field:fulltitle/]" class="text-body stretched-link"><img
src="[field:litpic/]" class="card-img-top" alt="[field:fulltitle/]">
<div class="card-body">
<h6 class="card-title">[field:title/]</h6>
</div>
</a>
</div>
</div>
{/dede:arclist}
</div>
</a>
</div>
</div>
{/dede:channelartlist}
{/dede:arclist}
</div>
</div>
</div>
{/dede:channelartlist}
</div>
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='热点内容' filename="widget_hot.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include filename="footer.htm"/}
</body>
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
</html>
{dede:include filename="footer.htm"/}
</body>
</html>

+ 2
- 0
src/templets/default/index_infos.htm Ver fichero

@@ -68,6 +68,8 @@
{dede:include comment='推荐内容' filename="widget_recommend_sg.htm"/}
{dede:include comment='热点内容' filename="widget_hot_sg.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>


+ 62
- 61
src/templets/default/index_shop.htm Ver fichero

@@ -2,79 +2,80 @@
<html lang="zh-CN">
<head>
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
</head>
<body>
{dede:include filename="top.htm"/}
{dede:include filename="header.htm"/}
{dede:include filename="top.htm"/}
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
{dede:include filename="header.htm"/}
<main class="container">
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
{dede:channelartlist}
<div class="col-md-6 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
</div>
<ul class="list-group list-group-flush">
{dede:arclist titlelen='60' row='8'}
<li><i class="fa fa-bookmark-o" aria-hidden="true"></i> <a
title="[field:fulltitle/]"
href="[field:arcurl/]">[field:title/]</a>
</li>
{/dede:arclist}
</ul>
{dede:channelartlist}
<div class="col-md-6 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field
name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
{/dede:channelartlist}
</div>
<ul class="list-group list-group-flush">
{dede:arclist titlelen='60' row='8'}
<li><i class="fa fa-bookmark-o" aria-hidden="true"></i> <a title="[field:fulltitle/]"
href="[field:arcurl/]">[field:title/]</a>
</li>
{/dede:arclist}
</ul>
</div>
</div>
{/dede:channelartlist}
</div>
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='热点内容' filename="widget_hot.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include filename="footer.htm"/}
</body>
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
</html>
{dede:include filename="footer.htm"/}
</body>
</html>

+ 62
- 61
src/templets/default/index_soft.htm Ver fichero

@@ -2,79 +2,80 @@
<html lang="zh-CN">
<head>
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
<meta charset="{dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
<link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/index.css">
<link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
<script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}">
<meta name="description" content="{dede:global.cfg_description/}">
</head>
<body>
{dede:include filename="top.htm"/}
{dede:include filename="header.htm"/}
{dede:include filename="top.htm"/}
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
{dede:include filename="header.htm"/}
<main class="container">
{dede:include filename="navbar.htm"/}
<div class="container">
<div class="position">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
</div>
<!-- /.position -->
</div>
<main class="container">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
<div class="col-12 col-lg-9 index-left">
<div class="row">
{dede:channelartlist}
<div class="col-md-6 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
</div>
<ul class="list-group list-group-flush">
{dede:arclist titlelen='60' row='8'}
<li><i class="fa fa-bookmark-o" aria-hidden="true"></i> <a
title="[field:fulltitle/]"
href="[field:arcurl/]">[field:title/]</a>
</li>
{/dede:arclist}
</ul>
{dede:channelartlist}
<div class="col-md-6 mb-3">
<div class="card ddcard-normal">
<div class="card-header">
<div class="row">
<div class="col-6 caption"><span><a href="{dede:field name='typeurl'/}">{dede:field
name='typename'/}</a></span></div>
<div class="col-6 d-flex justify-content-end more">
<a href="{dede:field name='typeurl'/}">更多</a>
</div>
</div>
{/dede:channelartlist}
</div>
<ul class="list-group list-group-flush">
{dede:arclist titlelen='60' row='8'}
<li><i class="fa fa-bookmark-o" aria-hidden="true"></i> <a title="[field:fulltitle/]"
href="[field:arcurl/]">[field:title/]</a>
</li>
{/dede:arclist}
</ul>
</div>
</div>
{/dede:channelartlist}
</div>
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
</div><!-- /.index-left -->
<aside class="col-12 col-lg-3">
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='推荐内容' filename="widget_recommend.htm"/}
{dede:include comment='热点内容' filename="widget_hot.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include filename="footer.htm"/}
</body>
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside><!-- /aside -->
</div>
</main>
<!-- /main -->
</html>
{dede:include filename="footer.htm"/}
</body>
</html>

+ 2
- 0
src/templets/default/list_article.htm Ver fichero

@@ -74,6 +74,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_default.htm Ver fichero

@@ -74,6 +74,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_default_sg.htm Ver fichero

@@ -74,6 +74,8 @@
{dede:include comment='热点内容' filename="widget_hot_sg.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_free.htm Ver fichero

@@ -55,6 +55,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_image.htm Ver fichero

@@ -68,6 +68,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_infos.htm Ver fichero

@@ -134,6 +134,8 @@
{dede:include comment='热点内容' filename="widget_hot_sg.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_shop.htm Ver fichero

@@ -76,6 +76,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_soft.htm Ver fichero

@@ -76,6 +76,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 2
- 0
src/templets/default/list_spec.htm Ver fichero

@@ -77,6 +77,8 @@
{dede:include comment='热点内容' filename="widget_hot.htm"/}
{dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
</aside>
<!-- /.article-sidebar -->


+ 11
- 0
src/templets/default/widget_qrcode.htm Ver fichero

@@ -0,0 +1,11 @@
<div class="card ddcard pt-3">
<div class="card-header">
<div class="row">
<div class="col-12 caption"><span>二维码</span></div>
</div>
</div>
<div>
{dede:qrcode/}
</div>
</div>
<!-- /.ddcard -->

+ 53
- 46
src/templets/plus/qrcode.htm Ver fichero

@@ -1,50 +1,57 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>扫描二维码</title>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<meta name="generator" content="DedeCMS V5.6" />
<meta name="author" content="desdev.cn" />
<style type="text/css">
body{
margin: 0;
}
.dede_weixin_popup {
padding: 10px;
width: 240px;
height: 300px;
background: #fff;
font-size: 12px;
}.dede_weixin_popup .dede_weixin_popup_head {
font-size: 12px;
font-weight: bold;
text-align: left;
line-height: 16px;
height: 16px;
position: relative;
color: #000;
}.dede_weixin_popup .dede_weixin_popup_foot {
font-size: 12px;
text-align: left;
line-height: 22px;
color: #666;
}
</style>
</head>
<body>
<div id="dede_weixin_qrcode_dialog" class="dede_weixin_popup" style="left: 516px; top: 9606.5px; width: 240px; height: 230px;">
<div class="dede_weixin_popup_head"><span>分享到微信朋友圈</span>
</div>
<div id="dede_weixin_qrcode_dialog_qr" class="dede_weixin_popup_main">
<center>
<a href="http://2v.dedecms.com/" target="_blank">
<img src="{dede:global name='cfg_plus_dir'/}/qrcode.php?action=get_qrcode&type={dede:var name='type'/}&id={dede:var name='id'/}" width="" height="" border="0" alt="">
</a>
</center>
</div>
<div class="dede_weixin_popup_foot">打开微信,点击底部的“发现”,
<br>使用“扫一扫”即可将网页分享至朋友圈。</div>
<head>
<title>扫描二维码</title>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<style type="text/css">
body {
margin: 0;
}
.dede_weixin_popup {
padding: 10px;
width: 240px;
height: 300px;
background: #fff;
font-size: 12px;
}
.dede_weixin_popup .dede_weixin_popup_head {
font-size: 12px;
font-weight: bold;
text-align: left;
line-height: 16px;
height: 16px;
position: relative;
color: #000;
}
.dede_weixin_popup .dede_weixin_popup_foot {
font-size: 12px;
text-align: left;
line-height: 22px;
color: #666;
text-align: center;
}
</style>
</head>
<body>
<div id="dede_weixin_qrcode_dialog" class="dede_weixin_popup"
style="width: 240px; height: 300px;">
<div class="dede_weixin_popup_head"><span>分享到微信朋友圈</span>
</div>
<div id="dede_weixin_qrcode_dialog_qr" class="dede_weixin_popup_main">
<center>
<a href="https://www.dedebiz.com/" title="二维码/二维码生成" target="_blank">
<img src="{dede:global name='cfg_plus_dir'/}/qrcode.php?action=get_qrcode&type={dede:var name='type'/}&id={dede:var name='id'/}"
border="0" alt="">
</a>
</center>
</div>
</body>
<div class="dede_weixin_popup_foot">打开微信或扫码工具,使用“扫一扫”
<br>访问后即可将网页分享至朋友圈。</div>
</div>
</body>
</html>

Cargando…
Cancelar
Guardar