|
@@ -100,22 +100,23 @@ var informationPage = new Vue({
|
|
|
var data = response.data;
|
|
|
_self.isRequset = false;
|
|
|
_self.clubUpgradeUser = data.club;
|
|
|
- _self.bindMobile = data.user.bindMobile;
|
|
|
- _self.userIdentity = data.user.userIdentity;
|
|
|
+ _self.bindMobile = data.user.bindMobile ? data.user.bindMobile : '';
|
|
|
+ _self.userIdentity = data.user.userIdentity ? data.user.userIdentity : '';
|
|
|
_self.addressfrom.clubId = data.user.clubId;
|
|
|
_self.addressfrom.userId = data.user.userId;
|
|
|
- _self.addressfrom.contractEmail = data.user.contractEmail;
|
|
|
- _self.addressfrom.provinceId = data.club.provinceId;
|
|
|
- _self.addressfrom.cityId = data.club.cityId;
|
|
|
- _self.addressfrom.townId = data.club.townId;
|
|
|
- _self.clubUpgradeUser.provinceId = data.club.provinceId;
|
|
|
- _self.clubUpgradeUser.cityId = data.club.cityId;
|
|
|
- _self.clubUpgradeUser.townId= data.club.townId;
|
|
|
- _self.clubUpgradeUser.shopPhoto = data.club.shopPhoto;
|
|
|
- _self.clubUpgradeUser.businessLicense = data.club.businessLicense;
|
|
|
- _self.clubUpgradeUser.firstClubType = data.club.firstClubType;
|
|
|
- _self.clubUpgradeUser.secondClubType = data.club.secondClubType;
|
|
|
- _self.clubUpgradeUser.address = data.club.address;
|
|
|
+ _self.addressfrom.contractEmail = data.user.contractEmail ? data.user.contractEmail : '';
|
|
|
+ _self.addressfrom.provinceId = data.club.provinceId ? data.club.provinceId : 0;
|
|
|
+ _self.addressfrom.cityId = data.club.cityId ? data.club.cityId : null;
|
|
|
+ _self.addressfrom.townId = data.club.townId ? data.club.townId : null;
|
|
|
+ _self.clubUpgradeUser.provinceId = data.club.provinceId ? data.club.provinceId : null;
|
|
|
+ _self.clubUpgradeUser.cityId = data.club.cityId ? data.club.cityId : null;
|
|
|
+ _self.clubUpgradeUser.townId= data.club.townId ? data.club.townId : null;
|
|
|
+ _self.clubUpgradeUser.shopPhoto = data.club.shopPhoto ? data.club.shopPhoto : null;
|
|
|
+ _self.clubUpgradeUser.businessLicense = data.club.businessLicense ? data.club.businessLicense : null;
|
|
|
+ _self.clubUpgradeUser.firstClubType = data.club.firstClubType ? data.club.firstClubType : null;
|
|
|
+ _self.clubUpgradeUser.secondClubType = data.club.secondClubType ? data.club.secondClubType :null;
|
|
|
+ _self.clubUpgradeUser.address = data.club.address ? data.club.address : null;
|
|
|
+ console.log('1111111111111111111');
|
|
|
if( _self.clubUpgradeUser.firstClubType == 1){
|
|
|
if(data.club.mainProduct){
|
|
|
_self.userMainPros = _self.setNewMainpro(data.club.mainProduct);
|
|
@@ -271,7 +272,8 @@ var informationPage = new Vue({
|
|
|
if (_self.mainProEdit.length>0) {
|
|
|
if (_self.mainPros.indexOf(_self.mainProEdit)<0){
|
|
|
var obj = {name:_self.mainProEdit};
|
|
|
- if(_self.clubUpgradeUser.firstClubType === '0'){
|
|
|
+ console.log(obj);
|
|
|
+ if(_self.clubUpgradeUser.firstClubType === 2){
|
|
|
if(_self.checkedArray(_self.mainProEdit,_self.mentuzCampNullList)){
|
|
|
CAIMEI.dialog('主营内容已存在!',false);
|
|
|
}else {
|