小程序提交
This commit is contained in:
@ -173,6 +173,39 @@ Page({
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 跳转仪表盘
|
||||
gotoDashboard() {
|
||||
|
||||
const { userRole } = this.data
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/overviewPerformance/overviewPerformance?role=${userRole}`,
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转查看绩效
|
||||
checkPerformance() {
|
||||
const { userRole } = this.data
|
||||
|
||||
if (userRole === 'manager' || userRole === 'supervisor') {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/supervisorPerformance/supervisorPerformance?role=${userRole}`,
|
||||
})
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/staffPerformance/staffPerformance?role=${userRole}`,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 跳转排名
|
||||
gotoRank(e) {
|
||||
console.log(e);
|
||||
const userRole = e.currentTarget.dataset.userrole;
|
||||
wx.navigateTo({
|
||||
url: `/pages/dashboardModule/performanceRanking/performanceRanking?role=${userRole}`,
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
@ -192,5 +225,5 @@ Page({
|
||||
phoneNumber: this.data.phoneNumber
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
})
|
@ -246,23 +246,23 @@
|
||||
<text class="font_2 text_4 mt-6">二维码邀请</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col mt-22">
|
||||
<view class="flex-row items-start equal-division section_3">
|
||||
<view class="flex-col items-center equal-division-item_1 group_3" >
|
||||
<view class="flex-col mt-22" >
|
||||
<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"
|
||||
src="./images/zhijinxiangqing.png"
|
||||
/>
|
||||
<text class="font text_5 mt-6">查看绩效</text>
|
||||
</view>
|
||||
<view class="flex-col items-center equal-division-item_2 equal-division-item">
|
||||
<view class="flex-col items-center equal-division-item_2 equal-division-item" bind:tap="gotoRank" data-userRole="{{ 'manager' }}">
|
||||
<image
|
||||
class="image_5"
|
||||
src="./images/tixianzhanghu.png"
|
||||
/>
|
||||
<text class="font text_6 mt-6">主管排名</text>
|
||||
</view>
|
||||
<view class="flex-col items-center equal-division-item_3 group_5">
|
||||
<view class="flex-col items-center equal-division-item_3 group_5" bind:tap="gotoRank" data-userRole="{{ 'supervisor' }}">
|
||||
<image
|
||||
class="image_5"
|
||||
src="./images/tixianjilu.png"
|
||||
@ -284,7 +284,7 @@
|
||||
src="./images/xiajiantou.png"
|
||||
/>
|
||||
</view>
|
||||
<view class="flex-row justify-between items-center section_4 mt-11">
|
||||
<view class="flex-row justify-between items-center section_4 mt-11" bind:tap="gotoDashboard">
|
||||
<view class="flex-row items-center">
|
||||
<image
|
||||
class="shrink-0 image_6"
|
||||
|
Reference in New Issue
Block a user