index.vue 705 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="content">
  3. <view class="card">
  4. <p @click="toreport">上报跳转</p>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. title: 'Hello',
  13. subTitle: '2020-05-15',
  14. }
  15. },
  16. onLoad() {
  17. },
  18. methods: {
  19. toreport() {
  20. uni.navigateTo({
  21. url: '/report/report'
  22. });
  23. }
  24. }
  25. }
  26. </script>
  27. <style>
  28. .content {
  29. width: 100%;
  30. height: 100%;
  31. }
  32. .card {
  33. width: 95%;
  34. margin: 0 auto;
  35. padding: 10rpx 20rpx;
  36. border-radius: 8rpx;
  37. background: #fff;
  38. }
  39. .text-area {
  40. display: flex;
  41. justify-content: center;
  42. }
  43. .title {
  44. font-size: 36rpx;
  45. color: #8f8f94;
  46. }
  47. .test {
  48. color: red;
  49. margin-top: 20rpx;
  50. }
  51. </style>