|
@@ -129,7 +129,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 首页通知 -->
|
|
|
- <div class="taskListRow flex-col" @click="pushPageList('/announcement')">
|
|
|
+ <div v-if="isAdmin" class="taskListRow flex-col" @click="pushPageList('/announcement')">
|
|
|
<div class="taskIcon announcementIcon"></div>
|
|
|
<div class="taskRight">
|
|
|
<div class="taskTitle">
|
|
@@ -387,15 +387,6 @@ export default {
|
|
|
router.push({ path: url });
|
|
|
};
|
|
|
|
|
|
- // const roleCheck = () => {
|
|
|
- // if (user.isAdmined) {
|
|
|
- // return true;
|
|
|
- // } else {
|
|
|
- // const menuList = user.menuCodeList.filter((item) => item === "M6");
|
|
|
- // return menuList.length > 0;
|
|
|
- // }
|
|
|
- // };
|
|
|
-
|
|
|
// 选择地区完成
|
|
|
const areaPopFinish = async (e) => {
|
|
|
console.log("e", e);
|
|
@@ -415,9 +406,7 @@ export default {
|
|
|
};
|
|
|
const isInWeChat = ref(false);
|
|
|
|
|
|
- // 是否内陆或海外
|
|
|
- const isInland = ref(true);
|
|
|
- const isAbroad = ref(false);
|
|
|
+
|
|
|
// 是否有上级账号
|
|
|
const haveRelation = ref(false);
|
|
|
const haveRelationCheck = () => {
|
|
@@ -426,23 +415,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- const checkIsAbroad = async () => {
|
|
|
- try {
|
|
|
- const userInfo = localStorage.getItem("loginUser");
|
|
|
- const userIfForeign = JSON.parse(userInfo);
|
|
|
- // console.log("用户的海内外信息" + userIfForeign.ifForeign);
|
|
|
- // console.log("看下user是什么***" + user.menuCodeList);
|
|
|
- if (userIfForeign.ifForeign === '1') {
|
|
|
- isAbroad.value = true;
|
|
|
- isInland.value = false;
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.error(error);
|
|
|
- }
|
|
|
- };
|
|
|
+
|
|
|
|
|
|
onMounted(() => {
|
|
|
- checkIsAbroad();
|
|
|
haveRelationCheck();
|
|
|
})
|
|
|
|
|
@@ -461,10 +436,7 @@ export default {
|
|
|
accountDetail,
|
|
|
areaPopFinish,
|
|
|
isInWeChat,
|
|
|
- isAbroad,
|
|
|
haveRelation,
|
|
|
- checkIsAbroad,
|
|
|
- isInland,
|
|
|
diyPassword,
|
|
|
sunzeePay,
|
|
|
sevencloudPay,
|