first commit
This commit is contained in:
11
pages/preview/preview.css
Normal file
11
pages/preview/preview.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.preview-block{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.preview-pic{
|
||||
width: 1334rpx;
|
||||
height: 750rpx;
|
||||
}
|
||||
33
pages/preview/preview.vue
Normal file
33
pages/preview/preview.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<view class="preview-block">
|
||||
<image src="/static/pic/background.png" class="preview-pic" mode="scaleToFill"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
url:'',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
onLoad(e) {
|
||||
this.url=e.url;
|
||||
// #ifdef APP-PLUS
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
// #endif
|
||||
},
|
||||
onUnload() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.screen.lockOrientation('portrait-primary');
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("preview.css");
|
||||
</style>
|
||||
Reference in New Issue
Block a user