index.vue 729 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="content">
  3. <video src="rtmp://play.zyucgj.com/live/34020000001320000001?ali_rtmp_retain=0&auth_key=1599027535-0-0-36cefc09a0b30c33de60389831e5506a"></video>
  4. <button @click="openVideo">
  5. 开始巡店
  6. </button>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. wv: null
  14. };
  15. },
  16. onLoad() {},
  17. methods: {
  18. openVideo() {
  19. uni.navigateTo({
  20. url:"/pages/shopTour/shopTour"
  21. })
  22. }
  23. }
  24. };
  25. </script>
  26. <style>
  27. .content {
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. justify-content: center;
  32. }
  33. .controls-yt {
  34. position: absolute;
  35. top: 20rpx;
  36. right: 20rpx;
  37. width: 80rpx;
  38. height: 80rpx;
  39. border-radius: 100%;
  40. background: rgba(0, 0, 0, 0.6);
  41. }
  42. </style>