|
@@ -61,7 +61,7 @@ const app = new Vue({
|
|
// 选中的清晰度
|
|
// 选中的清晰度
|
|
definitionValue: '',
|
|
definitionValue: '',
|
|
// 分辨率
|
|
// 分辨率
|
|
- // resolutionRatioVisible: false,
|
|
|
|
|
|
+ resolutionRatioVisible: false,
|
|
resolutionRatioList: [],
|
|
resolutionRatioList: [],
|
|
// 需要用到的参数
|
|
// 需要用到的参数
|
|
parametersData: {},
|
|
parametersData: {},
|
|
@@ -245,6 +245,7 @@ const app = new Vue({
|
|
// “connected”:rtc链接成功 “failed”:rtc链接失败 “closed”:rtc链接关闭 “disconnected”:rtc链接超时
|
|
// “connected”:rtc链接成功 “failed”:rtc链接失败 “closed”:rtc链接关闭 “disconnected”:rtc链接超时
|
|
if (event.val === "connected") {
|
|
if (event.val === "connected") {
|
|
Toast.clear();
|
|
Toast.clear();
|
|
|
|
+ this.confirmResolution()
|
|
playOnBtn.bind(this)()
|
|
playOnBtn.bind(this)()
|
|
this.pushflowPopup()
|
|
this.pushflowPopup()
|
|
this.getResidueTime()
|
|
this.getResidueTime()
|
|
@@ -298,24 +299,25 @@ const app = new Vue({
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
this.levitatedSphereVisible = false
|
|
this.levitatedSphereVisible = false
|
|
- // this.resolutionRatioVisible = true
|
|
|
|
|
|
+ this.resolutionRatioVisible = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
// 确定修改分辨率
|
|
// 确定修改分辨率
|
|
- // confirmResolution() {
|
|
|
|
- // let { width, height, dpi } = this.phoneSize
|
|
|
|
- // this.doConnectDirectivesWs.send(JSON.stringify({
|
|
|
|
- // type: "setPhoneSize",
|
|
|
|
- // data: {
|
|
|
|
- // width,
|
|
|
|
- // height,
|
|
|
|
- // dpi
|
|
|
|
- // }
|
|
|
|
- // }))
|
|
|
|
- // // this.resolutionRatioVisible = false
|
|
|
|
- // },
|
|
|
|
|
|
+ confirmResolution() {
|
|
|
|
+ if(!Object.keys(this.phoneSize).length) return
|
|
|
|
+ let { width, height, dpi } = this.phoneSize
|
|
|
|
+ this.doConnectDirectivesWs.send(JSON.stringify({
|
|
|
|
+ type: "setPhoneSize",
|
|
|
|
+ data: {
|
|
|
|
+ width,
|
|
|
|
+ height,
|
|
|
|
+ dpi
|
|
|
|
+ }
|
|
|
|
+ }))
|
|
|
|
+ this.resolutionRatioVisible = false
|
|
|
|
+ },
|
|
|
|
|
|
// 退出相关按钮操作
|
|
// 退出相关按钮操作
|
|
exitFun(key) {
|
|
exitFun(key) {
|