Model.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <meta name="viewport"
  5. content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon">
  7. <link rel="stylesheet" href="css/index.css">
  8. <script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
  9. <head>
  10. <title>-</title>
  11. <script src="js/4dage.js"></script>
  12. <script src="./info.js"></script>
  13. <script>
  14. document.title = titleInfo
  15. </script>
  16. <style>
  17. html {
  18. overflow: hidden;
  19. }
  20. .logo {
  21. display: flex;
  22. justify-content: center;
  23. align-items: center;
  24. z-index: 9999;
  25. width: 90vw;
  26. position: absolute;
  27. left: 50%;
  28. transform: translateX(-50%);
  29. bottom: 10px;
  30. height: 50px;
  31. }
  32. .logo .img {
  33. background: url('./img/logo.png');
  34. background-size: 100% 100%;
  35. max-width: 40vw;
  36. max-height: 50px;
  37. height: 40px;
  38. width: 150px;
  39. }
  40. .logo .logotxt {
  41. padding-bottom: 5px;
  42. color: #666;
  43. border-bottom: 1px solid #666;
  44. }
  45. .back {
  46. z-index: 998;
  47. cursor: pointer;
  48. width: 30px;
  49. height: 30px;
  50. position: absolute;
  51. bottom: 10px;
  52. left: 10px;
  53. }
  54. .back img {
  55. width: 100%;
  56. height: 100%;
  57. }
  58. .outerImg {
  59. transition: all 1s;
  60. opacity: 1;
  61. position: absolute;
  62. z-index: 998;
  63. top: 0;
  64. left: 0;
  65. width: 100%;
  66. height: 100%;
  67. background-color: #1a1b20;
  68. }
  69. .outerImg img {
  70. position: absolute;
  71. width: 100%;
  72. height: 100%;
  73. object-fit: cover;
  74. }
  75. /* ---------------按钮和文字介绍------------- */
  76. body {
  77. user-select: none;
  78. }
  79. .topButn {
  80. opacity: 0;
  81. pointer-events: none;
  82. z-index: 999;
  83. position: absolute;
  84. top: 50px;
  85. left: 10px;
  86. }
  87. .topButn div {
  88. padding: 0 5px;
  89. margin-bottom: 10px;
  90. width: 100%;
  91. height: 40px;
  92. line-height: 40px;
  93. border-radius: 20px;
  94. font-size: 18px;
  95. color: #fff;
  96. cursor: pointer;
  97. text-align: center;
  98. /* background-color: #f2cd83; */
  99. background-color: #ccc;
  100. border-radius: 5px;
  101. }
  102. .con::-webkit-scrollbar {
  103. /*滚动条整体样式*/
  104. width: 3px;
  105. /*高宽分别对应横竖滚动条的尺寸*/
  106. height: 1px;
  107. }
  108. .con::-webkit-scrollbar-thumb {
  109. /*滚动条里面小方块*/
  110. border-radius: 10px;
  111. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  112. background: #f2cd83;
  113. }
  114. .con::-webkit-scrollbar-track {
  115. /*滚动条里面轨道*/
  116. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  117. border-radius: 10px;
  118. background: #ededed;
  119. }
  120. .txtOne {
  121. opacity: 0;
  122. pointer-events: none;
  123. padding: 30px 15px 30px 30px;
  124. z-index: 1000;
  125. position: absolute;
  126. top: 150px;
  127. left: 10px;
  128. background-image: url('./img/divBac.png');
  129. background-color: rgba(0, 0, 0, .6);
  130. background-size: 100% 100%;
  131. width: 400px;
  132. height: 500px;
  133. z-index: 9999;
  134. color: #a08742;
  135. }
  136. .txtOne .con {
  137. text-align: justify;
  138. padding-right: 28px;
  139. line-height: 30px;
  140. margin-bottom: 30px;
  141. overflow-y: auto;
  142. height: 100%;
  143. }
  144. .txtOne .con>h3 {
  145. margin-left: -5px;
  146. font-size: 18px;
  147. font-weight: 700;
  148. margin-bottom: 15px;
  149. }
  150. .txtOne .close {
  151. cursor: pointer;
  152. position: absolute;
  153. right: 24px;
  154. top: 20px;
  155. width: 20px;
  156. height: 20px;
  157. }
  158. .txtOne .close img {
  159. width: 100%;
  160. height: 100%;
  161. }
  162. /* 手机端的样式 */
  163. @media screen and (max-width: 600px) {
  164. .topButn {
  165. width: 220px;
  166. display: flex;
  167. justify-content: center;
  168. margin: 0;
  169. top: 5px;
  170. left: 50%;
  171. transform: translateX(-50%);
  172. pointer-events: auto;
  173. }
  174. .topButn div {
  175. width: 90px;
  176. font-size: 14px;
  177. background-color: #f2cd83;
  178. }
  179. .txtOne {
  180. display: none;
  181. box-sizing: border-box;
  182. width: 100vw;
  183. height: 100vh;
  184. top: 0;
  185. left: 0;
  186. transform: translate(0, 0);
  187. max-height: 100vh;
  188. color: #fff;
  189. }
  190. .txtOne .con {
  191. color: #fff;
  192. height: calc(100vh - 100px);
  193. }
  194. }
  195. </style>
  196. </head>
  197. <body>
  198. <!-- 新加的按钮 -->
  199. <div class="topButn">
  200. <div class="topButnOne">文物介绍</div>
  201. </div>
  202. <!-- 专家鉴定意见的文字 -->
  203. <div class="txtOne">
  204. <div class="close">
  205. <img src="./img/close.png" alt="">
  206. </div>
  207. <p class="con"></p>
  208. </div>
  209. <div class="back" onclick="javascript:history.go(-1);">
  210. <img src="./img/back.png" alt="">
  211. </div>
  212. <div class="logo">
  213. <div class="img"></div>
  214. <div class="logotxt"> 提 供 技 术 支 持 </div>
  215. </div>
  216. <div class="outerImg">
  217. <img src="./img/bg.jpg" alt="">
  218. </div>
  219. <div id="ui">
  220. </div>
  221. <script src="js/jquery.js"></script>
  222. <script src="./txt.js"></script>
  223. <script>
  224. var number = getQueryVariable("m");
  225. if (spinInfo) window.autoRotate = true;
  226. fdage.embed('4dage/' + number + '.4dage', {
  227. width: 800,
  228. height: 600,
  229. autoStart: true,
  230. fullFrame: true,
  231. pagePreset: false
  232. });
  233. $('.outerImg img').attr('src', `./images/${number}.jpg`)
  234. // 获取文字介绍
  235. if (txtShow&&txtObj[number]) {
  236. const btnDom = document.querySelector('.topButn')
  237. btnDom.style.opacity = 1
  238. // btnDom.style.pointerEvents = 'auto'
  239. const txtDom = document.querySelector('.txtOne')
  240. txtDom.style.opacity = 1
  241. txtDom.style.pointerEvents = 'auto'
  242. const txtButton = document.querySelector('.topButnOne')
  243. // 获取文本
  244. const txtInfo = txtObj[number] || '(空)'
  245. $('.txtOne .con').html(txtInfo)
  246. // 点击关闭
  247. $('.txtOne .close').click(() => {
  248. $('.txtOne').hide()
  249. btnDom.style.pointerEvents = 'auto'
  250. txtButton.style.backgroundColor = '#f2cd83'
  251. })
  252. $('.topButnOne').click(() => {
  253. $('.txtOne').show()
  254. btnDom.style.pointerEvents = 'none'
  255. txtButton.style.backgroundColor = '#ccc'
  256. })
  257. }
  258. </script>
  259. </body>
  260. </html>