<template>
  <view class="container">
    <uni-list>
      <uni-list-item showExtraIcon="true" title="昵称" :rightText="user.nickname" />
	  <uni-list-item showExtraIcon="true" title="店铺卡号" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="会员充值套餐" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="会员编号" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="会员等级" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="会员充值金额(元)" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="会员赠送金额(元)" :rightText="user.email" />
      <uni-list-item showExtraIcon="true" title="手机号码" :rightText="user.mobile" />
      <uni-list-item showExtraIcon="true" title="真实姓名" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="身份证号" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="开户行" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="银行卡号" :rightText="user.email" />
	  <uni-list-item showExtraIcon="true" title="创建日期" :rightText="this.parseTime(user.createTime)" />
	  
	  
      
      
    </uni-list>
  </view>
</template>

<script>
  import { getUserProfile } from "@/api/system/user"
  import { parseTime } from "@/utils/ruoyi"

  export default {
    data() {
      return {
        user: {}
      }
    },
    onLoad() {
      this.getUser()
    },
    methods: {
      getUser() {
        getUserProfile().then(response => {
          this.user = response.data
        })
      },
      parseTime(time) {
        return parseTime(time)
      }
    }
  }
</script>

<style lang="scss">
  page {
    background-color: #ffffff;
  }
</style>
