App.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <script>
  2. import {checkUpdateVersion} from "./utils/version";
  3. export default {
  4. onPageNotFound(){
  5. mpvue.reLaunch({
  6. url:'/pages/index/main'
  7. })
  8. },
  9. //外发
  10. onShow(options){
  11. },
  12. onHide(){
  13. },
  14. created() {
  15. // 版本自动更新代码
  16. checkUpdateVersion();
  17. },
  18. log() {
  19. console.log(`log at:${Date.now()}`)
  20. }
  21. }
  22. </script>
  23. <style>
  24. @import "../static/colorui/main.wxss";
  25. @import "../static/colorui/icon.wxss";
  26. .not_show{
  27. visibility: hidden;
  28. }
  29. .full_img {
  30. width: 100%;
  31. }
  32. .main_banner {
  33. height: 241px;
  34. }
  35. .title_color {
  36. color: #4C4C4C;
  37. }
  38. .cu-btn-primary {
  39. background-image: url("https://img.shuimuai.com/web/Rectangle.png");
  40. background-position: center;
  41. background-size: 100% 100%;
  42. width: 100%;
  43. }
  44. .under_line {
  45. text-decoration: underline;
  46. }
  47. .text-primary {
  48. color: #6858C4;
  49. }
  50. .bg-primary {
  51. background-color: #6858C4;
  52. }
  53. /* this rule will be remove */
  54. * {
  55. transition: width 2s;
  56. -moz-transition: width 2s;
  57. -webkit-transition: width 2s;
  58. -o-transition: width 2s;
  59. margin: 0;
  60. padding: 0;
  61. font-family: MicrosoftYaHei-Bold,serif;
  62. }
  63. </style>