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
92ec3ded
Commit
92ec3ded
authored
Jan 21, 2022
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝支付修复
parent
dd975f2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+6
-4
No files found.
src/components/index/SignUp/paying.vue
View file @
92ec3ded
...
@@ -126,7 +126,6 @@ export default {
...
@@ -126,7 +126,6 @@ export default {
closeCFSUDialog
(
val
,
type
)
{
closeCFSUDialog
(
val
,
type
)
{
console
.
log
(
val
,
"
val
"
);
console
.
log
(
val
,
"
val
"
);
this
.
confirmSignUpDialogFu
=
val
;
this
.
confirmSignUpDialogFu
=
val
;
},
},
toWeichat
()
{
toWeichat
()
{
// this.dialogChoose = false;
// this.dialogChoose = false;
...
@@ -141,14 +140,17 @@ export default {
...
@@ -141,14 +140,17 @@ export default {
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
/* 此处form就是后台返回接收到的数据 */
/* 此处form就是后台返回接收到的数据 */
var
form
=
res
.
data
.
data
;
let
form
=
res
.
data
.
data
;
console
.
log
(
form
);
console
.
log
(
form
);
const
div
=
document
.
createElement
(
"
div
"
);
// return
let
div
=
document
.
createElement
(
"
div
"
);
div
.
innerHTML
=
form
;
div
.
innerHTML
=
form
;
document
.
body
.
appendChild
(
div
);
document
.
body
.
appendChild
(
div
);
document
.
forms
[
0
].
acceptCharset
=
"
GBK
"
;
//保持与支付宝默认编码格式一致,如果不一致将会出现:调试错误,请回到请求来源地.
document
.
forms
[
0
].
acceptCharset
=
"
GBK
"
;
//保持与支付宝默认编码格式一致,如果不一致将会出现:调试错误,请回到请求来源地.
// 重新发起请求,错误代码 invalid-signature 错误原因: 验签出错,建议检查签名字符串或签名私钥与应用公钥是否匹配
// 重新发起请求,错误代码 invalid-signature 错误原因: 验签出错,建议检查签名字符串或签名私钥与应用公钥是否匹配
document
.
forms
[
0
].
submit
();
//
document
.
forms
[
0
].
submit
();
//
let
alipay_submit
=
document
.
getElementById
(
"
alipay_submit
"
);
div
.
removeChild
(
alipay_submit
);
//初始化 websocket 链接
//初始化 websocket 链接
this
.
initWebSocket
();
this
.
initWebSocket
();
});
});
...
@@ -169,7 +171,7 @@ export default {
...
@@ -169,7 +171,7 @@ export default {
this
.
token
=
window
.
localStorage
.
getItem
(
"
index-token
"
+
code
);
this
.
token
=
window
.
localStorage
.
getItem
(
"
index-token
"
+
code
);
}
}
let
token
=
this
.
token
;
let
token
=
this
.
token
;
const
wssURL
=
SERVER_WS_URL
+
"
/order?token=
"
+
token
+
"
&channel=pc
"
;
var
wssURL
=
SERVER_WS_URL
+
"
/order?token=
"
+
token
+
"
&channel=pc
"
;
this
.
websocket
=
new
WebSocket
(
wssURL
);
this
.
websocket
=
new
WebSocket
(
wssURL
);
console
.
log
(
this
.
websocket
);
console
.
log
(
this
.
websocket
);
// 连接发生错误的回调方法
// 连接发生错误的回调方法
...
...
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