Browse Source

新增我的店铺

shenjj 7 years ago
parent
commit
a16833eb30

+ 1 - 1
components/mobile/MobileFooter.vue

@@ -101,7 +101,7 @@
         this.url = url
         if (this.user.logged) {
           if (isSelf && (!this.user.data.enterprise.uu || this.user.data.enterprise.isVendor !== 313)) {
-            this.onRemind('请先前往pc端开通卖家中心')
+            this.onRemind('请前往账户中心【我】进行开店申请')
           } else {
             this.$router.push(url)
           }

+ 24 - 24
components/mobile/register-saler/Register.vue

@@ -93,30 +93,30 @@
       } else {
         isSelf = true
       }
-      // if (!isSelf) { // 是企业
-      //   this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/info')
-      //     .then(response => {
-      //       this.enterpriseData = response.data
-      //       this.section = 1
-      //       this.checkData.checked = false
-      //     })
-      // } else { // 是个人
-      //   this.$http.get('/basic/user/userCacheEnterprise')
-      //     .then(response => {
-      //       if (!response.data) {
-      //         this.section = 1
-      //         this.checkData.checked = false
-      //       } else if (!response.data.enIsRead) {
-      //         this.section = 2
-      //         this.checkData.checked = false
-      //         this.enterpriseData = response.data
-      //       } else if (response.data.enIsRead) {
-      //         this.section = 3
-      //         this.checkData.checked = true
-      //         this.enterpriseData = response.data
-      //       }
-      //     })
-      // }
+      if (!isSelf) { // 是企业
+        this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/info')
+          .then(response => {
+            this.enterpriseData = response.data
+            this.section = 1
+            this.checkData.checked = false
+          })
+      } else { // 是个人
+        this.$http.get('/basic/user/userCacheEnterprise')
+          .then(response => {
+            if (!response.data) {
+              this.section = 1
+              this.checkData.checked = false
+            } else if (!response.data.enIsRead) {
+              this.section = 2
+              this.checkData.checked = false
+              this.enterpriseData = response.data
+            } else if (response.data.enIsRead) {
+              this.section = 3
+              this.checkData.checked = true
+              this.enterpriseData = response.data
+            }
+          })
+      }
       this.loginData.isSelf = isSelf
       this.loginData.section = this.section
       this.loginData.enterprise = tempEnterprise

+ 1 - 1
components/mobile/register-saler/register/StepFirst.vue

@@ -98,7 +98,7 @@
         <div class="BangdingPageAlertTitle">该企业<span>已注册优软账号</span>,如希望使用当前企业进行开店申请,请先申请<span>企业绑定</span>!</div>
         <div class="BangdingPageAlertBtn">
           <span @click="resetOnkeyDown()">重新输入</span>
-          <span>立即绑定</span>
+          <nuxt-link tag="span" to="/mobile/user/bindEnterprise">立即绑定</nuxt-link>
         </div>
       </div>
     </div>

+ 5 - 4
components/mobile/register-saler/register/StepThird.vue

@@ -555,7 +555,7 @@
                 // this.$message.success('感谢您对优软商城的支持,我们会尽快对您提交的信息进行审核,预计审核时间为3个工作日,审核结果将以站内消息及邮件形式通知您!')
               } else {
                 this.btnDisabled = true
-                this.collectResult = '开通店铺异常,请前往我的店铺查看店铺开通进度'
+                this.collectResult = '开通店铺异常,请前往PC端,我的店铺查看店铺开通进度'
                 this.timeoutCount++
                 // this.$message.error('开通店铺异常,请前往我的店铺查看店铺开通进度')
               }
@@ -565,12 +565,13 @@
                     .then(() => {
                       this.$http.get(`/user/authentication/` + enuu).then(() => {
                         this.$store.dispatch('loadUserInfo')
+                        // setTimeout(() => {
+                        this.$router.push('/mobile/user')
+                        // }, 3000)
                       })
                     })
                 })
-              setTimeout(() => {
-                this.$router.push('/mobile/user')
-              }, 3000)
+
               // window.setTimeout(function () {
                 // window.location.href = '/vendor#/store-apply/wait'
               // }, 3000)

+ 1 - 1
pages/mobile/center/vendor/index.vue

@@ -93,7 +93,7 @@
         if (this.storeInfo.uuid) {
           this.$router.push(`/mobile/shop/${this.storeInfo.uuid}`)
         } else {
-          this.onRemind('请先前往pc端开通店铺')
+          this.onRemind('请前往账户中心【我】进行开店申请')
         }
       },
       onRemind: function (str) {

+ 3 - 0
pages/mobile/user/bindEnterprise.vue

@@ -68,6 +68,9 @@
               this.keyword = ''
               this.showSearchResultStatus = 0
               this.setRemindText('绑定申请提交成功!审批结果将以短信通知,请保持手机通畅。')
+              setTimeout(() => {
+                this.$router.push('/mobile/user')
+              }, 3000)
             } else {
               this.setRemindText(response.data.data)
             }

+ 16 - 2
pages/mobile/user/index.vue

@@ -109,7 +109,8 @@
         showLogout: false,
         showLogin: false,
         timeoutCount: 0,
-        collectResult: ''
+        collectResult: '',
+        applyStatus: ''
       }
     },
     components: {
@@ -151,7 +152,13 @@
           if (this.storeStatus.uuid) {
             this.$router.push(url)
           } else {
-            this.$router.push('/mobile/store')
+            console.log(this.applyStatus)
+            if (this.applyStatus === 'PREPARE') {
+              this.setRemindText('您的申请已提交,请耐心工作人员审核(2-3个工作日)')
+            } else {
+              // 您的申请已提交,请耐心工作人员审核(2-3个工作日)
+              this.$router.push('/mobile/store')
+            }
             // this.setRemindText('请先前往pc端申请开店')
           }
         } else if (!this.user.data.enterprise.uu || this.user.data.enterprise.isVendor !== 313) {
@@ -164,6 +171,13 @@
         this.collectResult = str
         this.timeoutCount++
       }
+    },
+    created() {
+      if (!this.storeStatus) {
+        this.$http.get('/store-service/applications?status=normal').then(res => {
+          this.applyStatus = res.data.data.status
+        })
+      }
     }
   }
 </script>