|
@@ -570,6 +570,9 @@
|
|
|
body{font-size: 12px}
|
|
|
}
|
|
|
</style>
|
|
|
+
|
|
|
+ <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js" charset="utf-8"></script>
|
|
|
+ <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
|
|
<script>
|
|
|
//判断访问终端
|
|
|
var browser = {
|
|
@@ -599,16 +602,44 @@
|
|
|
document.querySelector('.zy-h5-fx-bar').style.display = 'none'
|
|
|
}
|
|
|
|
|
|
+ // 动态加载js
|
|
|
+ function loadScript(url, callback) {
|
|
|
+ var script = document.createElement("script");
|
|
|
+ script.type = "text/javascript";
|
|
|
+ if (typeof(callback) != "undefined") {
|
|
|
+ if (script.readyState) {
|
|
|
+ script.onreadystatechange = function() {
|
|
|
+ if (script.readyState == "loaded" || script.readyState == "complete") {
|
|
|
+ script.onreadystatechange = null;
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ script.onload = function() {
|
|
|
+ callback();
|
|
|
+ };
|
|
|
+ }
|
|
|
+ };
|
|
|
+ script.src = url;
|
|
|
+ document.body.appendChild(script);
|
|
|
+ }
|
|
|
+
|
|
|
var activeId = "${active.id!}"
|
|
|
var baseUrl = "${active.staticMouldTheme.basePath}"
|
|
|
var baseType = "${basePathType}"
|
|
|
var staticHtmlPath = "${active.staticHtmlPath!}"
|
|
|
+
|
|
|
+ if(baseUrl.indexOf('http://') >=0 ){
|
|
|
+ baseUrl = baseUrl.replace('http://','https://')
|
|
|
+ }
|
|
|
+ if(staticHtmlPath.indexOf('http://') >=0 ){
|
|
|
+ staticHtmlPath = staticHtmlPath.replace('http://','https://')
|
|
|
+ }
|
|
|
+
|
|
|
+ loadScript(baseUrl+"/alert.js")
|
|
|
+ loadScript(baseUrl+"/leftTime.min.js")
|
|
|
+ loadScript(baseUrl+"/script.js")
|
|
|
+ loadScript(baseUrl+"/spin.min.js")
|
|
|
+ loadScript(baseUrl+"/shareWx.js")
|
|
|
</script>
|
|
|
- <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js" charset="utf-8"></script>
|
|
|
- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
|
|
- <script src="${active.staticMouldTheme.basePath}/alert.js"></script>
|
|
|
- <script src="${active.staticMouldTheme.basePath}/leftTime.min.js"></script>
|
|
|
- <script src="${active.staticMouldTheme.basePath}/script.js"></script>
|
|
|
- <script src="${active.staticMouldTheme.basePath}/spin.min.js"></script>
|
|
|
- <script src="${active.staticMouldTheme.basePath}/shareWx.js" charset="utf-8"></script>
|
|
|
</html>
|