Commit c3d8c7dd by 李伟康

提交代码

1 parent 1cadbc10
...@@ -20,14 +20,6 @@ export default { ...@@ -20,14 +20,6 @@ export default {
returnAll returnAll
}) })
}, },
/**获取验证码 */
getCaptcha (data) {
data.method = 'scrm.api.sso.sms.login.get.captcha'
return window.$HTTP({
url,
data
})
},
/**验证码登录 */ /**验证码登录 */
captchaLogin (data) { captchaLogin (data) {
data.method = 'scrm.api.sso.sms.login' data.method = 'scrm.api.sso.sms.login'
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
.item { .item {
flex-shrink: 0; flex-shrink: 0;
margin-left: 10px; margin-left: 16px;
width: 148px; width: 148px;
height: 82px; height: 82px;
border-radius: 2px; border-radius: 2px;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
title: '加载中...', title: '加载中...',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -120,9 +120,25 @@ export default { ...@@ -120,9 +120,25 @@ export default {
Object.keys(params).map(key => { Object.keys(params).map(key => {
if (params[key]) obj[key] = params[key] if (params[key]) obj[key] = params[key]
}) })
if (userInfo.phone) this.emit(obj)
else ssoApi.captchaLogin({
mobile: params.userPhone,
captcha: 8888,
source: 'CROWDFUNDING_H5'
}).then(({ code, data, message }) => {
if (code == '0') {
this.setUserInfo(data)
this.setSessionId(data.sessionId)
store.dispatch('registerHttp', data.sessionId)
this.emit(obj)
}
else Notify(message)
})
},
emit (obj) {
this.payLoading = true this.payLoading = true
this.$emit('pay', { obj, that: this.$parent }) this.$emit('pay', { obj, that: this.$parent })
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!