增加a分析若干功能页面。
This commit is contained in:
172
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.js
vendored
Normal file
172
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.js
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
const navbarHeight = 44;
|
||||
const statusBarHeightRpx = statusBarHeight * 2;
|
||||
const navbarHeightRpx = navbarHeight * 2;
|
||||
const totalNavbarHeight = statusBarHeightRpx + navbarHeightRpx;
|
||||
return {
|
||||
contentTop: totalNavbarHeight + "rpx",
|
||||
// 内容区域距离顶部的距离
|
||||
contentBottom: "96rpx"
|
||||
// 内容区域距离底部的距离(默认值,会在 onReady 中更新)
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// 计算内容区域的位置(使用计算属性确保响应式)
|
||||
computedContentTop() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
const navbarHeight = 44;
|
||||
const statusBarHeightRpx = statusBarHeight * 2;
|
||||
const navbarHeightRpx = navbarHeight * 2;
|
||||
const totalNavbarHeight = statusBarHeightRpx + navbarHeightRpx;
|
||||
return totalNavbarHeight + "rpx";
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.updateNavbarPosition();
|
||||
},
|
||||
onShow() {
|
||||
this.$nextTick(() => {
|
||||
this.updateNavbarPosition();
|
||||
setTimeout(() => {
|
||||
this.updateNavbarPosition();
|
||||
}, 50);
|
||||
});
|
||||
},
|
||||
onReady() {
|
||||
this.$nextTick(() => {
|
||||
const query = common_vendor.index.createSelectorQuery().in(this);
|
||||
query.select(".uni-navbar__content").boundingClientRect((data) => {
|
||||
if (data && data.height) {
|
||||
const actualHeight = data.height;
|
||||
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");
|
||||
} else {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
const navbarHeight = 44;
|
||||
const statusBarHeightRpx = statusBarHeight * 2;
|
||||
const navbarHeightRpx = navbarHeight * 2;
|
||||
const totalNavbarHeight = statusBarHeightRpx + navbarHeightRpx;
|
||||
const adjustedHeight = Math.max(totalNavbarHeight - 4, 0);
|
||||
this.$set(this, "contentTop", adjustedHeight + "rpx");
|
||||
}
|
||||
}).exec();
|
||||
const queryTabbar = common_vendor.index.createSelectorQuery().in(this);
|
||||
queryTabbar.select(".tabbar").boundingClientRect((tabbarData) => {
|
||||
if (tabbarData && tabbarData.height) {
|
||||
const tabbarHeight = tabbarData.height;
|
||||
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");
|
||||
} else {
|
||||
this.$set(this, "contentBottom", "96rpx");
|
||||
}
|
||||
}).exec();
|
||||
setTimeout(() => {
|
||||
const query2 = common_vendor.index.createSelectorQuery().in(this);
|
||||
query2.select(".uni-navbar__content").boundingClientRect((data) => {
|
||||
if (data && data.height) {
|
||||
const actualHeight = data.height;
|
||||
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");
|
||||
}
|
||||
}).exec();
|
||||
const queryTabbar2 = common_vendor.index.createSelectorQuery().in(this);
|
||||
queryTabbar2.select(".tabbar").boundingClientRect((tabbarData) => {
|
||||
if (tabbarData && tabbarData.height) {
|
||||
const tabbarHeight = tabbarData.height;
|
||||
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");
|
||||
}
|
||||
}).exec();
|
||||
}, 200);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 计算并更新导航栏和内容区域的位置
|
||||
updateNavbarPosition() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const statusBarHeight = systemInfo.statusBarHeight || 20;
|
||||
const navbarHeight = 44;
|
||||
const statusBarHeightRpx = statusBarHeight * 2;
|
||||
const navbarHeightRpx = navbarHeight * 2;
|
||||
const totalNavbarHeight = statusBarHeightRpx + navbarHeightRpx;
|
||||
const contentTop = totalNavbarHeight + "rpx";
|
||||
this.$set(this, "contentTop", contentTop);
|
||||
this.$forceUpdate();
|
||||
},
|
||||
goBack() {
|
||||
const pages = getCurrentPages();
|
||||
if (pages.length <= 1) {
|
||||
common_vendor.index.__f__("log", "at pages/ai_analysis/ai_analysis.vue:258", "[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);
|
||||
}
|
||||
});
|
||||
},
|
||||
navigateToPage(pageName) {
|
||||
const pagePath = `pages-subpackage/ai_features/${pageName}/${pageName}`;
|
||||
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.showToast({
|
||||
title: "页面跳转失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
|
||||
_easycom_uni_nav_bar2();
|
||||
}
|
||||
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 {
|
||||
a: common_vendor.o($options.goBack),
|
||||
b: common_vendor.p({
|
||||
fixed: true,
|
||||
statusBar: true,
|
||||
title: "AI销冠系统",
|
||||
leftIcon: "left",
|
||||
color: "#333",
|
||||
backgroundColor: "#FFFFFF"
|
||||
}),
|
||||
c: common_vendor.o(($event) => $options.navigateToPage("recording_duration")),
|
||||
d: common_vendor.o(($event) => $options.navigateToPage("customer_count")),
|
||||
e: common_vendor.o(($event) => $options.navigateToPage("quality_coverage")),
|
||||
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")),
|
||||
i: common_vendor.o(($event) => $options.navigateToPage("opening_rate")),
|
||||
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"
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8462a2f1"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/ai_analysis/ai_analysis.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.wxml
vendored
Normal file
@@ -0,0 +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>
|
||||
161
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.wxss
vendored
Normal file
161
unpackage/dist/dev/mp-weixin/pages/ai_analysis/ai_analysis.wxss
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
|
||||
page.data-v-8462a2f1 {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.page.data-v-8462a2f1 {
|
||||
min-height: 100vh;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.content.data-v-8462a2f1 {
|
||||
padding-top: 0 !important;
|
||||
margin-top: 0 !important;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
/* 确保内容从顶部开始,不受占位符影响 */
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* 隐藏导航栏占位区域,避免产生空白 */
|
||||
.data-v-8462a2f1 .uni-navbar__placeholder {
|
||||
display: none !important;
|
||||
height: 0 !important;
|
||||
}
|
||||
.data-v-8462a2f1 .uni-navbar__placeholder-view {
|
||||
display: none !important;
|
||||
height: 0 !important;
|
||||
}
|
||||
|
||||
/* 隐藏底部 tabBar 占位区域,避免产生空白(类似顶部导航栏的处理方式) */
|
||||
/* 注意:只隐藏占位符,不隐藏实际的 tabbar */
|
||||
.data-v-8462a2f1 [class*="tabbar"][class*="placeholder"] {
|
||||
display: none !important;
|
||||
height: 0 !important;
|
||||
}
|
||||
|
||||
/* 隐藏可能的页面底部安全区域占位符 */
|
||||
.data-v-8462a2f1 [class*="safe-area"][class*="bottom"],.data-v-8462a2f1 [class*="bottom"][class*="safe"] {
|
||||
display: none !important;
|
||||
height: 0 !important;
|
||||
}
|
||||
.content-scroll.data-v-8462a2f1 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0; /* 先从顶部开始 */
|
||||
bottom: 0; /* 先设为0,通过查询实际高度动态设置 */
|
||||
/* top值通过内联样式动态设置,覆盖上面的 top: 0 */
|
||||
padding: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
margin: 0 !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 确保scroll-view内部没有默认间距 */
|
||||
.content-scroll > view.data-v-8462a2f1 {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.category-section.data-v-8462a2f1 {
|
||||
margin: 20rpx 30rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.category-section.data-v-8462a2f1:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.category-section.data-v-8462a2f1:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.category-header.data-v-8462a2f1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1rpx solid #F0F0F0;
|
||||
}
|
||||
.category-icon.data-v-8462a2f1 {
|
||||
font-size: 32rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.category-title.data-v-8462a2f1 {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.function-grid.data-v-8462a2f1 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 10rpx;
|
||||
}
|
||||
|
||||
/* 两列布局的分类 */
|
||||
.two-column .function-item.data-v-8462a2f1 {
|
||||
flex: 1;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
padding: 24rpx 16rpx;
|
||||
margin: 0 5rpx;
|
||||
text-align: center;
|
||||
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
|
||||
transition: all 0.3s ease;
|
||||
border: 1rpx solid #F0F0F0;
|
||||
}
|
||||
|
||||
/* 三列布局的分类 */
|
||||
.three-column .function-item.data-v-8462a2f1 {
|
||||
width: 31%;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
padding: 24rpx 12rpx;
|
||||
margin: 1%;
|
||||
text-align: center;
|
||||
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
|
||||
transition: all 0.3s ease;
|
||||
border: 1rpx solid #F0F0F0;
|
||||
}
|
||||
|
||||
/* 销售分析:所有项目统一宽度(50%) */
|
||||
.sales-analysis .function-item.full-row-item.data-v-8462a2f1 {
|
||||
flex: 1;
|
||||
width: calc(50% - 10rpx);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
padding: 24rpx 16rpx;
|
||||
margin: 0 5rpx;
|
||||
text-align: center;
|
||||
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
|
||||
transition: all 0.3s ease;
|
||||
border: 1rpx solid #F0F0F0;
|
||||
}
|
||||
|
||||
/* 销售分析:开口率单独一行,但保持50%宽度 */
|
||||
.sales-analysis .function-item.new-line-item.data-v-8462a2f1 {
|
||||
flex-basis: 100%;
|
||||
width: calc(50% - 10rpx);
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.function-item.data-v-8462a2f1:active {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.function-icon.data-v-8462a2f1 {
|
||||
font-size: 48rpx;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.function-name.data-v-8462a2f1 {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.function-desc.data-v-8462a2f1 {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
line-height: 1.4;
|
||||
}
|
||||
Reference in New Issue
Block a user