فهرست منبع

fix: 修复headjs报错

cuiyalong 6 ماه پیش
والد
کامیت
cd0ffcff6b

+ 3 - 3
src/web/staticres/common-module/mobile-portrayal-footer/js/mobile-portrayal-footer.js

@@ -130,9 +130,9 @@ var mobilePortrayalFooter = {
  },
   methods: {
     downLoad(){
-      if (utils.$envs.inWxMini) {
-        return utils.toDownloadApp()
-      }
+      // if (utils.$envs.inWxMini) {
+      //   return utils.toDownloadApp()
+      // }
       this.$parent.$refs.downloadpopup.show() //触发引用此组件父级组件的下载弹框
     },
     monitorClick: utils.debounce(function(){

+ 6 - 1
src/web/staticres/common-module/public/head.js

@@ -71,8 +71,13 @@
       }
     }
 
-    loadJS('res2.wx.qq.com/open/js/jweixin-1.6.0.js', function () {
+    loadJS('https://res2.wx.qq.com/open/js/jweixin-1.6.0.js', function () {
       setMiniAppInfo()
+      try {
+        miniAppInitLoaded && miniAppInitLoaded()
+      } catch (error) {
+        console.log(error)
+      }
     })
   }