guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 1 | <template> |
| 2 | <view class="personalMsg"> |
| 3 | <view class="personalMsg-list"> |
| 4 | <u-cell-item title="姓名" :arrow="false" :value="name"></u-cell-item> |
| 5 | <u-cell-item title="手机号" :arrow="false" :value="tel"></u-cell-item> |
| 6 | <u-cell-item title="银行卡号" :arrow="false" :value="bankcardno"></u-cell-item> |
| 7 | <u-cell-item title="市民卡号" :arrow="false" :value="cardno"></u-cell-item> |
| 8 | <u-cell-item title="身份证号" :arrow="false" :value="idno"></u-cell-item> |
| 9 | <u-cell-item title="身份状态" :arrow="false" :value="signed"></u-cell-item> |
guangchao.xu | c43cf97 | 2021-01-18 13:37:55 +0800 | [diff] [blame] | 10 | <u-cell-item title="邮箱号" :arrow="false" :value="email"></u-cell-item> |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 11 | </view> |
| 12 | </view> |
| 13 | </template> |
| 14 | |
| 15 | <script> |
| 16 | export default { |
| 17 | data() { |
| 18 | return { |
| 19 | fieldStyle: { |
| 20 | 'font-size': '30rpx', |
| 21 | 'color': '#333333' |
| 22 | }, |
| 23 | name:'', |
| 24 | bankcardno:'', |
| 25 | cardno:'', |
| 26 | idno:'', |
| 27 | signed:'', |
guangchao.xu | c43cf97 | 2021-01-18 13:37:55 +0800 | [diff] [blame] | 28 | tel:'', |
| 29 | email:'' |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 30 | } |
| 31 | }, |
| 32 | methods: { |
| 33 | |
| 34 | }, |
| 35 | onLoad() { |
| 36 | let that = this |
| 37 | that.name = uni.getStorageSync('name')?uni.getStorageSync('name'):'佚名' |
guangchao.xu | c43cf97 | 2021-01-18 13:37:55 +0800 | [diff] [blame] | 38 | that.bankcardno = uni.getStorageSync('bankcardno')?uni.getStorageSync('bankcardno'):'无银行卡信息' |
| 39 | that.cardno = uni.getStorageSync('cardno')?uni.getStorageSync('cardno').substr(0,2) + '****' + uni.getStorageSync('cardno').substr(6,2):'无市民卡信息' |
| 40 | that.idno = uni.getStorageSync('idno')?uni.getStorageSync('idno'):'无身份证信息' |
| 41 | that.signed = uni.getStorageSync('signed') == 'yes' ? '已绑定签约':'未绑定签约' |
| 42 | that.tel = uni.getStorageSync('phoneX') ? uni.getStorageSync('phoneX') : '无手机号' |
| 43 | that.email = uni.getStorageSync('email') ? uni.getStorageSync('email') : '未绑定邮箱' |
guangchao.xu | 070005a | 2020-12-07 09:56:40 +0800 | [diff] [blame] | 44 | } |
| 45 | } |
| 46 | </script> |
| 47 | |
| 48 | <style lang="scss" scoped> |
| 49 | .personalMsg { |
| 50 | width: 100vw; |
| 51 | // height: 100vh; |
| 52 | background-color: #F3F3F3; |
| 53 | overflow: hidden; |
| 54 | padding-bottom: 30rpx; |
| 55 | |
| 56 | &-list { |
| 57 | background-color: #FFFFFF; |
| 58 | margin-top: 30rpx; |
| 59 | } |
| 60 | } |
| 61 | </style> |