Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝小程序的rich-text问题 #26

Open
roberthuang123 opened this issue Apr 12, 2019 · 1 comment
Open

支付宝小程序的rich-text问题 #26

roberthuang123 opened this issue Apr 12, 2019 · 1 comment
Labels

Comments

@roberthuang123
Copy link

用Taro在自己项目中使用过rich-text,发现微信小程序正常,支付宝小程序的rich-text显示有问题,本来想借鉴大佬的写法,结果看了源码发现商品详情全部为图片,还特地把img过滤出来,并没有使用rich-text,支付宝小程序的rich-text规定nodes只能接数组,使用它推荐的插件将字符串转换成数组发现导致其他错误,这个问题只能暂时搁置了,请好心人贡献demo

@js-newbee
Copy link
Owner

嗯,不少项目为了保证兼容性(其实就是偷懒了,2333),商品描述直接全部输出为图片。你可以看下 github 中有没有相关的开源项目,例如有没有兼容支付宝的 wxParse 之类的。

rich-text 我也还缺乏实际应用,后续会去尝试下,有合适方案的话再更新上来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants