fix: 修复bug
parent
da123b99f5
commit
d67b6bd8a1
|
@ -176,6 +176,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
console.log('query--print', this.$route.query)
|
||||||
this.initLoad()
|
this.initLoad()
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -215,14 +216,14 @@
|
||||||
const spreadId = this.$route.query.spreadId || ''
|
const spreadId = this.$route.query.spreadId || ''
|
||||||
const isProperty = this.$route.query.isProperty || ''
|
const isProperty = this.$route.query.isProperty || ''
|
||||||
const wechatUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + WX_APP_ID
|
const wechatUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + WX_APP_ID
|
||||||
|
const url = encodeURIComponent(`${redirectUrl}${SPREAD_LINK}?tenantId=${tenantId}&spreadId=${spreadId}&isProperty=${isProperty}`)
|
||||||
location.href =
|
location.href =
|
||||||
`${wechatUrl}&redirect_uri=${redirectUrl}${SPREAD_LINK}?tenantId=${tenantId}&spreadId=${spreadId}&isProperty=${isProperty}&response_type=code&scope=snsapi_base#wechat_redirect`
|
`${wechatUrl}&redirect_uri=${url}&response_type=code&scope=snsapi_base#wechat_redirect`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 是否扫物业二维码
|
// 是否扫物业二维码
|
||||||
isProperty() {
|
isProperty() {
|
||||||
const is_property = this.$route.query.isProperty || '0'
|
const is_property = this.$route.query.isProperty || '0'
|
||||||
console.log('is_property', is_property)
|
|
||||||
if(parseInt(is_property) === 1){
|
if(parseInt(is_property) === 1){
|
||||||
this.$store.commit("SET_IS_PROPERTY", !!is_property)
|
this.$store.commit("SET_IS_PROPERTY", !!is_property)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue