Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
89a25164
Commit
89a25164
authored
Mar 08, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开始写bank接口
parent
4cedefa3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
2 deletions
+54
-2
bank.js
H5/src/api/bank.js
+29
-0
base.js
H5/src/api/base.js
+15
-0
request.js
H5/src/utils/request.js
+1
-1
cash-out.vue
H5/src/views/cashOut/cash-out.vue
+8
-0
customer-service.vue
H5/src/views/customer-service.vue
+1
-1
No files found.
H5/src/api/bank.js
0 → 100644
View file @
89a25164
import
request
from
"@/utils/request"
;
/**
* 保存用户银行卡信息 bankInfo
* @param {*} params bankName string
* @param {*}
* @returns
*/
export
function
addUserBankInfo
(
params
)
{
return
request
({
url
:
"/bank/add"
,
methods
:
"post"
,
data
:
params
})
}
/**
* 提现
* @param {*} params code 验证码
* @param {*} params money 提现金额
* @returns
*/
export
function
cashOut
(
params
)
{
return
request
({
url
:
"/bank/userWithdrawBank"
,
methods
:
"post"
,
data
:
params
})
}
\ No newline at end of file
H5/src/api/base.js
0 → 100644
View file @
89a25164
import
request
from
"@/utils/request"
;
/**
* 发送验证码
* @param {*} params codeType 0注册/登录验证 1修改密码 2订单通知信息
* @param {*} param phone required 用户手机号
* @returns
*/
export
function
smsCode
(
params
)
{
return
request
({
url
:
"/api/sms/verifyCode"
,
method
:
"post"
,
params
})
}
\ No newline at end of file
H5/src/utils/request.js
View file @
89a25164
...
@@ -10,7 +10,7 @@ const service = axios.create({
...
@@ -10,7 +10,7 @@ const service = axios.create({
service
.
interceptors
.
request
.
use
(
service
.
interceptors
.
request
.
use
(
config
=>
{
config
=>
{
config
.
headers
[
"Authorization"
]
=
"b6cd4e221fdc4e46a6825c236c912fa6"
;
//
config.headers["Authorization"] = "b6cd4e221fdc4e46a6825c236c912fa6";
if
(
!
config
.
loading
)
{
if
(
!
config
.
loading
)
{
loading
=
Toast
.
loading
({
loading
=
Toast
.
loading
({
forbidClick
:
true
,
forbidClick
:
true
,
...
...
H5/src/views/cashOut/cash-out.vue
View file @
89a25164
...
@@ -84,6 +84,7 @@
...
@@ -84,6 +84,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
smsCode
}
from
"@/api/base"
;
import
BaseDialog
from
"@/components/BaseDialog.vue"
;
import
BaseDialog
from
"@/components/BaseDialog.vue"
;
export
default
{
export
default
{
components
:
{
BaseDialog
},
components
:
{
BaseDialog
},
...
@@ -110,6 +111,13 @@ export default {
...
@@ -110,6 +111,13 @@ export default {
this
.
$toast
.
fail
(
"未输入提现金额"
);
this
.
$toast
.
fail
(
"未输入提现金额"
);
return
;
return
;
}
}
const
params
=
{
codeType
:
1
,
phone
:
"13100911369"
}
smsCode
(
params
).
then
(
res
=>
{
console
.
log
(
"验证码"
,
res
);
})
this
.
validCode
=
null
;
this
.
validCode
=
null
;
this
.
validCodeDialogShow
=
true
;
this
.
validCodeDialogShow
=
true
;
},
},
...
...
H5/src/views/customer-service.vue
View file @
89a25164
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
var
userId
=
13100911369
//
var userId = 13100911369
export
default
{
export
default
{
name
:
"customerService"
,
name
:
"customerService"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment