zhengjinyi před 4 roky
rodič
revize
4c5978fb3d

+ 8 - 5
pages/login/binding.vue

@@ -120,6 +120,7 @@
 				isRegisterShow:false,
 				isUserIdentity:0,
 				isIphoneX:this.$store.state.isIphone,
+				bindId:0,
 				medicaCampList:[],
 				params:{
 					userId:0,
@@ -133,7 +134,8 @@
 				clubInfo:{
 					linkMan:'',
 					bindMobile:'',
-					userId:0
+					userId:0,
+					isAgreed:1
 				}
 			}
 		},
@@ -142,8 +144,8 @@
 		},	
 		onLoad(option) {
 			console.log(option)
-			uni.setStorageSync('bind_id', option.userId);
-			this.params.userId = option.userId
+			uni.setStorageSync('bind_id', option.bindId);
+			this.bindId = Number(option.bindId)
 			this.isUserIdentity = option.Identity
 		},
 		filters: {
@@ -205,7 +207,7 @@
 				})
 			},	
 			GetClubUserInfo(){//查询填写资料
-				this.UserService.UseRregisterTemporaryInfo({id:uni.getStorageSync('bind_id')})
+				this.UserService.UseRregisterTemporaryInfo({id:this.bindId})
 				.then(response =>{
 					this.clubInfo = response.data
 					this.params.mobile = this.clubInfo.bindMobile
@@ -222,7 +224,8 @@
 				this.GetUserProfile()
 			},
 			SellerClubRegister(){//机构注册
-				this.SellerService.SellerClubRegister(this.clubInfo).then(response =>{
+				this.SellerService.SellerClubRegister(JSON.stringify({id:this.bindId})).then(response =>{
+					this.params.userId = response.data.userId
 					setTimeout(()=>{
 						this.BindingWechat(this.params)
 					},1000)

+ 1 - 1
seller/pages/login/register-general.vue

@@ -154,7 +154,7 @@
 		    }
 			return {
 			  title: '您已注册采美365网,请点击登录',
-			  path: `/pages/login/binding?userId=${this.clubInfo.userId}&Identity=4`,
+			  path: `/pages/login/binding?bindId=${this.clubInfo.userId}&Identity=4`,
 			  imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
 			}
 		},

+ 2 - 2
seller/pages/login/register-member.vue

@@ -299,7 +299,7 @@
 				clubInfo:{
 					linkMan:'',
 					bindMobile:'',
-					userId:0
+					userId:0,
 				},
 				radioGroup1:[
 					{name:'医美',value:1},
@@ -615,7 +615,7 @@
 		    }
 			return {
 			  title: '您已注册采美365网,请点击登录',
-			  path: `/pages/login/binding?userId=${this.clubInfo.userId}&Identity=2`,
+			  path: `/pages/login/binding?bindId=${this.clubInfo.userId}&Identity=2`,
 			  imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
 			}
 		},