View.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="container">
  3. <view class="headerBox">
  4. <view class="headerTxt">个人信息</view>
  5. </view>
  6. <view class="contentBox">
  7. <view class="itemBox">
  8. <text class="itemLabel">姓名:</text>
  9. <text class="itemInfo">{{objData.name}}</text>
  10. </view>
  11. <view class="itemBox">
  12. <text class="itemLabel">性别:</text>
  13. <text class="itemInfo">{{objData.genderTxt}}</text>
  14. </view>
  15. <view class="itemBox">
  16. <text class="itemLabel">联系方式:</text>
  17. <text class="itemInfo">{{objData.phoneNumber}}</text>
  18. </view>
  19. <view class="itemBox">
  20. <text class="itemLabel">所属区县:</text>
  21. <text class="itemInfo">{{objData.systemAreaName}}</text>
  22. </view>
  23. <view class="itemBox">
  24. <text class="itemLabel">所属街/镇:</text>
  25. <text class="itemInfo">{{objData.street}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. var that;
  32. export default {
  33. data() {
  34. return {
  35. objData: null
  36. }
  37. },
  38. onLoad(options) {
  39. that = this;
  40. that.objData = JSON.parse(decodeURIComponent(options.obj));
  41. },
  42. methods: {
  43. }
  44. }
  45. </script>
  46. <style>
  47. .container {
  48. background-color: #f3f3f3;
  49. }
  50. .headerBox{
  51. margin: 40rpx 50rpx;
  52. }
  53. .headerTxt{
  54. font-size: 44rpx;
  55. font-weight: bold;
  56. color: #000;
  57. }
  58. .contentBox{
  59. padding: 0 30rpx 40rpx;
  60. background-color: #fff;
  61. }
  62. .itemBox{
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. border-bottom: 2rpx #f3f3f3 solid;
  67. padding: 50rpx 20rpx 20rpx;
  68. font-size: 40rpx;
  69. }
  70. .itemLabel{
  71. color: #555;
  72. }
  73. .itemInfo{
  74. color: #000;
  75. }
  76. </style>