|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <cu-custom ref="Dustom"
|
|
|
+ <cu-custom heighten="94" ref="Dustom"
|
|
|
bgImage="https://yostest175549.obs.cn-east-2.myhuaweicloud.com:443/202306151686796745663B52544232.png">
|
|
|
<view slot="head" class="head" :style="{ 'height': headHeight, 'top': posTop }">
|
|
|
<view class="custom-bar" :style="{ 'height': customBar }">
|
|
@@ -19,9 +19,9 @@
|
|
|
{{ userMsg.name }}
|
|
|
</view>
|
|
|
<view class="replenish">
|
|
|
- <text class="iconfont icon-daka" style="margin-right: 10rpx;" />
|
|
|
+ <text class="iconfont icon-daka" style="margin-right: 5px;" />
|
|
|
{{ userMsg.phonenumber || '未填写' }}
|
|
|
- <text style="margin: 0 20rpx;">
|
|
|
+ <text style="margin: 0 10px;">
|
|
|
|
|
|
|
</text>
|
|
|
{{ userMsg.hr.position || '未知职位' }}
|
|
@@ -31,51 +31,58 @@
|
|
|
</view>
|
|
|
</cu-custom>
|
|
|
|
|
|
+
|
|
|
<view class="nav-box">
|
|
|
<navigator class="nav-item" url="#">
|
|
|
- <text class="iconfont icon-wode-xuanzhong" style="margin-right: 20rpx;" />
|
|
|
+ <text class="iconfont icon-wode-xuanzhong" style="margin-right: 10px;" />
|
|
|
<view>
|
|
|
修改登录密码
|
|
|
</view>
|
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
|
</navigator>
|
|
|
<navigator class="nav-item" url="#">
|
|
|
- <text class="iconfont icon-wode-xuanzhong" style="margin-right: 20rpx;" />
|
|
|
+ <text class="iconfont icon-wode-xuanzhong" style="margin-right: 10px;" />
|
|
|
<view>
|
|
|
修改登录手机号
|
|
|
</view>
|
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
|
</navigator>
|
|
|
<navigator class="nav-item" url="#">
|
|
|
- <text class="iconfont icon-wode-xuanzhong" style="margin-right: 20rpx;" />
|
|
|
+ <text class="iconfont icon-wode-xuanzhong" style="margin-right: 10px;" />
|
|
|
<view>
|
|
|
绑定微信
|
|
|
</view>
|
|
|
<text class="iconfont icon-wode-xuanzhong" />
|
|
|
</navigator>
|
|
|
</view>
|
|
|
+
|
|
|
+ <upload>
|
|
|
+ </upload>
|
|
|
+
|
|
|
<u-button :customStyle="butStyle" @click="logOut()">退出登录</u-button>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import upload from "../../../components/my-upload.vue";
|
|
|
export default {
|
|
|
name: 'Mine',
|
|
|
+ components: { upload },
|
|
|
data() {
|
|
|
return {
|
|
|
- headHeight: 0,
|
|
|
- posTop: 0,
|
|
|
- customBar: 0,
|
|
|
+ posTop: this.StatusBar + 'px',
|
|
|
+ headHeight: this.CustomBar - this.StatusBar + 'px',
|
|
|
+ customBar: this.CustomBar - this.StatusBar + 'px',
|
|
|
butStyle: {
|
|
|
position: "fixed",
|
|
|
- bottom: '240rpx',
|
|
|
- left: "20rpx",
|
|
|
- width: "710rpx",
|
|
|
- height: "90rpx",
|
|
|
+ bottom: '120px',
|
|
|
+ left: "10px",
|
|
|
+ width: "355px",
|
|
|
+ height: "45px",
|
|
|
background: "rgba(255,255,255,0.1)",
|
|
|
- borderRadius: "8rpx",
|
|
|
- border: "1rpx solid rgba(255,255,255,0.5)",
|
|
|
- fontSize: "30rpx",
|
|
|
+ borderRadius: "4px",
|
|
|
+ border: "1px solid rgba(255,255,255,0.5)",
|
|
|
+ fontSize: "15px",
|
|
|
color: "#FFFFFF"
|
|
|
},
|
|
|
userMsg: {}
|
|
@@ -84,13 +91,6 @@ export default {
|
|
|
created() {
|
|
|
this.getUserMsg()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- const Dustom = this.$refs.Dustom;
|
|
|
- Dustom.CustomBar = Dustom.CustomBar + 94;
|
|
|
- this.headHeight = (Dustom.CustomBar - this.StatusBar) + 'px';
|
|
|
- this.customBar = (this.CustomBar - this.StatusBar) + 'px';
|
|
|
- this.posTop = this.StatusBar + 'px';
|
|
|
- },
|
|
|
methods: {
|
|
|
// 获取用户信息
|
|
|
getUserMsg() {
|
|
@@ -102,8 +102,6 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
this.userMsg = res.data;
|
|
|
- console.log(this.userMsg)
|
|
|
-
|
|
|
})
|
|
|
},
|
|
|
logOut() {
|
|
@@ -134,36 +132,36 @@ export default {
|
|
|
|
|
|
.iconfont {
|
|
|
position: absolute;
|
|
|
- bottom: 28rpx;
|
|
|
- font-size: 32rpx;
|
|
|
+ bottom: 14px;
|
|
|
+ font-size: 16px;
|
|
|
color: #FFFFFF;
|
|
|
- margin-left: 20rpx;
|
|
|
+ margin-left: 10px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.user {
|
|
|
display: flex;
|
|
|
- height: 168rpx;
|
|
|
+ height: 84px;
|
|
|
width: 100vw;
|
|
|
- padding: 20rpx;
|
|
|
+ padding: 10px;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.profile-photo {
|
|
|
- width: 128rpx;
|
|
|
- height: 128rpx;
|
|
|
+ width: 64px;
|
|
|
+ height: 64px;
|
|
|
border-radius: 50%;
|
|
|
overflow: hidden;
|
|
|
flex-shrink: 0;
|
|
|
- margin-right: 20rpx;
|
|
|
+ margin-right: 10px;
|
|
|
|
|
|
.substitution {
|
|
|
- width: 128rpx;
|
|
|
- line-height: 128rpx;
|
|
|
+ width: 64px;
|
|
|
+ line-height: 64px;
|
|
|
text-align: center;
|
|
|
background: #EFF4FA;
|
|
|
|
|
|
.iconfont {
|
|
|
- font-size: 64rpx;
|
|
|
+ font-size: 32px;
|
|
|
color: #7C98BB;
|
|
|
}
|
|
|
}
|
|
@@ -173,21 +171,21 @@ export default {
|
|
|
|
|
|
.text {
|
|
|
flex: 1;
|
|
|
- height: 128rpx;
|
|
|
+ height: 64px;
|
|
|
width: 0;
|
|
|
|
|
|
.name {
|
|
|
- height: 48rpx;
|
|
|
- line-height: 48rpx;
|
|
|
- font-size: 34rpx;
|
|
|
+ height: 24px;
|
|
|
+ line-height: 24px;
|
|
|
+ font-size: 17px;
|
|
|
color: #FFFFFF;
|
|
|
- margin-top: 10rpx;
|
|
|
+ margin-top: 5px;
|
|
|
}
|
|
|
|
|
|
.replenish {
|
|
|
- margin-top: 20rpx;
|
|
|
- line-height: 40rpx;
|
|
|
- font-size: 28rpx;
|
|
|
+ margin-top: 10px;
|
|
|
+ line-height:20px;
|
|
|
+ font-size: 14px;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
}
|
|
@@ -195,21 +193,21 @@ export default {
|
|
|
}
|
|
|
|
|
|
.nav-box {
|
|
|
- width: 710rpx;
|
|
|
- margin: 20rpx auto 0;
|
|
|
- border-radius: 8rpx;
|
|
|
+ width: 355px;
|
|
|
+ margin: 10px auto 0;
|
|
|
+ border-radius: 4px;
|
|
|
overflow: hidden;
|
|
|
background: rgba($color: #fff, $alpha: 0.1);
|
|
|
|
|
|
.nav-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- width: 710rpx;
|
|
|
- height: 90rpx;
|
|
|
- padding: 0 20rpx;
|
|
|
+ width: 355px;
|
|
|
+ height: 45px;
|
|
|
+ padding: 0 10px;
|
|
|
box-sizing: border-box;
|
|
|
color: #fff;
|
|
|
- font-size: 28rpx;
|
|
|
+ font-size: 14px;
|
|
|
|
|
|
view {
|
|
|
flex: 1;
|