通过data中设置的color属性未起作用,模板消息中的字体颜色仍然为黑色

- 预期表现

应该为data中设置的颜色

- 复现路径


- 提供一个最简复现 Demo

var url = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=" + access_token

var jsondata = {

"touser": openid,

"template_id": "V__hBaKJtbbq8pJ6NpNNy6mI4VZzzNTOTPfS-WQ3RIw",

"page": "/pages/userinfo/userinfo",

"form_id": formid,

"data": {

"keyword1": {

"value": app.globalData.personInfo.nickName,

"color":"red"

},

"keyword2": {

"value": subscribeHd.subscribedate + " " + time,

"color": "#173177"

},

"keyword3": {

"value": ServerType,

"color": "#173177"

},


}

};

wx.request({

url: url,

data: jsondata,

method: 'POST',

success: function (res) {

console.log("push msg");

console.log(res);

},

fail: function (err) {

// fail

console.log("push err")

console.log(err);

}

});


展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • 佩奇他小弟

    10人对此回答表示赞同

    展开
    10
    4回复
    发布于 5年前

    评论(4)

    收起评论

    • Mira 2019-03-09 13:35

      客气了

      回复
    • SweetyAriana 2019-03-11 08:50

      好的,万分感谢

      回复
    • Adrian 2019-03-13 21:00

      目前默认是黑色,至于以后会不会改,这个也没准

      回复
    • Sarah 2019-03-15 14:35

      那目前的模板消息是只能全部黑色字体吗?

      回复
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部