|
@@ -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)
|
|
|
}
|
|
|
})
|
|
|
|