changeCard.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="content">
  3. <view class="content1">
  4. <span>邀请</span>
  5. <span>黑名单</span>
  6. </view>
  7. <view class="content2 ">
  8. <view class="flex">
  9. <view class="left">
  10. <view class="top flex-row-center">
  11. <image src="../../static/uni.png" mode="widthFix" class="img"></image>
  12. </view>
  13. </view>
  14. <view class="right">
  15. <view class="row1 flex">
  16. <text>张三</text>
  17. <text class="line"></text>
  18. <text>总经理</text>
  19. </view>
  20. <view class="row2">
  21. 北京xxx有限公司
  22. </view>
  23. <view class="row3" @click="toMap">
  24. <uni-icons type="redo" size="20"></uni-icons>
  25. <text>北京市朝阳区幸福大街8号</text>
  26. </view>
  27. <view class="row3">
  28. <uni-icons type="redo" size="20"></uni-icons>
  29. <text>13333333333</text>
  30. </view>
  31. <view class="row3">
  32. <uni-icons type="redo" size="20"></uni-icons>
  33. <text>我是备注</text>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="">
  38. <span> 拉黑</span>
  39. <span>拒绝</span>
  40. <span>接受</span>
  41. </view>
  42. <view class="flex flex-between">
  43. <span>来至 圈子名</span>
  44. <span> 2024-01-01</span>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. userInfo:{},
  54. status:1
  55. };
  56. },
  57. onLoad() {
  58. this.userInfo = uni.getStorageSync("userInfo")
  59. this.getList()
  60. },
  61. methods:{
  62. getList(){
  63. uni.showLoading({
  64. title: '数据加载中'
  65. })
  66. this.$request.baseRequest('admin.unimall.cardExchangeInfo', 'list', {
  67. receiveId:this.userInfo.id,
  68. status:this.status
  69. }, failres => {
  70. console.log('res+++++', failres.errmsg)
  71. this.$refs.uToast.show({
  72. type: 'error',
  73. message: failres.errmsg,
  74. })
  75. uni.hideLoading()
  76. }).then(res => {
  77. uni.hideLoading()
  78. this.cardList = res.data.items
  79. })
  80. },
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .content2 {
  86. border: 1px solid #ccc;
  87. border-radius: 30rpx;
  88. padding: 40rpx;
  89. box-sizing: border-box;
  90. .left {
  91. width: 30%;
  92. .top {
  93. margin-bottom: 20rpx;
  94. }
  95. .img {
  96. width: 80%;
  97. }
  98. .bottom {
  99. }
  100. }
  101. .right {
  102. .row1 {
  103. .line {
  104. width: 1px;
  105. height: 20px;
  106. margin: 0 20rpx;
  107. background: black;
  108. }
  109. }
  110. }
  111. }
  112. </style>