Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
60067686
Commit
60067686
authored
Nov 03, 2022
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
34984425
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
25 deletions
+59
-25
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+59
-25
No files found.
src/components/index/SignUp/paying.vue
View file @
60067686
...
@@ -459,8 +459,19 @@ export default {
...
@@ -459,8 +459,19 @@ export default {
closeWebSocket
()
{
closeWebSocket
()
{
this
.
websocket
&&
this
.
websocket
.
close
();
this
.
websocket
&&
this
.
websocket
.
close
();
},
},
// 立即支付-按钮
paying
()
{
paying
()
{
if
(
this
.
has_amount
==
0
)
{
getWxConfig
({
pay_type
:
3
}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
signUpInit
"
);
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
$message
.
success
(
res
.
data
.
err_msg
);
});
this
.
$emit
(
"
getstatus
"
,
6
);
}
else
{
// transfer_account 判断微信支付宝或者银行卡支付
if
(
this
.
transfer_account
==
0
)
{
if
(
this
.
transfer_account
==
0
)
{
this
.
dialogChoose
=
true
;
this
.
dialogChoose
=
true
;
}
else
{
}
else
{
...
@@ -471,22 +482,17 @@ export default {
...
@@ -471,22 +482,17 @@ export default {
this
.
hideUpload
=
true
;
this
.
hideUpload
=
true
;
}
}
}
}
}
// setTimeout(this.signUpInit(this.status_wx), 1000);
},
},
signUpInit
(
status_wx
)
{
signUpInit
()
{
signUpInit
({}).
then
((
res
)
=>
{
signUpInit
({}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
signUpInit
"
);
console
.
log
(
res
,
"
signUpInit
"
);
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
// this.status = res.data.status;
// 点击下一步传值给status,更新
if
(
status_wx
)
{
this
.
status
=
status_wx
;
console
.
log
(
this
.
status
,
"
status_wx
"
);
}
else
{
this
.
status
=
res
.
data
.
status
;
this
.
status
=
res
.
data
.
status
;
// console.log(this.status, "11111");
}
// return;
// return;
// 点击下一步传值给status,更新
// 点击下一步传值给status,更新
if
(
this
.
status
==
4
)
{
if
(
this
.
status
==
4
)
{
...
@@ -502,13 +508,41 @@ export default {
...
@@ -502,13 +508,41 @@ export default {
this
.
status
=
2
;
this
.
status
=
2
;
}
}
}
}
this
.
confirmSignUpDialogFu
=
true
;
if
(
res
.
data
.
pay_amount
==
0
)
{
getWxConfig
({
pay_type
:
3
}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
signUpInit
"
);
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
$message
.
success
(
res
.
data
.
err_msg
);
});
}
// pay_amount支付金额等于0,直接跳到成功页面
}
else
if
(
this
.
status
==
5
)
{
}
else
if
(
this
.
status
==
5
)
{
this
.
type
=
"
pay
"
;
this
.
type
=
"
pay
"
;
this
.
confirmSignUpDialogFu
=
true
;
// pay_amount支付金额等于0,直接跳到成功页面
}
else
if
(
this
.
status
==
6
)
{
if
(
res
.
data
.
pay_amount
==
0
)
{
this
.
type
=
"
success
"
;
this
.
type
=
"
success
"
;
this
.
$emit
(
"
getstatus
"
,
6
);
}
else
{
// transfer_account 判断微信支付宝或者银行卡支付
if
(
this
.
transfer_account
==
0
)
{
this
.
dialogChoose
=
true
;
}
else
{
this
.
bankDialogVisible
=
true
;
console
.
log
(
this
.
fileList
);
console
.
log
(
this
.
fileList
!=
[]);
if
(
this
.
fileList
.
length
>=
1
)
{
this
.
hideUpload
=
true
;
}
}
}
}
}
// else if (this.status == 6) {
// this.type = "success";
// }
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
});
});
},
},
getAccount
()
{
getAccount
()
{
...
...
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