2***@qq.com
2***@qq.com
  • 发布:2019-03-09 22:05
  • 更新:2019-06-24 18:26
  • 阅读:1206

【报Bug】h5+ nView绘制图片出不来,android可以画出来,但是ios端调用nativeobj的view对象drawText方法画不出来

分类:HTML5+

ihone6s, ios12版本测试的

// 调用原生view绘制右上角图片  
    drawImg(){  
      let _this = this;  
      _this.nview = new plus.nativeObj.View('test',{position:'absolute',top:_this.topval,right:'30px',height:'30px',width:'100%'});  
      let richtext = `<img src="${_this.ggImgLink}" width="30px" height="30px"></img>`;  
      // 绘制  
      let r = '32px';  
      if(plus.os.name == "iOS"){  
        r = '5px';  
      }  
      _this.nview.drawRichText(richtext, {top:'0',right:r,width:'30px',height:'wrap_content'}, {onClick:function(e){  
        // _this.$router.push(`outerPage?links=${_this.ggLink}&title=${_this.ggTxt}`);  
        plus.runtime.openURL(_this.ggLink)  
      }});  
      _this.nview.show();  
    },
2019-03-09 22:05 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

楼主您好, 请问这个问题您解决了吗。。

该问题目前已经被锁定, 无法添加新回复