MrShi
4 天以前 1c20c8231980a8d4b91688ff8641a06d3b2f68ab
pda/App.vue
@@ -1,17 +1,24 @@
<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  }
}
</script>
<script>
import { getUserInfo } from '@/api'
export default {
  onLaunch: function () {
    console.log('App Launch')
   setInterval(function(){
      getUserInfo().then(ress => {
        console.log(ress.data)
      })
   },60000 );
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  }
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
@@ -21,7 +28,18 @@
  justify-content: space-between;
  align-items: center;
}
.empty_wrap{
  padding-top: 280rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999999;
  image{
    width: 220rpx;
    height: 238rpx;
  }
}
.container {
  height: 100%;
  width: 100%;
@@ -125,7 +143,7 @@
  font-size: 28rpx;
}
.red{
   color: red;
   color: red !important ;
}
//设置圆角
@@ -193,7 +211,7 @@
  font-size: 28rpx;
}
.primaryColor {
  color: $uni-color-primary;
  color: $uni-color-primary !important;
}
.avatar {
  width: 64rpx;
@@ -235,5 +253,5 @@
}
.mr6 {
  margin-right: 6rpx;
}
</style>
}
</style>