nodata.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="sucbox">
  3. <view class="subtop">
  4. <nodata type="page" padtop='248' notxt="当前页面暂无信息"></nodata>
  5. </view>
  6. <view class="back" @click="getHome">返回首页</view>
  7. </view>
  8. </template>
  9. <script>
  10. import nodata from "@/components/nodata/nodata.vue"
  11. import config from '@/config'
  12. const baseUrl = config.baseUrl
  13. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  14. export default{
  15. components:{nodata},
  16. data(){
  17. return{
  18. sucimg:require('@/work/static/images/success.png'),
  19. }
  20. },
  21. methods:{
  22. checkPermi, checkRole,
  23. getHome(){
  24. this.$tab.reLaunch('/pages/index/index')
  25. },
  26. }
  27. }
  28. </script>
  29. <style>
  30. page{background:#ffffff;}
  31. </style>
  32. <style lang="scss" scoped>
  33. .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 0 0 200rpx;align-items: center;
  34. .subtop{
  35. flex: 1;display: flex;flex-direction: column;align-items: center;
  36. image{width: 550rpx;height: 450rpx;margin: 0 auto 40rpx;}
  37. .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding-top: 6rpx;}
  38. .txt{font-weight: bold;font-size: 30rpx;color: #00A9F0;margin-top: 60rpx;}
  39. }
  40. .back{font-weight: bold;font-size: 30rpx;flex: 0 0 auto;color: #666666;text-align: center;}
  41. }
  42. </style>