修复了禅道的一系列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;
}

View File

@ -28,6 +28,7 @@
placeholder="请输入手机号"
bindinput="onPhoneInput"
value="{{phoneNumber}}"
type="number"
maxLength="11"
/>
</view>

View File

@ -18,9 +18,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;

View File

@ -28,6 +28,7 @@
placeholder="请输入手机号"
bindinput="onPhoneInput"
value="{{phoneNumber}}"
type="number"
maxLength="11"
/>
</view>

View File

@ -18,9 +18,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;

View File

@ -11,6 +11,7 @@
class="text_3 font text_1"
placeholder="请输入订单号"
value="{{orderNumber}}"
type="number"
bindinput="onOrderNumberInput"
/>
</view>
@ -34,9 +35,9 @@
wx:for-index="index"
wx:key="id"
>
<view class="flex-row items-baseline">
<view class="flex-row items-baseline" style="display: flex; justify-content: space-between;">
<text class="font_2 text_8">订单号:</text>
<text class="font_3 ml-26">{{item.orderNumber}}</text>
<text class="font_3">{{item.orderNumber}}</text>
</view>
<view class="flex-row justify-between mt-19">
@ -54,22 +55,20 @@
<text class="font_3 text_24">¥{{item.totalAmount}}</text>
</view>
<view class="flex-row justify-between mt-19">
<view class="flex-row justify-between items-center mt-19">
<text class="font_2 text_15">状态:</text>
<text class="font_4 text_16">{{item.orderStatus}}</text>
</view>
<view class="flex-row justify-between mt-19">
<view class="flex-row justify-between items-center mt-19">
<text class="font_2 text_17">抽成:</text>
<text class="font_4 text_18">
主管:{{item.firstRate * 100}}%,员工:{{item.secondRate * 100}}%
<text class="font_4 text_18">主管:{{item.firstRate * 100}}%,员工:{{item.secondRate * 100}}%
</text>
</view>
<view class="flex-row justify-between mt-19">
<view class="flex-row justify-between items-center mt-19">
<text class="font_2 text_19">奖励:</text>
<text class="font_4 text_20">
主管:¥{{item.firstReward}},员工:¥{{item.secondReward}}
<text class="font_4 text_20">主管:¥{{item.firstReward}},员工:¥{{item.secondReward}}
</text>
</view>

View File

@ -9,9 +9,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;
@ -118,6 +119,7 @@
font-size: 30rpx;
font-family: SourceHanSansCN;
line-height: 22.76rpx;
margin-right: 15rpx;
color: #444444;
}
.text_9 {
@ -130,45 +132,45 @@
color: #444444;
}
.text_10 {
margin-right: 19.69rpx;
margin-right: 15rpx;
line-height: 27.84rpx;
}
.text_11 {
line-height: 27.81rpx;
}
.text_12 {
margin-right: 15.06rpx;
margin-right: 15rpx;
}
.text_13 {
line-height: 28.29rpx;
}
.text_24 {
margin-right: 6.41rpx;
margin-right: 15rpx;
}
.text_15 {
line-height: 28.01rpx;
}
.text_16 {
margin-right: 18.77rpx;
margin-right: 15rpx;
line-height: 28.09rpx;
}
.text_17 {
line-height: 28.16rpx;
}
.text_18 {
margin-right: 11.44rpx;
margin-right: 15rpx;
}
.text_19 {
line-height: 28.2rpx;
}
.text_20 {
margin-right: 7.76rpx;
margin-right: 15rpx;
}
.text_21 {
line-height: 28.31rpx;
}
.text_23 {
margin-right: 19.31rpx;
margin-right: 15rpx;
margin-bottom: 2.04rpx;
line-height: 27.79rpx;
}