personalCenter.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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">用户昵称暂无</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. }
  41. },
  42. onLoad() {
  43. },
  44. methods: {
  45. setUp(){
  46. //保留当前页面跳转
  47. this.$u.route('/pages/personalCenter/setUp');
  48. }
  49. }
  50. }
  51. </script>
  52. <style>
  53. page {
  54. background-color: #f0f0f0;
  55. }
  56. </style>
  57. <style lang="scss" scoped>
  58. .camera {
  59. width: 54px;
  60. height: 44px;
  61. &:active {
  62. background-color: #ededed;
  63. }
  64. }
  65. .user-box {
  66. background-color: #fff;
  67. }
  68. </style>