安全教育平台微信小程序(hbuilder打开后运行到微信开发者程序)
祖安之光
2025-11-05 f4ed2c4a1412f7256614e04e18683ca15a89bb25
pages/tabBar/count/count.vue
@@ -63,7 +63,11 @@
         return {
            page: 'pages/tabBar/count/count',
            statusBarHeight: '',
        user: {},
        user: {
         name: '',
         phone: '',
         company: {},
      },
        examParams: {
          pageNum: 1,
          pageSize: 10,
@@ -75,11 +79,13 @@
         
      },
    created(){
      this.getUserDetail()
    },
      onShow(){
         this.getUserDetail()
    },
      onLoad() {
         this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
      this.getUserInfo()
      },
      methods: {
@@ -89,7 +95,7 @@
            });
         },
      getUserInfo(){
      getUserDetail(){
        getUserInfo(uni.getStorageSync('uid')).then(res => {
          if(res.code == 200) {
            this.user = res.data