Commit a863832f by xinla

--no commit message

1 parent 6a2b9f16
...@@ -83,7 +83,7 @@ export async function getWxCode() { ...@@ -83,7 +83,7 @@ export async function getWxCode() {
)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect` )}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
window.location.href = url window.location.href = url
return return {}
// window.location.href = // window.location.href =
// `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`; // `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`;
} }
......
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
created() { created() {
if (location.href.includes('redPacketReceive') && !navigator.userAgent.includes('Mobile')) { if (location.href.includes('redPacketReceive') && !navigator.userAgent.includes('Mobile')) {
this.tips = '请在手机端微信打开' this.tips = '该业务仅支持手机微信用户,请在手机微信端打开'
} else { } else {
} }
}, },
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
this.openId = openId this.openId = openId
this.receiveName = nickName this.receiveName = nickName
this.avalar = headImgUrl this.avatar = headImgUrl
this.getRedPacketInfo() this.getRedPacketInfo()
this.getReceiveStatus() this.getReceiveStatus()
} else { } else {
...@@ -104,6 +104,8 @@ export default { ...@@ -104,6 +104,8 @@ export default {
appId: window.CONFIG.appId, // 微信公众号id appId: window.CONFIG.appId, // 微信公众号id
chatId: this.redPacket.chatId, // 客户企微id chatId: this.redPacket.chatId, // 客户企微id
externalUserid: this.redPacket.externalUserid, // 客户企微id externalUserid: this.redPacket.externalUserid, // 客户企微id
receiveName: this.receiveName,
avatar: this.avatar,
} }
receiveRedPacket(form).then((data) => { receiveRedPacket(form).then((data) => {
if (data.code === 200) { if (data.code === 200) {
...@@ -120,8 +122,6 @@ export default { ...@@ -120,8 +122,6 @@ export default {
orderNo: this.redPacket.orderId, // 订单id orderNo: this.redPacket.orderId, // 订单id
openId: this.openId, // 客户公众号id openId: this.openId, // 客户公众号id
appId: window.CONFIG.appId, // 微信公众号id appId: window.CONFIG.appId, // 微信公众号id
receiveName: this.receiveName,
avalar: this.avalar,
chatId: this.redPacket.chatId, // 客户群企微id chatId: this.redPacket.chatId, // 客户群企微id
// externalUserid: this.redPacket.externalUserid, // 客户企微id // externalUserid: this.redPacket.externalUserid, // 客户企微id
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!