小程序wx.showModal中的content使用\n换行时,苹果手机内容显示不全

发布于 9 年前作者 yguo9939 次浏览最后编辑 9 年前来自 issues
            wx.showModal({
              title: "是否确认支付",
              content: `¥${sumPrice}\n未拼团成功,可以随时退款\n拼团成功后,暂不支持退款`,
              showCancel: true,
              cancelText: "取消",
              cancelColor: "#000000",
              confirmText: "确定支付",
              confirmColor: "#f1a818",
...
});

上面是代码片段,其中 有两个\n,应该分为三行内容,但是在苹果手机中,最后一行内容消失不见

下面是安卓手机,显示正常

3 回复
kdai
kdai1 楼6 年前

感谢反馈,我们会后续修复

mengyong
mengyong2 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

li67
li673 楼6 年前

微信 7.0.8 版本已支持换行,可更新试下