|
@@ -28,6 +28,9 @@
|
|
import { shareLoad } from '../../utils/wxAuthorized.js'
|
|
import { shareLoad } from '../../utils/wxAuthorized.js'
|
|
import { getIndex } from '../../api/apply.js'
|
|
import { getIndex } from '../../api/apply.js'
|
|
import { getUserInfo } from '../../api/login.js'
|
|
import { getUserInfo } from '../../api/login.js'
|
|
|
|
+import {
|
|
|
|
+ mapState,
|
|
|
|
+ } from 'vuex';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -35,6 +38,9 @@ export default {
|
|
img: require('@/static/img/logo.png'),
|
|
img: require('@/static/img/logo.png'),
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['baseURL'])
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.getContent()
|
|
this.getContent()
|
|
},
|
|
},
|
|
@@ -61,10 +67,10 @@ export default {
|
|
share() {
|
|
share() {
|
|
const pages = getCurrentPages()
|
|
const pages = getCurrentPages()
|
|
const path = pages[pages.length - 1].route
|
|
const path = pages[pages.length - 1].route
|
|
- const baseURL = this.$store.state.baseURL
|
|
+ const baseURL = this.baseURL;
|
|
const data = {
|
|
const data = {
|
|
link: window.location.href, // 分享链接
|
|
link: window.location.href, // 分享链接
|
|
- imgUrl: 'http://vote.deepbytop.com/index/static/img/logo.f387ae76.png',
|
|
+ imgUrl: `${baseURL}/index/static/img/logo.f387ae76.png`,
|
|
desc: '母婴健康专委会会员申请表',
|
|
desc: '母婴健康专委会会员申请表',
|
|
title: '母婴健康专委会会员申请表',
|
|
title: '母婴健康专委会会员申请表',
|
|
fail:function (e) {
|
|
fail:function (e) {
|