12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import {
- mapGetters,
- mapMutations
- } from 'vuex'
- import wechath5 from '@/utils/wechath5'
- import {isWeixinClient, currentPage, paramsToStr} from '@/utils/tools'
- import Cache from "@/utils/cache"
- import color from '@/config/color'
- export default {
- data() {
- return {
- colorConfig: color
- };
- },
- async onLoad(option) {
-
- },
- methods: {
-
- },
- computed: {
- ...mapGetters(['isLogin','inviteCode','appConfig','userInfo'])
- },
-
- // 全局配置分享
- onShareAppMessage() {
- const { h5_share_image, share_intro, share_title, mnp_share_title, mnp_share_image } = this.appConfig.share
-
- // #ifdef H5
- const share = {
- title: share_title,
- path: `/pages/index/index?invite_code=${this.inviteCode}`,
- imageUrl: h5_share_image
- }
- // #endif
-
- // #ifdef MP-WEIXIN
-
- const share = {
- title: mnp_share_title,
- path: `/pages/index/index?invite_code=${this.inviteCode}`,
- // path: `/pages/index/index?invite_code=FPTR88`,
- imageUrl: mnp_share_image
- }
- // #endif
- return share
- },
-
- onShareTimeline() {
- const { h5_share_image, share_intro, share_title } = this.appConfig.share
-
- // #ifdef H5
- const share = {
- title: share_title,
- imageUrl: h5_share_image
- }
- // #endif
-
- // #ifdef MP-WEIXIN
- const share = {
- title: mnp_share_title,
- imageUrl: mnp_share_image
- }
- // #endif
-
- return share
- }
- };
|