|
|
@@ -398,18 +398,21 @@
|
|
|
e.target.setAttribute('class', '')
|
|
|
},
|
|
|
submitApply: function () {
|
|
|
+ // 个人
|
|
|
if (this.loginData.isSelf) {
|
|
|
if (!this.registerData.isValidRegister) {
|
|
|
this.$message.error('请输入正确的注册信息')
|
|
|
} else if (!this.checkData.checked) {
|
|
|
this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
|
+ // 注册企业,并提交申请
|
|
|
this.registerSelf()
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else { // 企业
|
|
|
if (!this.checkData.checked) {
|
|
|
this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
|
+ // 提交申请
|
|
|
this.storeApply(this.loginData.enterprise.uu)
|
|
|
}
|
|
|
}
|
|
|
@@ -485,6 +488,7 @@
|
|
|
tmpBrands.push(item)
|
|
|
}
|
|
|
})
|
|
|
+ // 申请开店
|
|
|
this.$http.post('/store-service/applications', {
|
|
|
brands: tmpBrands,
|
|
|
qualifications: qualifications,
|
|
|
@@ -553,11 +557,12 @@
|
|
|
this.$store.dispatch('loadUserInfo')
|
|
|
window.location.href = url
|
|
|
})
|
|
|
- }
|
|
|
- )
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
+ // 不申请店铺,直接跳转产品管理页面
|
|
|
goProduct: function (baseUrl) {
|
|
|
+ // 个人用户,先注册企业,成功后切换到新注册的企业,然后跳转到产品管理页面
|
|
|
if (this.loginData.isSelf) {
|
|
|
if (!this.registerData.isValidRegister) {
|
|
|
this.$message.error('请输入正确的注册信息')
|
|
|
@@ -583,7 +588,7 @@
|
|
|
this.$message.error('企业注册失败,请重新填写信息')
|
|
|
})
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else { // 企业用户,直接跳转产品管理页面
|
|
|
if (!this.checkData.checked) {
|
|
|
this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|