收藏
回答

为什么iphone11pro max 部分机型的点击事件不触发?

iphone11pro max不能触发绑定的事件,iphone部分机型可以,部分不行。安卓手机全部可以。

代码片段

wxml:

   {{item.fileName}}


js:
 downCrpFile(e){
        let f8s,fileType
        if(e.currentTarget){
            f8s = e.currentTarget.dataset.url
            fileType = e.currentTarget.dataset.extName
        }else{
            f8s = e
            fileType = "pdf"
        }
        let parm = {f8s}
        let sign = getUrl(parm,HmacSHA1,Base64)
        console.log(parm,sign)
        let url = app.globalData.cpyUrl
       
        let reg = /(\jpeg|\png|\jpg)/i; 
        if (reg.test(fileType)){
            this.downloadfile(`${url}/sys-storage/download_image?${sign}`)
        }else{
            this.downloadfile(`${url}/sys-storage/download?${sign}`)
        }
    }
回答关注问题邀请回答
收藏

1 个回答

  • 😶
    😶
    2021-01-19

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2021-01-19
    有用
    回复
登录 后发表内容
问题标签