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 @@
:class="['type-tag-item', { active: activityTypeIndex === 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>
</view>
</view>
......@@ -111,8 +115,18 @@ export default {
data() {
return {
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,
carModelTabs: [
......
......@@ -175,7 +175,7 @@ export default {
justify-content: space-between;
padding: toRpx(8) 0 toRpx(28) 0;
border-bottom: 1px solid #F5F7FA;
margin-top: toRpx(36);
.header-left {
display: flex;
align-items: center;
......
......@@ -54,17 +54,14 @@
<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="tab-box flex">
<view class="tab-list flex">
<view
v-for="(tab, index) in homeContentTabs"
:key="tab.key"
:class="['tab-item', { active: homeContentTabIndex === index }]"
@click="handleHomeContentTabClick(index)"
>
<text class="tab-item__text">{{ tab.label }}</text>
<view v-if="homeContentTabIndex === index" class="tab-item__line"></view>
</view>
</view>
<type-tab-component
class="home-content-tab"
:typeList="homeContentTabs"
:tabIndex="homeContentTabIndex"
@tabClick="handleHomeContentTabClick"
nameKey="label"
:styleV2="true"
/>
<template v-if="sceneType != 7">
<view class="reception-btn" @click="start">
<image class="start-icon" :src="require('@/assets/images/common/icon-reception-start.png')" mode="aspectFit"></image>
......@@ -75,6 +72,7 @@
<view
v-show="homeContentTabIndex === 0"
class="right-content-box flex right-content-box-scene1"
style="margin-top: 16px;"
>
<view class="content-left" style="padding-bottom: 40px;">
<view class="module-box box-class scene1-box-shadow">
......@@ -195,7 +193,7 @@
<!-- 预学习弹框 -->
<StudyPopup :show.sync="showPreStudyPopup" title="提示" :width="848" :height="968"
: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" />
</StudyPopup>
......@@ -266,7 +264,7 @@ import { interceptionMixin } from '@/mixin/index'
import StudyPopup from '@/components/StudyPopup.vue'
import StudyPopupContent from '@/components/StudyPopupContent.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 ActivityPopup from './components/ActivityPopup.vue'
import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
......@@ -274,6 +272,7 @@ import { FileUploadManager } from '@/utils/recordManager/index.js'
import ActivityTime from './components/ActivityTime/index.vue'
import CustomerSide from './components/CustomerSide/index.vue'
import CustomerOpportunities from '@/components/CustomerOpportunities/index.vue'
import TypeTabComponent from '../TypeTabComponent.vue'
export default {
// mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
......@@ -312,6 +311,7 @@ export default {
ActivityTime,
CustomerSide,
CustomerOpportunities,
TypeTabComponent,
},
props: {
id: [String, Number],
......@@ -366,8 +366,11 @@ export default {
showError: false,
confirmText: '确认已提交'
},
preStudyPopInfo: {
confirmText: '跳过(剩余2次)',
},
showStudyPermissionPopup: false,
showPreStudyPopup: true,
showPreStudyPopup: false,
courseInfo: {
title: ''
},
......@@ -1085,6 +1088,7 @@ export default {
box-sizing: border-box;
background: #ebf7a6;
border-radius: toRpx(48);
border: 2px solid #FFF;
}
@keyframes show-box {
0% {
......@@ -1114,52 +1118,21 @@ export default {
.tab-box {
width: 100%;
height: toRpx(112);
box-sizing: border-box;
flex-shrink: 0;
display: flex;
align-items: center;
align-items: flex-end;
justify-content: space-between;
.tab-list {
width: 50%;
height: 100%;
align-items: center;
gap: toRpx(48);
padding-left: toRpx(48);
box-sizing: border-box;
.tab-item {
overflow: hidden;
position: relative;
display: flex;
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;
}
z-index: 1;
&.active .tab-item__text {
color: #2C66F7;
.home-content-tab {
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 {
width: toRpx(640);
height: toRpx(88);
......@@ -1185,7 +1158,8 @@ export default {
.tab-box + .right-content-box,
.home-tab-panel {
height: calc(100% - #{toRpx(112)});
flex: 1;
min-height: 0;
}
.home-tab-panel {
......@@ -1271,11 +1245,13 @@ export default {
}
}
.right-content-box-scene1 {
border-radius: 24px;
// border-radius: 24px;
padding: 16px 20px;
box-sizing: border-box;
background-color: #ffffff;
height: calc(100%);
flex: 1;
min-height: 0;
transform: translateY(toMinusRpx(32));
.tab-container {
width: 100%;
height: 100%;
......@@ -1336,7 +1312,6 @@ export default {
}
.customer-opportunities-box{
padding: 0;
height: calc(100% - #{toRpx(112)});
}
.app-content-box {
width: 100%;
......@@ -1347,6 +1322,9 @@ export default {
z-index: -999;
&.app-content-box-scene1 {
height: calc(100vh - 68px);
display: flex;
flex-direction: column;
overflow: hidden;
}
&.right-content-scene1 {
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 @@
v-if="item.state === 0"
@click.stop="handleStartStudy(item, index)"
>开启学习</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>
</scroll-view>
</view>
......@@ -35,13 +38,13 @@ const DEFAULT_COURSE_LIST = [
id: 1,
title: 'AITO 春醒悦享车衣套餐',
description: '包含:原厂定制隐形车衣 + 专属天窗....',
state:1
state: 1
},
{
id: 2,
title: 'AITO 春醒悦享车衣套餐',
description: '包含:原厂定制隐形车衣 + 专属天窗....',
state:0
state: 0
}
]
......@@ -164,12 +167,21 @@ export default {
white-space: nowrap;
&--learned {
display: flex;
align-items: center;
gap: toRpx(8);
border: 1px solid rgba(44, 102, 247, 0.10);
background: rgba(44, 102, 247, 0.05);
color: #2c66f7;
}
}
.course-item-btn-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.button-group {
display: flex;
align-items: center;
......
......@@ -32,17 +32,46 @@
@onPostMessage="handleWebMessage"
></web-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>
</template>
<script>
import StudyPopup from '@/components/StudyPopup.vue'
import PreBackPopup from '@/components/PreStudy/PreBackPopup.vue'
export default {
name: 'PrelearnBridge',
components: {
StudyPopup,
PreBackPopup,
},
data() {
return {
webviewUrl: '',
childWebview: null,
measuredNavBottomPx: 0,
showBackPopup: false,
backPopInfo: {
confirmText: '确认',
},
prelearnContext: {
activityId: 'activity-demo-202606',
packageId: 'package-main-film',
......@@ -457,6 +486,15 @@ export default {
// #endif
},
back() {
this.showBackPopup = true
},
handleBackPopupCancel() {
this.showBackPopup = false
this.backPopInfo.confirmText = '确认已提交'
},
handleBackPopupConfirm() {
this.showBackPopup = false
this.backPopInfo.confirmText = '确认已提交'
this.notifyH5AppBackPressed()
},
navigateBack() {
......@@ -544,4 +582,8 @@ export default {
width: 100%;
height: 100%;
}
::v-deep .prelearn-back-popup .study-popup-mask {
z-index: 9999999;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!