修改微信小程序的空白区域

This commit is contained in:
zhonghua.li
2026-02-08 22:05:30 +08:00
parent 94b0367ac5
commit e76cb09bf7
41 changed files with 707 additions and 7732 deletions

View File

@@ -1,88 +0,0 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
name: "CustomerCountPopup",
props: {
openTrigger: {
type: Number,
default: 0
}
},
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" }
]
};
},
watch: {
openTrigger(newVal) {
if (newVal > 0) {
this.$nextTick(() => {
this.open();
});
}
}
},
methods: {
open() {
if (this.$refs && this.$refs.popup) {
this.$refs.popup.open();
} else {
setTimeout(() => {
if (this.$refs && this.$refs.popup) {
this.$refs.popup.open();
}
}, 100);
}
},
close() {
if (this.$refs && this.$refs.popup) {
this.$refs.popup.close();
}
},
onPopupChange(e) {
if (!e.show) {
this.$emit("close");
}
}
}
};
if (!Array) {
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
_easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
_easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.close && $options.close(...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
};
}),
e: common_vendor.sr("popup", "b8c628e1-0"),
f: common_vendor.o($options.onPopupChange),
g: common_vendor.p({
type: "center",
["mask-click"]: true
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b8c628e1"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages-subpackage/ai_features/customer_count/customer-count-popup.js.map

View File

@@ -1,6 +0,0 @@
{
"component": true,
"usingComponents": {
"uni-popup": "../../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -1 +0,0 @@
<uni-popup wx:if="{{g}}" class="r data-v-b8c628e1" u-s="{{['d']}}" u-r="popup" bindchange="{{f}}" u-i="b8c628e1-0" bind:__l="__l" u-p="{{g}}"><view class="customer-count-popup data-v-b8c628e1"><view class="popup-header data-v-b8c628e1"><text class="popup-title data-v-b8c628e1">接待客户数统计</text><view class="popup-close data-v-b8c628e1" bindtap="{{a}}"><text class="close-icon data-v-b8c628e1">×</text></view></view><scroll-view class="popup-content data-v-b8c628e1" scroll-y="true"><view class="popup-stats-card data-v-b8c628e1"><view class="popup-stat-item data-v-b8c628e1"><text class="popup-stat-value data-v-b8c628e1">{{b}}</text><text class="popup-stat-label data-v-b8c628e1">累计接待客户</text></view><view class="popup-stat-item data-v-b8c628e1"><text class="popup-stat-value data-v-b8c628e1">{{c}}</text><text class="popup-stat-label data-v-b8c628e1">今日接待客户</text></view></view><view class="popup-chart-section data-v-b8c628e1"><text class="popup-section-title data-v-b8c628e1">接待趋势图</text><view class="popup-chart-placeholder data-v-b8c628e1"><text class="popup-placeholder-text data-v-b8c628e1">📈 图表区域</text><text class="popup-placeholder-desc data-v-b8c628e1">此处将显示客户接待趋势图表</text></view></view><view class="popup-data-list data-v-b8c628e1"><text class="popup-section-title data-v-b8c628e1">接待记录</text><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="popup-list-item data-v-b8c628e1"><view class="popup-item-left data-v-b8c628e1"><text class="popup-item-date data-v-b8c628e1">{{item.a}}</text><text class="popup-item-desc data-v-b8c628e1">{{item.b}}</text></view><view class="popup-item-right data-v-b8c628e1"><text class="popup-item-count data-v-b8c628e1">{{item.c}} 人</text></view></view></view></scroll-view></view></uni-popup>

View File

@@ -1,148 +0,0 @@
.customer-count-popup.data-v-b8c628e1 {
width: 680rpx;
max-height: 80vh;
background-color: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
overflow: hidden;
position: relative;
}
.popup-header.data-v-b8c628e1 {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6rpx 32rpx;
border-bottom: 1rpx solid #E0E0E0;
flex-shrink: 0;
background-color: #FFFFFF;
box-sizing: border-box;
}
.popup-title.data-v-b8c628e1 {
font-size: 24rpx;
font-weight: 500;
color: #333;
}
.popup-close.data-v-b8c628e1 {
width: 40rpx;
height: 40rpx;
min-width: 40rpx;
min-height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
background-color: rgba(0, 0, 0, 0.05);
border-radius: 50%;
transition: background-color 0.2s;
}
.popup-close.data-v-b8c628e1:active {
background-color: rgba(0, 0, 0, 0.1);
}
.close-icon.data-v-b8c628e1 {
font-size: 32rpx;
color: #333;
line-height: 1;
display: block;
}
.popup-content.data-v-b8c628e1 {
flex: 1;
min-height: 0;
overflow-y: auto;
max-height: calc(80vh - 52rpx);
}
.popup-stats-card.data-v-b8c628e1 {
display: flex;
margin: 20rpx 30rpx;
background: #f8f9fa;
border-radius: 16rpx;
padding: 40rpx 30rpx;
}
.popup-stat-item.data-v-b8c628e1 {
flex: 1;
text-align: center;
}
.popup-stat-item.data-v-b8c628e1:not(:last-child) {
border-right: 1rpx solid #e9ecef;
}
.popup-stat-value.data-v-b8c628e1 {
display: block;
font-size: 48rpx;
font-weight: bold;
color: #007aff;
margin-bottom: 10rpx;
}
.popup-stat-label.data-v-b8c628e1 {
display: block;
font-size: 24rpx;
color: #666666;
}
.popup-chart-section.data-v-b8c628e1,
.popup-data-list.data-v-b8c628e1 {
margin: 20rpx 30rpx;
background: #f8f9fa;
border-radius: 16rpx;
overflow: hidden;
}
.popup-section-title.data-v-b8c628e1 {
display: block;
font-size: 32rpx;
font-weight: bold;
color: #333333;
padding: 30rpx;
border-bottom: 1rpx solid #e9ecef;
background: #ffffff;
}
.popup-chart-placeholder.data-v-b8c628e1 {
padding: 80rpx 30rpx;
text-align: center;
background: #ffffff;
}
.popup-placeholder-text.data-v-b8c628e1 {
display: block;
font-size: 48rpx;
margin-bottom: 20rpx;
}
.popup-placeholder-desc.data-v-b8c628e1 {
display: block;
font-size: 28rpx;
color: #666666;
}
.popup-list-item.data-v-b8c628e1 {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
background: #ffffff;
}
.popup-list-item.data-v-b8c628e1:last-child {
border-bottom: none;
}
.popup-item-left.data-v-b8c628e1 {
flex: 1;
}
.popup-item-date.data-v-b8c628e1 {
display: block;
font-size: 28rpx;
font-weight: bold;
color: #333333;
margin-bottom: 8rpx;
}
.popup-item-desc.data-v-b8c628e1 {
display: block;
font-size: 24rpx;
color: #666666;
}
.popup-item-right.data-v-b8c628e1 {
text-align: right;
}
.popup-item-count.data-v-b8c628e1 {
display: block;
font-size: 28rpx;
font-weight: bold;
color: #007aff;
}