1
0

detail.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="main pdt0">
  3. <view class="bgm">
  4. <view class="form_group">
  5. <view class="lable">姓名</view>
  6. <view class="desc">{{ item.name }}</view>
  7. </view>
  8. <view class="form_group">
  9. <view class="lable">性别</view>
  10. <view class="desc">{{ item.sex == 'F' ? '女' : '男' }}</view>
  11. </view>
  12. <view class="form_group">
  13. <view class="lable">生日</view>
  14. <view class="desc" v-if="item.birthDate">{{ item.birthDate.substring(0, 11) }}</view>
  15. </view>
  16. <view class="form_group">
  17. <view class="lable">国籍</view>
  18. <view class="desc">{{ item.nationality }}</view>
  19. </view>
  20. <view class="form_group">
  21. <view class="lable">民族</view>
  22. <view class="desc">{{ item.nation }}</view>
  23. </view>
  24. <view class="form_group">
  25. <view class="lable">电话</view>
  26. <view class="desc">{{ item.phone }}</view>
  27. </view>
  28. <view class="form_group">
  29. <view class="lable">身份证</view>
  30. <view class="desc">{{ item.sfzh }}</view>
  31. </view>
  32. <view class="form_group">
  33. <view class="lable">婚姻状况</view>
  34. <view class="desc">
  35. <text v-if="item.marital == 'S'">未婚</text>
  36. <text v-if="item.marital == 'M'">已婚</text>
  37. <text v-if="item.marital == 'D'">离异</text>
  38. <text v-if="item.marital == 'W'">丧偶</text>
  39. <text v-if="item.marital == 'U'">未知</text>
  40. </view>
  41. </view>
  42. <view class="form_group">
  43. <view class="lable">职业</view>
  44. <view class="desc">{{ item.career }}</view>
  45. </view>
  46. <view class="form_group">
  47. <view class="lable">地址</view>
  48. <view class="desc">{{ item.address }}</view>
  49. </view>
  50. </view>
  51. <view class="bz">
  52. <text class="icon">&#xe627;</text>
  53. <text>预留在医院的信息</text>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. item: {}
  62. };
  63. },
  64. onLoad(e) {
  65. this.http.request({
  66. url: '/app/user/bind/detail/' + e.id,
  67. success: (res) => {
  68. this.item = res.data.data;
  69. }
  70. });
  71. },
  72. methods: {}
  73. };
  74. </script>
  75. <style lang="scss">
  76. .bgm {
  77. border-radius: 5px;
  78. overflow: hidden;
  79. }
  80. </style>