my_1.vue
2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<template>
<view class="my-v">
<view class="u-flex user-box u-p-l-32 u-p-r-22 u-p-b-30" @click="openPage('/pages/my/personalData/index')">
<view class="u-m-r-20">
<u-avatar :src="baseURL+userInfo.headIcon" size="140"></u-avatar>
</view>
<view class="u-flex-1">
<view class="u-font-18 u-p-b-20">{{userInfo.userName}}/{{userInfo.userAccount}}</view>
<!-- <view class="u-font-14 u-tips-color">{{userInfo.organizeName}}</view> -->
</view>
<view class="u-m-l-10 u-p-10">
<u-icon name="arrow-right" color="#969799" size="28"></u-icon>
</view>
</view>
<!-- <view class="u-m-t-20">
<u-cell-group>
<u-cell-item title="企业组织" @click="openPage('/pages/my/business/index')">
<text class="icon-ym icon-ym-zuzhi u-m-r-16 u-font-36" slot="icon" />
</u-cell-item>
</u-cell-group>
</view> -->
<view class="u-m-t-20">
<u-cell-group>
<u-cell-item title="联系我们" @click="openPage('/pages/my/contactUs/index')">
<text class="icon-ym icon-ym-lianxi u-m-r-16 u-font-36" slot="icon" />
</u-cell-item>
<!-- <u-cell-item title="应用介绍" @click="openPage('/pages/my/abouts/index')">
<text class="icon-ym icon-ym-yingyong u-m-r-16 u-font-36" slot="icon" />
</u-cell-item> -->
</u-cell-group>
</view>
<!-- #ifdef APP-NVUE -->
<view class="u-m-t-20">
<u-cell-group>
<u-cell-item title="账号安全" @click="openPage('/pages/my/accountSecurity/index')">
<text class="icon-ym icon-ym-zhanghao u-m-r-16 u-font-36" slot="icon" />
</u-cell-item>
</u-cell-group>
</view>
<!-- #endif -->
<view class="u-m-t-20">
<u-cell-group>
<u-cell-item title="设置" @click="openPage('/pages/my/settings/index')">
<text class="icon-ym icon-ym-shezhi u-m-r-16 u-font-36" slot="icon" />
</u-cell-item>
</u-cell-group>
</view>
</view>
</template>
<script>
import IndexMixin from './mixin.js'
export default {
mixins: [IndexMixin],
data() {
return {
userInfo: {}
}
},
computed: {
baseURL() {
return this.define.baseURL
}
},
onLoad() {
this.userInfo = uni.getStorageSync('userInfo') || {}
},
methods: {
openPage(path) {
if (!path) return
uni.navigateTo({
url: path
})
},
}
}
</script>
<style lang="scss">
page {
background-color: #f0f2f6;
}
.my-v {
.user-box {
background-color: #fff;
}
}
</style>