Commit 34db4cd5 by 李伟康

Merge branch 'saas+v5.8.3' of http://192.168.3.233:8090/glsx/gl_tape into saas+v5.8.3

2 parents b5583f9d 3f7b2d98

1009 Bytes | W: | H:

1.2 KB | W: | H:

assets/images/common/activity-type-afterSale.png
assets/images/common/activity-type-afterSale.png
assets/images/common/activity-type-afterSale.png
assets/images/common/activity-type-afterSale.png
  • 2-up
  • Swipe
  • Onion skin

1009 Bytes | W: | H:

1.07 KB | W: | H:

assets/images/common/activity-type-preSale.png
assets/images/common/activity-type-preSale.png
assets/images/common/activity-type-preSale.png
assets/images/common/activity-type-preSale.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
:class="['type-tag-item', { active: activityTypeIndex === index }]" :class="['type-tag-item', { active: activityTypeIndex === index }]"
@click="handleActivityTypeClick(index)" @click="handleActivityTypeClick(index)"
> >
<image class="type-tag-item-img" :src="require(`@/assets/images/common/activity-type-${item.key}.png`)" mode="aspectFit"></image> <image
class="type-tag-item-img"
:src="activityTypeIndex === index ? item.activeIcon : item.icon"
mode="aspectFit"
></image>
<text class="type-tag-item-text">{{ item.label }}</text> <text class="type-tag-item-text">{{ item.label }}</text>
</view> </view>
</view> </view>
...@@ -111,8 +115,18 @@ export default { ...@@ -111,8 +115,18 @@ export default {
data() { data() {
return { return {
activityTypeTabs: [ activityTypeTabs: [
{ label: '新享特惠', key: 'preSale' }, {
{ label: '售后钜惠', key: 'afterSale' } label: '新享特惠',
key: 'preSale',
icon: require('@/assets/images/common/activity-type-preSale.png'),
activeIcon: require('@/assets/images/common/activity-type-preSale-active.png')
},
{
label: '售后钜惠',
key: 'afterSale',
icon: require('@/assets/images/common/activity-type-afterSale.png'),
activeIcon: require('@/assets/images/common/activity-type-afterSale-active.png')
}
], ],
activityTypeIndex: 0, activityTypeIndex: 0,
carModelTabs: [ carModelTabs: [
......
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: toRpx(8) 0 toRpx(28) 0; padding: toRpx(8) 0 toRpx(28) 0;
border-bottom: 1px solid #F5F7FA; border-bottom: 1px solid #F5F7FA;
margin-top: toRpx(36);
.header-left { .header-left {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -54,17 +54,14 @@ ...@@ -54,17 +54,14 @@
<view class="right-side" v-if="sceneType == 1"> <view class="right-side" v-if="sceneType == 1">
<view :class="['app-content-box right-content right-content-scene1 app-content-box-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-box flex">
<view class="tab-list flex"> <type-tab-component
<view class="home-content-tab"
v-for="(tab, index) in homeContentTabs" :typeList="homeContentTabs"
:key="tab.key" :tabIndex="homeContentTabIndex"
:class="['tab-item', { active: homeContentTabIndex === index }]" @tabClick="handleHomeContentTabClick"
@click="handleHomeContentTabClick(index)" nameKey="label"
> :styleV2="true"
<text class="tab-item__text">{{ tab.label }}</text> />
<view v-if="homeContentTabIndex === index" class="tab-item__line"></view>
</view>
</view>
<template v-if="sceneType != 7"> <template v-if="sceneType != 7">
<view class="reception-btn" @click="start"> <view class="reception-btn" @click="start">
<image class="start-icon" :src="require('@/assets/images/common/icon-reception-start.png')" mode="aspectFit"></image> <image class="start-icon" :src="require('@/assets/images/common/icon-reception-start.png')" mode="aspectFit"></image>
...@@ -75,6 +72,7 @@ ...@@ -75,6 +72,7 @@
<view <view
v-show="homeContentTabIndex === 0" v-show="homeContentTabIndex === 0"
class="right-content-box flex right-content-box-scene1" class="right-content-box flex right-content-box-scene1"
style="margin-top: 16px;"
> >
<view class="content-left" style="padding-bottom: 40px;"> <view class="content-left" style="padding-bottom: 40px;">
<view class="module-box box-class scene1-box-shadow"> <view class="module-box box-class scene1-box-shadow">
...@@ -195,7 +193,7 @@ ...@@ -195,7 +193,7 @@
<!-- 预学习弹框 --> <!-- 预学习弹框 -->
<StudyPopup :show.sync="showPreStudyPopup" title="提示" :width="848" :height="968" <StudyPopup :show.sync="showPreStudyPopup" title="提示" :width="848" :height="968"
:topImage="require('@/assets/images/common/warning-notice.webp')" :topImageWidth="848" :topImageHeight="248"> :topImage="require('@/assets/images/common/warning-notice.webp')" :topImageWidth="848" :topImageHeight="248">
<PreStudyPopup :confirmText="examPopInfo.confirmText" @cancel="handlePreStudyCancel" <PreStudyPopup :confirmText="preStudyPopInfo.confirmText" @cancel="handlePreStudyCancel"
@confirm="handlePreStudyConfirm" @start-study="handlePreStudyStart" /> @confirm="handlePreStudyConfirm" @start-study="handlePreStudyStart" />
</StudyPopup> </StudyPopup>
...@@ -266,7 +264,7 @@ import { interceptionMixin } from '@/mixin/index' ...@@ -266,7 +264,7 @@ import { interceptionMixin } from '@/mixin/index'
import StudyPopup from '@/components/StudyPopup.vue' import StudyPopup from '@/components/StudyPopup.vue'
import StudyPopupContent from '@/components/StudyPopupContent.vue' import StudyPopupContent from '@/components/StudyPopupContent.vue'
import ExamSubmitPopup from '@/components/ExamSubmitPopup.vue' import ExamSubmitPopup from '@/components/ExamSubmitPopup.vue'
import PreStudyPopup from '@/components/PreStudyPopup.vue' import PreStudyPopup from '@/components/PreStudy/PreStudyPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue' import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import ActivityPopup from './components/ActivityPopup.vue' import ActivityPopup from './components/ActivityPopup.vue'
import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue' import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
...@@ -274,6 +272,7 @@ import { FileUploadManager } from '@/utils/recordManager/index.js' ...@@ -274,6 +272,7 @@ import { FileUploadManager } from '@/utils/recordManager/index.js'
import ActivityTime from './components/ActivityTime/index.vue' import ActivityTime from './components/ActivityTime/index.vue'
import CustomerSide from './components/CustomerSide/index.vue' import CustomerSide from './components/CustomerSide/index.vue'
import CustomerOpportunities from '@/components/CustomerOpportunities/index.vue' import CustomerOpportunities from '@/components/CustomerOpportunities/index.vue'
import TypeTabComponent from '../TypeTabComponent.vue'
export default { export default {
// mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin], // mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
...@@ -312,6 +311,7 @@ export default { ...@@ -312,6 +311,7 @@ export default {
ActivityTime, ActivityTime,
CustomerSide, CustomerSide,
CustomerOpportunities, CustomerOpportunities,
TypeTabComponent,
}, },
props: { props: {
id: [String, Number], id: [String, Number],
...@@ -366,8 +366,11 @@ export default { ...@@ -366,8 +366,11 @@ export default {
showError: false, showError: false,
confirmText: '确认已提交' confirmText: '确认已提交'
}, },
preStudyPopInfo: {
confirmText: '跳过(剩余2次)',
},
showStudyPermissionPopup: false, showStudyPermissionPopup: false,
showPreStudyPopup: true, showPreStudyPopup: false,
courseInfo: { courseInfo: {
title: '' title: ''
}, },
...@@ -1085,6 +1088,7 @@ export default { ...@@ -1085,6 +1088,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
background: #ebf7a6; background: #ebf7a6;
border-radius: toRpx(48); border-radius: toRpx(48);
border: 2px solid #FFF;
} }
@keyframes show-box { @keyframes show-box {
0% { 0% {
...@@ -1114,52 +1118,21 @@ export default { ...@@ -1114,52 +1118,21 @@ export default {
.tab-box { .tab-box {
width: 100%; width: 100%;
height: toRpx(112);
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
align-items: center; align-items: flex-end;
justify-content: space-between; justify-content: space-between;
.tab-list { overflow: hidden;
width: 50%;
height: 100%;
align-items: center;
gap: toRpx(48);
padding-left: toRpx(48);
box-sizing: border-box;
.tab-item {
position: relative; position: relative;
display: flex; z-index: 1;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
cursor: pointer;
.tab-item__text {
font-size: toRpx(32);
line-height: toRpx(44);
color: #292D33;
transition: color 0.2s;
}
&.active .tab-item__text { .home-content-tab {
color: #2C66F7; flex: 1;
min-width: 0;
overflow: hidden;
} }
.tab-item__line {
position: absolute;
bottom: toRpx(16);
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(6);
border-radius: toRpx(3);
background: #2C66F7;
}
}
}
.reception-btn { .reception-btn {
width: toRpx(640); width: toRpx(640);
height: toRpx(88); height: toRpx(88);
...@@ -1185,7 +1158,8 @@ export default { ...@@ -1185,7 +1158,8 @@ export default {
.tab-box + .right-content-box, .tab-box + .right-content-box,
.home-tab-panel { .home-tab-panel {
height: calc(100% - #{toRpx(112)}); flex: 1;
min-height: 0;
} }
.home-tab-panel { .home-tab-panel {
...@@ -1271,11 +1245,13 @@ export default { ...@@ -1271,11 +1245,13 @@ export default {
} }
} }
.right-content-box-scene1 { .right-content-box-scene1 {
border-radius: 24px; // border-radius: 24px;
padding: 16px 20px; padding: 16px 20px;
box-sizing: border-box; box-sizing: border-box;
background-color: #ffffff; background-color: #ffffff;
height: calc(100%); flex: 1;
min-height: 0;
transform: translateY(toMinusRpx(32));
.tab-container { .tab-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -1336,7 +1312,6 @@ export default { ...@@ -1336,7 +1312,6 @@ export default {
} }
.customer-opportunities-box{ .customer-opportunities-box{
padding: 0; padding: 0;
height: calc(100% - #{toRpx(112)});
} }
.app-content-box { .app-content-box {
width: 100%; width: 100%;
...@@ -1347,6 +1322,9 @@ export default { ...@@ -1347,6 +1322,9 @@ export default {
z-index: -999; z-index: -999;
&.app-content-box-scene1 { &.app-content-box-scene1 {
height: calc(100vh - 68px); height: calc(100vh - 68px);
display: flex;
flex-direction: column;
overflow: hidden;
} }
&.right-content-scene1 { &.right-content-scene1 {
width: 98%; width: 98%;
......
<template>
<view class="exam-submit-popup-wrapper">
<view class="content-box">
<view class="text-box">
退出将消耗1次跳过机会
</view>
<view class="sub-text">
剩余次数2次,是否确认退出?
</view>
</view>
<view class="button-group">
<view class="cancel-button" @click="handleCancel">
取消
</view>
<view class="confirm-button" @click="handleConfirm">
{{ confirmText }}
</view>
</view>
</view>
</template>
<script>
export default {
name: 'ExamSubmitPopup',
props: {
confirmText: {
type: String,
default: '确认'
}
},
methods: {
handleCancel() {
this.$emit('cancel')
},
handleConfirm() {
this.$emit('confirm')
},
}
}
</script>
<style lang="scss" scoped>
.exam-submit-popup-wrapper {
position: relative;
width: 100%;
min-height: toRpx(400);
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: toRpx(48);
}
.content-box {
width: toRpx(720);
height: toRpx(156);
border-radius: toRpx(16);
background: #FDECE9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: toRpx(24);
}
.text-box {
font-size: toRpx(40);
color: #333;
text-align: center;
font-weight: 500;
line-height: toRpx(60);
}
.sub-text {
color: #999;
text-align: center;
font-size: toRpx(28);
font-style: normal;
font-weight: 400;
line-height: toRpx(48);
}
.button-group {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: toRpx(16);
margin-top: toRpx(48);
}
.cancel-button {
width: toRpx(344);
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
color: #1a1a1a;
font-size: toRpx(28);
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: toRpx(80);
}
.confirm-button {
width: toRpx(360);
height: toRpx(80);
border-radius: toRpx(48);
border: toRpx(2) solid #979797;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
font-family: "HarmonyOSSansSC";
text-align: center;
line-height: toRpx(80);
&:active {
opacity: 0.8;
}
}
</style>
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
v-if="item.state === 0" v-if="item.state === 0"
@click.stop="handleStartStudy(item, index)" @click.stop="handleStartStudy(item, index)"
>开启学习</view> >开启学习</view>
<view class="course-item-btn course-item-btn--learned" v-else>已学习</view> <view class="course-item-btn course-item-btn--learned" v-else>
<image class="course-item-btn-icon" :src="require('@/assets/images/common/icon-study-right.png')" mode="aspectFit"></image>
<text>已学习</text>
</view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
...@@ -35,13 +38,13 @@ const DEFAULT_COURSE_LIST = [ ...@@ -35,13 +38,13 @@ const DEFAULT_COURSE_LIST = [
id: 1, id: 1,
title: 'AITO 春醒悦享车衣套餐', title: 'AITO 春醒悦享车衣套餐',
description: '包含:原厂定制隐形车衣 + 专属天窗....', description: '包含:原厂定制隐形车衣 + 专属天窗....',
state:1 state: 1
}, },
{ {
id: 2, id: 2,
title: 'AITO 春醒悦享车衣套餐', title: 'AITO 春醒悦享车衣套餐',
description: '包含:原厂定制隐形车衣 + 专属天窗....', description: '包含:原厂定制隐形车衣 + 专属天窗....',
state:0 state: 0
} }
] ]
...@@ -164,12 +167,21 @@ export default { ...@@ -164,12 +167,21 @@ export default {
white-space: nowrap; white-space: nowrap;
&--learned { &--learned {
display: flex;
align-items: center;
gap: toRpx(8);
border: 1px solid rgba(44, 102, 247, 0.10); border: 1px solid rgba(44, 102, 247, 0.10);
background: rgba(44, 102, 247, 0.05); background: rgba(44, 102, 247, 0.05);
color: #2c66f7; color: #2c66f7;
} }
} }
.course-item-btn-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.button-group { .button-group {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -32,17 +32,46 @@ ...@@ -32,17 +32,46 @@
@onPostMessage="handleWebMessage" @onPostMessage="handleWebMessage"
></web-view> ></web-view>
</view> </view>
<!-- 返回拦截确认弹窗 -->
<StudyPopup
:show.sync="showBackPopup"
title="提示"
:width="848"
:height="686"
:topImage="require('@/assets/images/common/warning-notice.webp')"
:topImageWidth="848"
:topImageHeight="248"
class="prelearn-back-popup"
>
<PreBackPopup
:confirmText="backPopInfo.confirmText"
@cancel="handleBackPopupCancel"
@confirm="handleBackPopupConfirm"
/>
</StudyPopup>
</view> </view>
</template> </template>
<script> <script>
import StudyPopup from '@/components/StudyPopup.vue'
import PreBackPopup from '@/components/PreStudy/PreBackPopup.vue'
export default { export default {
name: 'PrelearnBridge', name: 'PrelearnBridge',
components: {
StudyPopup,
PreBackPopup,
},
data() { data() {
return { return {
webviewUrl: '', webviewUrl: '',
childWebview: null, childWebview: null,
measuredNavBottomPx: 0, measuredNavBottomPx: 0,
showBackPopup: false,
backPopInfo: {
confirmText: '确认',
},
prelearnContext: { prelearnContext: {
activityId: 'activity-demo-202606', activityId: 'activity-demo-202606',
packageId: 'package-main-film', packageId: 'package-main-film',
...@@ -457,6 +486,15 @@ export default { ...@@ -457,6 +486,15 @@ export default {
// #endif // #endif
}, },
back() { back() {
this.showBackPopup = true
},
handleBackPopupCancel() {
this.showBackPopup = false
this.backPopInfo.confirmText = '确认已提交'
},
handleBackPopupConfirm() {
this.showBackPopup = false
this.backPopInfo.confirmText = '确认已提交'
this.notifyH5AppBackPressed() this.notifyH5AppBackPressed()
}, },
navigateBack() { navigateBack() {
...@@ -544,4 +582,8 @@ export default { ...@@ -544,4 +582,8 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
::v-deep .prelearn-back-popup .study-popup-mask {
z-index: 9999999;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!