tpl.html 19 KB

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