App.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. // if(localStorage.getItem('token')=='null' && localStorage.getItem('errorMsg')=='null') {
  6. // window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/hotel/ihotel-api/ihotel/hotelUser/weixiaoAuth&state=https://chtech.ncjti.edu.cn/hotel/ihotel-api/ihotel/hotelUser/weixiaoAuth';
  7. // } else if (localStorage.getItem('token')=='null' && localStorage.getItem('errorMsg')=='获取用户信息失败') {
  8. uni.navigateTo({
  9. url:'pages/huoquanshibai/huoquanshibai'
  10. })
  11. // }
  12. },
  13. onShow: function() {
  14. console.log('App Show')
  15. },
  16. onHide: function() {
  17. console.log('App Hide')
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. /*每个页面公共css */
  23. @import '@/uni_modules/uni-scss/index.scss';
  24. /* #ifndef APP-NVUE */
  25. @import '@/static/customicons.css';
  26. // 设置整个项目的背景色
  27. page {
  28. background-color: #f5f5f5;
  29. }
  30. /* #endif */
  31. .example-info {
  32. font-size: 14px;
  33. color: #333;
  34. padding: 10px;
  35. }
  36. </style>