Commit 5d4ec285 authored by dlkong's avatar dlkong

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

parent 1436c03a
......@@ -55,16 +55,17 @@
placeholder="选择房间类型"
@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-dialog>
<van-popup v-model="showPicker" round position="bottom">
<van-picker
show-toolbar
:columns="columns"
@cancel="showPicker = false"
@confirm="onConfirm"
/>
</van-popup>
</div>
</template>
......@@ -113,10 +114,9 @@ export default {
},
mounted() {
// screenfull.toggle(this.$refs.mapbox);
this.$nextTick(() => {
// this.$nextTick(() => {
// this.rotateBox();
this.initRotate();
});
// });
if (this._props.isView) {
console.log('作为组件传值==>>',)
this.isViews = true
......@@ -124,9 +124,10 @@ export default {
}
if (this.$route.params.isView) {
this.isViews = true
this.initRotate();
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", this.orientationChange, false);
}
this.getRoomInfo()
window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", this.orientationChange, false);
},
methods: {
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