Compare commits
No commits in common. "084826e14401bc4e8407e9adb9dfdd2502b31d24" and "d78b78796752c5913e84eb2ae3d353cd8f5ca0a7" have entirely different histories.
084826e144
...
d78b787967
2
App.vue
2
App.vue
@ -18,7 +18,5 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
/* #ifndef APP-PLUS-NVUE */
|
||||
@import 'uview-ui/index.scss';
|
||||
/* #endif*/
|
||||
</style>
|
||||
|
@ -5,7 +5,7 @@
|
||||
aspect="9:16" @statechange="statechange" @netstatus="netstatus" @error = "error"
|
||||
:style="{'height':height + 'px'}"
|
||||
></live-pusher>
|
||||
<div class="bottom" :style="{'height':height }" v-if="show" @click="show = false">
|
||||
<div class="bottom" :style="{'height':height + 'px'}" v-if="show" @click="show = false">
|
||||
<div class="tanchuceng" @click="zuzhi">
|
||||
<div class="head">
|
||||
<div style="flex-direction: row;align-items:center">
|
||||
@ -319,27 +319,17 @@
|
||||
},
|
||||
onReady() {
|
||||
// 注意:需要在onReady中 或 onLoad 延时
|
||||
this.context = uni.createLivePusherContext("livePusher", this);
|
||||
this.startPreview()
|
||||
let that = this
|
||||
setTimeout(()=>{
|
||||
uni.getSystemInfo({
|
||||
success(a){
|
||||
console.log(a.windowHeight,1212)
|
||||
that.height = a.windowHeight
|
||||
// that.start()
|
||||
setTimeout(()=>{
|
||||
that.context = uni.createLivePusherContext("livePusher", that);
|
||||
that.startPreview()
|
||||
|
||||
|
||||
|
||||
},500)
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
},500)
|
||||
|
||||
uni.getSystemInfo({
|
||||
success(a){
|
||||
console.log(a.windowHeight)
|
||||
that.height = a.windowHeight
|
||||
// that.start()
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
onLoad(a){
|
||||
@ -529,7 +519,6 @@
|
||||
},
|
||||
statechange(e) {
|
||||
console.log("statechange:" + JSON.stringify(e));
|
||||
console.log(e)
|
||||
},
|
||||
netstatus(e) {
|
||||
// console.log("netstatus:" + JSON.stringify(e));
|
||||
@ -538,7 +527,6 @@
|
||||
console.log("error:" + JSON.stringify(e));
|
||||
},
|
||||
start: function() {
|
||||
console.log("开始")
|
||||
console.log(this.url)
|
||||
this.context.start({
|
||||
success: (a) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user