12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <view class="content">
- <view class="one">
- <video :src="info.path"></video>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- info: {},
- };
- },
- onLoad(e) {
- const that = this;
- let info = {
- path: e.path || '',
- name: e.name || ''
- }
- that.$set(that, `info`, info);
- that.search()
- },
- methods: {
- search() {
- const that = this;
- if (that.info && that.info.name) {
- uni.setNavigationBarTitle({
- title: that.info.name
- });
- }
- }
- }
- }
- </script>
- <style lang="scss">
- .content {
- .one {
- text-align: center;
- padding: 10px;
- video {
- width: 100%;
- height: 250px;
- }
- }
- }
- </style>
|