Commit 5d4ec285 authored by dlkong's avatar dlkong

弹窗位置修改,组件参数修改

parent 1436c03a
...@@ -55,16 +55,17 @@ ...@@ -55,16 +55,17 @@
placeholder="选择房间类型" placeholder="选择房间类型"
@click="showPicker = true" @click="showPicker = true"
/> />
<van-popup v-model="showPicker" round position="bottom">
<van-picker
show-toolbar
:columns="columns"
@cancel="showPicker = false"
@confirm="onConfirm"
/>
</van-popup>
</van-cell-group> </van-cell-group>
</van-dialog> </van-dialog>
<van-popup v-model="showPicker" round position="bottom">
<van-picker
show-toolbar
:columns="columns"
@cancel="showPicker = false"
@confirm="onConfirm"
/>
</van-popup>
</div> </div>
</template> </template>
...@@ -113,10 +114,9 @@ export default { ...@@ -113,10 +114,9 @@ export default {
}, },
mounted() { mounted() {
// screenfull.toggle(this.$refs.mapbox); // screenfull.toggle(this.$refs.mapbox);
this.$nextTick(() => { // this.$nextTick(() => {
// this.rotateBox(); // this.rotateBox();
this.initRotate(); // });
});
if (this._props.isView) { if (this._props.isView) {
console.log('作为组件传值==>>',) console.log('作为组件传值==>>',)
this.isViews = true this.isViews = true
...@@ -124,9 +124,10 @@ export default { ...@@ -124,9 +124,10 @@ export default {
} }
if (this.$route.params.isView) { if (this.$route.params.isView) {
this.isViews = true this.isViews = true
this.initRotate();
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", this.orientationChange, false);
} }
this.getRoomInfo() this.getRoomInfo()
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", this.orientationChange, false);
}, },
methods: { methods: {
orientationChange(){ orientationChange(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment