personalCenter.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view>
  3. <view style="width: 100%;height: 64rpx;background-color: #FFFFFF;"></view>
  4. <view class="u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30">
  5. <view class="u-m-r-10">
  6. <u-avatar :src="pic" size="140"></u-avatar>
  7. </view>
  8. <view class="u-flex-1">
  9. <view class="u-font-18 u-p-b-20">{{username}}</view>
  10. <view class="u-font-14 u-tips-color">云仓号:暂无</view>
  11. </view>
  12. <view class="u-m-l-10 u-p-10">
  13. <u-icon name="scan" color="#969799" size="28"></u-icon>
  14. </view>
  15. <view class="u-m-l-10 u-p-10">
  16. <u-icon name="arrow-right" color="#969799" size="28"></u-icon>
  17. </view>
  18. </view>
  19. <view class="u-m-t-20">
  20. <u-cell-group>
  21. <!-- <u-cell-item icon="star" title="我的积分"></u-cell-item> -->
  22. <u-cell-item icon="photo" title="我的客服"></u-cell-item>
  23. <!-- <u-cell-item icon="coupon" title="我的推广"></u-cell-item> -->
  24. <u-cell-item icon="heart" title="我的待办"></u-cell-item>
  25. </u-cell-group>
  26. </view>
  27. <view class="u-m-t-20">
  28. <u-cell-group>
  29. <u-cell-item icon="setting" title="我的设置" @tap="$u.debounce(setUp, 500)"></u-cell-item>
  30. </u-cell-group>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. pic: 'https://uviewui.com/common/logo.png',
  39. show: true,
  40. username:''
  41. }
  42. },
  43. onShow() {
  44. this.username = uni.getStorageSync('lifeData').vuex_user
  45. },
  46. methods: {
  47. setUp(){
  48. //保留当前页面跳转
  49. this.$u.route('/pages/personalCenter/setUp');
  50. }
  51. }
  52. }
  53. </script>
  54. <style>
  55. page {
  56. background-color: #f0f0f0;
  57. }
  58. </style>
  59. <style lang="scss" scoped>
  60. .camera {
  61. width: 54px;
  62. height: 44px;
  63. &:active {
  64. background-color: #ededed;
  65. }
  66. }
  67. .user-box {
  68. background-color: #fff;
  69. }
  70. </style>