Commit 4bfa45bc by Lin

feat(homeFrame):更新场景布局并集成 ActivityTime 组件

- 为 HomeFrame 的场景布局添加了新的样式和结构
- 集成 ActivityTime 组件以增强功能
- 将 homeContentTabIndex 默认值调整为 1,以提升用户体验
- 更新 CSS 以实现更好的响应性和视觉效果
1 parent b32994de
<template>
<view class="container">
限时产品活动
</view>
</template>
<script>
export default {
name: 'ActivityTime'
}
</script>
<style lang="scss" scoped>
.container {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
......@@ -52,7 +52,7 @@
</view>
<!-- 轻改场景改版 -->
<view class="right-side" v-if="sceneType == 1">
<view :class="['app-content-box right-content right-content-scene1', { 'show-content-box': tabIndex == 0 }]">
<view :class="['app-content-box right-content right-content-scene1 app-content-box-scene1', { 'show-content-box': tabIndex == 0 }]">
<view class="tab-box flex">
<view class="tab-list flex">
<view
......@@ -104,12 +104,20 @@
</view>
</view>
</view>
<view v-show="homeContentTabIndex === 1" class="right-content-box flex right-content-box-scene1"
style="border-radius: 24px; padding: 16px 20px;box-sizing: border-box;">
<view class="home-tab-panel__placeholder">限时产品活动</view>
<view v-show="homeContentTabIndex === 1" class="right-content-box flex right-content-box-scene1">
<!-- <view class="home-tab-panel__placeholder">限时产品活动</view>
<ActivityTime /> -->
<view class="tab-container">
<!-- <ActivityTime /> -->
<view class="container-left">
</view>
<view class="container-right">
</view>
</view>
</view>
<view v-show="homeContentTabIndex === 2" class="right-content-box flex right-content-box-scene1"
style="border-radius: 24px; padding: 16px 20px;box-sizing: border-box;">
<view v-show="homeContentTabIndex === 2" class="right-content-box flex right-content-box-scene1">
<view class="home-tab-panel__placeholder">挖掘潜客机会</view>
</view>
</view>
......@@ -259,6 +267,7 @@ import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.
import ActivityPopup from './components/ActivityPopup.vue'
import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
import { FileUploadManager } from '@/utils/recordManager/index.js'
import ActivityTime from './components/ActivityTime/index.vue'
export default {
// mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
mixins: [ recorder, versionCheck, interceptionMixin, merge],
......@@ -291,7 +300,8 @@ export default {
StudyCenterPermissionPopup,
ActivityCenter,
ActivityPopup,
ErrorOrderPopup
ErrorOrderPopup,
ActivityTime
},
props: {
id: [String, Number],
......@@ -334,7 +344,7 @@ export default {
{ label: '限时产品活动', key: 'activity' },
{ label: '挖掘潜客机会', key: 'customer' }
],
homeContentTabIndex: 0,
homeContentTabIndex: 1,
showBeisen: false,
tipsObject: {},
autoplay: true,
......@@ -1238,6 +1248,25 @@ export default {
padding: 16px 20px;
box-sizing: border-box;
background-color: #ffffff;
height: calc(100%);
.tab-container {
width: 100%;
height: 100%;
background-color: aqua;
display: flex;
align-items: center;
justify-content: space-between;
}
.container-left {
width: toRpx(1138);
height: 100%;
background-color: #ebf7a6;
}
.container-right {
width: calc(100% - #{toRpx(1138)});
height: 100%;
background-color: #f7dda6;
}
}
.app-content-box {
width: 100%;
......@@ -1246,10 +1275,11 @@ export default {
top: 0;
opacity: 0;
z-index: -999;
&.app-content-box-scene1 {
height: calc(100vh - 68px);
}
&.right-content-scene1 {
width: 98%;
height: calc(100vh - 68px);
top: 0;
right: 24px;
bottom: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!