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
9e6d9944
Commit
9e6d9944
authored
Dec 29, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
6b424068
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
24 deletions
+8
-24
src/components/index/SignUp/ConfirmSignUp.vue
src/components/index/SignUp/ConfirmSignUp.vue
+3
-2
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+4
-21
src/config/server.js
src/config/server.js
+1
-1
No files found.
src/components/index/SignUp/ConfirmSignUp.vue
View file @
9e6d9944
...
...
@@ -9,7 +9,7 @@
@
close=
"cancelBtn()"
>
<div
class=
"pay_code"
>
<div
v-
if
=
"isShowqr == 1"
>
<div
v-
show
=
"isShowqr == 1"
>
<!--
<div
class=
"pay_time"
>
支付剩余时间
<span>
15分30秒
</span></div>
-->
<div
class=
"money"
>
¥
{{
has_amount
}}
</div>
<div
class=
"img_qr"
>
...
...
@@ -20,7 +20,7 @@
付款码为动态码,仅支持通过本页面进行扫描付款操作,不支持另存图片后扫描支付。
</div>
</div>
<div
v-
if
=
"isShowqr == 2"
>
<div
v-
show
=
"isShowqr == 2"
>
<div
class=
"info_2"
style=
"color: #000; font-size: 18px"
>
<i
class=
"el-icon-warning"
></i>
{{
message
}}
</div>
...
...
@@ -86,6 +86,7 @@ export default {
return
;
}
this
.
isShowqr
=
1
;
console
.
log
(
res
.
code_url
);
this
.
createQrCode
(
res
.
code_url
);
//初始化 websocket 链接
this
.
initWebSocket
();
...
...
src/components/index/SignUp/paying.vue
View file @
9e6d9944
...
...
@@ -74,9 +74,6 @@
/>
</div>
<div
class=
"text_choose"
>
请选择支付方式
</div>
<div
class=
"btn"
>
<el-button
@
click=
"dialogChoose = false"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
<!-- 微信支付 -->
...
...
@@ -128,6 +125,7 @@ export default {
// 子组件触发,关闭确认报名弹框
closeCFSUDialog
(
val
,
type
)
{
console
.
log
(
val
,
"
val
"
);
this
.
confirmSignUpDialogFu
=
val
;
if
(
type
)
{
clearInterval
(
this
.
timer
);
}
...
...
@@ -135,18 +133,6 @@ export default {
toWeichat
()
{
// this.dialogChoose = false;
this
.
confirmSignUpDialogFu
=
true
;
// getWxConfig({
// pay_type: 3,
// }).then((res) => {
// console.log(res, "getWxConfig");
// if (res.data.code != 200) {
// return this.$message.error(res.data.message);
// }
// this.status_wx = res.data.status;
// this.$emit("getstatus", res.data.status);
// // console.log(this.status_wx, " this.status_wx");
// this.signUpInit(this.status_wx);
// });
},
toPaybao
()
{
getWxConfig
({
...
...
@@ -165,9 +151,6 @@ export default {
document
.
forms
[
0
].
acceptCharset
=
"
GBK
"
;
//保持与支付宝默认编码格式一致,如果不一致将会出现:调试错误,请回到请求来源地.
// 重新发起请求,错误代码 invalid-signature 错误原因: 验签出错,建议检查签名字符串或签名私钥与应用公钥是否匹配
document
.
forms
[
0
].
submit
();
//
console
.
log
(
res
.
data
.
status
,
"
this.status_wx
"
);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
signUpInit
(
res
.
data
.
status
);
//初始化 websocket 链接
this
.
initWebSocket
();
});
...
...
@@ -180,7 +163,7 @@ export default {
message
:
"
您的浏览器不支持WebSocket
"
,
type
:
"
error
"
,
});
}
else
if
(
!
this
.
dialog
Visibl
e
)
{
}
else
if
(
!
this
.
dialog
Choos
e
)
{
return
;
}
else
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
...
...
@@ -210,7 +193,7 @@ export default {
reconnect
()
{
//重新连接
let
that
=
this
;
if
(
!
that
.
dialog
Visibl
e
)
{
if
(
!
that
.
dialog
Choos
e
)
{
return
;
}
if
(
that
.
lockReconnect
)
{
...
...
@@ -431,7 +414,7 @@ export default {
.text_choose
{
font-size
:
15px
;
margin
-top
:
20px
;
margin
:
20px
0
50px
0
;
}
.btn
.el-button
{
width
:
120px
!
important
;
...
...
src/config/server.js
View file @
9e6d9944
...
...
@@ -13,4 +13,4 @@
// 线上测试
export
const
SERVER_URL
=
"
http://api.campcenter.cn/
"
;
// 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
http://api.campcenter.cn/
"
;
//开发环境
export
const
SERVER_WS_URL
=
"
ws
s
://api.campcenter.cn
"
;
// websocket
export
const
SERVER_WS_URL
=
"
ws://api.campcenter.cn
"
;
// 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