修改为弹出框
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const RecordingDurationPopup = () => "../../pages-subpackage/ai_features/recording_duration/recording-duration-popup.js";
|
||||
const QualityCoveragePopup = () => "../../pages-subpackage/ai_features/quality_coverage/quality-coverage-popup.js";
|
||||
const _sfc_main = {
|
||||
components: {
|
||||
RecordingDurationPopup,
|
||||
QualityCoveragePopup
|
||||
},
|
||||
data() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
@@ -11,8 +17,10 @@ const _sfc_main = {
|
||||
return {
|
||||
contentTop: totalNavbarHeight + "rpx",
|
||||
// 内容区域距离顶部的距离
|
||||
contentBottom: "96rpx"
|
||||
contentBottom: "96rpx",
|
||||
// 内容区域距离底部的距离(默认值,会在 onReady 中更新)
|
||||
popupReady: false
|
||||
// 弹出框组件是否准备就绪
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -29,6 +37,11 @@ const _sfc_main = {
|
||||
},
|
||||
onLoad() {
|
||||
this.updateNavbarPosition();
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.popupReady = true;
|
||||
}, 100);
|
||||
});
|
||||
},
|
||||
onShow() {
|
||||
this.$nextTick(() => {
|
||||
@@ -47,7 +60,7 @@ const _sfc_main = {
|
||||
const actualHeightRpx = actualHeight * 2;
|
||||
const adjustedHeight = Math.max(actualHeightRpx - 4, 0);
|
||||
this.$set(this, "contentTop", adjustedHeight + "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:175", "[AIAnalysis] 使用实际导航栏高度:", actualHeight, "px =", actualHeightRpx, "rpx, 调整后:", adjustedHeight, "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:204", "[AIAnalysis] 使用实际导航栏高度:", actualHeight, "px =", actualHeightRpx, "rpx, 调整后:", adjustedHeight, "rpx");
|
||||
} else {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
@@ -66,7 +79,7 @@ const _sfc_main = {
|
||||
const tabbarHeightRpx = tabbarHeight * 2;
|
||||
const adjustedBottom = Math.max(tabbarHeightRpx - 4, 0);
|
||||
this.$set(this, "contentBottom", adjustedBottom + "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:199", "[AIAnalysis] 使用实际tabbar高度:", tabbarHeight, "px =", tabbarHeightRpx, "rpx, 调整后:", adjustedBottom, "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:228", "[AIAnalysis] 使用实际tabbar高度:", tabbarHeight, "px =", tabbarHeightRpx, "rpx, 调整后:", adjustedBottom, "rpx");
|
||||
} else {
|
||||
this.$set(this, "contentBottom", "96rpx");
|
||||
}
|
||||
@@ -79,7 +92,7 @@ const _sfc_main = {
|
||||
const actualHeightRpx = actualHeight * 2;
|
||||
const adjustedHeight = Math.max(actualHeightRpx - 4, 0);
|
||||
this.$set(this, "contentTop", adjustedHeight + "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:217", "[AIAnalysis] 延迟更新导航栏高度:", actualHeight, "px =", actualHeightRpx, "rpx, 调整后:", adjustedHeight, "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:246", "[AIAnalysis] 延迟更新导航栏高度:", actualHeight, "px =", actualHeightRpx, "rpx, 调整后:", adjustedHeight, "rpx");
|
||||
}
|
||||
}).exec();
|
||||
const queryTabbar2 = common_vendor.index.createSelectorQuery().in(this);
|
||||
@@ -89,13 +102,49 @@ const _sfc_main = {
|
||||
const tabbarHeightRpx = tabbarHeight * 2;
|
||||
const adjustedBottom = Math.max(tabbarHeightRpx - 4, 0);
|
||||
this.$set(this, "contentBottom", adjustedBottom + "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:229", "[AIAnalysis] 延迟更新tabbar高度:", tabbarHeight, "px =", tabbarHeightRpx, "rpx, 调整后:", adjustedBottom, "rpx");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:258", "[AIAnalysis] 延迟更新tabbar高度:", tabbarHeight, "px =", tabbarHeightRpx, "rpx, 调整后:", adjustedBottom, "rpx");
|
||||
}
|
||||
}).exec();
|
||||
}, 200);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 显示录音时长弹出框
|
||||
showRecordingDurationPopup() {
|
||||
if (!this.popupReady) {
|
||||
common_vendor.index.__f__("warn", "at pages/ai_analysis/ai_analysis.vue:269", "[AIAnalysis] Popup component not ready yet");
|
||||
return;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
const popup = this.$refs.recordingDurationPopup;
|
||||
if (popup && typeof popup.open === "function") {
|
||||
popup.open();
|
||||
} else {
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:278", "[AIAnalysis] recordingDurationPopup ref not found or open method not available");
|
||||
}
|
||||
});
|
||||
},
|
||||
// 弹出框关闭事件
|
||||
onPopupClose() {
|
||||
},
|
||||
// 显示质检覆盖率弹出框
|
||||
showQualityCoveragePopup() {
|
||||
if (!this.popupReady) {
|
||||
common_vendor.index.__f__("warn", "at pages/ai_analysis/ai_analysis.vue:290", "[AIAnalysis] Popup component not ready yet");
|
||||
return;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
const popup = this.$refs.qualityCoveragePopup;
|
||||
if (popup && typeof popup.open === "function") {
|
||||
popup.open();
|
||||
} else {
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:299", "[AIAnalysis] qualityCoveragePopup ref not found or open method not available");
|
||||
}
|
||||
});
|
||||
},
|
||||
// 质检覆盖率弹出框关闭事件
|
||||
onQualityCoveragePopupClose() {
|
||||
},
|
||||
// 计算并更新导航栏和内容区域的位置
|
||||
updateNavbarPosition() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
@@ -111,12 +160,12 @@ const _sfc_main = {
|
||||
goBack() {
|
||||
const pages = getCurrentPages();
|
||||
if (pages.length <= 1) {
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:258", "[AIAnalysis][goBack] 当前是第一个页面,无法返回");
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:329", "[AIAnalysis][goBack] 当前是第一个页面,无法返回");
|
||||
return;
|
||||
}
|
||||
common_vendor.index.navigateBack({
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:263", "[AIAnalysis][goBack] 返回失败:", err);
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:334", "[AIAnalysis][goBack] 返回失败:", err);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -125,7 +174,7 @@ const _sfc_main = {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/${pagePath}`,
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:272", "导航失败:", err);
|
||||
common_vendor.index.__f__("error", "at pages/ai_analysis/ai_analysis.vue:343", "导航失败:", err);
|
||||
common_vendor.index.showToast({
|
||||
title: "页面跳转失败",
|
||||
icon: "none"
|
||||
@@ -137,14 +186,16 @@ const _sfc_main = {
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
|
||||
_easycom_uni_nav_bar2();
|
||||
const _component_RecordingDurationPopup = common_vendor.resolveComponent("RecordingDurationPopup");
|
||||
const _component_QualityCoveragePopup = common_vendor.resolveComponent("QualityCoveragePopup");
|
||||
(_easycom_uni_nav_bar2 + _component_RecordingDurationPopup + _component_QualityCoveragePopup)();
|
||||
}
|
||||
const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_nav_bar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o($options.goBack),
|
||||
b: common_vendor.p({
|
||||
fixed: true,
|
||||
@@ -154,9 +205,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
color: "#333",
|
||||
backgroundColor: "#FFFFFF"
|
||||
}),
|
||||
c: common_vendor.o(($event) => $options.navigateToPage("recording_duration")),
|
||||
c: common_vendor.o((...args) => $options.showRecordingDurationPopup && $options.showRecordingDurationPopup(...args)),
|
||||
d: common_vendor.o(($event) => $options.navigateToPage("customer_count")),
|
||||
e: common_vendor.o(($event) => $options.navigateToPage("quality_coverage")),
|
||||
e: common_vendor.o((...args) => $options.showQualityCoveragePopup && $options.showQualityCoveragePopup(...args)),
|
||||
f: common_vendor.o(($event) => $options.navigateToPage("speech_rating")),
|
||||
g: common_vendor.o(($event) => $options.navigateToPage("intent_level")),
|
||||
h: common_vendor.o(($event) => $options.navigateToPage("deal_attribution")),
|
||||
@@ -164,8 +215,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
j: common_vendor.o(($event) => $options.navigateToPage("over_commitment")),
|
||||
k: common_vendor.o(($event) => $options.navigateToPage("red_line_touch")),
|
||||
l: $options.computedContentTop || $data.contentTop,
|
||||
m: $data.contentBottom || "96rpx"
|
||||
};
|
||||
m: $data.contentBottom || "96rpx",
|
||||
n: $data.popupReady
|
||||
}, $data.popupReady ? {
|
||||
o: common_vendor.sr("recordingDurationPopup", "8462a2f1-1"),
|
||||
p: common_vendor.o($options.onPopupClose)
|
||||
} : {}, {
|
||||
q: $data.popupReady
|
||||
}, $data.popupReady ? {
|
||||
r: common_vendor.sr("qualityCoveragePopup", "8462a2f1-2"),
|
||||
s: common_vendor.o($options.onQualityCoveragePopupClose)
|
||||
} : {});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8462a2f1"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"recording-duration-popup": "../../pages-subpackage/ai_features/recording_duration/recording-duration-popup",
|
||||
"quality-coverage-popup": "../../pages-subpackage/ai_features/quality_coverage/quality-coverage-popup",
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page data-v-8462a2f1"><uni-nav-bar wx:if="{{b}}" class="data-v-8462a2f1" bindclickLeft="{{a}}" u-i="8462a2f1-0" bind:__l="__l" u-p="{{b}}"></uni-nav-bar><view class="content data-v-8462a2f1"><scroll-view class="content-scroll data-v-8462a2f1" scroll-y="true" style="{{'top:' + l + ';' + ('bottom:' + m)}}"><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">📊</text><text class="category-title data-v-8462a2f1">录音和接待统计</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{c}}"><view class="function-icon data-v-8462a2f1">⏱️</view><text class="function-name data-v-8462a2f1">录音时长</text><text class="function-desc data-v-8462a2f1">统计录音总时长</text></view><view class="function-item data-v-8462a2f1" bindtap="{{d}}"><view class="function-icon data-v-8462a2f1">👥</view><text class="function-name data-v-8462a2f1">接待客户数</text><text class="function-desc data-v-8462a2f1">统计接待客户数量</text></view></view></view><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">✅</text><text class="category-title data-v-8462a2f1">质量管控</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{e}}"><view class="function-icon data-v-8462a2f1">🎯</view><text class="function-name data-v-8462a2f1">质检覆盖率</text><text class="function-desc data-v-8462a2f1">质检录音覆盖统计</text></view><view class="function-item data-v-8462a2f1" bindtap="{{f}}"><view class="function-icon data-v-8462a2f1">🗣️</view><text class="function-name data-v-8462a2f1">员工话术评分</text><text class="function-desc data-v-8462a2f1">员工沟通质量评分</text></view></view></view><view class="category-section sales-analysis data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">📈</text><text class="category-title data-v-8462a2f1">销售分析</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item full-row-item data-v-8462a2f1" bindtap="{{g}}"><view class="function-icon data-v-8462a2f1">🎯</view><text class="function-name data-v-8462a2f1">客户意向分级</text><text class="function-desc data-v-8462a2f1">客户购买意向分析</text></view><view class="function-item full-row-item data-v-8462a2f1" bindtap="{{h}}"><view class="function-icon data-v-8462a2f1">💰</view><text class="function-name data-v-8462a2f1">成交归因</text><text class="function-desc data-v-8462a2f1">成交成功因素分析</text></view><view class="function-item full-row-item new-line-item data-v-8462a2f1" bindtap="{{i}}"><view class="function-icon data-v-8462a2f1">🚪</view><text class="function-name data-v-8462a2f1">开口率</text><text class="function-desc data-v-8462a2f1">客户主动开口统计</text></view></view></view><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">⚠️</text><text class="category-title data-v-8462a2f1">风险监控</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{j}}"><view class="function-icon data-v-8462a2f1">🚨</view><text class="function-name data-v-8462a2f1">过度承诺统计</text><text class="function-desc data-v-8462a2f1">监控过度承诺情况</text></view><view class="function-item data-v-8462a2f1" bindtap="{{k}}"><view class="function-icon data-v-8462a2f1">🔴</view><text class="function-name data-v-8462a2f1">触及红线统计</text><text class="function-desc data-v-8462a2f1">违规行为监控统计</text></view></view></view></scroll-view></view></view>
|
||||
<view class="page data-v-8462a2f1"><uni-nav-bar wx:if="{{b}}" class="data-v-8462a2f1" bindclickLeft="{{a}}" u-i="8462a2f1-0" bind:__l="__l" u-p="{{b}}"></uni-nav-bar><view class="content data-v-8462a2f1"><scroll-view class="content-scroll data-v-8462a2f1" scroll-y="true" style="{{'top:' + l + ';' + ('bottom:' + m)}}"><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">📊</text><text class="category-title data-v-8462a2f1">录音和接待统计</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{c}}"><view class="function-icon data-v-8462a2f1">⏱️</view><text class="function-name data-v-8462a2f1">录音时长</text><text class="function-desc data-v-8462a2f1">统计录音总时长</text></view><view class="function-item data-v-8462a2f1" bindtap="{{d}}"><view class="function-icon data-v-8462a2f1">👥</view><text class="function-name data-v-8462a2f1">接待客户数</text><text class="function-desc data-v-8462a2f1">统计接待客户数量</text></view></view></view><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">✅</text><text class="category-title data-v-8462a2f1">质量管控</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{e}}"><view class="function-icon data-v-8462a2f1">📊</view><text class="function-name data-v-8462a2f1">质检覆盖率</text><text class="function-desc data-v-8462a2f1">质检录音覆盖统计</text></view><view class="function-item data-v-8462a2f1" bindtap="{{f}}"><view class="function-icon data-v-8462a2f1">🗣️</view><text class="function-name data-v-8462a2f1">员工话术评分</text><text class="function-desc data-v-8462a2f1">员工沟通质量评分</text></view></view></view><view class="category-section sales-analysis data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">📈</text><text class="category-title data-v-8462a2f1">销售分析</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item full-row-item data-v-8462a2f1" bindtap="{{g}}"><view class="function-icon data-v-8462a2f1">🎯</view><text class="function-name data-v-8462a2f1">客户意向分级</text><text class="function-desc data-v-8462a2f1">客户购买意向分析</text></view><view class="function-item full-row-item data-v-8462a2f1" bindtap="{{h}}"><view class="function-icon data-v-8462a2f1">💰</view><text class="function-name data-v-8462a2f1">成交归因</text><text class="function-desc data-v-8462a2f1">成交成功因素分析</text></view><view class="function-item full-row-item new-line-item data-v-8462a2f1" bindtap="{{i}}"><view class="function-icon data-v-8462a2f1">🚪</view><text class="function-name data-v-8462a2f1">开口率</text><text class="function-desc data-v-8462a2f1">客户主动开口统计</text></view></view></view><view class="category-section two-column data-v-8462a2f1"><view class="category-header data-v-8462a2f1"><text class="category-icon data-v-8462a2f1">⚠️</text><text class="category-title data-v-8462a2f1">风险监控</text></view><view class="function-grid data-v-8462a2f1"><view class="function-item data-v-8462a2f1" bindtap="{{j}}"><view class="function-icon data-v-8462a2f1">🚨</view><text class="function-name data-v-8462a2f1">过度承诺统计</text><text class="function-desc data-v-8462a2f1">监控过度承诺情况</text></view><view class="function-item data-v-8462a2f1" bindtap="{{k}}"><view class="function-icon data-v-8462a2f1">🔴</view><text class="function-name data-v-8462a2f1">触及红线统计</text><text class="function-desc data-v-8462a2f1">违规行为监控统计</text></view></view></view></scroll-view></view><recording-duration-popup wx:if="{{n}}" class="r data-v-8462a2f1" u-r="recordingDurationPopup" bindclose="{{p}}" u-i="8462a2f1-1" bind:__l="__l"/><quality-coverage-popup wx:if="{{q}}" class="r data-v-8462a2f1" u-r="qualityCoveragePopup" bindclose="{{s}}" u-i="8462a2f1-2" bind:__l="__l"/></view>
|
||||
Reference in New Issue
Block a user