Commit 9e9c5ad0 by 李伟康

commit 提交

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