rk
3 天以前 4f4538356403d620b9bd510fd45729a251291942
bicycle/App.vue
@@ -6,6 +6,7 @@
      },
      onLaunch: function() {
         var that = this;
         console.log(JSON.stringify(this.userInfo))
         if (JSON.stringify(this.userInfo) == '{}') {
            uni.login({
               provider: 'weixin',
@@ -15,11 +16,12 @@
                  if (res.code === 200) {
                     that.$store.commit('setToken', res.data.token)
                     that.$store.commit('setUserInfo', res.data.userResponse)
                     console.log('1')
                     that.$isResolve()
                  }
               }
            });
         } else {
            that.$isResolve()
         }
      },
      onShow: function() {