adminData.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="main main-bg">
  3. <view class="main-list">
  4. <view class="list-left font-color3 font-thirty-two">姓名</view>
  5. <view class="list-right font-color2 font-thirty-two">{{ list.veteransName ? list.veteransName : '' }}</view>
  6. </view>
  7. <view class="main-list">
  8. <view class="list-left font-color3 font-thirty-two">身份证号码</view>
  9. <view class="list-right font-color2 font-thirty-two">{{ list.veteransIdcard ? list.veteransIdcard : '' }}</view>
  10. </view>
  11. <view class="main-list">
  12. <view class="list-left font-color3 font-thirty-two">军人电话</view>
  13. <view class="list-right font-color2 font-thirty-two">{{ list.veteransTel ? list.veteransTel : '' }}</view>
  14. </view>
  15. <view class="main-list">
  16. <view class="list-left font-color3 font-thirty-two">军人等级</view>
  17. <view class="list-right font-color2 font-thirty-two">{{ list.level ? list.level : '' }}</view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import server from "@/api/index";
  23. export default {
  24. data() {
  25. return {
  26. list:{},
  27. userId: null,
  28. type: null
  29. };
  30. },
  31. onLoad(e) {
  32. this.userId = e.money;
  33. this.type = e.id;
  34. this.getInfoFn(e.money, e.id);
  35. },
  36. methods:{
  37. getInfoFn(id, type){
  38. server.getRegister(id, type).then(res =>{
  39. this.list = res
  40. })
  41. },
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .main{
  47. width: 100%;
  48. height: auto;
  49. min-height: 100vh;
  50. padding: 30rpx;
  51. .main-list{
  52. width: 100%;
  53. height: 102rpx;
  54. line-height: 102rpx;
  55. padding-left: 30rpx;
  56. padding-right: 30rpx;
  57. display: flex;
  58. justify-content: space-between;
  59. background: #fff;
  60. border-radius: 24rpx;
  61. margin-bottom: 30rpx;
  62. .list-right{
  63. font-weight: 600;
  64. }
  65. }
  66. }
  67. </style>