修复了禅道的一系列bug

This commit is contained in:
2025-08-09 01:21:59 +08:00
parent c1817b6255
commit f871831cbc
16 changed files with 60 additions and 45 deletions

View File

@ -12,6 +12,7 @@ Page({
sortOrders: ['升序', '降序'],
items: [], // 用于存储查询结果
role: '', // 假设初始为主管角色,可以根据实际情况动态设置
k: 1
},
// 主管名称输入
@ -175,6 +176,7 @@ Page({
onLoad(options) {
// 根据身份确定角色
const role = options.role;
this.setData({k: options.k})
if (role === 'staff') this.setData({selectedSortField: '推广人数'})
console.log('角色---->',options.role);
this.setData({ role });

View File

@ -15,7 +15,8 @@
<!-- 手机号 -->
<text class="self-start font text_5">手机号</text>
<view class="flex-col justify-start items-start self-start text-wrapper_1">
<input class="text_3 font text_6" placeholder="请输入手机号" bindinput="onPhoneInput"/>
<input class="text_3 font text_6" placeholder="请输入手机号" bindinput="onPhoneInput"
maxLength="11" type="number"/>
</view>
<!-- 排序条件选择 -->
@ -71,10 +72,10 @@
<!-- 绩效数据 -->
<view class="flex-row mt-14">
<view class="flex-col justify-start items-center text-wrapper_5" wx:if="{{role === 'supervisor'}}">
<view class="flex-col justify-start items-center text-wrapper_5" wx:if="{{k === '1'}}">
<text class="font_5 text_11">员工:{{item.empCount}}</text>
</view>
<view class="flex-col justify-start items-center text-wrapper_6 ml-8">
<view class="flex-col justify-start items-center text-wrapper_6">
<text class="font_5 text_12">推广:{{item.promoCount}}</text>
</view>
<view class="flex-col justify-start items-center text-wrapper_7 ml-8">

View File

@ -12,9 +12,10 @@
background-color: #fefbf6;
box-shadow: 0rpx 3.75rpx 7.5rpx #00000040;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
position: fixed;
bottom: 0;
overflow: auto;
height: calc(100vh - 1rpx);
}
.text {
color: #e67e22;
@ -165,6 +166,7 @@
width: 146.25rpx;
height: 56.25rpx;
border: solid 1.88rpx #ffa400;
margin-right: 15rpx;
}
.font_5 {
font-size: 26.25rpx;
@ -202,8 +204,7 @@
border: solid 1.88rpx #ffa400;
}
.text_13 {
margin-left: 16.86rpx;
margin-right: 11.27rpx;
margin: 0 16.86rpx;
line-height: 24.23rpx;
}
.text-wrapper_9 {
@ -214,7 +215,6 @@
border: solid 1.88rpx #ffa400;
}
.text_14 {
margin-left: 18.86rpx;
margin-right: 9.26rpx;
margin: 0 18.86rpx;
line-height: 24.56rpx;
}