|
@@ -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)
|