忆雪 hai 11 meses
pai
achega
2cca2e209f
Modificáronse 2 ficheiros con 8 adicións e 3 borrados
  1. 1 1
      src/PageMine/myTeam.vue
  2. 7 2
      src/pages/tabbar/home.vue

+ 1 - 1
src/PageMine/myTeam.vue

@@ -38,7 +38,7 @@
       </view>
     </view> -->
 
-    <button @click='handlerBind'>绑定</button>
+    <!-- <button @click='handlerBind'>绑定</button> -->
   </view>
 </template>
 

+ 7 - 2
src/pages/tabbar/home.vue

@@ -153,9 +153,14 @@
 			// 如果 invitationCode 存在且不等于特殊值时执行代码
 			if (this.invitationCode) {
 				console.log("存在邀请码")
+				// let params = {
+				// 	userId: this.userId,
+				// 	targetId: this.invitationCode,
+				// 	type: 1
+				// };
 				let params = {
-					userId: this.userId,
-					targetId: this.invitationCode,
+					userId: this.invitationCode,
+					targetId: this.userId,
 					type: 1
 				};
 				inviteBind(params).then(res => {