Browse Source

订单消息详情 我的团队绑定

743180155@qq.com 1 year ago
parent
commit
2557e80de9
2 changed files with 30 additions and 2 deletions
  1. 15 0
      src/api/client/mine.js
  2. 15 2
      src/pages/client/clientUser/myGroup.vue

+ 15 - 0
src/api/client/mine.js

@@ -149,3 +149,18 @@ export function getFeedback(data) {
     },
   });
 }
+
+/**
+ * 意见反馈接口 - 新增意见反馈
+ * @returns
+ */
+export function inviteBind(data) {
+  return request({
+    url: `/maintain/invite/bind`,
+    method: 'post',
+    data:data,
+    headers: {
+      'content-type': 'application/json',
+    },
+  });
+}

+ 15 - 2
src/pages/client/clientUser/myGroup.vue

@@ -34,11 +34,13 @@
         <img class="item-img" src="@/static/logo.png" alt="" :key="item" v-for="item of 3" />
       </view>
     </view>
+	
+	<button @click='handlerBind'>绑定</button>
   </view>
 </template>
 
 <script>
-  import { getMyTeam } from "@/api/client/mine.js"
+  import { getMyTeam , inviteBind } from "@/api/client/mine.js"
 export default {
   data() {
     return {
@@ -56,7 +58,18 @@ export default {
       getMyTeam(this.queryParams).then(res=>{
         console.log("Res",res)
       })
-    }
+    },
+	// 测试绑定
+	handlerBind(){
+		let params = {
+			userId:'1692178132393070594',
+			targetId:'1774462327015325697',
+			type:1
+		}
+		inviteBind(params).then(res=>{
+			console.log("@@@@res",res)
+		})
+	}
   }
 };
 </script>