|
@ -7,14 +7,14 @@ |
|
|
<image :src="userInfo.headImage" mode="widthFix"></image> |
|
|
<image :src="userInfo.headImage" mode="widthFix"></image> |
|
|
</div> |
|
|
</div> |
|
|
<div class="base"> |
|
|
<div class="base"> |
|
|
<div class="user-name" |
|
|
|
|
|
v-if="userInfo.auth">{{ userInfo.auth.name }}</div> |
|
|
|
|
|
|
|
|
<div class="user-name" v-if="userInfo.auth">{{ userInfo.auth.name }}</div> |
|
|
<!-- <div class="user-project">高新区项目一队项目1</div> --> |
|
|
<!-- <div class="user-project">高新区项目一队项目1</div> --> |
|
|
<view class="user-project" |
|
|
|
|
|
v-if="userInfo.team">{{ userInfo.team.name }}</view> |
|
|
|
|
|
|
|
|
<view class="user-project" v-if="userInfo.team">{{ userInfo.team.name }}</view> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<image class="user-bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b51d97b2-f2a1-4471-9b6d-7fbc2f3f774a.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image class="user-bg" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/b51d97b2-f2a1-4471-9b6d-7fbc2f3f774a.png" mode="widthFix"> |
|
|
|
|
|
</image> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 菜单 --> |
|
|
<!-- 菜单 --> |
|
@ -22,22 +22,40 @@ |
|
|
<uv-cell-group :border="false"> |
|
|
<uv-cell-group :border="false"> |
|
|
<uv-cell @click="clickMenu(1)" title="打卡记录" isLink arrow-direction="right" center> |
|
|
<uv-cell @click="clickMenu(1)" title="打卡记录" isLink arrow-direction="right" center> |
|
|
<template v-slot:icon> |
|
|
<template v-slot:icon> |
|
|
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image style="width: 30rpx;" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
</template> |
|
|
</template> |
|
|
</uv-cell> |
|
|
</uv-cell> |
|
|
<uv-cell @click="clickMenu(2)" icon="setting-fill" isLink arrow-direction="right" title="实名认证" center> |
|
|
<uv-cell @click="clickMenu(2)" icon="setting-fill" isLink arrow-direction="right" title="实名认证" center> |
|
|
<template v-slot:icon> |
|
|
<template v-slot:icon> |
|
|
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image style="width: 30rpx;" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
</template> |
|
|
</template> |
|
|
</uv-cell> |
|
|
</uv-cell> |
|
|
<uv-cell @click="$store.commit('logout')" icon="setting-fill" isLink arrow-direction="right" title="退出登录" center> |
|
|
|
|
|
|
|
|
<uv-cell @click="$store.commit('logout')" icon="setting-fill" isLink arrow-direction="right" |
|
|
|
|
|
title="退出登录" center> |
|
|
<template v-slot:icon> |
|
|
<template v-slot:icon> |
|
|
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image style="width: 30rpx;" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
</template> |
|
|
</template> |
|
|
</uv-cell> |
|
|
</uv-cell> |
|
|
<uv-cell @click="clickMenu" icon="integral-fill" title="版本" value="版本1.0" center> |
|
|
<uv-cell @click="clickMenu" icon="integral-fill" title="版本" value="版本1.0" center> |
|
|
<template v-slot:icon> |
|
|
<template v-slot:icon> |
|
|
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
|
<image style="width: 30rpx;" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
|
|
|
</template> |
|
|
|
|
|
</uv-cell> |
|
|
|
|
|
<uv-cell @click="setting" |
|
|
|
|
|
v-if="userInfo.adminFlag" |
|
|
|
|
|
icon="integral-fill" title="项目管理" isLink center> |
|
|
|
|
|
<template v-slot:icon> |
|
|
|
|
|
<image style="width: 30rpx;" |
|
|
|
|
|
src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png" |
|
|
|
|
|
mode="widthFix"></image> |
|
|
</template> |
|
|
</template> |
|
|
</uv-cell> |
|
|
</uv-cell> |
|
|
</uv-cell-group> |
|
|
</uv-cell-group> |
|
@ -49,7 +67,9 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import tabbar from '../../components/base/tabbar.vue' |
|
|
import tabbar from '../../components/base/tabbar.vue' |
|
|
import { mapState } from 'vuex' |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
mapState |
|
|
|
|
|
} from 'vuex' |
|
|
export default { |
|
|
export default { |
|
|
name: "Center", |
|
|
name: "Center", |
|
|
components: { |
|
|
components: { |
|
@ -63,21 +83,37 @@ |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.$store.commit('getUserInfo') |
|
|
this.$store.commit('getUserInfo') |
|
|
}, |
|
|
}, |
|
|
computed : { |
|
|
|
|
|
|
|
|
computed: { |
|
|
...mapState(['teamList', 'userInfo']), |
|
|
...mapState(['teamList', 'userInfo']), |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
clickMenu(index){ |
|
|
|
|
|
if(index == 1){ |
|
|
|
|
|
|
|
|
clickMenu(index) { |
|
|
|
|
|
if (index == 1) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: "/pages/subPack/record/record" |
|
|
url: "/pages/subPack/record/record" |
|
|
}) |
|
|
}) |
|
|
}else if(index == 2){ |
|
|
|
|
|
|
|
|
} else if (index == 2) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: "/pages/subPack/autonym/autonym" |
|
|
url: "/pages/subPack/autonym/autonym" |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
setting(){ |
|
|
|
|
|
// 美国纽约 42.6511674, -73.754968 |
|
|
|
|
|
// uni.chooseLocation({ |
|
|
|
|
|
// latitude: 73.754968, |
|
|
|
|
|
// longitude: 42.6511674, |
|
|
|
|
|
// success(res) { |
|
|
|
|
|
// uni.showModal({ |
|
|
|
|
|
// title: JSON.stringify(res) |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: '/pages/subPack/projectManage/projectManage' |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@ -120,11 +156,11 @@ |
|
|
justify-content: space-around; |
|
|
justify-content: space-around; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
padding: 10rpx 0rpx 10rpx 10rpx; |
|
|
padding: 10rpx 0rpx 10rpx 10rpx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.user-name { |
|
|
.user-name { |
|
|
font-size: 36rpx; |
|
|
font-size: 36rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.user-project { |
|
|
.user-project { |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
} |
|
|
} |
|
|