Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3d8c7dd
authored
Jul 27, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
1cadbc10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
src/api/ssoApi.js
src/assets/css/crowdfunding.scss
src/config/env.development.js
src/views/crowdfunding/components/PayModal.vue
src/api/ssoApi.js
View file @
c3d8c7d
...
...
@@ -20,14 +20,6 @@ export default {
returnAll
})
},
/**获取验证码 */
getCaptcha
(
data
)
{
data
.
method
=
'scrm.api.sso.sms.login.get.captcha'
return
window
.
$HTTP
({
url
,
data
})
},
/**验证码登录 */
captchaLogin
(
data
)
{
data
.
method
=
'scrm.api.sso.sms.login'
...
...
src/assets/css/crowdfunding.scss
View file @
c3d8c7d
...
...
@@ -89,7 +89,7 @@
.item
{
flex-shrink
:
0
;
margin-left
:
1
0
px
;
margin-left
:
1
6
px
;
width
:
148px
;
height
:
82px
;
border-radius
:
2px
;
...
...
src/config/env.development.js
View file @
c3d8c7d
...
...
@@ -10,7 +10,7 @@
module
.
exports
=
{
title
:
'加载中...'
,
request
:
{
baseURL
:
'http://scrm.
test
.glsx.com.cn'
,
// 本地测试项目地址,
baseURL
:
'http://scrm.
dev
.glsx.com.cn'
,
// 本地测试项目地址,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/views/crowdfunding/components/PayModal.vue
View file @
c3d8c7d
...
...
@@ -120,9 +120,25 @@ export default {
Object
.
keys
(
params
).
map
(
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
.
$emit
(
'pay'
,
{
obj
,
that
:
this
.
$parent
})
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment