Browse Source

feat:微信端 h5访问

wangshan 1 year ago
parent
commit
c2153e8168

+ 3 - 1
src/web/staticres/common-module/exhibition/js/index.js

@@ -43,7 +43,9 @@ $(function () {
 function go_kf () {
   var isWeiXinBrowser =
     navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
-  window.location.href = isWeiXinBrowser
+  var isH5 = window.location.href.indexOf('h5')!==-1
+  var isApp = window.location.href.indexOf('app')!==-1
+  window.location.href = isWeiXinBrowser&&!isH5&&!isApp
     ? '/big/wx/page/customer?auto=1'
     : '/jyapp/free/customer?auto=1'
 

+ 2 - 2
src/web/templates/big-member/wx/page_pro_follow_detail.html

@@ -1472,9 +1472,9 @@
             },
             // 项目公告跳转到三级页
             getDetail: function (sid) {
-                if (utils.isWeiXinBrowser) {
+                if (utils.isWeiXinBrowser&&window.location.href.indexOf("/jyapp/")<0){
                     location.href = '/article/content/' + sid + '.html'
-                } else {
+                }else {
                     location.href = '/jyapp/article/content/' + sid + '.html'
                 }
             },