测试微信分享

This commit is contained in:
mengxiaolong
2020-08-04 14:27:53 +08:00
parent 58074ebea7
commit fecb34f337

View File

@@ -276,14 +276,13 @@ export default {
title = '国富人寿转账不成功问题件处理' title = '国富人寿转账不成功问题件处理'
} }
if (data.trigger == 'right_button_click') { if (data.trigger == 'right_button_click') {
let token = window.localStorage.getItem('token')
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', { EWebBridge.webCallAppInJs('bridge', {
flag: 'share', flag: 'share',
extra: { extra: {
title: title, title: title,
content: this.shareContent, content: this.shareContent,
url: `${location.origin}/#/questions/detail?&token=${token}`, url: `${location.origin}/#/questions/detail/${this.problemDetail.id}/${this.problemDetail.receiveType}?&token=${localStorage.token}`,
img: this.$assetsUrl + 'images/logo.png' img: this.$assetsUrl + 'images/logo.png'
} }
}) })
@@ -434,6 +433,7 @@ export default {
async created() { async created() {
this.issueType = this.$route.params.type this.issueType = this.$route.params.type
if (this.isWeixin) { if (this.isWeixin) {
localStorage.setItem('token', this.$route.query.token)
let imgBase64Data = sessionStorage.getItem('oneimgBase64Data') let imgBase64Data = sessionStorage.getItem('oneimgBase64Data')
let wxSigned = sessionStorage.getItem('onewxSigned') let wxSigned = sessionStorage.getItem('onewxSigned')
let signInfo = JSON.parse(localStorage.getItem('signInfo')) let signInfo = JSON.parse(localStorage.getItem('signInfo'))