12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <view>
- <web-view v-if=url :src="url"></web-view>
- </view>
- </template>
- <script>
- import {
- server_host
- } from "@/config/system"
- export default {
- data() {
- return {
- url: null,
- }
- },
- mounted() {
- const token = uni.getStorageSync('token')
- console.log('token', token);
- this.url = `/hybrid/html/player.html?token=${token}&base=${server_host}`
- },
- methods: {
-
- }
- }
- </script>
- <style>
- #player {
- width: 100vw;
- height: calc(100vw * 5 / 8)
- }
- </style>
|