Commit 9e9c5ad0 by 李伟康

commit 提交

1 parent 4fda1016
......@@ -2,20 +2,22 @@
<view class="layout">
<wnCanvas
:drawStatus="penSwitch"
:canvasId="`c-${madiaId}-${index}`"
:canvasId="`c-${madiaId}`"
custom
>
<template slot="customContent">
<view class="title">{{title}}</view>
<image
class="content"
:src="views[viewIndex].detailUrl"
/>
</template>
</wnCanvas>
</view>
</template>
<script type='text/ecmascript-6'>
import Tabs from './Tabs.vue'
export default {
components: { Tabs },
props: {
views: Array,
penSwitch: Boolean,
......@@ -32,7 +34,6 @@ export default {
watchStatus: {
immediate: true,
handler (newval) {
this.$refs?.tabs?.tabClick(this.defaultIndex)
}
},
},
......@@ -42,12 +43,8 @@ export default {
},
},
mounted () {
this.$refs?.tabs?.tabClick(this.defaultIndex)
},
methods: {
changeView (index) {
this.viewIndex = index
},
}
}
</script>
......@@ -57,8 +54,6 @@ export default {
width: 100vw;
height: 100vh;
position: relative;
background-image: url("@/assets/images/media/media-bg.webp");
background-size: 100%;
.title {
position: absolute;
left: 0;
......@@ -70,6 +65,12 @@ export default {
line-height: 64rpx;
text-align: center;
width: 100%;
z-index: 2;
}
.content {
position: absolute;
width: 100%;
height: 100%;
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!