Commit 8bb3c8b6 authored by Z's avatar Z

Z: Dot: Wx: 兼容性问题解决中版本。

parent ce93e684
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
}, },
zpick(inMsgType, inUrl) { zpick(inMsgType, inUrl) {
// alert(`--->discount.vue: zpick: IN.`); alert(`--->discount.vue: zpick: IN.`);
switch (inMsgType) { switch (inMsgType) {
case "text": case "text":
...@@ -288,28 +288,16 @@ export default { ...@@ -288,28 +288,16 @@ export default {
); );
break; break;
case "h5": case "h5":
// alert(`--->discount: zpick: sendChatMessage: news =${JSON.stringify( alert(`--->discount.vue: zpick: H5: IN.`);
// {
// // link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填
// link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=1234`, //H5消息页面url 必填
// title: "Z: h5消息标题", //H5消息标题
// desc: inUrl, //H5消息摘要
// // imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL
// imgUrl: inUrl //H5消息封面图片URL
// }
// )}`)
wx.invoke( wx.invoke(
"sendChatMessage", "sendChatMessage",
{ {
msgtype: "text", //消息类型,必填 msgtype: "text", //消息类型,必填
news: { news: {
// link: "http://qywx2.100smartdata.com/voucherInfo", //H5消息页面url 必填
// link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=${this.zcache.unionId}`, //H5消息页面url 必填
link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=1234`, //H5消息页面url 必填 link: `http://qywx2.100smartdata.com/qrCode?Url=${inUrl}&activeId=${this.zcache.now.activeId}&voucherId=${this.zcache.now.voucherId}&unionId=1234`, //H5消息页面url 必填
title: "领取优惠券", //H5消息标题 title: "领取优惠券", //H5消息标题
desc: inUrl, //H5消息摘要 desc: inUrl, //H5消息摘要
// imgUrl: "http://qywx2.100smartdata.com/hi.jpg" //H5消息封面图片URL
imgUrl: inUrl //H5消息封面图片URL imgUrl: inUrl //H5消息封面图片URL
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment