Browse Source

个人账户获取求购信息传参

yangc 7 years ago
parent
commit
3ca93e1676
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/mobile/user/index.vue

+ 3 - 1
pages/mobile/user/index.vue

@@ -139,6 +139,7 @@
       } else {
         params.userUU = user.userUU
       }
+//      console.log(params)
       return Promise.all([
         store.dispatch('product/saveStores', { count: 100, page: 1, type: 'component' }),
         store.dispatch('shop/StoreFocusPage', { count: 100, page: 1 }),
@@ -158,6 +159,7 @@
       switchEnterprise (en) {
         this.showEnterpriseToggle = false
         this.$http.get(`/user/authentication/${en.uu}`).then(() => {
+          this.isChange = true
           this.$store.dispatch('loadUserInfo').then(() => {
             if (this.userType === 'saler') {
               this.$router.push('/mobile/user?type=buyer')
@@ -257,7 +259,7 @@
         }
         if (this.userType !== 'saler') {
           if (type === 'wait') {
-            params._state = 'todo'
+            params.state = 'todo'
             this.$store.dispatch('applyPurchase/loadBuyerUnSayPricePurchaseManList', params)
           } else if (type === 'done') {
             params._state = 'done'