blankPage.vue 615 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="blankPage" :style="'height:'+ heightConfig +'rpx;'" v-if="heightConfig>0">
  3. <view class="bankCon" :style="'background-color:'+ bgColor +';height:'+ heightConfig +'rpx;'"></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'blankPage',
  9. props: {
  10. dataConfig: {
  11. type: Object,
  12. default: () => {}
  13. }
  14. },
  15. data() {
  16. return {
  17. bgColor:this.dataConfig.bgColor.color[0].item,
  18. heightConfig:this.dataConfig.heightConfig.val
  19. };
  20. },
  21. created() {},
  22. methods: {
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. .blankPage{
  28. .bankCon{
  29. width: 100%;
  30. }
  31. }
  32. </style>