|
@@ -409,8 +409,7 @@ import { mapMutations } from 'vuex';
|
|
|
}else{
|
|
|
if(this.firstClubType == '1'){
|
|
|
this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
- this.medicaCampList = this.medicaCampNullList
|
|
|
-
|
|
|
+ this.medicaCampList = this.medicaCampNullList
|
|
|
}else{
|
|
|
this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
|
|
|
this.mentuzCampList = this.mentuzCampNullList
|
|
@@ -452,7 +451,7 @@ import { mapMutations } from 'vuex';
|
|
|
}
|
|
|
},
|
|
|
clubUpgradeApi(){
|
|
|
- if(!this.isMainproCheck){
|
|
|
+ if(this.isMainproCheck){
|
|
|
let mainproList = []
|
|
|
if(this.firstClubType == '1'){
|
|
|
this.mentuzCampList.forEach(item =>{
|
|
@@ -493,13 +492,13 @@ import { mapMutations } from 'vuex';
|
|
|
this.$util.msg('请上传您的营业执照',2000);
|
|
|
return
|
|
|
}
|
|
|
+ console.log(this.isOrganizationType)
|
|
|
if(this.isOrganizationType!=0){
|
|
|
if(this.mainpro == ''){
|
|
|
this.$util.msg('请选择住机构主营内容',2000);
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
let params = {
|
|
|
userID:this.userID,
|
|
|
clubID:this.clubID, //会所ID
|
|
@@ -640,18 +639,16 @@ import { mapMutations } from 'vuex';
|
|
|
this.mainpro = this.checkLikes(e,this.medicaCampList)
|
|
|
},
|
|
|
checkLikes(e,list){
|
|
|
- let items = list
|
|
|
let values = e.detail.value
|
|
|
let arr = []
|
|
|
- for (let i = 0, lenI = items.length; i < lenI; ++i) {
|
|
|
- const item = items[i]
|
|
|
+ list.forEach(item => {
|
|
|
if(values.indexOf(item.value) >= 0){
|
|
|
this.$set(item,'checked',true)
|
|
|
arr.push(item.name)
|
|
|
}else{
|
|
|
this.$set(item,'checked',false)
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
return arr.join('/')
|
|
|
},
|
|
|
onBlurInput(e){//
|
|
@@ -667,7 +664,7 @@ import { mapMutations } from 'vuex';
|
|
|
setNewMainpro(arr){//回显处理主营内容
|
|
|
let _ARRAY = []
|
|
|
arr.split('/').forEach((item,index) =>{
|
|
|
- let _OBJ = {value:index,name:item,checked:true}
|
|
|
+ let _OBJ = {value:(index+1).toString(),name:item,checked:true}
|
|
|
_ARRAY.push(_OBJ)
|
|
|
})
|
|
|
return _ARRAY
|
|
@@ -1123,6 +1120,7 @@ import { mapMutations } from 'vuex';
|
|
|
flex-direction: column;
|
|
|
font-size: $font-size-28;
|
|
|
color: $color-system;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
.icon-xiangxiajiantou{
|
|
|
transform:rotate(180deg);
|
|
|
}
|