tpl.html 18 KB

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