Ver código fonte

修改协议跳转打开方式

wukunlin 5 anos atrás
pai
commit
8d7dce9bd1

+ 7 - 4
2019专题/特炫宣传页/src/modules/page/share.js

@@ -19,12 +19,15 @@ class Index {
         });
         
 
-        $('.btn').on('click',function() {
-            // alert('click')
+        $('.btn').on('touchend',function() {
+            console.log('click')
             let downloadLink = $(this).find('span').attr('href')
-            self.openApp('dwsupershow://toTemplateDetail?templateId=' + self.id)
+            // self.openApp('dwsupershow://toTemplateDetail?templateId=' + self.id)
+            location.href = 'dwsupershow://toTemplateDetail?templateId=' + self.id
             if(downloadLink) {
-                location.href = downloadLink
+                setTimeout(function() {
+                    location.href = downloadLink
+                },1000)
             }
         })
 

+ 1 - 1
2019专题/特炫宣传页/src/sass/share.scss

@@ -12,7 +12,7 @@ $baseFontColor:#999;
 @import "base/mMixins";
 
 
-html,body{
+html,body {
     height: 100%;
     overflow: hidden;
 }