修改接单派单按钮的显示逻辑

This commit is contained in:
赵毅 2025-08-12 18:04:29 +08:00
parent 439e689671
commit 2ffa141844

View File

@ -231,6 +231,11 @@ import {
apiArr as apiArr2
} from '../../api/v2Home.js'
import {
apiArr as apiArr3
} from '../../api/v2User.js'
import {
apiArr as citys
} from '../../api/area.js';
@ -327,7 +332,13 @@ export default {
})
},
goToWuye() {
async goToWuye() {
uni.removeStorageSync('order_dispatch_permission');
uni.removeStorageSync('work_order_permission');
const res = await request(apiArr3.getUserInfo, 'POST', {});
const { community_worker } = res;
uni.setStorageSync('order_dispatch_permission', community_worker && community_worker[0].order_dispatch_permission == 1 || false);
uni.setStorageSync('work_order_permission', community_worker && community_worker[0].work_order_permission == 1 || false);
uni.navigateTo({
url: '/packages/workOrderDashboard/guide/index'
})
@ -987,7 +998,7 @@ export default {
toggleDropdown() {
this.showDropdown = !this.showDropdown;
// 50px
//
if (this.showDropdown) {
uni.pageScrollTo({
scrollTop: 2500,