Commit 6a2b9f16 by xinla

--no commit message

1 parent a378445e
...@@ -53,6 +53,11 @@ export default { ...@@ -53,6 +53,11 @@ export default {
getWxCode() getWxCode()
.then(({ openId, nickName, headImgUrl }) => { .then(({ openId, nickName, headImgUrl }) => {
if (openId) { if (openId) {
let query = param2Obj(window.location.search)
let hash = param2Obj(window.location.hash)
Object.assign(query, hash)
this.redPacket = query
this.openId = openId this.openId = openId
this.receiveName = nickName this.receiveName = nickName
this.avalar = headImgUrl this.avalar = headImgUrl
...@@ -68,10 +73,10 @@ export default { ...@@ -68,10 +73,10 @@ export default {
}, },
getRedPacketInfo() { getRedPacketInfo() {
getRedPacketInfo().then(({ data }) => { getRedPacketInfo().then(({ data }) => {
let query = param2Obj(window.location.search) // let query = param2Obj(window.location.search)
let hash = param2Obj(window.location.hash) // let hash = param2Obj(window.location.hash)
Object.assign(query, hash) // Object.assign(query, hash)
this.redPacket = query // this.redPacket = query
Object.assign(this.redPacket, data) Object.assign(this.redPacket, data)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!