mine-card.vue 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="mine-card">
  3. <mine-card :userInfo="userInfo"></mine-card>
  4. <view class="tips">
  5. 商城名片(方便买家在商城联系您)
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import MineCard from './components/mine-card.vue'
  11. export default {
  12. components: {
  13. MineCard,
  14. },
  15. data() {
  16. return {
  17. userInfo: {}
  18. }
  19. },
  20. mounted() {
  21. this.userInfo = uni.getStorageSync('userInfo')
  22. this.getUserInfo()
  23. },
  24. methods: {
  25. async getUserInfo() {
  26. const { data } = await this.SellerService.GetSellerHome({ userId: this.userInfo.userId })
  27. this.userInfo = data
  28. },
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .mine-card {
  34. width: 100vw;
  35. height: 100vh;
  36. padding: 48rpx 24rpx;
  37. box-sizing: border-box;
  38. .tips {
  39. color: #999999;
  40. font-size: 24rpx;
  41. margin-top: 24rpx;
  42. }
  43. }
  44. </style>