处理个人中心 以及数据看板
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<nut-grid-item text="订单管理" @click="navigateTo('/pages/order/index?tab=0')">
|
||||
<nut-icon name="order"></nut-icon>
|
||||
</nut-grid-item>
|
||||
<nut-grid-item text="运营数据" @click="navigateTo('/pages/data/index')">
|
||||
<nut-grid-item v-if="staffRole == 1" text="运营数据" @click="navigateTo('/pages/data/index')">
|
||||
<nut-icon name="eye"></nut-icon>
|
||||
</nut-grid-item>
|
||||
</nut-grid>
|
||||
@@ -47,7 +47,8 @@
|
||||
|
||||
// 用户ID
|
||||
const uid = ref(0);
|
||||
const staffName = ref('');
|
||||
const staffName = ref('');
|
||||
const staffRole = ref(0);
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +69,8 @@
|
||||
let user_id = uni.getStorageSync('uid');
|
||||
console.log("staff_name", staff_name);
|
||||
uid.value = user_id
|
||||
staffName.value = staff_name
|
||||
staffName.value = staff_name
|
||||
staffRole.value = role
|
||||
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user