增加a分析若干功能页面。

This commit is contained in:
zhonghua.li
2026-02-07 14:33:30 +08:00
parent 11cc4a7664
commit 3498a9b9e3
72 changed files with 4562 additions and 18 deletions

View File

@@ -0,0 +1,40 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
totalCustomers: "1,258",
todayCustomers: "23",
dataList: [
{ date: "2024-02-07", description: "今日接待客户", count: "23" },
{ date: "2024-02-06", description: "昨日接待客户", count: "31" },
{ date: "2024-02-05", description: "前日接待客户", count: "28" },
{ date: "2024-02-04", description: "工作日接待客户", count: "35" },
{ date: "2024-02-03", description: "周末接待客户", count: "18" }
]
};
},
methods: {
goBack() {
common_vendor.index.navigateBack();
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
b: common_vendor.t($data.totalCustomers),
c: common_vendor.t($data.todayCustomers),
d: common_vendor.f($data.dataList, (item, index, i0) => {
return {
a: common_vendor.t(item.date),
b: common_vendor.t(item.description),
c: common_vendor.t(item.count),
d: index
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e0c5faaf"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages-subpackage/ai_features/customer_count/customer_count.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="feature-page data-v-e0c5faaf"><view class="page-header data-v-e0c5faaf"><view class="nav-bar data-v-e0c5faaf"><view class="nav-left data-v-e0c5faaf" bindtap="{{a}}"><text class="back-icon data-v-e0c5faaf">←</text></view><text class="nav-title data-v-e0c5faaf">接待客户数统计</text></view></view><scroll-view class="content-scroll data-v-e0c5faaf" scroll-y="true"><view class="stats-card data-v-e0c5faaf"><view class="stat-item data-v-e0c5faaf"><text class="stat-value data-v-e0c5faaf">{{b}}</text><text class="stat-label data-v-e0c5faaf">累计接待客户</text></view><view class="stat-item data-v-e0c5faaf"><text class="stat-value data-v-e0c5faaf">{{c}}</text><text class="stat-label data-v-e0c5faaf">今日接待客户</text></view></view><view class="chart-section data-v-e0c5faaf"><text class="section-title data-v-e0c5faaf">接待趋势图</text><view class="chart-placeholder data-v-e0c5faaf"><text class="placeholder-text data-v-e0c5faaf">📈 图表区域</text><text class="placeholder-desc data-v-e0c5faaf">此处将显示客户接待趋势图表</text></view></view><view class="data-list data-v-e0c5faaf"><text class="section-title data-v-e0c5faaf">接待记录</text><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="list-item data-v-e0c5faaf"><view class="item-left data-v-e0c5faaf"><text class="item-date data-v-e0c5faaf">{{item.a}}</text><text class="item-desc data-v-e0c5faaf">{{item.b}}</text></view><view class="item-right data-v-e0c5faaf"><text class="item-count data-v-e0c5faaf">{{item.c}} 人</text></view></view></view></scroll-view></view>

View File

@@ -0,0 +1,127 @@
.feature-page.data-v-e0c5faaf {
min-height: 100vh;
background: #f8f9fa;
}
.page-header.data-v-e0c5faaf {
background: #ffffff;
border-bottom: 1rpx solid #e9ecef;
}
.nav-bar.data-v-e0c5faaf {
display: flex;
align-items: center;
height: 88rpx;
padding: 0 30rpx;
}
.nav-left.data-v-e0c5faaf {
width: 60rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
}
.back-icon.data-v-e0c5faaf {
font-size: 36rpx;
color: #333333;
}
.nav-title.data-v-e0c5faaf {
flex: 1;
text-align: center;
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.content-scroll.data-v-e0c5faaf {
height: calc(100vh - 88rpx);
}
.stats-card.data-v-e0c5faaf {
display: flex;
margin: 20rpx 30rpx;
background: #ffffff;
border-radius: 16rpx;
padding: 40rpx 30rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.stat-item.data-v-e0c5faaf {
flex: 1;
text-align: center;
}
.stat-item.data-v-e0c5faaf:not(:last-child) {
border-right: 1rpx solid #e9ecef;
}
.stat-value.data-v-e0c5faaf {
display: block;
font-size: 48rpx;
font-weight: bold;
color: #007aff;
margin-bottom: 10rpx;
}
.stat-label.data-v-e0c5faaf {
display: block;
font-size: 24rpx;
color: #666666;
}
.chart-section.data-v-e0c5faaf, .data-list.data-v-e0c5faaf {
margin: 20rpx 30rpx;
background: #ffffff;
border-radius: 16rpx;
overflow: hidden;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.section-title.data-v-e0c5faaf {
display: block;
font-size: 32rpx;
font-weight: bold;
color: #333333;
padding: 30rpx;
border-bottom: 1rpx solid #e9ecef;
}
.chart-placeholder.data-v-e0c5faaf {
padding: 80rpx 30rpx;
text-align: center;
}
.placeholder-text.data-v-e0c5faaf {
display: block;
font-size: 48rpx;
margin-bottom: 20rpx;
}
.placeholder-desc.data-v-e0c5faaf {
display: block;
font-size: 28rpx;
color: #666666;
}
.list-item.data-v-e0c5faaf {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.list-item.data-v-e0c5faaf:last-child {
border-bottom: none;
}
.item-left.data-v-e0c5faaf {
flex: 1;
}
.item-date.data-v-e0c5faaf {
display: block;
font-size: 28rpx;
font-weight: bold;
color: #333333;
margin-bottom: 8rpx;
}
.item-desc.data-v-e0c5faaf {
display: block;
font-size: 24rpx;
color: #666666;
}
.item-right.data-v-e0c5faaf {
text-align: right;
}
.item-count.data-v-e0c5faaf {
display: block;
font-size: 28rpx;
font-weight: bold;
color: #007aff;
}