commit
27605c4cd1
|
@ -30,8 +30,8 @@
|
|||
</view>
|
||||
</view>
|
||||
<block v-if="isUp">
|
||||
<mobileLogin :isUp="isUp" @close="maskClose" @wechatPhone="wechatPhone"
|
||||
:social-code="socialCode" :social-state="socialState" />
|
||||
<mobileLogin :isUp="isUp" @close="maskClose" @wechatPhone="wechatPhone" :social-code="socialCode"
|
||||
:social-state="socialState" />
|
||||
</block>
|
||||
<block v-if="isPhoneBox">
|
||||
<routinePhone :logoUrl="logoUrl" :isPhoneBox="isPhoneBox" @close="bindPhoneClose" :authKey="authKey">
|
||||
|
@ -47,7 +47,9 @@
|
|||
import mobileLogin from '@/components/login_mobile/index.vue'
|
||||
import routinePhone from '@/components/login_mobile/routine_phone.vue'
|
||||
import * as BrokerageAPI from '@/api/trade/brokerage.js'
|
||||
import { getUserPhone } from '@/api/public';
|
||||
import {
|
||||
getUserPhone
|
||||
} from '@/api/public';
|
||||
import Routine from '@/libs/routine';
|
||||
import wechat from "@/libs/wechat";
|
||||
export default {
|
||||
|
@ -86,7 +88,10 @@
|
|||
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
|
||||
}, 100);
|
||||
});
|
||||
const { code, state } = options;
|
||||
const {
|
||||
code,
|
||||
state
|
||||
} = options;
|
||||
this.options = options
|
||||
// 获取确认授权code
|
||||
this.code = code || ''
|
||||
|
@ -194,7 +199,7 @@
|
|||
'token': data.accessToken
|
||||
});
|
||||
// 保存opendId用于支付
|
||||
this.$store.commit("OPENID", data.openId);
|
||||
this.$store.commit("OPENID", data.openid);
|
||||
// 设置当前userId
|
||||
this.$store.commit("SETUID", data.userId);
|
||||
this.getUserInfo();
|
||||
|
|
Loading…
Reference in New Issue