瀏覽代碼

fix(controller): 团队新增代理标识和用户ID

xiansin 4 年之前
父節點
當前提交
4196a9460a
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      pages/share/team/team.vue

+ 12 - 0
pages/share/team/team.vue

xqd xqd xqd
@@ -2,6 +2,7 @@
     <app-layout>
         <app-tab-nav :tabList="tabList" :activeItem="activeTab" @click="tabStatus" padding="0" theme="default"></app-tab-nav>
         <view class="item" v-for="item in list" :key="item.id">
+            <text class="is-share" v-if="item.is_share">代理</text>
             <view class="user-info">
                 <image class="avatar" :src="item.avatar"></image>
                 <view class="t-omit user-name">{{item.nickname}}</view>
@@ -13,6 +14,7 @@
                     <text class="sys-recommend">[平台推荐]</text>
                 </block>
             </view>
+            <view class="uid" style="float: right;font-size: 24rpx;margin-right: 10rpx;">ID:{{item.id}}</view>
             <view class="order-info">
                 <text>{{item.orderPrice}}元</text>
                 <text class="order-num">{{item.orderCount}}个订单</text>
@@ -180,6 +182,16 @@
         padding: #{24rpx};
         color: #353535;
         margin-bottom: #{25rpx};
+        position: relative;
+    }
+    .is-share{
+        position: absolute;
+        left: 0;
+        border: #{1rpx} solid #f00;
+        color: #f00;
+        padding: #{2rpx} #{10rpx};
+        font-size: #{20rpx};
+        transform: rotate(-45deg);
     }
 
     .user-info {