error.html 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="content">
  3. <!-- <img :src="src" class="img"> -->
  4. <view class="text">您访问的页面不存在 :(</view>
  5. <button @click="toBack()" type="primary" class="btn">回到首页</button>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. // 大图片地址(图片可能已失效)
  13. // src: 'https://img-blog.csdnimg.cn/20210715111039922.png'
  14. }
  15. },
  16. methods: {
  17. /**
  18. * 返回上页
  19. * @description 上一页
  20. * @return void
  21. */
  22. toBack() {
  23. uni.reLaunch({
  24. url: '/pages/tabbar/task/index'
  25. })
  26. },
  27. }
  28. }
  29. </script>
  30. <style scoped>
  31. .content {
  32. text-align: center;
  33. }
  34. .img {
  35. width: 770rpx;
  36. height: 300rpx;
  37. margin-top: 200rpx;
  38. }
  39. .text {
  40. font-size: 45rpx;
  41. font-weight: bold;
  42. }
  43. .btn {
  44. margin-top: 60rpx;
  45. width: 300rpx;
  46. }
  47. </style>