|
@@ -4,12 +4,9 @@
|
|
|
<view class="tui-group-name" v-if="page.floorContent">
|
|
|
<view class="tui-group-title">
|
|
|
<view class="tui-group-l">{{ page.title }}</view>
|
|
|
- <view
|
|
|
- class="tui-group-r"
|
|
|
- v-if="showMore(page)"
|
|
|
- @click="NavToDetailPage(page)"
|
|
|
- >
|
|
|
- <text>更多</text> <text class="iconfont icon-xiayibu"></text>
|
|
|
+ <view class="tui-group-r" v-if="showMore(page)" @click="NavToDetailPage(page)">
|
|
|
+ <text>更多</text>
|
|
|
+ <text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="tui-sub__desc">{{ page.detail }}</view>
|
|
@@ -94,17 +91,17 @@
|
|
|
<liveB :pageData="page" :userIdentity="userIdentity"></liveB>
|
|
|
</template>
|
|
|
<!-- 视频模板 -->
|
|
|
- <template v-if="page.floorContent.templateType == '26'">
|
|
|
- <pictureH :pageData="page" :userIdentity="userIdentity"></pictureH>
|
|
|
+ <template v-if="isTemplate(['26', '30'], page)">
|
|
|
+ <videoA :pageData="page" :userIdentity="userIdentity"></videoA>
|
|
|
</template>
|
|
|
- <template v-if="page.floorContent.templateType == '27'">
|
|
|
- <pictureC :pageData="page" :userIdentity="userIdentity"></pictureC>
|
|
|
+ <template v-if="isTemplate(['27', '31'], page)">
|
|
|
+ <videoB :pageData="page" :userIdentity="userIdentity"></videoB>
|
|
|
</template>
|
|
|
- <template v-if="page.floorContent.templateType == '28'">
|
|
|
- <pictureG :pageData="page" :userIdentity="userIdentity"></pictureG>
|
|
|
+ <template v-if="isTemplate(['28', '32'], page)">
|
|
|
+ <videoC :pageData="page" :userIdentity="userIdentity"></videoC>
|
|
|
</template>
|
|
|
- <template v-if="page.floorContent.templateType == '29'">
|
|
|
- <pictureD :pageData="page" :userIdentity="userIdentity"></pictureD>
|
|
|
+ <template v-if="isTemplate(['29', '33'], page)">
|
|
|
+ <videoD :pageData="page" :userIdentity="userIdentity"></videoD>
|
|
|
</template>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -124,23 +121,28 @@ import productI from '@/components/cm-module/pageTemplate/templateI.vue'
|
|
|
import productJ from '@/components/cm-module/pageTemplate/templateJ.vue'
|
|
|
import productK from '@/components/cm-module/pageTemplate/templateK.vue'
|
|
|
//引入图片模板
|
|
|
-import pictureA from '@/components/cm-module/pcitureTemplate/templateA.vue'
|
|
|
-import pictureB from '@/components/cm-module/pcitureTemplate/templateB.vue'
|
|
|
-import pictureC from '@/components/cm-module/pcitureTemplate/templateC.vue'
|
|
|
-import pictureD from '@/components/cm-module/pcitureTemplate/templateD.vue'
|
|
|
-import pictureE from '@/components/cm-module/pcitureTemplate/templateE.vue'
|
|
|
-import pictureF from '@/components/cm-module/pcitureTemplate/templateF.vue'
|
|
|
-import pictureG from '@/components/cm-module/pcitureTemplate/templateG.vue'
|
|
|
-import pictureH from '@/components/cm-module/pcitureTemplate/templateH.vue'
|
|
|
+import pictureA from './template-picture/templateA.vue'
|
|
|
+import pictureB from './template-picture/templateB.vue'
|
|
|
+import pictureC from './template-picture/templateC.vue'
|
|
|
+import pictureD from './template-picture/templateD.vue'
|
|
|
+import pictureE from './template-picture/templateE.vue'
|
|
|
+import pictureF from './template-picture/templateF.vue'
|
|
|
+import pictureG from './template-picture/templateG.vue'
|
|
|
+import pictureH from './template-picture/templateH.vue'
|
|
|
//引入图文模板
|
|
|
-import articleA from '@/components/cm-module/articleTemplate/templateA.vue'
|
|
|
-import articleB from '@/components/cm-module/articleTemplate/templateB.vue'
|
|
|
-import articleC from '@/components/cm-module/articleTemplate/templateC.vue'
|
|
|
-import articleD from '@/components/cm-module/articleTemplate/templateD.vue'
|
|
|
+import articleA from './template-article/templateA.vue'
|
|
|
+import articleB from './template-article/templateB.vue'
|
|
|
+import articleC from './template-article/templateC.vue'
|
|
|
+import articleD from './template-article/templateD.vue'
|
|
|
// 直播楼层模板
|
|
|
-import liveA from '@/components/cm-module/liveTemplate/templateA.vue'
|
|
|
-import liveB from '@/components/cm-module/liveTemplate/templateB.vue'
|
|
|
-import liveC from '@/components/cm-module/liveTemplate/templateC.vue'
|
|
|
+import liveA from './template-live/templateA.vue'
|
|
|
+import liveB from './template-live/templateB.vue'
|
|
|
+import liveC from './template-live/templateC.vue'
|
|
|
+// 视频模板
|
|
|
+import videoA from './template-video/templateA.vue'
|
|
|
+import videoB from './template-video/templateB.vue'
|
|
|
+import videoC from './template-video/templateC.vue'
|
|
|
+import videoD from './template-video/templateD.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'pageFloor',
|
|
@@ -170,7 +172,11 @@ export default {
|
|
|
articleD,
|
|
|
liveA,
|
|
|
liveC,
|
|
|
- liveB
|
|
|
+ liveB,
|
|
|
+ videoA,
|
|
|
+ videoB,
|
|
|
+ videoC,
|
|
|
+ videoD
|
|
|
},
|
|
|
props: {
|
|
|
list: {
|
|
@@ -202,14 +208,18 @@ export default {
|
|
|
`/pages/h5/activity/activity-floorMore?pageType=${this.pageType}&floorId=${page.id}&title=${page.title}`
|
|
|
)
|
|
|
},
|
|
|
- showMore(page){
|
|
|
+ showMore(page) {
|
|
|
// if(page.floorContent.templateType)
|
|
|
- if(page.floorContent.templateType == 10){
|
|
|
- if(page.floorImageList.length <= 1){
|
|
|
+ if (page.floorContent.templateType == 10) {
|
|
|
+ if (page.floorImageList.length <= 1) {
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
return !this.isSwiperTemp.includes(page.floorContent.templateType)
|
|
|
+ },
|
|
|
+ isTemplate(temp = [], page) {
|
|
|
+ const templateType = page?.floorContent?.templateType
|
|
|
+ return templateType && temp.includes(id)
|
|
|
}
|
|
|
}
|
|
|
}
|