xiongzhu 5 years ago
parent
commit
7706a0c8df
3 changed files with 4 additions and 3 deletions
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 2 1
      src/pages/login.vue

+ 1 - 1
.env.development

@@ -1 +1 @@
-VUE_APP_BASE_URL=https://shoptest.jetour.com.cn
+VUE_APP_BASE_URL=https://shop.jetour.com.cn

+ 1 - 1
.env.production

@@ -1 +1 @@
-VUE_APP_BASE_URL=https://shoptest.jetour.com.cn
+VUE_APP_BASE_URL=https://shop.jetour.com.cn

+ 2 - 1
src/pages/login.vue

@@ -58,7 +58,7 @@ export default {
                     if (this.$store.state.loginInfo && this.$store.state.loginInfo.hasUnionId) {
                         return Promise.resolve();
                     } else {
-                        this.$store.commit('setUserIcon', e.userInfo.avatarUrl);
+                        this.$store.commit('setUserIcon', JSON.parse(e.detail.rawData).avatarUrl);
                         return this.$http.post('/applets/dealuserinfo', {
                             ...e.detail,
                             userInfo: JSON.stringify(e.detail.userInfo)
@@ -89,6 +89,7 @@ export default {
                     wx.navigateBack();
                 })
                 .catch(e => {
+                    console.log(e);
                     this.$loading.close();
                     if (typeof e === 'string') {
                         this.$toast(e);