解决了不出现的问题
This commit is contained in:
parent
427442f50a
commit
0279128637
2
App.vue
2
App.vue
@ -18,5 +18,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
|
/* #ifndef APP-PLUS-NVUE */
|
||||||
@import 'uview-ui/index.scss';
|
@import 'uview-ui/index.scss';
|
||||||
|
/* #endif*/
|
||||||
</style>
|
</style>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
aspect="9:16" @statechange="statechange" @netstatus="netstatus" @error = "error"
|
aspect="9:16" @statechange="statechange" @netstatus="netstatus" @error = "error"
|
||||||
:style="{'height':height + 'px'}"
|
:style="{'height':height + 'px'}"
|
||||||
></live-pusher>
|
></live-pusher>
|
||||||
<div class="bottom" :style="{'height':height + 'px'}" v-if="show" @click="show = false">
|
<div class="bottom" :style="{'height':height }" v-if="show" @click="show = false">
|
||||||
<div class="tanchuceng" @click="zuzhi">
|
<div class="tanchuceng" @click="zuzhi">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div style="flex-direction: row;align-items:center">
|
<div style="flex-direction: row;align-items:center">
|
||||||
@ -319,17 +319,27 @@
|
|||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
// 注意:需要在onReady中 或 onLoad 延时
|
// 注意:需要在onReady中 或 onLoad 延时
|
||||||
this.context = uni.createLivePusherContext("livePusher", this);
|
|
||||||
this.startPreview()
|
|
||||||
let that = this
|
let that = this
|
||||||
|
setTimeout(()=>{
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success(a){
|
success(a){
|
||||||
console.log(a.windowHeight)
|
console.log(a.windowHeight,1212)
|
||||||
that.height = a.windowHeight
|
that.height = a.windowHeight
|
||||||
// that.start()
|
// that.start()
|
||||||
|
setTimeout(()=>{
|
||||||
|
that.context = uni.createLivePusherContext("livePusher", that);
|
||||||
|
that.startPreview()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
},500)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
},500)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(a){
|
onLoad(a){
|
||||||
@ -519,6 +529,7 @@
|
|||||||
},
|
},
|
||||||
statechange(e) {
|
statechange(e) {
|
||||||
console.log("statechange:" + JSON.stringify(e));
|
console.log("statechange:" + JSON.stringify(e));
|
||||||
|
console.log(e)
|
||||||
},
|
},
|
||||||
netstatus(e) {
|
netstatus(e) {
|
||||||
// console.log("netstatus:" + JSON.stringify(e));
|
// console.log("netstatus:" + JSON.stringify(e));
|
||||||
@ -527,6 +538,7 @@
|
|||||||
console.log("error:" + JSON.stringify(e));
|
console.log("error:" + JSON.stringify(e));
|
||||||
},
|
},
|
||||||
start: function() {
|
start: function() {
|
||||||
|
console.log("开始")
|
||||||
console.log(this.url)
|
console.log(this.url)
|
||||||
this.context.start({
|
this.context.start({
|
||||||
success: (a) => {
|
success: (a) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user