|
@@ -311,9 +311,9 @@ export default {
|
|
|
return (this.$envs.inWX ? 'jy' : 'jyapp') + '-wxcontent-bottom'
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
this.appHeaderActions()
|
|
|
- this.getPageState()
|
|
|
+ await this.getPageState()
|
|
|
this.initAppWxShare()
|
|
|
},
|
|
|
mounted() {
|
|
@@ -504,7 +504,7 @@ export default {
|
|
|
this.shareShow = true
|
|
|
},
|
|
|
async initAppWxShare() {
|
|
|
- if (!this.$envs.inWX) {
|
|
|
+ if (this.$envs.inWX) {
|
|
|
try {
|
|
|
await this.getShareInfoReq()
|
|
|
} catch (error) {
|
|
@@ -585,13 +585,16 @@ export default {
|
|
|
link += `openid=${openid}&`
|
|
|
}
|
|
|
link += 'source=wx_infocontentshare'
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
this.shareConf.title = title
|
|
|
this.shareConf.content = content
|
|
|
- // this.shareConf.pathname = link
|
|
|
this.shareConf.link = link
|
|
|
+
|
|
|
+ // const url = new URL(link)
|
|
|
+ // this.shareConf.pathname = url.pathname
|
|
|
// this.refreshShareLink()
|
|
|
- // console.log(JSON.stringify(this.shareConf))
|
|
|
+ console.log(JSON.stringify(this.shareConf))
|
|
|
},
|
|
|
calcAppShareInfo(t) {
|
|
|
const shareType = t.id
|