|
@@ -154,12 +154,12 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
- <el-form-item label="支付类型" prop="payType">
|
|
|
|
|
|
|
+<!-- <el-form-item label="支付类型" prop="payType">
|
|
|
<div style="text-align: left;margin-left: 20px;">
|
|
<div style="text-align: left;margin-left: 20px;">
|
|
|
<el-button :type="buyForm.payType === 'wx' ? 'primary' : 'default'" style="margin-right: 30px;" @click="buyForm.payType='wx';onPayTypeChange()">微信</el-button>
|
|
<el-button :type="buyForm.payType === 'wx' ? 'primary' : 'default'" style="margin-right: 30px;" @click="buyForm.payType='wx';onPayTypeChange()">微信</el-button>
|
|
|
<el-button :type="buyForm.payType === 'ali' ? 'primary' : 'default'" @click="buyForm.payType='ali';onPayTypeChange()">支付宝</el-button>
|
|
<el-button :type="buyForm.payType === 'ali' ? 'primary' : 'default'" @click="buyForm.payType='ali';onPayTypeChange()">支付宝</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
|
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<h2 class="tc"> 本课程费用: <strong style="color: red;"> {{buyForm.fee/100}} 元 </strong> </h2>
|
|
<h2 class="tc"> 本课程费用: <strong style="color: red;"> {{buyForm.fee/100}} 元 </strong> </h2>
|
|
@@ -413,10 +413,10 @@
|
|
|
this.timer = window.setInterval(() => {
|
|
this.timer = window.setInterval(() => {
|
|
|
this.tickCount++;
|
|
this.tickCount++;
|
|
|
this.tickTimer();
|
|
this.tickTimer();
|
|
|
- }, 2000);
|
|
|
|
|
|
|
+ }, 3000);
|
|
|
},
|
|
},
|
|
|
tickTimer() {
|
|
tickTimer() {
|
|
|
- if (this.tickCount > 150) {
|
|
|
|
|
|
|
+ if (this.tickCount > 100) {
|
|
|
if (this.timer) window.clearInterval(this.timer);
|
|
if (this.timer) window.clearInterval(this.timer);
|
|
|
this.$message.warning("支付超时,请重新支付");
|
|
this.$message.warning("支付超时,请重新支付");
|
|
|
this.buyCourseDialog = false;
|
|
this.buyCourseDialog = false;
|
|
@@ -435,6 +435,7 @@
|
|
|
generatePayQrcode() {
|
|
generatePayQrcode() {
|
|
|
let payType = this.buyForm.payType;
|
|
let payType = this.buyForm.payType;
|
|
|
let apiName = payType === 'wx' ? "weixin.DoWxpay" : "weixin.DoaliPay";
|
|
let apiName = payType === 'wx' ? "weixin.DoWxpay" : "weixin.DoaliPay";
|
|
|
|
|
+
|
|
|
let param = {
|
|
let param = {
|
|
|
courseId: this.buyForm.course_id,
|
|
courseId: this.buyForm.course_id,
|
|
|
rzCode: this.buyForm.rzCode
|
|
rzCode: this.buyForm.rzCode
|