123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <view class="container clearfix">
-
- </view>
- </template>
- <script>
- import { mapState,mapMutations} from 'vuex';
- export default {
- components:{
-
- },
- data() {
- return {
- userName:'',
- userIdentity:0
- }
- },
- onLoad() {
- if(!this.hasLogin){
- uni.redirectTo({
- url:'../../login/login'
- })
- }
- },
- computed: {
- ...mapState(['hasLogin','userInfo','identity','isActivity'])
- },
- methods: {
- },
- onShow(){
- this.$api.getComStorage('userInfo').then((resolve) =>{
- this.userName = resolve.name;
- this.userIdentity = resolve.userIdentity
- }).catch(error =>{
-
- })
- }
- }
- </script>
- <style lang="scss">
- .container{
- width: 100%;
- height: auto;
- }
- </style>
|