App.vue 849 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. this.$socket.initWebIM(this.$ws, true, true)
  5. },
  6. onShow: function() {
  7. if(this.userData.user){
  8. return;
  9. }
  10. this.$u.route({
  11. url: 'pages/login/loginV2'
  12. });
  13. },
  14. onHide: function() {
  15. }
  16. }
  17. </script>
  18. <style lang="scss">
  19. @import "uview-ui/index.scss";
  20. html,body,page{
  21. background-color: $uni-bg-color-grey;
  22. }
  23. .select-hover-class{ //首页导航栏按钮
  24. background-color: $uni-color-subtitle !important;
  25. }
  26. .message-hover-class{ //评论区 点击
  27. background-color: $uni-bg-color-hover !important;
  28. }
  29. .contentType2-hover-class{ //语音信息点击
  30. background-color: #c7c6c6 !important;
  31. }
  32. image{
  33. will-change: transform;
  34. }
  35. .u-actionsheet-cancel,
  36. .u-action-sheet-itemz{
  37. font-size: 28rpx !important;
  38. }
  39. @import "/components/font/iconfont.css";
  40. </style>