初步修改完成

This commit is contained in:
17792275749
2026-03-10 15:33:16 +08:00
parent e20638030b
commit 05b388020b
8 changed files with 31 additions and 5 deletions
@@ -37,12 +37,31 @@
<view class="scrollViewContent"> <view class="scrollViewContent">
<block wx:for="{{userList}}" wx:key="userId"> <block wx:for="{{userList}}" wx:key="userId">
<view class="userList"> <view class="userList">
<view class="userAvatar"></view> <view class="userAvatar">
<block wx:if="{{item.avatar}}">
<image src="{{item.avatar}}" />
</block>
<block wx:else>
<block wx:if="{{item.sex === 1}}">
<image src="/images/configureDevice/userAvatarMan.png" />
</block>
<block wx:else>
<image src="/images/configureDevice/userAvatarWoman.png" />
</block>
</block>
</view>
<view class="userInfo"> <view class="userInfo">
<view class="userInfo_1"> <view class="userInfo_1">
<view>{{item.realname}}</view> <view>{{item.realname}}</view>
<view class="{{item.sex === 1 ? 'man' : 'woman'}}"> <view class="{{item.sex === 1 ? 'man' : 'woman'}}">
<view></view> <view>
<block wx:if="{{item.sex === 1}}">
<image src="/images/configureDevice/man.png" />
</block>
<block wx:else>
<image src="/images/configureDevice/woman.png" mode=""/>
</block>
</view>
<view>{{item.age}}</view> <view>{{item.age}}</view>
</view> </view>
</view> </view>
@@ -116,13 +116,15 @@ input {
.userAvatar { .userAvatar {
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
box-sizing: border-box;
overflow: hidden;
border-radius: 50%; border-radius: 50%;
margin-right: 24rpx; margin-right: 24rpx;
border: 2rpx solid #FF8FB5;
} }
.userInfo { .userInfo {
flex: 1; flex: 1;
margin-right: 24rpx;
} }
.userInfo_1 { .userInfo_1 {
@@ -163,6 +165,8 @@ input {
.userInfo_1>view:nth-of-type(2)>view:nth-of-type(1) { .userInfo_1>view:nth-of-type(2)>view:nth-of-type(1) {
width: 20rpx; width: 20rpx;
height: 20rpx; height: 20rpx;
display: flex;
align-items: center;
margin-right: 4rpx; margin-right: 4rpx;
} }
@@ -91,7 +91,11 @@ Component({
}) })
return; return;
} }
$.ajax("weighingScale/v2/getUserInfoByWkno", { workNo }, "GET", true, "正在查询...").then(res => { let sn = app.globalData.ppScale.device.mac.replace(/:/g, '');
$.ajax("weighingScale/v2/getUserInfoByWkno", {
workNo: workNo,
sn: sn
}, "GET", true, "正在查询...").then(res => {
if (res.result) { if (res.result) {
this.setData({ userInfo: res.result }); this.setData({ userInfo: res.result });
} else { } else {
Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

-1
View File
@@ -1,6 +1,5 @@
const app = getApp(); const app = getApp();
const ppScale = app.globalData.ppScale; const ppScale = app.globalData.ppScale;
import $ from "../../utils/request";
Page({ Page({
data: { data: {