|
@@ -95,16 +95,20 @@ Vue.mixin({
|
|
|
},
|
|
},
|
|
|
goStoreApply: function () {
|
|
goStoreApply: function () {
|
|
|
if (this.user.logged) {
|
|
if (this.user.logged) {
|
|
|
- this.$http.get('/basic/vendor/transactionInfo').then(response => {
|
|
|
|
|
- if (response.data.isOpenStore) {
|
|
|
|
|
- window.location.href = '/vendor#/store/maintain'
|
|
|
|
|
- } else {
|
|
|
|
|
- window.location.href = '/vendor#/store-apply'
|
|
|
|
|
- }
|
|
|
|
|
- }, err => {
|
|
|
|
|
- this.$message.error('该账户未开通卖家中心')
|
|
|
|
|
- console.log(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (this.user.data.enterprise.uu) {
|
|
|
|
|
+ this.$http.get('/basic/vendor/transactionInfo').then(response => {
|
|
|
|
|
+ if (response.data.isOpenStore) {
|
|
|
|
|
+ window.location.href = '/vendor#/store/maintain'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ window.location.href = '/vendor#/store-apply'
|
|
|
|
|
+ }
|
|
|
|
|
+ }, err => {
|
|
|
|
|
+ this.$message.error('该账户未开通卖家中心')
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$router.push('/personalMaterial')
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.login()
|
|
this.login()
|
|
|
}
|
|
}
|