my_invite.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="page">
  3. <view class="page-content" style="margin-top: 1px;">
  4. <uni-list class="page-list">
  5. <!-- 水平排列,右图左文 -->
  6. <uni-list-item :showArrow="false" class="page-list-item invite-list" :thumb="staticPhoto+item.photo+'?_='+imgRan" :title="item.nickname"
  7. v-for="(item,index) in list">
  8. </uni-list-item>
  9. </uni-list>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import _get from "../../common/_get";
  15. import _data from "../../common/_data";
  16. import _hook from "../../common/_hook";
  17. export default {
  18. data() {
  19. return {
  20. list: [
  21. ]
  22. }
  23. },
  24. computed: {
  25. staticPhoto(){
  26. return _data.staticPhoto();
  27. },
  28. imgRan(){
  29. return Math.random();
  30. },
  31. },
  32. onShow() {
  33. let _this = this;
  34. _hook.routeSonHook();
  35. _get.getMyInviteList({}, function (ret) {
  36. _this.list = ret
  37. });
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>
  43. <style>
  44. .page-head-img {
  45. height: 200px;
  46. width: 100%;
  47. }
  48. uni-view {
  49. line-height: normal !important;
  50. }
  51. .invite-list .uni-text{
  52. font-size: 16px;
  53. }
  54. </style>