my.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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" :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. param : {},
  41. index : 0
  42. },
  43. data() {
  44. return {
  45. fetch : {
  46. user : {},
  47. num : [],
  48. },
  49. items: [
  50. ['¥199', '', '钱包'],
  51. [80, '', '金币'],
  52. [100, '', '好友'],
  53. [50, '', '动态'],
  54. ]
  55. }
  56. },
  57. mounted() {
  58. this.getData();
  59. },
  60. methods:{
  61. getData : function() {
  62. var self = this;
  63. this.Dever.get(this, 'app/collection/?l=api.getUser', {code:this.Dever.config.code, content_id:this.content_id,noloading:1});
  64. },
  65. getInfo : function(t) {
  66. //触底刷新
  67. },
  68. },
  69. components:{
  70. shop
  71. }
  72. }
  73. </script>
  74. <style>
  75. .ucenter-face{width:100rpx !important; height:100rpx !important;}
  76. .ucenter-face-image{width:100rpx !important; height:100rpx !important;}
  77. .ucenter-line{height:12rpx; background-color:#F4F5F6; margin:16rpx 0;}
  78. </style>