| <template> |
| <view class="personalMsg"> |
| <view class="personalMsg-list"> |
| <u-cell-item title="姓名" :arrow="false" :value="name"></u-cell-item> |
| <u-cell-item title="手机号" :arrow="false" :value="tel"></u-cell-item> |
| <u-cell-item title="银行卡号" :arrow="false" :value="bankcardno"></u-cell-item> |
| <u-cell-item title="市民卡号" :arrow="false" :value="cardno"></u-cell-item> |
| <u-cell-item title="身份证号" :arrow="false" :value="idno"></u-cell-item> |
| <u-cell-item title="身份状态" :arrow="false" :value="signed"></u-cell-item> |
| <u-cell-item title="邮箱号" :arrow="false" :value="email"></u-cell-item> |
| </view> |
| </view> |
| </template> |
| |
| <script> |
| export default { |
| data() { |
| return { |
| fieldStyle: { |
| 'font-size': '30rpx', |
| 'color': '#333333' |
| }, |
| name:'', |
| bankcardno:'', |
| cardno:'', |
| idno:'', |
| signed:'', |
| tel:'', |
| email:'' |
| } |
| }, |
| methods: { |
| |
| }, |
| onLoad() { |
| let that = this |
| that.name = uni.getStorageSync('name')?uni.getStorageSync('name'):'佚名' |
| that.bankcardno = uni.getStorageSync('bankcardno')?uni.getStorageSync('bankcardno'):'无银行卡信息' |
| that.cardno = uni.getStorageSync('cardno')?uni.getStorageSync('cardno').substr(0,2) + '****' + uni.getStorageSync('cardno').substr(6,2):'无市民卡信息' |
| that.idno = uni.getStorageSync('idno')?uni.getStorageSync('idno'):'无身份证信息' |
| that.signed = uni.getStorageSync('signed') == 'yes' ? '已绑定签约':'未绑定签约' |
| that.tel = uni.getStorageSync('phoneX') ? uni.getStorageSync('phoneX') : '无手机号' |
| that.email = uni.getStorageSync('email') ? uni.getStorageSync('email') : '未绑定邮箱' |
| } |
| } |
| </script> |
| |
| <style lang="scss" scoped> |
| .personalMsg { |
| width: 100vw; |
| // height: 100vh; |
| background-color: #F3F3F3; |
| overflow: hidden; |
| padding-bottom: 30rpx; |
| |
| &-list { |
| background-color: #FFFFFF; |
| margin-top: 30rpx; |
| } |
| } |
| </style> |