| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <template>
- <view class="system_content column-c" :style="{paddingTop:`${$tools.topHeight()}px`}">
- <view class="column justify-center avatar r-100">
- <view class="avatar r-100" style="background-color: rgba(0, 0, 0, 0.1);"></view>
- <view class="row-c avatar_name m-l20">
- <image class="wh-100 r-circle" v-if="memberData.head_img" src="/static/img/index/index-avatar.png" mode=""></image>
- <image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></image>
- <view class="column m-l20">
- <text class="size-30 text-color-333">{{ memberData.name ? memberData.name : memberData.nickname }}</text>
- <text class="size-26 text-color-666">{{memberData.position_name?memberData.position_name:'无'}}</text>
- </view>
- </view>
- </view>
- <view class="system_item">
- <view class="row-c p-tb25" v-for="(item,index) in systemList" :key="index" @click="onGoSetting(item)">
- <image class="m-r20" :src="item.icon" mode=""></image>
- <text class="size-28 text-color-333">{{item.name}}</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- memberData:{
- default:{
- position_name: "",
- head_img: "",
- id: 5,
- name: "",
- nickname: "",
- phone: "",
- }
- }
- },
- data() {
- return {
- topNavHeight: null,
- systemList: [{
- icon: "/static/img/index/index-info.png",
- name: '个人信息',
- id: 1
- }, {
- icon: "/static/img/index/index-lock.png",
- name: '修改密码',
- id: 2
- }, {
- icon: "/static/img/index/index-phone.png",
- name: '修改手机号',
- id: 3
- }, {
- icon: "/static/img/index/index-phone.png",
- name: '邀请二维码',
- id: 4
- }, ]
- }
- },
- created() {
- this.topNavHeight = getApp().globalData.topNavHeight
- },
- methods: {
- moveHandle() {
- return false
- },
- onGoSetting(item) {
- if (item.id == 1) {
- return uni.navigateTo({
- url: `/page_subpack/personal_details/personal_details?id=${item.id}&title=${item.name}`
- })
- }
- uni.navigateTo({
- url: `/page_subpack/system_setting/system_setting?id=${item.id}&title=${item.name}`
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .system_content {
- width: 375rpx;
- height: 100vh;
- background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/popup_bg.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- .avatar {
- width: 315rpx;
- height: 140rpx;
- }
- .avatar_name {
- position: absolute;
- }
- .system_item {
- width: 315rpx;
- margin-top: 50rpx;
- image {
- width: 30rpx;
- height: 32rpx;
- }
- }
- </style>
|