no message
This commit is contained in:
18
uni_modules/yykj-tv/pages/home/home.vue
Normal file
18
uni_modules/yykj-tv/pages/home/home.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<view>
|
||||
<web-view :src="url"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
url: ''
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.url = options.url
|
||||
}
|
||||
}
|
||||
</script>
|
||||
43
uni_modules/yykj-tv/pages/index/index.vue
Normal file
43
uni_modules/yykj-tv/pages/index/index.vue
Normal file
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="">
|
||||
<input type="text" class="input" v-model="url">
|
||||
<button type="primary" size="size" @tap="toConfig">跳转</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
url: 'http://192.168.2.100:8011'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toConfig () {
|
||||
let url = '/uni_modules/yykj-tv/pages/home/home' + '?url=' + this.url
|
||||
uni.redirectTo({
|
||||
url: url
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-image: linear-gradient(to bottom, #2E3092, #797979);
|
||||
}
|
||||
.input {
|
||||
width: 50vw;
|
||||
height: 5vh;
|
||||
background-color: #fff;
|
||||
margin-bottom: 2vh;
|
||||
}
|
||||
</style>
|
||||
BIN
uni_modules/yykj-tv/static/logo.png
Normal file
BIN
uni_modules/yykj-tv/static/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Reference in New Issue
Block a user