wike-flow-main.vue 765 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  3. <view class="adContainer">
  4. <ad v-if="flowtype == 2" :unit-id="banner_id"></ad>
  5. <ad v-if="flowtype == 3" :unit-id="video_banner_id" ad-type="video" ad-theme="white"></ad>
  6. <ad-custom v-if="flowtype == 4" :unit-id="native_id"></ad-custom>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name:"wike-flow-main",
  13. data() {
  14. return {
  15. };
  16. },
  17. props:{
  18. flowtype: {
  19. type:Number,
  20. default:4,
  21. },
  22. banner_id: {
  23. type:String,
  24. default: ''
  25. },
  26. video_banner_id: {
  27. type:String,
  28. default: ''
  29. },
  30. native_id: {
  31. type:String,
  32. default: ''
  33. }
  34. },
  35. methods:{
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. .adContainer{
  41. width: 100%;
  42. // margin-top: 30rpx;
  43. // padding: 30rpx;
  44. // margin: 0 30rpx 30rpx;
  45. }
  46. </style>