my-fans.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!-- 我的粉丝 -->
  2. <template>
  3. <view class="wrap">
  4. <view class="header">
  5. <view class="header-top">
  6. <image src="../../../static/return.png" @tap="back" class="return" mode="widthFix"></image>
  7. <view class="header-title">
  8. 我的粉丝
  9. </view>
  10. <view class="header-msg" @tap="bind">
  11. 我的上级
  12. </view>
  13. </view>
  14. </view>
  15. <view class="list">
  16. <view class="item">
  17. <image src="../../../static/img-4.png" class="avatar" mode="aspectFill"></image>
  18. <view class="sidebar">
  19. <view class="name">刘丽丽</view>
  20. <view class="msg">2021-2-22 12:33:22</view>
  21. </view>
  22. </view>
  23. <view class="item">
  24. <image src="../../../static/img-4.png" class="avatar" mode="aspectFill"></image>
  25. <view class="sidebar">
  26. <view class="name">刘丽丽</view>
  27. <view class="msg">2021-2-22 12:33:22</view>
  28. </view>
  29. </view>
  30. <view class="item">
  31. <image src="../../../static/img-4.png" class="avatar" mode="aspectFill"></image>
  32. <view class="sidebar">
  33. <view class="name">刘丽丽</view>
  34. <view class="msg">2021-2-22 12:33:22</view>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- 绑定上级-弹窗 -->
  39. <view v-show="isShow">
  40. <view class="mask" @tap="close"></view>
  41. <view class="window">
  42. <view class="window-top">
  43. <view class="window-label">绑定上级</view>
  44. <input type="text" value="XS478956213" class="window-input" placeholder="请输入上级邀请码"
  45. placeholder-class="placeholder" />
  46. </view>
  47. <view class="window-bottom">
  48. <button type="default" @tap="close">取消</button>
  49. <button type="default">确定</button>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 绑定上级-弹窗 -->
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. //绑定上级-弹窗
  61. isShow: false
  62. }
  63. },
  64. methods: {
  65. /**
  66. * 绑定上级-弹窗
  67. */
  68. bind() {
  69. this.isShow = true;
  70. },
  71. close() {
  72. this.isShow = false;
  73. },
  74. /**
  75. * 返回上一页
  76. */
  77. back() {
  78. uni.navigateBack({
  79. delta: 1,
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. @import "./my-fans.css";
  87. </style>