123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <div id="app" v-if="showPage">
- <router-view></router-view>
- </div>
- </template>
-
- <script>
- import '../../common/css/reset.css'
- import logo from '../../common/icon/indexlogo.jpg'
- import wxsdk from '../../util/share'
- import { mapState, createNamespacedHelpers } from 'vuex'
- const { mapActions: actions } = createNamespacedHelpers('userCenter')
- export default {
- name: 'app',
- data () {
- return {
- showPage: true,
- logo
- }
- },
- components: {},
- computed: {
- ...mapState({
- userInfo: x => x.userCenter.userInfo,
- org: x => x.app.orgId
- })
- },
- created () {
- // if (location.search && this.toolClass.UrlSearch(location.search).code) {
- // this.code = this.toolClass.UrlSearch(location.search).code
- // } else {
- // this.code = null
- // }
- // this.getUserInfo({ org: this.org, code: this.code }).then(() => {
- // this.showPage = true
- // })
-
- // wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
- // title: '城的空间',
- // desc: '城的空间',
- // link: `${window.location.origin}${window.location.pathname}#/mainPage/indexPage`,
- // thu_image: `https://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/citymini%2Findexlogo.jpg`
- // })
- },
- methods: {
- ...actions(['getUserInfo'])
- }
- }
- </script>
-
- <style>
- #app {
- width: 100%;
- height: 100%;
- position: relative;
- }
- </style>
|