Browse Source

修改详情页面

wangxy 1 month ago
parent
commit
1a4a7bd72c
1 changed files with 3 additions and 19 deletions
  1. 3 19
      pages/chanpinMy/duihuanma.vue

+ 3 - 19
pages/chanpinMy/duihuanma.vue

@@ -70,30 +70,14 @@
 			if (res.data.icon) {
 				myInfoData.icon = res.data.icon;
 			} else {
-				getUserImg(res.data.growthType)
+				getUserImg()
 			}
 		})
 	}
 
 	// 获取用户头像
-	function getUserImg(data) {
-		switch (data) {
-			case 0:
-				myInfoData.icon = 'static/images/my/head-img0.png'
-				break;
-			case 1:
-				myInfoData.icon = 'static/images/my/head-img1.png'
-				break;
-			case 2:
-				myInfoData.icon = 'static/images/my/head-img2.png'
-				break;
-			case 3:
-				myInfoData.icon = 'static/images/my/head-img3.png'
-				break;
-			default:
-				myInfoData.icon = 'static/images/my/head-unlogin-img.png'
-				break;
-		}
+	function getUserImg() {
+    myInfoData.icon = 'static/images/my/head-img1.png'
 	}