roles.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div class="index">
  3. <div class="content">
  4. <image class="left" @click='jump' src="../../static/patriarch.png">
  5. </image>
  6. <image class="right" @click='teach' src="../../static/tearcher.png">
  7. </image>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. result: ["a"],
  16. }
  17. },
  18. onLoad() {
  19. uni.removeStorageSync('token')
  20. uni.removeStorageSync('phone')
  21. },
  22. methods: {
  23. jump() {
  24. uni.navigateTo({
  25. url: '/pages/login/login?name=' + 'PARENT' ,
  26. })
  27. // uni.showToast({
  28. // title: '暂未开放,请期待',
  29. // duration: 1000,
  30. // icon: 'none'
  31. // });
  32. return false
  33. },
  34. //跳转老师页面
  35. teach(){
  36. console.log(234)
  37. uni.navigateTo({
  38. url: '/pages/login/login?name=' + 'TEACHER',
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. .index {
  46. background-color: #F0F0F0;
  47. min-height: 100vh;
  48. }
  49. .content {
  50. display: flex;
  51. justify-content: space-between;
  52. padding: 56upx 34upx 0;
  53. .left,
  54. .right {
  55. width: 325upx;
  56. }
  57. }
  58. </style>