guhongwei 2 年 前
コミット
5a1cbf7f1d
1 ファイル変更2 行追加3 行削除
  1. 2 3
      pages/my/index.vue

+ 2 - 3
pages/my/index.vue

@@ -14,8 +14,8 @@
 					</view>
 					<image class="image" :src="user.icon&&user.icon.length>0?user.icon[0].url:''"></image>
 					<view class="name">
-						<text>{{user.name||'暂无名称'}}</text>
-						<text>普通会员</text>
+						<text>{{user&&user.name||'暂无名称'}}</text>
+						<text>{{user&&user.is_leader=='0'?'团长':'普通会员'}}</text>
 					</view>
 				</view>
 				<view class="one_2">
@@ -165,7 +165,6 @@
 								}
 							}
 						}
-						console.log(user);
 						if (user.is_leader == '0') {
 							config.my_menu = config.my_menu.filter((i) => {
 								return i.route != 'pagesMy/apply/add';