my.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template name="my">
  2. <view>
  3. <view class="grace-list">
  4. <view class="grace-list-items">
  5. <view class="grace-list-image ucenter-face grace-relative">
  6. <image class="grace-list-image ucenter-face-image" :src="fetch.user.avatar" mode="widthFix"></image>
  7. </view>
  8. <view class="grace-list-body">
  9. <view class="grace-list-title">
  10. <text class="grace-list-title-text">{{fetch.user.username}}</text>
  11. </view>
  12. <view class="grace-list-body-desc">{{fetch.user.desc}}</view>
  13. </view>
  14. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  15. </view>
  16. </view>
  17. <view class="ucenter-line"></view>
  18. <view>
  19. <graceBoxBanner :items="fetch.num"></graceBoxBanner>
  20. </view>
  21. <view class="ucenter-line"></view>
  22. <view class="grace-list grace-margin-top">
  23. <shop ref="shop" :index="index" :content_id="content_id" :code="code" :width="width"></shop>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import shop from "@/pages/dream/func/shop.vue";
  29. export default {
  30. name: "cate",
  31. props: {
  32. content_id : {
  33. type : String,
  34. value : null
  35. },
  36. width : {
  37. type : String,
  38. default : '100%'
  39. },
  40. code : {
  41. type : String,
  42. default : ''
  43. },
  44. param : {},
  45. index : 0
  46. },
  47. data() {
  48. return {
  49. fetch : {
  50. user : {},
  51. num : [],
  52. },
  53. items: [
  54. ['¥199', '', '钱包'],
  55. [80, '', '金币'],
  56. [100, '', '好友'],
  57. [50, '', '动态'],
  58. ]
  59. }
  60. },
  61. mounted() {
  62. this.getData();
  63. },
  64. methods:{
  65. getData : function() {
  66. var self = this;
  67. this.Dever.get(this, 'app/collection/?l=api.getUser', {code:this.code, content_id:this.content_id,noloading:1});
  68. },
  69. getInfo : function(t) {
  70. //触底刷新
  71. },
  72. },
  73. components:{
  74. shop
  75. }
  76. }
  77. </script>
  78. <style>
  79. .ucenter-face{width:100rpx !important; height:100rpx !important;}
  80. .ucenter-face-image{width:100rpx !important; height:100rpx !important;}
  81. .ucenter-line{height:12rpx; background-color:#F4F5F6; margin:16rpx 0;}
  82. </style>