- 按钮穿透问题
有一个固定在屏幕底部的button,但是一点击就会触发其下面的button或者input。尝试将此底部的button放在cover-view里,依然会穿透下方组件。哪位大神帮忙解惑,在下不胜感激!~~
2019-04-11 - 小程序已上线,小程序搜索名称搜索不到, 隐私设置是允许被搜
小程序名称:小明免费斗音去水印,APPID:wx0e4df37b700d52d1
2019-04-11 - openDocument打开错误
[图片][图片] 你好,我们有国外的同事在使用小程序的时候,用安卓下载并打开 pdf 文件会提示这个错误,错误如图,代码如下所示,请问是什么原因,国内安卓和海外 ios 没问题 打了 log,下载完显示指定目录文件是有大小的,但是去文件管理器里却找不到,国内安卓可以使用,并且能在文件管理器里找到 [代码]var that = this[代码][代码] [代码][代码]var ticketLocalPath = wx.env.USER_DATA_PATH + '/1.pdf'[代码][代码] [代码][代码]console.log(ticketLocalPath)[代码][代码] [代码][代码]wx.showLoading({[代码][代码] [代码][代码]title: '票券下载中',[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.downloadFile({[代码][代码] [代码][代码]url: 'https://www.2paynow.cn/zhifu/merchant_material/eTicket2/472200101/tickets/ticket_190404105200_184030085.pdf',[代码][代码] [代码][代码]success: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]var tempPath = res.tempFilePath //返回的文件临时地址,用于后面打开本地预览所用[代码][代码] [代码][代码]wx.getFileSystemManager().getFileInfo({[代码][代码] [代码][代码]filePath: tempPath,[代码][代码] [代码][代码]success: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.getFileSystemManager().saveFile({[代码][代码] [代码][代码]tempFilePath: tempPath,[代码][代码] [代码][代码]filePath: ticketLocalPath,[代码][代码] [代码][代码]success: function(res) {[代码][代码] [代码][代码]console.log('下载成功')[代码][代码] [代码][代码]wx.openDocument({[代码][代码] [代码][代码]filePath: ticketLocalPath,[代码][代码] [代码][代码]fileType: 'pdf',[代码][代码] [代码][代码]fail: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]util.showToast("打开失败")[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: function({[代码][代码] [代码][代码]result[代码][代码] [代码][代码]}) {[代码][代码] [代码][代码]wx.getFileSystemManager().getFileInfo({[代码][代码] [代码][代码]filePath: ticketLocalPath,[代码][代码] [代码][代码]success: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]util.showToast("下载失败")[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: function(res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]util.showToast("下载失败")[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]
2019-04-08