index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="personalData-v">
  3. <view class="content">
  4. <personalData ref="personalData" :personalData="baseInfo"></personalData>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import personalData from './components/personalData.vue';
  10. export default {
  11. components: {
  12. personalData,
  13. },
  14. data() {
  15. return {
  16. baseInfo: {}
  17. };
  18. },
  19. onLoad(e) {
  20. // this.baseInfo = JSON.parse(e.baseInfo)
  21. // #ifdef MP-WEIXIN || APP-HARMONY
  22. this.baseInfo = JSON.parse(decodeURIComponent(e.baseInfo))
  23. // #endif
  24. // #ifndef MP-WEIXIN || APP-HARMONY
  25. this.baseInfo = JSON.parse(decodeURIComponent(this.jnpf.encodeContent(e.baseInfo)))
  26. // #endif
  27. },
  28. methods: {}
  29. }
  30. </script>
  31. <style lang="scss">
  32. page {
  33. background-color: #f0f2f6;
  34. height: 100%;
  35. }
  36. .notice-warp {
  37. height: 100rpx;
  38. .search-box {
  39. padding: 20rpx;
  40. }
  41. }
  42. .content {
  43. margin-top: 20rpx;
  44. }
  45. .personalData-v {
  46. display: flex;
  47. flex-direction: column;
  48. padding-bottom: 100rpx;
  49. ::v-deep .buttom-btn {
  50. width: 100% !important;
  51. }
  52. }
  53. </style>