国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
4.8KB

  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="{dede:global.cfg_soft_lang/}">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <script>
  7. const PHPURL='{dede:field name="phpurl"/}';
  8. </script>
  9. <script src="{dede:global.cfg_cmsurl/}/static/js/jquery.min.js"></script>
  10. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/bootstrap.min.css">
  11. <link href="{dede:global.cfg_cmsurl/}/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  12. <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/css/dede.css">
  13. <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/img/favicon.png">
  14. <title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
  15. <meta name="keywords" content="{dede:field.keywords/}" />
  16. <meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
  17. </head>
  18. <body>
  19. {dede:include filename="top.htm"/}
  20. {dede:include filename="header.htm"/}
  21. {dede:include filename="navbar.htm"/}
  22. <div class="container">
  23. <div class="position">
  24. <nav aria-label="breadcrumb">
  25. <ol class="breadcrumb mb-0">
  26. <li class="breadcrumb-item">当前位置</li>
  27. {dede:field name='position'/}
  28. </ol>
  29. </nav>
  30. </div>
  31. <!-- /.position -->
  32. </div>
  33. <main class="container">
  34. <div class="row">
  35. <div class="col-md-8 article-main">
  36. <h2 class="mt-0 mb-3 zixue">{dede:field.title/}</h2>
  37. <div class="body py-2">
  38. <div class="float-lg-right text-lg-right mr-5" id="body-pic">{dede:field name='image'/}</div>
  39. <p><small>商品原价:</small><span>{dede:field.price/}</span></p>
  40. <p><small>优惠价格:</small><span>{dede:field.trueprice/}</span></p>
  41. <p><small>品牌:</small><span>{dede:field.brand/}</span></p>
  42. <p><small>上架日期:</small><span>{dede:field.pubdate function="MyDate('y-m-d H:i',@me)"/}</span></p>
  43. <p><small>人气:</small><span id="_count">...</span></p>
  44. <form id="formcar" name="formcar" method="post" action="{dede:field name='phpurl'/}/posttocar.php">
  45. <input type="hidden" name="id" value="{dede:field.id/}" />
  46. <input type="hidden" name="title" value="{dede:field.title/}" />
  47. <input type="hidden" name="price" value="{dede:field.trueprice/}" />
  48. <input type="hidden" name="units" value="{dede:field.units/}" />
  49. <p><small>购物车:</small><span><a href="{dede:field name='phpurl'/}/car.php" target="_blank">查看购物车</a></span></p>
  50. <p><small>购买:</small><span><button type="submit" name="button" class="btn btn-warning">放入购物车</button></span></p>
  51. </form>
  52. <p>商品介绍</p>
  53. <div role="alert">
  54. {dede:field.body/}
  55. </div>
  56. </div>
  57. <!-- /.body -->
  58. <div class="clearfix"></div>
  59. {dede:include comment='文档顶踩模块' filename="widget_article_digg.htm"/}
  60. <div class="row">
  61. <div class="col-md-4 prenext pt-2">
  62. <div class="pagination-previous">{dede:prenext get='pre'/}</div>
  63. <div class="pagination-next mt-2">{dede:prenext get='next'/}</div>
  64. </div>
  65. <div class="col-md-8">
  66. <div class="row actbox">
  67. <ul>
  68. <li><i class="fa fa-star-o" aria-hidden="true"></i> <a
  69. href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}"
  70. target="_blank">收藏</a></li>
  71. <li><i class="fa fa-bug" aria-hidden="true"></i> <a
  72. href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a>
  73. </li>
  74. <li><i class="fa fa-thumbs-o-up" aria-hidden="true"></i> <a
  75. href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}"
  76. target="_blank">推荐</a></li>
  77. <li><i class="fa fa-print" aria-hidden="true"></i> <a href="#"
  78. onClick="window.print();">打印</a></li>
  79. </ul>
  80. </div><!-- /actbox -->
  81. </div>
  82. </div>
  83. {dede:include comment='文档评论模块' file='widget_article_feedback.htm' /}
  84. </div>
  85. <!-- /.article-main -->
  86. <aside class="col-md-4 article-sidebar">
  87. {dede:include comment='推荐内容' filename="widget_recommend.htm"/}
  88. {dede:include comment='热点内容' filename="widget_hot.htm"/}
  89. {dede:include comment='QR二维码' filename="widget_qrcode.htm"/}
  90. </aside>
  91. <!-- /.article-sidebar -->
  92. </div>
  93. </main>
  94. <!-- /main -->
  95. {dede:include filename="footer.htm"/}
  96. <script>
  97. // 页面加载触发
  98. $(document).ready(function () {
  99. // 获取文档点击数统计
  100. $.get("{dede:field name='phpurl'/}/count.php?format=json&view=yes&aid={dede:field.id/}&mid=1&cid={dede:field.channel/}", function (data) {
  101. let result = JSON.parse(data);
  102. $("#_count").html(result.data.click);
  103. })
  104. });
  105. </script>
  106. </body>
  107. </html>