From 23a3261d24a5b2489583d2fcc5c774240faae90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Sat, 10 Apr 2021 00:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-login-page/common/loginPage.mixin.js | 10 +++++++++- uni_modules/uni-login-page/pages/index/index.vue | 14 -------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/uni_modules/uni-login-page/common/loginPage.mixin.js b/uni_modules/uni-login-page/common/loginPage.mixin.js index 0e6f207..3e02d85 100644 --- a/uni_modules/uni-login-page/common/loginPage.mixin.js +++ b/uni_modules/uni-login-page/common/loginPage.mixin.js @@ -1,5 +1,8 @@ const helpPage = '/pages/ucenter/help/help'; // 帮助页面 - +import { + mapGetters, + mapMutations + } from 'vuex'; let mixin = { // 监听帮助按钮 onNavigationBarButtonTap(event) { @@ -7,5 +10,10 @@ let mixin = { url:helpPage }) }, + methods:{ + ...mapMutations({ + setUserInfo: 'user/login' + }) + } } export default mixin \ No newline at end of file diff --git a/uni_modules/uni-login-page/pages/index/index.vue b/uni_modules/uni-login-page/pages/index/index.vue index 9b278f0..a78ee0c 100644 --- a/uni_modules/uni-login-page/pages/index/index.vue +++ b/uni_modules/uni-login-page/pages/index/index.vue @@ -80,18 +80,6 @@ currentPage = pages[pages.length - 1]; currentPage.$getAppWebview().setStyle({ top:"1000px" -<<<<<<< HEAD - }) - }, - onReady() { - this.$refs.uniQuickLogin.login('univerify') - setTimeout(() => { - currentPage.$getAppWebview().setStyle({ - top:"0" - }) - }, 1500); - }, -======= }) //#endif }, @@ -105,8 +93,6 @@ }, 1500); //#endif }, ->>>>>>> 148172bb1d4257605d106e690cdf5ab6917c2bb9 - computed: { canGetShortMsg() { let reg = /^1\d{10}$/; -- GitLab