diff --git a/components/mplogin/mplogin.vue b/components/mplogin/mplogin.vue index 96fbd28..25e921f 100644 --- a/components/mplogin/mplogin.vue +++ b/components/mplogin/mplogin.vue @@ -55,10 +55,6 @@ value: { type: Boolean, required: true - }, - token: { - type: String, - default: '' } }, data() { @@ -79,7 +75,7 @@ mask: true, }); - uploadFile(avatarUrl, this.token).then((res) => { + uploadFile(avatarUrl).then((res) => { uni.hideLoading(); this.avatar = res.url; }).catch(() => { diff --git a/pages/login/login.vue b/pages/login/login.vue index 3b54cea..f72fc0e 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -42,7 +42,7 @@ - + @@ -69,8 +69,7 @@ }, loginData: {}, mpLoginPopup: false, - mobilePopup: false, - token: '' + mobilePopup: false } }, @@ -110,10 +109,7 @@ if (code == 1) { if (data.is_new_user) { uni.hideLoading() - this.token = data.token - this.$nextTick(() => { - this.mpLoginPopup = true - }) + this.mpLoginPopup = true this.loginData = data } else { this.loginHandle(data) diff --git a/pages/order_now/order_now.vue b/pages/order_now/order_now.vue index 412b28a..9d0d6f6 100644 --- a/pages/order_now/order_now.vue +++ b/pages/order_now/order_now.vue @@ -199,6 +199,8 @@