lead.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="aaa" style="background-color: black;">
  3. <!-- <view style="color: #fff;">
  4. <tn-nav-bar :bottomShadow="false" backgroundColor="#207CF7">如何使用凡云AI</tn-nav-bar>
  5. <view :style="{height: tobheight+'px'}"></view>
  6. </view> -->
  7. <view class="box" style="">
  8. <video :autoplay="true" src="https://oaigc.oss-cn-chengdu.aliyuncs.com/openai/fanyunuse.mp4" style=""
  9. class="video"></video>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import empty from '@/components/empty/empty.vue'
  15. export default {
  16. data() {
  17. return {
  18. tobheight: 45,
  19. platform: this.$platform.get(),
  20. content: 'https://oaigc.oss-cn-chengdu.aliyuncs.com/openai/fanyunuse.mp4'
  21. }
  22. },
  23. components: {
  24. empty
  25. },
  26. onLoad() {
  27. if (this.platform == 'wxMiniProgram') {
  28. var menumtop = uni.getMenuButtonBoundingClientRect().top - uni.getSystemInfoSync().statusBarHeight
  29. var paddingtop = uni.getSystemInfoSync().statusBarHeight + menumtop
  30. this.tobheight = (menumtop + paddingtop + uni.getMenuButtonBoundingClientRect().height)
  31. }
  32. },
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. @import './lead.scss';
  37. .aaa{
  38. width: 100%;
  39. .box {
  40. width: 100%;
  41. height: 92vh;
  42. background: black;
  43. .video {
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }}
  48. </style>