|
|
@ -4,30 +4,39 @@ |
|
|
<u-icon name="plus" size="24px" class="plus" @click="openMenu"></u-icon> |
|
|
<u-icon name="plus" size="24px" class="plus" @click="openMenu"></u-icon> |
|
|
|
|
|
|
|
|
<!-- 弹出菜单 --> |
|
|
<!-- 弹出菜单 --> |
|
|
<view v-if="showMenu"> |
|
|
<view |
|
|
|
|
|
v-if="showMenu" |
|
|
|
|
|
:class=" |
|
|
|
|
|
identityInfo.isMax === 0 && identityInfo.personNumber > 1 |
|
|
|
|
|
? 'icons4' |
|
|
|
|
|
: identityInfo.isMax === 1 && identityInfo.personNumber <= 1 |
|
|
|
|
|
? 'icons2' |
|
|
|
|
|
: 'icons3' |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
<u-icon |
|
|
<u-icon |
|
|
class="icons icon1" |
|
|
class="icons" |
|
|
size="76" |
|
|
size="88" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon1.png" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon1.png" |
|
|
@click="openPage('/pagesYanyuan/scan-code/scan-code')" |
|
|
@click="openPage('/pagesYanyuan/scan-code/scan-code')" |
|
|
></u-icon> |
|
|
></u-icon> |
|
|
<u-icon |
|
|
<u-icon |
|
|
class="icons icon2" |
|
|
v-if="identityInfo.isMax === 0" |
|
|
size="76" |
|
|
class="icons" |
|
|
|
|
|
size="88" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon2.png" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon2.png" |
|
|
v-if="showAddInfo" |
|
|
|
|
|
@click="openPage('/pagesYanyuan/add-info/add-info')" |
|
|
@click="openPage('/pagesYanyuan/add-info/add-info')" |
|
|
></u-icon> |
|
|
></u-icon> |
|
|
<u-icon |
|
|
<u-icon |
|
|
class="icons icon3" |
|
|
v-if="identityInfo.personNumber > 1" |
|
|
size="76" |
|
|
class="icons" |
|
|
:class="showAddInfo ? '' : 'icon3-top'" |
|
|
size="88" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon3.png" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon3.png" |
|
|
@click="openPage('/pagesYanyuan/ascription/ascription')" |
|
|
@click="openPage('/pagesYanyuan/ascription/ascription')" |
|
|
></u-icon> |
|
|
></u-icon> |
|
|
<u-icon |
|
|
<u-icon |
|
|
class="icons icon4" |
|
|
class="icons" |
|
|
size="76" |
|
|
size="88" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon4.png" |
|
|
name="https://www.tall.wiki/staticrec/yanyuan/icon4.png" |
|
|
@click="openPage('/pagesYanyuan/hold-all/hold-all')" |
|
|
@click="openPage('/pagesYanyuan/hold-all/hold-all')" |
|
|
></u-icon> |
|
|
></u-icon> |
|
|
@ -40,9 +49,15 @@ import { mapGetters } from 'vuex'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { showMenu: false, showAddInfo: true }; |
|
|
return { showMenu: false, identityInfo: null }; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
computed: mapGetters('user', ['userId']), |
|
|
computed: mapGetters('user', ['userId']), |
|
|
|
|
|
|
|
|
|
|
|
async mounted() { |
|
|
|
|
|
await this.homeIdentity(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 导入wbs |
|
|
// 导入wbs |
|
|
async handleUpload() { |
|
|
async handleUpload() { |
|
|
@ -85,6 +100,18 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 首页用户身份判断 |
|
|
|
|
|
*/ |
|
|
|
|
|
async homeIdentity() { |
|
|
|
|
|
try { |
|
|
|
|
|
const data = await this.$u.api.homeIdentity(); |
|
|
|
|
|
this.identityInfo = data; |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log('error: ', error); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
@ -110,20 +137,6 @@ export default { |
|
|
background-color: rgba(219, 234, 254, var(--tw-bg-opacity)); |
|
|
background-color: rgba(219, 234, 254, var(--tw-bg-opacity)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.icons-box { |
|
|
|
|
|
width: 50px; |
|
|
|
|
|
top: -60px; |
|
|
|
|
|
left: -60px; |
|
|
|
|
|
z-index: 9999; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.icons-box1 { |
|
|
|
|
|
width: 50px; |
|
|
|
|
|
top: -40px; |
|
|
|
|
|
left: -60px; |
|
|
|
|
|
z-index: 9999; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.icons { |
|
|
.icons { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
z-index: 9999; |
|
|
z-index: 9999; |
|
|
@ -132,28 +145,42 @@ export default { |
|
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); |
|
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.icon1 { |
|
|
.icons4 u-icon:nth-child(1) { |
|
|
top: -60px; |
|
|
top: -60px; |
|
|
left: 0px; |
|
|
left: 0px; |
|
|
} |
|
|
} |
|
|
|
|
|
.icons4 u-icon:nth-child(2) { |
|
|
.icon2 { |
|
|
top: -30px; |
|
|
top: -20px; |
|
|
|
|
|
left: -60px; |
|
|
left: -60px; |
|
|
} |
|
|
} |
|
|
|
|
|
.icons4 u-icon:nth-child(3) { |
|
|
.icon3 { |
|
|
|
|
|
top: 35px; |
|
|
top: 35px; |
|
|
left: -60px; |
|
|
left: -60px; |
|
|
} |
|
|
} |
|
|
|
|
|
.icons4 u-icon:nth-child(4) { |
|
|
|
|
|
top: 65px; |
|
|
|
|
|
left: 0px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.icon3-top { |
|
|
.icons3 u-icon:nth-child(1) { |
|
|
top: 5px; |
|
|
top: -60px; |
|
|
|
|
|
left: -20px; |
|
|
|
|
|
} |
|
|
|
|
|
.icons3 u-icon:nth-child(2) { |
|
|
|
|
|
top: 0px; |
|
|
left: -60px; |
|
|
left: -60px; |
|
|
} |
|
|
} |
|
|
|
|
|
.icons3 u-icon:nth-child(3) { |
|
|
|
|
|
top: 60px; |
|
|
|
|
|
left: -20px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.icon4 { |
|
|
.icons2 u-icon:nth-child(1) { |
|
|
top: 70px; |
|
|
top: -40px; |
|
|
left: 0px; |
|
|
left: -55px; |
|
|
|
|
|
} |
|
|
|
|
|
.icons2 u-icon:nth-child(2) { |
|
|
|
|
|
top: 40px; |
|
|
|
|
|
left: -55px; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|