44 lines
811 B
Vue
44 lines
811 B
Vue
<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.100.201'
|
|
}
|
|
},
|
|
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>
|