123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view class="pages">
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- params:{
- token:'',
- }
-
- }
- },
- onShow() {
- let self = this;
- uni.getStorage({
- key : 'userInfo',
- success:function(res){
- console.log('userInfo customerType',res.data.customerType);
- if(res.data.customerType =='1'){
- console.log('个人用户');
- self.$api.href('/pages/building/building')
- // self.$api.href('/pages/mall/mall');
- }else{
- self.$api.href('/pages/use/use')
- };
- }
- });
- },
- onLoad(option) {
- console.log('this',this)
- },
- methods: {
- }
- }
- </script>
- <style >
- /* @import url("./index.css"); */
- </style>
|