tpl.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <meta http-equiv="pragram" content="no-cache">
  8. <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  9. <meta http-equiv="expires" content="0">
  10. <title>${active.name!}</title>
  11. </head>
  12. <body>
  13. <div class="wrapper">
  14. <!-- 模板 -->
  15. <div class="zy-h5-page">
  16. <div class="zy-h5-main">
  17. <img class="zy-h5-bgimg" src="${active.staticMouldTheme.basePath}/img/logo.png">
  18. <!-- 标题部分 -->
  19. <div class="zy-h5-title">
  20. <div class="img-title-box">
  21. <span class="web-font" id="activeTitle">${active.activeTitle!}</span>
  22. <img class="img-title" src="${active.staticMouldTheme.basePath}/img/tit1.png">
  23. </div>
  24. <div class="store-name">
  25. <span>${active.contentTitle!}</span>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="zy-h5-main-active">
  30. <#list active.parentItemList as parentItem>
  31. <!-- 活动内容 -->
  32. <div class="zy-h5-active">
  33. <div class="img-hdnr">
  34. <div class="hdnr-text">
  35. <div class="a-text">
  36. <div class="a-text-1">原价${parentItem.itemSrcPrice!}元</div>
  37. <div class="a-text-2">抢购价:</div>
  38. </div>
  39. <div class="b-text">
  40. <span>${parentItem.itemActivePrice!}</span>元
  41. </div>
  42. </div>
  43. </div>
  44. <div class="active-content">
  45. <div class="ac-list">
  46. <div class="active-name">
  47. <img src="${active.staticMouldTheme.basePath}/img/star.png"/>
  48. <div>${parentItem.itemName!}</div>
  49. <img src="${active.staticMouldTheme.basePath}/img/star.png"/>
  50. </div>
  51. <#list parentItem.children as childItem>
  52. <div class="active-item">
  53. <div>${childItem.itemName!}</div>
  54. </div>
  55. </#list>
  56. <div class="active-desc">
  57. ${active.activeInfoContent!}
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </#list>
  63. </div>
  64. </div>
  65. <!--门店信息-->
  66. <div class="zy-h5-store-info">
  67. <div class="store-info-cont">
  68. <div id="showStore">
  69. <img src="${active.staticMouldTheme.basePath}/img/arrow-up.png" class="arrow-up" />
  70. <div class="store-info-title">★点击箭头查看门店★</div>
  71. </div>
  72. </div>
  73. <!-- 关注头像 -->
  74. <div class="zy-h5-gz">
  75. <div>356人已关注</div>
  76. <div class="zy-headPhoto-list">
  77. <div>
  78. <img src="${active.staticMouldTheme.basePath}/img/p1.jpg">
  79. </div>
  80. <div>
  81. <img src="${active.staticMouldTheme.basePath}/img/p2.jpg">
  82. </div>
  83. <div>
  84. <img src="${active.staticMouldTheme.basePath}/img/p3.jpg">
  85. </div>
  86. <div>
  87. <img src="${active.staticMouldTheme.basePath}/img/p4.jpg">
  88. </div>
  89. <div>
  90. <img src="${active.staticMouldTheme.basePath}/img/p5.jpg">
  91. </div>
  92. <div>
  93. <img src="${active.staticMouldTheme.basePath}/img/p6.jpg">
  94. </div>
  95. <div>
  96. <img src="${active.staticMouldTheme.basePath}/img/p7.jpg">
  97. </div>
  98. <div>
  99. <img src="${active.staticMouldTheme.basePath}/img/p8.jpg">
  100. </div>
  101. <div>
  102. <img src="${active.staticMouldTheme.basePath}/img/p9.jpg">
  103. </div>
  104. <div>
  105. <img src="${active.staticMouldTheme.basePath}/img/p10.jpg">
  106. </div>
  107. <div>
  108. <img src="${active.staticMouldTheme.basePath}/img/p11.jpg">
  109. </div>
  110. <div>
  111. <img src="${active.staticMouldTheme.basePath}/img/p12.jpg">
  112. </div>
  113. <div>
  114. <img src="${active.staticMouldTheme.basePath}/img/p13.jpg">
  115. </div>
  116. <div>
  117. <img src="${active.staticMouldTheme.basePath}/img/p14.jpg">
  118. </div>
  119. <div>
  120. <img src="${active.staticMouldTheme.basePath}/img/p15.jpg">
  121. </div>
  122. <div>
  123. <img src="${active.staticMouldTheme.basePath}/img/p16.jpg">
  124. </div>
  125. <div>
  126. <img src="${active.staticMouldTheme.basePath}/img/p17.jpg">
  127. </div>
  128. </div>
  129. </div>
  130. <!-- 参与动态 -->
  131. <div class="qg-cont">
  132. <div class="header-con">
  133. <p>已有<span id="joinerNum">${active.initBuyNum!}</span>名客户报名</p>
  134. </div>
  135. <div class="kh-list" id="kh-list"></div>
  136. </div>
  137. </div>
  138. <!-- 适用门店列表 -->
  139. <div class="mask"></div>
  140. <div class="store-info-list">
  141. <div id="close-store">
  142. <img src="${active.staticMouldTheme.basePath}/img/arrow-down.png" class="arrow-down" />
  143. <div class="store-info-title">
  144. ★点击箭头收缩门店★
  145. </div>
  146. </div>
  147. <div class="store-info-card">
  148. </div>
  149. </div>
  150. <!-- 底部浮动栏 -->
  151. <div class="zy-h5-bf-bar" id="zy-h5-bf-bar">
  152. <span class="zy-h5-yuyue" id="yuyue">
  153. <span>立即报名</span>
  154. <svg t="1587699493953" class="icon" viewBox="0 0 1077 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11152" width="16" height="16"><path d="M109.918316 941.837474A110.053053 110.053053 0 0 1 0 831.919158V177.960421a110.053053 110.053053 0 0 1 109.918316-109.918316h94.181052v-39.343158C204.099368 12.880842 216.980211 0 232.825263 0c15.845053 0 28.725895 12.880842 28.725895 28.698947v39.343158h418.816v-39.343158c0-15.818105 12.880842-28.698947 28.698947-28.698947 15.845053 0 28.725895 12.880842 28.725895 28.698947v39.343158h94.181053a110.053053 110.053053 0 0 1 109.918315 109.918316v219.621053H57.397895v434.337684c0 28.968421 23.578947 52.547368 52.547368 52.547368h363.196632a28.483368 28.483368 0 0 1 20.48 48.397474 29.965474 29.965474 0 0 1-21.234527 8.973474H109.918316z m88.872421-170.09179a28.752842 28.752842 0 0 1-28.698948-28.698947c0-15.818105 12.880842-28.698947 28.698948-28.698948h170.064842c15.845053 0 28.725895 12.880842 28.725895 28.698948 0 15.845053-12.880842 28.698947-28.725895 28.698947H198.790737z m0-204.099368A28.752842 28.752842 0 0 1 170.091789 538.947368c0-15.818105 12.880842-28.698947 28.698948-28.698947h170.064842c15.845053 0 28.725895 12.880842 28.725895 28.698947s-12.880842 28.698947-28.725895 28.698948H198.790737z" fill="#ffffff" p-id="11153"></path><path d="M811.115789 1009.852632a265.054316 265.054316 0 0 1-188.658526-78.147369 264.704 264.704 0 0 1-78.147368-188.631579c0-71.248842 27.755789-138.24 78.147368-188.658526a264.677053 264.677053 0 0 1 188.631579-78.147369c71.221895 0 138.24 27.755789 188.631579 78.147369a264.730947 264.730947 0 0 1 78.174316 188.631579c0 71.248842-27.755789 138.24-78.147369 188.631579a264.730947 264.730947 0 0 1-188.631579 78.174316z m-28.725894-238.106948v0.026948h130.775579c15.818105 0 28.698947-12.880842 28.698947-28.698948s-12.880842-28.698947-28.698947-28.698947h-73.377685v-73.350737c0-15.845053-12.880842-28.725895-28.698947-28.725895s-28.698947 12.880842-28.698947 28.725895v130.721684z" fill="#ffffff" p-id="11154"></path></svg>
  155. </span>
  156. </div>
  157. <div class="zy-h5-fx-bar"></div>
  158. <!-- 预约弹框 -->
  159. <div class="zy-h5-fix-z" id="zy-h5-fix-z"></div>
  160. <div class="zy-h5-modal" id="zy-h5-modal">
  161. <div class="zy-h5-modal-title">在线报名预约</div>
  162. <div class="zy-h5-modal-content">
  163. <p class="zy-h5-modal-form">
  164. <input type="tel" id="userPhone" maxlength="11" placeholder="输入手机号预约"/>
  165. </p>
  166. <p>
  167. <button class="zy-h5-modal-submit" id="submitModal">预约</button>
  168. <button class="zy-h5-modal-cansel" id="canselModal">取消</button>
  169. </p>
  170. </div>
  171. </div>
  172. <div id="foo"></div>
  173. </div>
  174. </body>
  175. <style>
  176. *{
  177. padding: 0;
  178. margin: 0;
  179. }
  180. body{
  181. font: 16px/1.231 "Microsoft Yahei","Helvetica Neue",Helvetica Neue,Helvetica,Arial,Lantinghei SC,Hiragino Sans GB,sans-serif,Times New Roman;
  182. }
  183. .wrapper{
  184. position: relative;
  185. }
  186. /*模板样式*/
  187. .zy-h5-main{
  188. position: relative;
  189. overflow: hidden;
  190. background: #b10c1a;
  191. }
  192. .zy-h5-bgimg{
  193. width: 38%;
  194. margin: 0 0 15px;
  195. }
  196. .zy-h5-title{
  197. text-align:center;
  198. width: 100%;
  199. color: #fff;
  200. }
  201. .img-title-box{
  202. position: relative;
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. text-shadow: 1px 3px 5px #73010c;
  207. font-weight: 900;
  208. }
  209. .img-title-box span{
  210. position: absolute;
  211. font-size: 3em;
  212. color: #f3e190;
  213. font-style: italic;
  214. font-family: 'webfont';
  215. }
  216. .img-title{
  217. width: 85%;
  218. }
  219. .store-name{
  220. font-size: 1em;
  221. display:flex;
  222. align-items: center;
  223. text-align:center;
  224. justify-content: center;
  225. margin-bottom: 1em;
  226. margin-top: -0.5em;
  227. background: url(${active.staticMouldTheme.basePath}/img/tit2.png) no-repeat center center;
  228. background-size: auto 100%;
  229. height: 3em;
  230. color: #b10c1a;
  231. }
  232. .store-name span{
  233. font-size: 1.2em;
  234. margin-top: 0.2em;
  235. }
  236. .active-time{
  237. color: #f5de98;
  238. padding: 0.3em;
  239. font-size: 0.8em;
  240. font-style: italic;
  241. padding-right: 4em;
  242. }
  243. .zy-h5-main-active{
  244. background: #b10c1a;
  245. }
  246. .zy-h5-active{
  247. width:100%;
  248. color: #fff;
  249. position:relative;
  250. padding: 3em 0;
  251. background: url(${active.staticMouldTheme.basePath}/img/qche.jpg) no-repeat right 3em;
  252. background-size: 38% auto;
  253. }
  254. .img-hdnr{
  255. position: relative;
  256. width: 42%;
  257. background-color: #ecd383;
  258. border-radius: 0 1.5em 1.5em 0;
  259. padding-right: 0.8em;
  260. }
  261. .img-hdnr > div{
  262. display: flex;
  263. align-items: center;
  264. justify-content: center;
  265. }
  266. .hdnr-text{
  267. display: flex;
  268. align-items: center;
  269. justify-content: center;
  270. width: 100%;
  271. padding-top:0.1em;
  272. font-weight:900;
  273. }
  274. .a-text-1{
  275. font-size:0.6em;
  276. color: #333;
  277. font-style: italic;
  278. text-decoration: line-through;
  279. }
  280. .a-text-2{
  281. font-size:1.1em;
  282. text-align: right;
  283. color: #ff0900;
  284. }
  285. .b-text{
  286. font-style: italic;
  287. font-weight:900;
  288. color: #ff0900;
  289. }
  290. .b-text span{
  291. font-size:2em;
  292. }
  293. .active-content {
  294. padding: 1em 0;
  295. }
  296. .ac-list{
  297. font-size: 0.8em;
  298. flex-grow:1;
  299. width: 60%;
  300. margin-top: 2em;
  301. }
  302. .ac-list .active-item{
  303. border: 1px solid #ecd383;
  304. font-size: 1.2em;
  305. padding: 0.5em;
  306. border-left: 0;
  307. margin: 1em 0;
  308. color: #ecd383;
  309. border-radius: 0 2em 2em 0;
  310. text-align: center;
  311. }
  312. .ac-list .active-name{
  313. display: flex;
  314. align-items: center;
  315. font-size: 1.3em;
  316. color: #ecd383;
  317. font-weight: bold;
  318. justify-content: center;
  319. }
  320. .ac-list .active-name img{
  321. width: 1em;
  322. height: 1em;
  323. margin: 0 0.3em;
  324. }
  325. .active-desc{
  326. padding: 1em;
  327. line-height: 1.8em;
  328. color: #fadfc7;
  329. font-size: 0.8em;
  330. }
  331. .zy-h5-gz{
  332. padding: 0.5em;
  333. border-top: 0.6em solid #ededed;
  334. }
  335. .zy-h5-gz > div:first-child{
  336. font-size: 0.8em;
  337. }
  338. .zy-headPhoto-list{
  339. padding: 0.5em 0.2em;
  340. overflow: hidden;
  341. }
  342. .zy-headPhoto-list > div{
  343. width: 35px;
  344. height: 35px;
  345. overflow:hidden;
  346. border-radius: 10em;
  347. margin: 0.2em;
  348. float: left;
  349. }
  350. .zy-headPhoto-list > div img{
  351. width: 100%;
  352. height: 100%;
  353. }
  354. /*门店信息样式*/
  355. .zy-h5-store-info{
  356. background: #fff;
  357. }
  358. .store-info-title{
  359. font-weight: bold;
  360. font-size: 20px;
  361. text-align: center;
  362. padding: 15px 0 25px;
  363. }
  364. .store-info-open{
  365. text-align: center;
  366. }
  367. .zy-h5-store-info > .store-info-cont{
  368. padding: 1em;
  369. font-size: 1em;
  370. }
  371. .zy-h5-store-info .arrow-up{
  372. display: block;
  373. margin: 10px auto 0;
  374. width: 40px;
  375. }
  376. .mask{
  377. height: 100%;
  378. width: 100%;
  379. position: fixed;
  380. z-index: 40;
  381. left: 0;
  382. top: 0;
  383. background: rgba(0,0,0,0.5);
  384. display: none;
  385. }
  386. .store-info-list{
  387. position: fixed;
  388. z-index: 50;
  389. left: 0;
  390. bottom: -1000em;
  391. background-color: #FFFFFF;
  392. max-height: 80%;
  393. /* padding: 1.5em 2em 5em; */
  394. padding: 1.5em 0 5em;
  395. display: flex;
  396. flex-direction: column;
  397. box-shadow: 0em 0em 1em #333;
  398. }
  399. .arrow-down{
  400. display: block;
  401. margin: 0 auto;
  402. width: 40px;
  403. }
  404. .close-btns{
  405. position: absolute;
  406. right: 1em;
  407. top: 1em;
  408. color: #b10c1a;
  409. font-size: 0.8em;
  410. }
  411. .store-info-card{
  412. flex-grow: 1;
  413. overflow: auto;
  414. padding: 0 1.5em;
  415. font-weight: bold;
  416. max-height: 80%;
  417. }
  418. .store-info-pic{
  419. display: block;
  420. width: 100%;
  421. }
  422. .store-info-names{
  423. padding: 0.5em 1em;
  424. background: #b10c1a;
  425. color: #fff;
  426. border-radius: 0.3em;
  427. box-shadow: 2px 2px 5px #999;
  428. position: relative;
  429. }
  430. .store-info-box{
  431. padding: 0.5em 0;
  432. border-bottom: 0.1em solid #aa975d;
  433. display: flex;
  434. background: #ecd383;
  435. color: #333;
  436. }
  437. .store-info-s{
  438. margin:0 1em 1em;
  439. padding: 1em;
  440. background: #ecd383;
  441. border-radius: 0 0 0.2em 0.2em;
  442. }
  443. .store-info-box span:last-child{
  444. line-height: 1.5em;
  445. display: flex;
  446. flex-grow: 1;
  447. width: 50%;
  448. }
  449. .store-info-box span:last-child a{
  450. color: #483803;
  451. text-decoration: none;
  452. }
  453. .zy-h5-store-info >.qg-cont{
  454. padding: 0.5em;
  455. border-top: 0.6em solid #ededed;
  456. }
  457. .zy-h5-store-info .header-con{
  458. display: flex;
  459. justify-content: center;
  460. align-items: center;
  461. background: #f8f8f8;
  462. border-radius: 0.5em;
  463. }
  464. .zy-h5-store-info .header-con > p{
  465. font-size: 1.2em;
  466. margin: 0;
  467. padding: 10px 0 8px;
  468. }
  469. .zy-h5-store-info .header-con > p:first-child{
  470. font-weight: bold;
  471. position: relative;
  472. padding-left: 10px;
  473. }
  474. .zy-h5-store-info .header-con > p:first-child span{
  475. color: red;
  476. }
  477. .kh-list{
  478. padding:0 0.5em;
  479. }
  480. .kh-list-tr{
  481. display: flex;
  482. align-items:center;
  483. justify-content: center;
  484. border-bottom: 0.1em solid #eee;
  485. }
  486. .kh-list-td{
  487. width: 50%;
  488. padding: 0.8em 0.5em;
  489. text-align: center;
  490. }
  491. .kh-list-tr-head{
  492. font-weight:bold;
  493. }
  494. .tel{
  495. font-style: initial;
  496. margin-right: 0.5em;
  497. }
  498. /*底部栏样式*/
  499. .zy-h5-fx-bar{
  500. height: 7em;
  501. }
  502. .zy-h5-bf-bar{
  503. width: 100%;
  504. padding:0.5em;
  505. background: #fff;
  506. display: flex;
  507. align-items: center;
  508. position: fixed;
  509. left: 0;
  510. bottom: 0;
  511. border-top: 1px solid #eee;
  512. z-index: 1000;
  513. box-sizing: border-box;
  514. }
  515. .zy-h5-bf-bar > span{
  516. flex-grow: 1;
  517. padding: 0.8em 0.6em;
  518. font-size: 1em;
  519. line-height: 1em;
  520. width: 12em;
  521. margin: 0 1.2em;
  522. display: flex;
  523. align-items: center;
  524. justify-content: center;
  525. min-width: 76px;
  526. }
  527. .zy-h5-bf-bar > span span{
  528. margin-right: 0.5em;
  529. }
  530. .zy-h5-yuyue {
  531. color: #fff;
  532. background: #fa6862;
  533. border-radius: 100px;
  534. text-align: center;
  535. }
  536. .zy-h5-share {
  537. color: #fff;
  538. background: #8BC34A;
  539. border-radius: 100px;
  540. text-align: center;
  541. }
  542. /*预约弹框样式*/
  543. .zy-h5-fix-z{
  544. width: 100%;
  545. height: 100%;
  546. position: fixed;
  547. top: 0;
  548. left: 0;
  549. background: rgba(0,0,0,0.5);
  550. display: none;
  551. z-index: 5000;
  552. }
  553. .zy-h5-modal{
  554. background: #fff;
  555. border-radius: 5px;
  556. overflow: hidden;
  557. position: fixed;
  558. z-index: 10000;
  559. width: 80%;
  560. top: 30%;
  561. left: 50%;
  562. margin-left: -40.3%;
  563. border: 1px solid #eee;
  564. display: none;
  565. }
  566. .zy-h5-modal-title{
  567. padding: 10px;
  568. text-align: center;
  569. border-bottom: 1px solid #EEEEEE;
  570. }
  571. .zy-h5-modal-content{
  572. padding: 15px;
  573. text-align: center;
  574. }
  575. .zy-h5-modal-form{
  576. margin: 10px 0 30px;
  577. }
  578. .zy-h5-modal-form input{
  579. padding: 10px;
  580. border: 1px solid #eee;
  581. width: 90%;
  582. box-sizing: border-box;
  583. font-size: 13px;
  584. line-height: 1.5em;
  585. }
  586. .zy-h5-modal-content p button{
  587. border-radius: 10px;
  588. padding: 7px 25px;
  589. margin: 0 18px;
  590. font-size: 1em;
  591. }
  592. .zy-h5-modal-submit{
  593. background: #378BEA;
  594. color: #fff;
  595. border: 1px solid #378BEA;
  596. }
  597. .zy-h5-modal-cansel{
  598. background: #ffffff;
  599. color: #666;
  600. border: 1px solid #eee;
  601. }
  602. /* 加载中 */
  603. #foo{
  604. width: 50px;
  605. height: 50px;
  606. position: fixed;
  607. left: 50%;
  608. top: 50%;
  609. margin: -25px 0 0 -25px;
  610. z-index: 5001;
  611. }
  612. .spinner{
  613. left: 25px!important;
  614. top: 25px!important;
  615. }
  616. @media screen and (max-width: 375px) {
  617. body{font-size: 14px}
  618. }
  619. @media screen and (max-width: 320px) {
  620. body{font-size: 12px}
  621. }
  622. </style>
  623. <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js" charset="utf-8"></script>
  624. <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  625. <script>
  626. //判断访问终端
  627. var browser = {
  628. versions: function() {
  629. var u = navigator.userAgent,
  630. app = navigator.appVersion;
  631. return {
  632. trident: u.indexOf('Trident') > -1, //IE内核
  633. presto: u.indexOf('Presto') > -1, //opera内核
  634. webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
  635. gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
  636. mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
  637. ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
  638. android: u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, //android终端
  639. iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
  640. iPad: u.indexOf('iPad') > -1, //是否iPad
  641. webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
  642. weixin: u.indexOf('MicroMessenger') > -1, //是否微信 (2015-01-22新增)
  643. qq: u.match(/\sQQ/i) == " qq" //是否QQ
  644. };
  645. }(),
  646. language: (navigator.browserLanguage || navigator.language).toLowerCase()
  647. }
  648. // 不是微信端打开的页面
  649. if (!browser.versions.weixin) {
  650. document.querySelector('.zy-h5-bf-bar').style.display = 'none'
  651. document.querySelector('.zy-h5-fx-bar').style.display = 'none'
  652. }
  653. // 动态加载js
  654. function loadScript(url, callback) {
  655. var script = document.createElement("script");
  656. script.type = "text/javascript";
  657. if (typeof(callback) != "undefined") {
  658. if (script.readyState) {
  659. script.onreadystatechange = function() {
  660. if (script.readyState == "loaded" || script.readyState == "complete") {
  661. script.onreadystatechange = null;
  662. callback();
  663. }
  664. };
  665. } else {
  666. script.onload = function() {
  667. callback();
  668. };
  669. }
  670. };
  671. script.src = url;
  672. document.body.appendChild(script);
  673. }
  674. var activeId = "${active.id!}"
  675. var baseUrl = "${active.staticMouldTheme.basePath}"
  676. var baseType = "${basePathType}"
  677. var staticHtmlPath = "${active.staticHtmlPath!}"
  678. if(baseUrl.indexOf('http://') >=0 ){
  679. baseUrl = baseUrl.replace('http://','https://')
  680. }
  681. if(staticHtmlPath.indexOf('http://') >=0 ){
  682. staticHtmlPath = staticHtmlPath.replace('http://','https://')
  683. }
  684. loadScript(baseUrl+"/alert.js")
  685. loadScript(baseUrl+"/script.js")
  686. loadScript(baseUrl+"/spin.min.js")
  687. loadScript(baseUrl+"/shareWx.js")
  688. </script>
  689. </html>