nodata.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 lang="scss" scoped>
  30. page{background-color: #ffffff;}
  31. .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 0 0 200rpx;align-items: center;
  32. .subtop{
  33. flex: 1;display: flex;flex-direction: column;align-items: center;
  34. image{width: 550rpx;height: 450rpx;margin: 0 auto 40rpx;}
  35. .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding-top: 6rpx;}
  36. .txt{font-weight: bold;font-size: 30rpx;color: #00A9F0;margin-top: 60rpx;}
  37. }
  38. .back{font-weight: bold;font-size: 30rpx;flex: 0 0 auto;color: #666666;text-align: center;}
  39. }
  40. </style>