修改接单派单按钮的显示逻辑
This commit is contained in:
parent
439e689671
commit
2ffa141844
@ -231,6 +231,11 @@ import {
|
|||||||
apiArr as apiArr2
|
apiArr as apiArr2
|
||||||
} from '../../api/v2Home.js'
|
} from '../../api/v2Home.js'
|
||||||
|
|
||||||
|
import {
|
||||||
|
apiArr as apiArr3
|
||||||
|
} from '../../api/v2User.js'
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiArr as citys
|
apiArr as citys
|
||||||
} from '../../api/area.js';
|
} 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({
|
uni.navigateTo({
|
||||||
url: '/packages/workOrderDashboard/guide/index'
|
url: '/packages/workOrderDashboard/guide/index'
|
||||||
})
|
})
|
||||||
@ -987,7 +998,7 @@ export default {
|
|||||||
|
|
||||||
toggleDropdown() {
|
toggleDropdown() {
|
||||||
this.showDropdown = !this.showDropdown;
|
this.showDropdown = !this.showDropdown;
|
||||||
// 当展开下拉菜单时,页面向上滑动50px
|
// 当展开下拉菜单时,页面滑动
|
||||||
if (this.showDropdown) {
|
if (this.showDropdown) {
|
||||||
uni.pageScrollTo({
|
uni.pageScrollTo({
|
||||||
scrollTop: 2500,
|
scrollTop: 2500,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user