小程序修改代码
This commit is contained in:
@ -17,6 +17,7 @@ Page({
|
||||
showPopup: false, // 控制弹窗显示与否
|
||||
qrcode: "https://img.picui.cn/free/2025/05/29/6837c53582068.gif", // 设置二维码图片的路径
|
||||
userRole: "",
|
||||
id: 0,
|
||||
},
|
||||
|
||||
// 跳转课程订单页面
|
||||
@ -143,6 +144,7 @@ Page({
|
||||
userAccount: res.data.data.userAccount,
|
||||
invitationCode: res.data.data.invitationCode,
|
||||
userRole: res.data.data.userRole,
|
||||
id: res.data.data.id,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -185,15 +187,16 @@ Page({
|
||||
|
||||
// 跳转查看绩效
|
||||
checkPerformance() {
|
||||
const { userRole } = this.data
|
||||
const { userRole } = this.data;
|
||||
const { id } = this.data;
|
||||
|
||||
if (userRole === 'manager' || userRole === 'supervisor') {
|
||||
if (userRole === 'manager') {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/supervisorPerformance/supervisorPerformance?role=${userRole}`,
|
||||
url: `/pages/dashboardModule/supervisorPerformance/supervisorPerformance?role=${userRole}&id=${id}`,
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/staffPerformance/staffPerformance?role=${userRole}`,
|
||||
url: `/pages/dashboardModule/staffPerformance/staffPerformance?role=${userRole}&id=${id}`,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
@ -247,7 +247,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col mt-22" >
|
||||
<view class="flex-row items-start equal-division section_3" wx:if="{{ userRole != 'user' }}" >
|
||||
<view class="flex-row items-start equal-division section_3" wx:if="{{ userRole != 'user' }}">
|
||||
<view class="flex-col items-center equal-division-item_1 group_3" bind:tap="checkPerformance">
|
||||
<image
|
||||
class="image_5"
|
||||
|
Reference in New Issue
Block a user