index.vue 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="container">
  3. <tn-nav-bar :isBack="true" backgroundColor="#fff" :bottomShadow="false">数字人预览</tn-nav-bar>
  4. <view class="pos">
  5. </view>
  6. <view class="context">
  7. <video autoplay :src="url"></video>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import {
  13. workList
  14. } from '@/api/robot/index.js'
  15. export default {
  16. data() {
  17. return {
  18. url: ''
  19. };
  20. },
  21. computed: {
  22. },
  23. onReady() {
  24. },
  25. onUnload() {
  26. },
  27. onLoad(o) {
  28. this.url = getApp().url
  29. console.log('数字人详情页url:', getApp().url);
  30. },
  31. onShow() {
  32. },
  33. onShareAppMessage: function(res) {
  34. },
  35. methods: {
  36. handleCreatePro() {
  37. uni.navigateTo({
  38. url: '/pages/robot/generate/index'
  39. })
  40. },
  41. handleShowMoreMenu() {
  42. this.showMoreMenu = true
  43. },
  44. handleConfirm(e) {
  45. this.showMoreMenu = false
  46. }
  47. }
  48. };
  49. </script>
  50. <style lang="scss" scoped>
  51. @import './index.scss';
  52. </style>