Commit 9e6d9944 authored by 杨梦雪's avatar 杨梦雪

11

parent 6b424068
......@@ -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();
......
......@@ -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.dialogVisible) {
} else if (!this.dialogChoose) {
return;
} else {
let code = this.$store.state.indexIdentity;
......@@ -210,7 +193,7 @@ export default {
reconnect() {
//重新连接
let that = this;
if (!that.dialogVisible) {
if (!that.dialogChoose) {
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;
......
......@@ -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 = "wss://api.campcenter.cn"; // websocket
export const SERVER_WS_URL = "ws://api.campcenter.cn"; // websocket
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment