Commit f3aa22bb by 岑成威

fix:样式修改

1 parent 4265755c
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1 const index = 2
/** /**
* *
0本地 0本地
......
...@@ -152,11 +152,11 @@ ...@@ -152,11 +152,11 @@
<view <view
v-if="tab.pending" v-if="tab.pending"
class="right-box__tab-badge" class="right-box__tab-badge"
/> >待学</view>
</view> </view>
</view> </view>
<!-- 主体:表格或空状态 --> <!-- 主体:表格或空状态 -->
<view class="right-box__body"> <view :class="['right-box__body', { 'right-box__body--no-footer': Number((activeRecheckItem || {}).reviewStatus) === 1 }]">
<view v-if="!activeStageData" class="right-box__empty"> <view v-if="!activeStageData" class="right-box__empty">
<view class="right-box__empty-visual"> <view class="right-box__empty-visual">
<view class="sprite-icon icon-perferIcon"></view> <view class="sprite-icon icon-perferIcon"></view>
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<view class="right-box__stage-card"> <view class="right-box__stage-card">
<view class="right-box__stage-card-header"> <view class="right-box__stage-card-header">
<view class="sprite-icon icon-detail-change" /> <view class="sprite-icon icon-detail-change" />
<view class="right-box__stage-title">话术改进明细</view> <view class="right-box__stage-title">话术改进明细 ({{ redDotProgress.done }}/{{ redDotProgress.total }})</view>
</view> </view>
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- Frame 68 底部对练提示 --> <!-- Frame 68 底部对练提示 -->
<view class="right-box__footer"> <view class="right-box__footer" v-if="Number((activeRecheckItem || {}).reviewStatus) !== 1">
<view <view
:class="['right-box__practice-bar', { 'right-box__practice-bar--unlocked': redDotProgress.done >= redDotProgress.total }]" :class="['right-box__practice-bar', { 'right-box__practice-bar--unlocked': redDotProgress.done >= redDotProgress.total }]"
@click="handlePracticeClick" @click="handlePracticeClick"
...@@ -405,7 +405,7 @@ ...@@ -405,7 +405,7 @@
practiceParams () { practiceParams () {
// 首场景参数:统一按 practiceScenes 的顺序取第一个(不依赖当前 tab) // 首场景参数:统一按 practiceScenes 的顺序取第一个(不依赖当前 tab)
const first = (this.practiceScenes && this.practiceScenes.length) const first = (this.practiceScenes && this.practiceScenes.length)
? this.practiceScenes[2] ? this.practiceScenes[0]
: null : null
return { return {
type: first?.type || '', type: first?.type || '',
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
}, },
practiceUrlComputed () { practiceUrlComputed () {
// 对练 webview URL(根据当前阶段/客户动态拼接) // 对练 webview URL(根据当前阶段/客户动态拼接)
const base = 'http://192.168.1.155:3000/chat/XkxkmjOMCMtbvFcn' const base = (uni.$storage.get('boutique_mock_data') || {}).aiURL || 'http://192.168.1.155:3000/chat/XkxkmjOMCMtbvFcn'
const domain = 'https://aiassistant.glsx.com.cn' const domain = 'https://aiassistant.glsx.com.cn'
const { phone, name } = uni.$storage.get('userInfo') || {} const { phone, name } = uni.$storage.get('userInfo') || {}
const type = this.practiceParams.type || '' const type = this.practiceParams.type || ''
...@@ -451,36 +451,37 @@ ...@@ -451,36 +451,37 @@
}, },
monthTabs () { monthTabs () {
const details = this.improvementDetails || {} const details = this.improvementDetails || {}
const isClosed = Number((this.activeRecheckItem || {}).reviewStatus) === 1
return [ return [
{ {
label: '开场破冰', label: '开场破冰',
value: 'ice_breaking', value: 'ice_breaking',
pending: Boolean(details.ice_breaking) && !this.stageReadMap.ice_breaking pending: !isClosed && Boolean(details.ice_breaking) && !this.stageReadMap.ice_breaking
}, },
{ {
label: '需求分析', label: '需求分析',
value: 'needs_analysis', value: 'needs_analysis',
pending: Boolean(details.needs_analysis) && !this.stageReadMap.needs_analysis pending: !isClosed && Boolean(details.needs_analysis) && !this.stageReadMap.needs_analysis
}, },
{ {
label: '场景塑造', label: '场景塑造',
value: 'scenario_building', value: 'scenario_building',
pending: Boolean(details.scenario_building) && !this.stageReadMap.scenario_building pending: !isClosed && Boolean(details.scenario_building) && !this.stageReadMap.scenario_building
}, },
{ {
label: '产品推荐', label: '产品推荐',
value: 'product_recommendation', value: 'product_recommendation',
pending: Boolean(details.product_recommendation) && !this.stageReadMap.product_recommendation pending: !isClosed && Boolean(details.product_recommendation) && !this.stageReadMap.product_recommendation
}, },
{ {
label: '异议处理', label: '异议处理',
value: 'objection_handling', value: 'objection_handling',
pending: Boolean(details.objection_handling) && !this.stageReadMap.objection_handling pending: !isClosed && Boolean(details.objection_handling) && !this.stageReadMap.objection_handling
}, },
{ {
label: '合规促单', label: '合规促单',
value: 'compliance_closing', value: 'compliance_closing',
pending: Boolean(details.compliance_closing) && !this.stageReadMap.compliance_closing pending: !isClosed && Boolean(details.compliance_closing) && !this.stageReadMap.compliance_closing
} }
] ]
}, },
...@@ -1517,13 +1518,22 @@ ...@@ -1517,13 +1518,22 @@
&__tab-badge { &__tab-badge {
position: absolute; position: absolute;
top: toRpx(12); top: 0;
right: toRpx(12); right: 0;
width: toRpx(12); display: flex;
height: toRpx(12); flex-direction: row;
justify-content: center;
align-items: flex-end;
padding: 0 toRpx(8);
width: toRpx(56);
height: toRpx(28);
background: rgba(242, 71, 36, 0.1);
border-radius: 0 toRpx(16) 0 0;
font-size: toRpx(20);
line-height: 1;
color: #f24724;
white-space: nowrap;
box-sizing: border-box; box-sizing: border-box;
background: #f24724;
border-radius: 50%;
} }
&__body { &__body {
...@@ -1539,6 +1549,10 @@ ...@@ -1539,6 +1549,10 @@
padding-bottom: 0; padding-bottom: 0;
} }
&__body--no-footer {
padding-bottom: 0;
}
&__practice-host { &__practice-host {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -1665,7 +1679,13 @@ ...@@ -1665,7 +1679,13 @@
font-size: toRpx(26); font-size: toRpx(26);
line-height: toRpx(34); line-height: toRpx(34);
color: #292D33; color: #292D33;
margin-left: toRpx(8);
}
&__stage-progress {
font-size: toRpx(24);
line-height: toRpx(34);
color: #9498a0;
} }
/* Frame 67:对话气泡 + 信息卡片 */ /* Frame 67:对话气泡 + 信息卡片 */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!